summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/resource.cpp15
-rw-r--r--noncore/net/wellenreiter/gui/resource.h6
-rw-r--r--noncore/net/wellenreiter/lib/lib.pro16
-rwxr-xr-xnoncore/net/wellenreiter/makedist.sh20
4 files changed, 39 insertions, 18 deletions
diff --git a/noncore/net/wellenreiter/gui/resource.cpp b/noncore/net/wellenreiter/gui/resource.cpp
index 7683329..a39bbcc 100644
--- a/noncore/net/wellenreiter/gui/resource.cpp
+++ b/noncore/net/wellenreiter/gui/resource.cpp
@@ -19,2 +19,5 @@
+#include <qpixmap.h>
+#include <qiconset.h>
+
namespace Resource
@@ -34,2 +37,14 @@ QPixmap loadPixmap( const QString& pix )
+QIconSet loadIconSet( const QString& pix )
+{
+ QString filename;
+ filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix );
+ QPixmap pixmap( filename );
+ if ( pixmap.isNull() )
+ {
+ qDebug( "Wellenreiter::Resource: can't find pixmap " + filename );
+ }
+ return QIconSet( pixmap );
+};
+
};
diff --git a/noncore/net/wellenreiter/gui/resource.h b/noncore/net/wellenreiter/gui/resource.h
index 6a3cc99..8788c6e 100644
--- a/noncore/net/wellenreiter/gui/resource.h
+++ b/noncore/net/wellenreiter/gui/resource.h
@@ -18,3 +18,6 @@
-#include <qpixmap.h>
+#include <qstring.h>
+
+class QPixmap;
+class QIconSet;
@@ -23,2 +26,3 @@ namespace Resource
QPixmap loadPixmap( const QString& );
+ QIconSet loadIconSet( const QString& );
}
diff --git a/noncore/net/wellenreiter/lib/lib.pro b/noncore/net/wellenreiter/lib/lib.pro
index 0dcc25a..75eba76 100644
--- a/noncore/net/wellenreiter/lib/lib.pro
+++ b/noncore/net/wellenreiter/lib/lib.pro
@@ -4,13 +4,19 @@ CONFIG = qt warn_on debug
-HEADERS = ../libopie2/opieui/olistview.h \
+HEADERS = ../libopie2/opiecore/odebug.h \
+ ../libopie2/opieui/olistview.h \
../libopie2/opienet/onetutils.h \
../libopie2/opienet/omanufacturerdb.h \
+ ../libopie2/opienet/odebugmapper.h \
../libopie2/opienet/onetwork.h \
- ../libopie2/opienet/opcap.h
+ ../libopie2/opienet/opcap.h \
+ ../libopie2/opienet/ostation.h
-SOURCES = ../libopie2/opieui/olistview.cpp \
+SOURCES = ../libopie2/opiecore/odebug.cpp \
+ ../libopie2/opieui/olistview.cpp \
../libopie2/opienet/onetutils.cpp \
../libopie2/opienet/omanufacturerdb.cpp \
+ ../libopie2/opienet/odebugmapper.cpp \
../libopie2/opienet/onetwork.cpp \
- ../libopie2/opienet/opcap.cpp
+ ../libopie2/opienet/opcap.cpp \
+ ../libopie2/opienet/ostation.h
@@ -21,2 +27,2 @@ INTERFACES =
TARGET = wellenreiter
-VERSION = 1.0.0
+VERSION = 1.0.2
diff --git a/noncore/net/wellenreiter/makedist.sh b/noncore/net/wellenreiter/makedist.sh
index ccb9c85..6a0bb26 100755
--- a/noncore/net/wellenreiter/makedist.sh
+++ b/noncore/net/wellenreiter/makedist.sh
@@ -1,2 +1,2 @@
-VERSION=2-1.0.1-cvs
+VERSION=2-1.0.2
@@ -19,2 +19,3 @@ OUTPUT=$TMPDIR/output
+mkdir -p $TMPDIR/libopie2/opiecore
mkdir -p $TMPDIR/libopie2/opieui
@@ -30,16 +31,10 @@ cp -dfR $OPIEDIR/etc/manufacturers $OUTPUT/share/wellenreiter/
-# take care about sourcefiles
+# take care about sourcefiles from libopie2
-FILES="libopie2/opienet/onetwork.h libopie2/opienet/onetwork.cpp \
- libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp \
- libopie2/opienet/802_11_user.h libopie2/opienet/dhcp.h libopie2/opienet/udp_ports.h \
- libopie2/opienet/onetutils.h libopie2/opienet/onetutils.cpp \
- libopie2/opienet/omanufacturerdb.h libopie2/opienet/omanufacturerdb.cpp \
- libopie2/opieui/olistview.cpp libopie2/opieui/olistview.h"
-
-for i in $FILES
- do cp -dfR $OPIEDIR/$i $TMPDIR/$i
-done
+cp -dfR $OPIEDIR/libopie2/opienet/*.* $TMPDIR/libopie2/opienet
+cp -dfR $OPIEDIR/libopie2/opiecore/*.* $TMPDIR/libopie2/opiecore
+cp -dfR $OPIEDIR/libopie2/opieui/olistview.* $TMPDIR/libopie2/opieui
# make includes
+
pushd $TMPDIR/include/opie2
@@ -47,2 +42,3 @@ ln -sf ../../libopie2/opieui/*.h .
ln -sf ../../libopie2/opienet/*.h .
+ln -sf ../../libopie2/opiecore/*.h .
popd