-rw-r--r-- | noncore/net/wellenreiter/gui/resource.cpp | 15 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/resource.h | 6 | ||||
-rw-r--r-- | noncore/net/wellenreiter/lib/lib.pro | 16 | ||||
-rwxr-xr-x | noncore/net/wellenreiter/makedist.sh | 20 |
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 | |||
@@ -8,28 +8,43 @@ | |||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "resource.h" | 16 | #include "resource.h" |
17 | 17 | ||
18 | #define PIXMAPPATH "/usr/local/share" | 18 | #define PIXMAPPATH "/usr/local/share" |
19 | 19 | ||
20 | #include <qpixmap.h> | ||
21 | #include <qiconset.h> | ||
22 | |||
20 | namespace Resource | 23 | namespace Resource |
21 | { | 24 | { |
22 | 25 | ||
23 | QPixmap loadPixmap( const QString& pix ) | 26 | QPixmap loadPixmap( const QString& pix ) |
24 | { | 27 | { |
25 | QString filename; | 28 | QString filename; |
26 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); | 29 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); |
27 | QPixmap pixmap( filename ); | 30 | QPixmap pixmap( filename ); |
28 | if ( pixmap.isNull() ) | 31 | if ( pixmap.isNull() ) |
29 | { | 32 | { |
30 | qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); | 33 | qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); |
31 | } | 34 | } |
32 | return pixmap; | 35 | return pixmap; |
33 | }; | 36 | }; |
34 | 37 | ||
38 | QIconSet loadIconSet( const QString& pix ) | ||
39 | { | ||
40 | QString filename; | ||
41 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); | ||
42 | QPixmap pixmap( filename ); | ||
43 | if ( pixmap.isNull() ) | ||
44 | { | ||
45 | qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); | ||
46 | } | ||
47 | return QIconSet( pixmap ); | ||
48 | }; | ||
49 | |||
35 | }; | 50 | }; |
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 | |||
@@ -7,20 +7,24 @@ | |||
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #ifndef RESOURCE_H | 16 | #ifndef RESOURCE_H |
17 | #define RESOURCE_H | 17 | #define RESOURCE_H |
18 | 18 | ||
19 | #include <qpixmap.h> | 19 | #include <qstring.h> |
20 | |||
21 | class QPixmap; | ||
22 | class QIconSet; | ||
20 | 23 | ||
21 | namespace Resource | 24 | namespace Resource |
22 | { | 25 | { |
23 | QPixmap loadPixmap( const QString& ); | 26 | QPixmap loadPixmap( const QString& ); |
27 | QIconSet loadIconSet( const QString& ); | ||
24 | } | 28 | } |
25 | 29 | ||
26 | #endif // RESOURCE_H | 30 | #endif // RESOURCE_H |
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 | |||
@@ -1,22 +1,28 @@ | |||
1 | DESTDIR = $(OPIEDIR)/output/lib | 1 | DESTDIR = $(OPIEDIR)/output/lib |
2 | TEMPLATE = lib | 2 | TEMPLATE = lib |
3 | CONFIG = qt warn_on debug | 3 | CONFIG = qt warn_on debug |
4 | 4 | ||
5 | HEADERS = ../libopie2/opieui/olistview.h \ | 5 | HEADERS = ../libopie2/opiecore/odebug.h \ |
6 | ../libopie2/opieui/olistview.h \ | ||
6 | ../libopie2/opienet/onetutils.h \ | 7 | ../libopie2/opienet/onetutils.h \ |
7 | ../libopie2/opienet/omanufacturerdb.h \ | 8 | ../libopie2/opienet/omanufacturerdb.h \ |
9 | ../libopie2/opienet/odebugmapper.h \ | ||
8 | ../libopie2/opienet/onetwork.h \ | 10 | ../libopie2/opienet/onetwork.h \ |
9 | ../libopie2/opienet/opcap.h | 11 | ../libopie2/opienet/opcap.h \ |
12 | ../libopie2/opienet/ostation.h | ||
10 | 13 | ||
11 | SOURCES = ../libopie2/opieui/olistview.cpp \ | 14 | SOURCES = ../libopie2/opiecore/odebug.cpp \ |
15 | ../libopie2/opieui/olistview.cpp \ | ||
12 | ../libopie2/opienet/onetutils.cpp \ | 16 | ../libopie2/opienet/onetutils.cpp \ |
13 | ../libopie2/opienet/omanufacturerdb.cpp \ | 17 | ../libopie2/opienet/omanufacturerdb.cpp \ |
18 | ../libopie2/opienet/odebugmapper.cpp \ | ||
14 | ../libopie2/opienet/onetwork.cpp \ | 19 | ../libopie2/opienet/onetwork.cpp \ |
15 | ../libopie2/opienet/opcap.cpp | 20 | ../libopie2/opienet/opcap.cpp \ |
21 | ../libopie2/opienet/ostation.h | ||
16 | 22 | ||
17 | INCLUDEPATH += $(OPIEDIR)/include | 23 | INCLUDEPATH += $(OPIEDIR)/include |
18 | DEPENDPATH += $(OPIEDIR)/include | 24 | DEPENDPATH += $(OPIEDIR)/include |
19 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lpcap | 25 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lpcap |
20 | INTERFACES = | 26 | INTERFACES = |
21 | TARGET = wellenreiter | 27 | TARGET = wellenreiter |
22 | VERSION = 1.0.0 | 28 | 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,55 +1,51 @@ | |||
1 | VERSION=2-1.0.1-cvs | 1 | VERSION=2-1.0.2 |
2 | 2 | ||
3 | TGZDIR=$PWD | 3 | TGZDIR=$PWD |
4 | 4 | ||
5 | # script to make a .tgz distributable for the Wellenreiter X11 Standalone Version | 5 | # script to make a .tgz distributable for the Wellenreiter X11 Standalone Version |
6 | 6 | ||
7 | find . -name "*.o"|xargs rm -f | 7 | find . -name "*.o"|xargs rm -f |
8 | find . -name "Makefile"|xargs rm -f | 8 | find . -name "Makefile"|xargs rm -f |
9 | find . -name "*moc*"|xargs rm -f | 9 | find . -name "*moc*"|xargs rm -f |
10 | #TMPFILE=`mktemp -d -q /tmp/build.XXXXXX` | 10 | #TMPFILE=`mktemp -d -q /tmp/build.XXXXXX` |
11 | TMPFILE=/tmp/build | 11 | TMPFILE=/tmp/build |
12 | #if [ $? -ne 0 ]; then | 12 | #if [ $? -ne 0 ]; then |
13 | # echo "$0: Can't create temp file, exiting..." | 13 | # echo "$0: Can't create temp file, exiting..." |
14 | # exit 1 | 14 | # exit 1 |
15 | #fi | 15 | #fi |
16 | 16 | ||
17 | TMPDIR=$TMPFILE/wellenreiter$VERSION | 17 | TMPDIR=$TMPFILE/wellenreiter$VERSION |
18 | OUTPUT=$TMPDIR/output | 18 | OUTPUT=$TMPDIR/output |
19 | 19 | ||
20 | mkdir -p $TMPDIR/libopie2/opiecore | ||
20 | mkdir -p $TMPDIR/libopie2/opieui | 21 | mkdir -p $TMPDIR/libopie2/opieui |
21 | mkdir -p $TMPDIR/libopie2/opienet | 22 | mkdir -p $TMPDIR/libopie2/opienet |
22 | mkdir -p $TMPDIR/include/opie2 | 23 | mkdir -p $TMPDIR/include/opie2 |
23 | mkdir -p $OUTPUT/share/wellenreiter/pics | 24 | mkdir -p $OUTPUT/share/wellenreiter/pics |
24 | mkdir -p $OUTPUT/share/wellenreiter | 25 | mkdir -p $OUTPUT/share/wellenreiter |
25 | cp -dfR gui $TMPDIR | 26 | cp -dfR gui $TMPDIR |
26 | cp -dfR lib $TMPDIR | 27 | cp -dfR lib $TMPDIR |
27 | cp -dfR build README wellenreiter.pro $TMPDIR | 28 | cp -dfR build README wellenreiter.pro $TMPDIR |
28 | cp -dfR $OPIEDIR/pics/wellenreiter/* $OUTPUT/share/wellenreiter/ | 29 | cp -dfR $OPIEDIR/pics/wellenreiter/* $OUTPUT/share/wellenreiter/ |
29 | cp -dfR $OPIEDIR/etc/manufacturers $OUTPUT/share/wellenreiter/ | 30 | cp -dfR $OPIEDIR/etc/manufacturers $OUTPUT/share/wellenreiter/ |
30 | 31 | ||
31 | # take care about sourcefiles | 32 | # take care about sourcefiles from libopie2 |
32 | 33 | ||
33 | FILES="libopie2/opienet/onetwork.h libopie2/opienet/onetwork.cpp \ | 34 | cp -dfR $OPIEDIR/libopie2/opienet/*.* $TMPDIR/libopie2/opienet |
34 | libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp \ | 35 | cp -dfR $OPIEDIR/libopie2/opiecore/*.* $TMPDIR/libopie2/opiecore |
35 | libopie2/opienet/802_11_user.h libopie2/opienet/dhcp.h libopie2/opienet/udp_ports.h \ | 36 | cp -dfR $OPIEDIR/libopie2/opieui/olistview.* $TMPDIR/libopie2/opieui |
36 | libopie2/opienet/onetutils.h libopie2/opienet/onetutils.cpp \ | ||
37 | libopie2/opienet/omanufacturerdb.h libopie2/opienet/omanufacturerdb.cpp \ | ||
38 | libopie2/opieui/olistview.cpp libopie2/opieui/olistview.h" | ||
39 | |||
40 | for i in $FILES | ||
41 | do cp -dfR $OPIEDIR/$i $TMPDIR/$i | ||
42 | done | ||
43 | 37 | ||
44 | # make includes | 38 | # make includes |
39 | |||
45 | pushd $TMPDIR/include/opie2 | 40 | pushd $TMPDIR/include/opie2 |
46 | ln -sf ../../libopie2/opieui/*.h . | 41 | ln -sf ../../libopie2/opieui/*.h . |
47 | ln -sf ../../libopie2/opienet/*.h . | 42 | ln -sf ../../libopie2/opienet/*.h . |
43 | ln -sf ../../libopie2/opiecore/*.h . | ||
48 | popd | 44 | popd |
49 | 45 | ||
50 | find $TMPDIR -name "CVS"|xargs rm -rf | 46 | find $TMPDIR -name "CVS"|xargs rm -rf |
51 | 47 | ||
52 | pushd $TMPFILE | 48 | pushd $TMPFILE |
53 | tar czf $TGZDIR/wellenreiter$VERSION.tgz wellenreiter$VERSION | 49 | tar czf $TGZDIR/wellenreiter$VERSION.tgz wellenreiter$VERSION |
54 | popd | 50 | popd |
55 | 51 | ||