27 files changed, 1 insertions, 130 deletions
diff --git a/noncore/applets/autorotateapplet/autorotate.cpp b/noncore/applets/autorotateapplet/autorotate.cpp index e7891c8..5152904 100644 --- a/noncore/applets/autorotateapplet/autorotate.cpp +++ b/noncore/applets/autorotateapplet/autorotate.cpp | |||
@@ -10,33 +10,25 @@ | |||
10 | * * | 10 | * * |
11 | *************************************************************************/ | 11 | *************************************************************************/ |
12 | 12 | ||
13 | #include "autorotate.h" | 13 | #include "autorotate.h" |
14 | 14 | ||
15 | /* OPIE */ | 15 | /* OPIE */ |
16 | #include <opie2/odevice.h> | 16 | #include <opie2/odevice.h> |
17 | #include <qpe/applnk.h> | 17 | #include <qpe/applnk.h> |
18 | #include <qpe/config.h> | 18 | #include <qpe/config.h> |
19 | #include <qpe/resource.h> | 19 | #include <qpe/resource.h> |
20 | 20 | ||
21 | /* QT */ | 21 | /* QT */ |
22 | #include <qapplication.h> | ||
23 | #include <qfile.h> | ||
24 | #include <qcopchannel_qws.h> | ||
25 | #include <qmessagebox.h> | ||
26 | #include <qpainter.h> | 22 | #include <qpainter.h> |
27 | #include <qpixmap.h> | ||
28 | #include <qimage.h> | ||
29 | #include <qtimer.h> | ||
30 | #include <qtextstream.h> | ||
31 | 23 | ||
32 | using namespace Opie; | 24 | using namespace Opie; |
33 | 25 | ||
34 | AutoRotate::AutoRotate(QWidget * parent):QWidget(parent) | 26 | AutoRotate::AutoRotate(QWidget * parent):QWidget(parent) |
35 | { | 27 | { |
36 | setFixedWidth( AppLnk::smallIconSize() ); | 28 | setFixedWidth( AppLnk::smallIconSize() ); |
37 | setFixedHeight( AppLnk::smallIconSize() ); | 29 | setFixedHeight( AppLnk::smallIconSize() ); |
38 | 30 | ||
39 | enabledPm.convertFromImage( Resource::loadImage("autorotate/rotate").smoothScale( height(), width() ) ); | 31 | enabledPm.convertFromImage( Resource::loadImage("autorotate/rotate").smoothScale( height(), width() ) ); |
40 | disabledPm.convertFromImage( Resource::loadImage("autorotate/norotate").smoothScale( height(), width() ) ); | 32 | disabledPm.convertFromImage( Resource::loadImage("autorotate/norotate").smoothScale( height(), width() ) ); |
41 | 33 | ||
42 | repaint(true); | 34 | repaint(true); |
diff --git a/noncore/applets/memoryapplet/swapfile.cpp b/noncore/applets/memoryapplet/swapfile.cpp index 06746a7..7483592 100644 --- a/noncore/applets/memoryapplet/swapfile.cpp +++ b/noncore/applets/memoryapplet/swapfile.cpp | |||
@@ -13,41 +13,37 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "swapfile.h" | 21 | #include "swapfile.h" |
22 | 22 | ||
23 | #include <qlabel.h> | 23 | #include <qlabel.h> |
24 | #include <qtimer.h> | 24 | #include <qtimer.h> |
25 | #include <qfile.h> | ||
26 | #include <qtextstream.h> | ||
27 | #include <qlayout.h> | 25 | #include <qlayout.h> |
28 | #include <qpushbutton.h> | 26 | #include <qpushbutton.h> |
29 | #include <qhbuttongroup.h> | 27 | #include <qhbuttongroup.h> |
30 | #include <qradiobutton.h> | 28 | #include <qradiobutton.h> |
31 | #include <qlineedit.h> | 29 | #include <qlineedit.h> |
32 | #include <qprogressbar.h> | 30 | #include <qprogressbar.h> |
33 | #include <qcombobox.h> | 31 | #include <qcombobox.h> |
34 | #include <qvgroupbox.h> | 32 | #include <qvgroupbox.h> |
35 | #include <qhbox.h> | 33 | #include <qhbox.h> |
36 | #include <qmessagebox.h> | 34 | #include <qmessagebox.h> |
37 | #include <stdio.h> | 35 | #include <stdio.h> |
38 | #include <stdlib.h> | 36 | #include <stdlib.h> |
39 | #include <string.h> | 37 | #include <string.h> |
40 | #include <qfile.h> | ||
41 | #include <qtextstream.h> | ||
42 | 38 | ||
43 | #include <qcopchannel_qws.h> | 39 | #include <qcopchannel_qws.h> |
44 | #include <qpe/resource.h> | 40 | #include <qpe/resource.h> |
45 | 41 | ||
46 | #include <unistd.h> | 42 | #include <unistd.h> |
47 | #include <fcntl.h> | 43 | #include <fcntl.h> |
48 | #include <sys/vfs.h> | 44 | #include <sys/vfs.h> |
49 | #include <mntent.h> | 45 | #include <mntent.h> |
50 | #include <unistd.h> | 46 | #include <unistd.h> |
51 | #include <sys/types.h> | 47 | #include <sys/types.h> |
52 | 48 | ||
53 | Swapfile::Swapfile( QWidget *parent, const char *name, WFlags f ) | 49 | Swapfile::Swapfile( QWidget *parent, const char *name, WFlags f ) |
diff --git a/noncore/applets/networkapplet/networkapplet.cpp b/noncore/applets/networkapplet/networkapplet.cpp index 9a08568..955ed2e 100644 --- a/noncore/applets/networkapplet/networkapplet.cpp +++ b/noncore/applets/networkapplet/networkapplet.cpp | |||
@@ -26,37 +26,31 @@ | |||
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | 28 | ||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "networkapplet.h" | 31 | #include "networkapplet.h" |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/odebug.h> | 34 | #include <opie2/odebug.h> |
35 | #include <opie2/onetwork.h> | 35 | #include <opie2/onetwork.h> |
36 | #include <opie2/otaskbarapplet.h> | 36 | #include <opie2/otaskbarapplet.h> |
37 | #include <qpe/applnk.h> | 37 | #include <qpe/applnk.h> |
38 | #include <qpe/qlibrary.h> | ||
39 | #include <qpe/resource.h> | 38 | #include <qpe/resource.h> |
40 | #include <qpainter.h> | 39 | #include <qpainter.h> |
41 | 40 | ||
42 | /* QT */ | 41 | /* QT */ |
43 | #include <qhostaddress.h> | ||
44 | #include <qimage.h> | ||
45 | #include <qlabel.h> | 42 | #include <qlabel.h> |
46 | #include <qlayout.h> | 43 | #include <qlayout.h> |
47 | #include <qlineedit.h> | ||
48 | #include <qobjectlist.h> | 44 | #include <qobjectlist.h> |
49 | #include <qpushbutton.h> | ||
50 | #include <qtoolbutton.h> | ||
51 | 45 | ||
52 | #include <assert.h> | 46 | #include <assert.h> |
53 | 47 | ||
54 | IfaceUpDownButton::IfaceUpDownButton( QWidget* parent, const char* name ) | 48 | IfaceUpDownButton::IfaceUpDownButton( QWidget* parent, const char* name ) |
55 | :QToolButton( parent, name ) | 49 | :QToolButton( parent, name ) |
56 | { | 50 | { |
57 | _iface = ONetwork::instance()->interface( name ); | 51 | _iface = ONetwork::instance()->interface( name ); |
58 | assert( _iface ); | 52 | assert( _iface ); |
59 | setToggleButton( true ); | 53 | setToggleButton( true ); |
60 | //setAutoRaise( true ); | 54 | //setAutoRaise( true ); |
61 | setOnIconSet( QIconSet( Resource::loadPixmap( "up" ) ) ); | 55 | setOnIconSet( QIconSet( Resource::loadPixmap( "up" ) ) ); |
62 | setOffIconSet( QIconSet( Resource::loadPixmap( "down" ) ) ); | 56 | setOffIconSet( QIconSet( Resource::loadPixmap( "down" ) ) ); |
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp index e2b0c2a..7b8bdd9 100644 --- a/noncore/applets/notesapplet/notes.cpp +++ b/noncore/applets/notesapplet/notes.cpp | |||
@@ -11,32 +11,29 @@ | |||
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 "notes.h" | 16 | #include "notes.h" |
17 | 17 | ||
18 | #include <qapplication.h> | 18 | #include <qapplication.h> |
19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
20 | #include <qstringlist.h> | 20 | #include <qstringlist.h> |
21 | 21 | ||
22 | #include <qpe/filemanager.h> | 22 | #include <qpe/filemanager.h> |
23 | #include <qpe/resource.h> | ||
24 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
25 | #include <qpe/timestring.h> | 24 | #include <qpe/timestring.h> |
26 | #include <qpe/resource.h> | ||
27 | #include <qpe/config.h> | ||
28 | #include <qpe/applnk.h> | 25 | #include <qpe/applnk.h> |
29 | #include <qpe/config.h> | ||
30 | #include <qpe/ir.h> | 26 | #include <qpe/ir.h> |
27 | #include <qpe/config.h> | ||
31 | 28 | ||
32 | // #include <qsocket.h> | 29 | // #include <qsocket.h> |
33 | // #include <qclipboard.h> | 30 | // #include <qclipboard.h> |
34 | #include <qmultilineedit.h> | 31 | #include <qmultilineedit.h> |
35 | #include <qlistbox.h> | 32 | #include <qlistbox.h> |
36 | #include <qpopupmenu.h> | 33 | #include <qpopupmenu.h> |
37 | #include <qmessagebox.h> | 34 | #include <qmessagebox.h> |
38 | 35 | ||
39 | #include <qdir.h> | 36 | #include <qdir.h> |
40 | #include <qfile.h> | 37 | #include <qfile.h> |
41 | #include <qpoint.h> | 38 | #include <qpoint.h> |
42 | #include <qpushbutton.h> | 39 | #include <qpushbutton.h> |
diff --git a/noncore/applets/wirelessapplet/advancedconfig.cpp b/noncore/applets/wirelessapplet/advancedconfig.cpp index 97b008d..aba0fee 100644 --- a/noncore/applets/wirelessapplet/advancedconfig.cpp +++ b/noncore/applets/wirelessapplet/advancedconfig.cpp | |||
@@ -7,25 +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 | #include "advancedconfig.h" | 16 | #include "advancedconfig.h" |
17 | 17 | ||
18 | #include <qpe/config.h> | 18 | #include <qpe/config.h> |
19 | #include <qwidget.h> | ||
20 | #include <qcheckbox.h> | 19 | #include <qcheckbox.h> |
21 | 20 | ||
22 | AdvancedConfig::AdvancedConfig( QWidget* parent, const char* name, bool modal, WFlags fl ) | 21 | AdvancedConfig::AdvancedConfig( QWidget* parent, const char* name, bool modal, WFlags fl ) |
23 | : AdvancedConfigBase( parent, name, modal, fl ) | 22 | : AdvancedConfigBase( parent, name, modal, fl ) |
24 | { | 23 | { |
25 | Config cfg( "qpe" ); | 24 | Config cfg( "qpe" ); |
26 | cfg.setGroup( "Wireless" ); | 25 | cfg.setGroup( "Wireless" ); |
27 | 26 | ||
28 | bool rocESSID = cfg.readBoolEntry( "renew_dhcp_on_essid_change", false ); | 27 | bool rocESSID = cfg.readBoolEntry( "renew_dhcp_on_essid_change", false ); |
29 | bool rocFREQ = cfg.readBoolEntry( "renew_dhcp_on_freq_change", false ); | 28 | bool rocFREQ = cfg.readBoolEntry( "renew_dhcp_on_freq_change", false ); |
30 | bool rocAP = cfg.readBoolEntry( "renew_dhcp_on_ap_change", false ); | 29 | bool rocAP = cfg.readBoolEntry( "renew_dhcp_on_ap_change", false ); |
31 | bool rocMODE = cfg.readBoolEntry( "renew_dhcp_on_mode_change", false ); | 30 | bool rocMODE = cfg.readBoolEntry( "renew_dhcp_on_mode_change", false ); |
diff --git a/noncore/applets/wirelessapplet/wireless.cpp b/noncore/applets/wirelessapplet/wireless.cpp index cee789c..9ce6618 100644 --- a/noncore/applets/wirelessapplet/wireless.cpp +++ b/noncore/applets/wirelessapplet/wireless.cpp | |||
@@ -16,39 +16,34 @@ | |||
16 | #include "advancedconfig.h" | 16 | #include "advancedconfig.h" |
17 | #include "connect0.xpm" | 17 | #include "connect0.xpm" |
18 | #include "connect1.xpm" | 18 | #include "connect1.xpm" |
19 | #include "connect2.xpm" | 19 | #include "connect2.xpm" |
20 | #include "connect3.xpm" | 20 | #include "connect3.xpm" |
21 | #include "connect4.xpm" | 21 | #include "connect4.xpm" |
22 | #include "connect5.xpm" | 22 | #include "connect5.xpm" |
23 | #include "nowireless.xpm" | 23 | #include "nowireless.xpm" |
24 | 24 | ||
25 | /* OPIE */ | 25 | /* OPIE */ |
26 | #include <opie2/onetwork.h> | 26 | #include <opie2/onetwork.h> |
27 | #include <opie2/otaskbarapplet.h> | 27 | #include <opie2/otaskbarapplet.h> |
28 | #include <qpe/qpeapplication.h> | ||
29 | #include <qpe/config.h> | 28 | #include <qpe/config.h> |
30 | 29 | ||
31 | /* QT */ | 30 | /* QT */ |
32 | #include <qpoint.h> | ||
33 | #include <qradiobutton.h> | 31 | #include <qradiobutton.h> |
34 | #include <qpushbutton.h> | 32 | #include <qpushbutton.h> |
35 | #include <qpainter.h> | 33 | #include <qpainter.h> |
36 | #include <qlabel.h> | 34 | #include <qlabel.h> |
37 | #include <qslider.h> | 35 | #include <qslider.h> |
38 | #include <qbuttongroup.h> | 36 | #include <qbuttongroup.h> |
39 | #include <qlayout.h> | 37 | #include <qlayout.h> |
40 | #include <qframe.h> | ||
41 | #include <qpixmap.h> | ||
42 | #include <qstring.h> | ||
43 | #include <qfile.h> | 38 | #include <qfile.h> |
44 | #include <qtextstream.h> | 39 | #include <qtextstream.h> |
45 | 40 | ||
46 | /* STD */ | 41 | /* STD */ |
47 | #include <sys/types.h> | 42 | #include <sys/types.h> |
48 | #include <signal.h> | 43 | #include <signal.h> |
49 | 44 | ||
50 | #define STYLE_BARS 0 | 45 | #define STYLE_BARS 0 |
51 | #define STYLE_ANTENNA 1 | 46 | #define STYLE_ANTENNA 1 |
52 | 47 | ||
53 | //#define MDEBUG | 48 | //#define MDEBUG |
54 | #undef MDEBUG | 49 | #undef MDEBUG |
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 5148172..c44d387 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -3,47 +3,37 @@ | |||
3 | ------------------- | 3 | ------------------- |
4 | ** Created: Sat Mar 9 23:33:09 2002 | 4 | ** Created: Sat Mar 9 23:33:09 2002 |
5 | copyright : (C) 2002 by ljp | 5 | copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #define DEVELOPERS_VERSION | 12 | #define DEVELOPERS_VERSION |
13 | #include "advancedfm.h" | 13 | #include "advancedfm.h" |
14 | 14 | ||
15 | #include <qpe/filemanager.h> | ||
16 | #include <qpe/qcopenvelope_qws.h> | ||
17 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
18 | #include <qpe/config.h> | 16 | #include <qpe/config.h> |
19 | #include <qpe/mimetype.h> | 17 | #include <qpe/mimetype.h> |
20 | #include <qpe/applnk.h> | 18 | #include <qpe/applnk.h> |
21 | #include <qpe/ir.h> | ||
22 | #include <qpe/resource.h> | 19 | #include <qpe/resource.h> |
23 | #include <qpe/menubutton.h> | 20 | #include <qpe/menubutton.h> |
24 | 21 | ||
25 | #include <qdatetime.h> | ||
26 | #include <qfile.h> | ||
27 | #include <qcombobox.h> | 22 | #include <qcombobox.h> |
28 | #include <qpopupmenu.h> | 23 | #include <qpopupmenu.h> |
29 | #include <qlistview.h> | 24 | #include <qlistview.h> |
30 | #include <qlabel.h> | ||
31 | #include <qwidget.h> | ||
32 | #include <qlayout.h> | ||
33 | #include <qimage.h> | ||
34 | #include <qmessagebox.h> | 25 | #include <qmessagebox.h> |
35 | #include <qlineedit.h> | 26 | #include <qlineedit.h> |
36 | 27 | ||
37 | #include <qpe/qpemessagebox.h> | ||
38 | 28 | ||
39 | #include <sys/stat.h> | 29 | #include <sys/stat.h> |
40 | #include <time.h> | 30 | #include <time.h> |
41 | #include <dirent.h> | 31 | #include <dirent.h> |
42 | #include <fcntl.h> | 32 | #include <fcntl.h> |
43 | #include <sys/vfs.h> | 33 | #include <sys/vfs.h> |
44 | #include <mntent.h> | 34 | #include <mntent.h> |
45 | 35 | ||
46 | #ifdef NOQUICKLAUNCH | 36 | #ifdef NOQUICKLAUNCH |
47 | AdvancedFm::AdvancedFm( ) | 37 | AdvancedFm::AdvancedFm( ) |
48 | #else | 38 | #else |
49 | AdvancedFm::AdvancedFm(QWidget *,const char*, WFlags ) | 39 | AdvancedFm::AdvancedFm(QWidget *,const char*, WFlags ) |
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 18bbd43..9ad1146 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -6,41 +6,30 @@ | |||
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #include "advancedfm.h" | 12 | #include "advancedfm.h" |
13 | #include "output.h" | 13 | #include "output.h" |
14 | #include "filePermissions.h" | 14 | #include "filePermissions.h" |
15 | 15 | ||
16 | #include <qpe/lnkproperties.h> | 16 | #include <qpe/lnkproperties.h> |
17 | #include <qpe/qpeapplication.h> | 17 | #include <qpe/qpeapplication.h> |
18 | #include <qpe/resource.h> | ||
19 | #include <qpe/qcopenvelope_qws.h> | ||
20 | #include <qpe/applnk.h> | 18 | #include <qpe/applnk.h> |
21 | #include <qpe/ir.h> | ||
22 | 19 | ||
23 | #include <qmessagebox.h> | 20 | #include <qmessagebox.h> |
24 | #include <qmultilineedit.h> | ||
25 | 21 | ||
26 | #include <qstring.h> | ||
27 | 22 | ||
28 | #include <qlayout.h> | ||
29 | #include <qpixmap.h> | ||
30 | #include <qcombobox.h> | ||
31 | #include <qpopupmenu.h> | 23 | #include <qpopupmenu.h> |
32 | #include <qtabwidget.h> | ||
33 | #include <qtoolbutton.h> | ||
34 | #include <qlineedit.h> | ||
35 | #include <qlistview.h> | 24 | #include <qlistview.h> |
36 | 25 | ||
37 | #include <errno.h> | 26 | #include <errno.h> |
38 | #include <stdlib.h> | 27 | #include <stdlib.h> |
39 | #include <unistd.h> | 28 | #include <unistd.h> |
40 | #include <sys/stat.h> | 29 | #include <sys/stat.h> |
41 | #include <dirent.h> | 30 | #include <dirent.h> |
42 | #include <sys/sendfile.h> | 31 | #include <sys/sendfile.h> |
43 | #include <fcntl.h> | 32 | #include <fcntl.h> |
44 | 33 | ||
45 | 34 | ||
46 | void AdvancedFm::doDirChange() { | 35 | void AdvancedFm::doDirChange() { |
diff --git a/noncore/apps/checkbook/cfg.cpp b/noncore/apps/checkbook/cfg.cpp index 0d5d9ed..24fa4cb 100644 --- a/noncore/apps/checkbook/cfg.cpp +++ b/noncore/apps/checkbook/cfg.cpp | |||
@@ -19,28 +19,25 @@ | |||
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | 30 | ||
31 | #include <qstring.h> | ||
32 | #include <qstringlist.h> | ||
33 | #include <qwidget.h> | 31 | #include <qwidget.h> |
34 | #include <qpe/resource.h> | ||
35 | #include <qpe/config.h> | 32 | #include <qpe/config.h> |
36 | 33 | ||
37 | #include "cfg.h" | 34 | #include "cfg.h" |
38 | 35 | ||
39 | // --- Cfg -------------------------------------------------------------------- | 36 | // --- Cfg -------------------------------------------------------------------- |
40 | Cfg::Cfg() | 37 | Cfg::Cfg() |
41 | { | 38 | { |
42 | _currencySymbol="$"; | 39 | _currencySymbol="$"; |
43 | _showLocks=FALSE; | 40 | _showLocks=FALSE; |
44 | _showBalances=FALSE; | 41 | _showBalances=FALSE; |
45 | _pCategories=new CategoryList(); | 42 | _pCategories=new CategoryList(); |
46 | _bDirty=false; | 43 | _bDirty=false; |
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp index 4ca764f..26b2533 100644 --- a/noncore/apps/checkbook/checkbook.cpp +++ b/noncore/apps/checkbook/checkbook.cpp | |||
@@ -24,25 +24,24 @@ | |||
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "checkbook.h" | 29 | #include "checkbook.h" |
30 | #include "cbinfo.h" | 30 | #include "cbinfo.h" |
31 | #include "transaction.h" | 31 | #include "transaction.h" |
32 | #include "traninfo.h" | 32 | #include "traninfo.h" |
33 | #include "graph.h" | 33 | #include "graph.h" |
34 | #include "graphinfo.h" | 34 | #include "graphinfo.h" |
35 | #include "password.h" | 35 | #include "password.h" |
36 | #include "mainwindow.h" | ||
37 | #include "cfg.h" | 36 | #include "cfg.h" |
38 | 37 | ||
39 | #include <qpe/qpeapplication.h> | 38 | #include <qpe/qpeapplication.h> |
40 | #include <qpe/qpemessagebox.h> | 39 | #include <qpe/qpemessagebox.h> |
41 | #include <qpe/resource.h> | 40 | #include <qpe/resource.h> |
42 | 41 | ||
43 | #include <qcheckbox.h> | 42 | #include <qcheckbox.h> |
44 | #include <qcombobox.h> | 43 | #include <qcombobox.h> |
45 | #include <qlabel.h> | 44 | #include <qlabel.h> |
46 | #include <qlayout.h> | 45 | #include <qlayout.h> |
47 | #include <qlineedit.h> | 46 | #include <qlineedit.h> |
48 | #include <qmultilineedit.h> | 47 | #include <qmultilineedit.h> |
diff --git a/noncore/apps/checkbook/configuration.cpp b/noncore/apps/checkbook/configuration.cpp index dfae446..872d9b2 100644 --- a/noncore/apps/checkbook/configuration.cpp +++ b/noncore/apps/checkbook/configuration.cpp | |||
@@ -18,37 +18,33 @@ | |||
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "configuration.h" | 29 | #include "configuration.h" |
30 | #include "mainwindow.h" | ||
31 | #include "listedit.h" | 30 | #include "listedit.h" |
32 | #include "tabledef.h" | ||
33 | 31 | ||
34 | #include <qcheckbox.h> | 32 | #include <qcheckbox.h> |
35 | #include <qlabel.h> | 33 | #include <qlabel.h> |
36 | #include <qlayout.h> | 34 | #include <qlayout.h> |
37 | #include <qlineedit.h> | 35 | #include <qlineedit.h> |
38 | #include <qwhatsthis.h> | 36 | #include <qwhatsthis.h> |
39 | #include <qlistview.h> | 37 | #include <qlistview.h> |
40 | #include <qpushbutton.h> | ||
41 | #include <qtabwidget.h> | 38 | #include <qtabwidget.h> |
42 | #include <qpe/resource.h> | ||
43 | 39 | ||
44 | Configuration::Configuration( QWidget *parent, Cfg &cfg ) | 40 | Configuration::Configuration( QWidget *parent, Cfg &cfg ) |
45 | : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) | 41 | : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) |
46 | { | 42 | { |
47 | setCaption( tr( "Configure Checkbook" ) ); | 43 | setCaption( tr( "Configure Checkbook" ) ); |
48 | 44 | ||
49 | // Setup layout to make everything pretty | 45 | // Setup layout to make everything pretty |
50 | QVBoxLayout *layout = new QVBoxLayout( this ); | 46 | QVBoxLayout *layout = new QVBoxLayout( this ); |
51 | layout->setMargin( 2 ); | 47 | layout->setMargin( 2 ); |
52 | layout->setSpacing( 4 ); | 48 | layout->setSpacing( 4 ); |
53 | 49 | ||
54 | // Setup tabs for all info | 50 | // Setup tabs for all info |
diff --git a/noncore/apps/checkbook/mainwindow.cpp b/noncore/apps/checkbook/mainwindow.cpp index 60aea42..d0fac3b 100644 --- a/noncore/apps/checkbook/mainwindow.cpp +++ b/noncore/apps/checkbook/mainwindow.cpp | |||
@@ -22,38 +22,34 @@ | |||
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "mainwindow.h" | 29 | #include "mainwindow.h" |
30 | #include "cbinfo.h" | 30 | #include "cbinfo.h" |
31 | #include "configuration.h" | 31 | #include "configuration.h" |
32 | #include "password.h" | 32 | #include "password.h" |
33 | #include "checkbook.h" | 33 | #include "checkbook.h" |
34 | #include "listedit.h" | ||
35 | 34 | ||
36 | #include <qpe/config.h> | 35 | #include <qpe/config.h> |
37 | #include <qpe/global.h> | ||
38 | #include <qpe/qpeapplication.h> | 36 | #include <qpe/qpeapplication.h> |
39 | #include <qpe/qpemessagebox.h> | 37 | #include <qpe/qpemessagebox.h> |
40 | #include <qpe/qpetoolbar.h> | 38 | #include <qpe/qpetoolbar.h> |
41 | #include <qpe/resource.h> | 39 | #include <qpe/resource.h> |
42 | 40 | ||
43 | #include <qmenubar.h> | 41 | #include <qmenubar.h> |
44 | #include <qaction.h> | 42 | #include <qaction.h> |
45 | #include <qcheckbox.h> | ||
46 | #include <qdir.h> | 43 | #include <qdir.h> |
47 | #include <qlineedit.h> | ||
48 | #include <qwhatsthis.h> | 44 | #include <qwhatsthis.h> |
49 | 45 | ||
50 | 46 | ||
51 | MainWindow::MainWindow( QWidget* parent, const char* name, WFlags /*fl*/ ) | 47 | MainWindow::MainWindow( QWidget* parent, const char* name, WFlags /*fl*/ ) |
52 | : QMainWindow( parent, name, WStyle_ContextHelp ) | 48 | : QMainWindow( parent, name, WStyle_ContextHelp ) |
53 | { | 49 | { |
54 | setCaption( tr( "Checkbook" ) ); | 50 | setCaption( tr( "Checkbook" ) ); |
55 | 51 | ||
56 | cbDir = Global::applicationFileName( "checkbook", "" ); | 52 | cbDir = Global::applicationFileName( "checkbook", "" ); |
57 | lockIcon = Resource::loadPixmap( "locked" ); | 53 | lockIcon = Resource::loadPixmap( "locked" ); |
58 | 54 | ||
59 | // Load configuration options | 55 | // Load configuration options |
diff --git a/noncore/apps/checkbook/tabledef.cpp b/noncore/apps/checkbook/tabledef.cpp index 13edded..9a42308 100644 --- a/noncore/apps/checkbook/tabledef.cpp +++ b/noncore/apps/checkbook/tabledef.cpp | |||
@@ -19,26 +19,24 @@ | |||
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "tabledef.h" | 29 | #include "tabledef.h" |
30 | 30 | ||
31 | #include <qstring.h> | ||
32 | #include <qpe/resource.h> | ||
33 | 31 | ||
34 | // --- ColumnDef -------------------------------------------------------------- | 32 | // --- ColumnDef -------------------------------------------------------------- |
35 | ColumnDef::ColumnDef(const char *sName, ColumnType type, const char *sNewValue) | 33 | ColumnDef::ColumnDef(const char *sName, ColumnType type, const char *sNewValue) |
36 | { | 34 | { |
37 | _sName=sName; | 35 | _sName=sName; |
38 | _type=type; | 36 | _type=type; |
39 | _sNewValue=sNewValue; | 37 | _sNewValue=sNewValue; |
40 | } | 38 | } |
41 | 39 | ||
42 | 40 | ||
43 | // --- addColumnValue --------------------------------------------------------- | 41 | // --- addColumnValue --------------------------------------------------------- |
44 | void ColumnDef::addColumnValue(const QString &sValue) | 42 | void ColumnDef::addColumnValue(const QString &sValue) |
diff --git a/noncore/apps/checkbook/transaction.cpp b/noncore/apps/checkbook/transaction.cpp index 9379da0..a72a48b 100644 --- a/noncore/apps/checkbook/transaction.cpp +++ b/noncore/apps/checkbook/transaction.cpp | |||
@@ -23,25 +23,24 @@ | |||
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "transaction.h" | 29 | #include "transaction.h" |
30 | #include "traninfo.h" | 30 | #include "traninfo.h" |
31 | #include "cfg.h" | 31 | #include "cfg.h" |
32 | #include "checkbook.h" | 32 | #include "checkbook.h" |
33 | 33 | ||
34 | #include <qpe/datebookmonth.h> | 34 | #include <qpe/datebookmonth.h> |
35 | #include <qpe/resource.h> | ||
36 | 35 | ||
37 | #include <qbuttongroup.h> | 36 | #include <qbuttongroup.h> |
38 | #include <qcombobox.h> | 37 | #include <qcombobox.h> |
39 | #include <qlabel.h> | 38 | #include <qlabel.h> |
40 | #include <qlayout.h> | 39 | #include <qlayout.h> |
41 | #include <qlineedit.h> | 40 | #include <qlineedit.h> |
42 | #include <qmultilineedit.h> | 41 | #include <qmultilineedit.h> |
43 | #include <qradiobutton.h> | 42 | #include <qradiobutton.h> |
44 | #include <qwhatsthis.h> | 43 | #include <qwhatsthis.h> |
45 | 44 | ||
46 | Transaction::Transaction( QWidget *parent, bool bNew, const QString &acctname, | 45 | Transaction::Transaction( QWidget *parent, bool bNew, const QString &acctname, |
47 | TranInfo *info, Cfg *pCfg ) | 46 | TranInfo *info, Cfg *pCfg ) |
diff --git a/noncore/apps/confedit/editwidget.cpp b/noncore/apps/confedit/editwidget.cpp index f7dc408..21f69c7 100644 --- a/noncore/apps/confedit/editwidget.cpp +++ b/noncore/apps/confedit/editwidget.cpp | |||
@@ -1,25 +1,17 @@ | |||
1 | #include "editwidget.h" | 1 | #include "editwidget.h" |
2 | 2 | ||
3 | #include <qlabel.h> | 3 | #include <qlabel.h> |
4 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
5 | #include <qpushbutton.h> | ||
6 | #include <qlayout.h> | 5 | #include <qlayout.h> |
7 | #include <qvariant.h> | ||
8 | #include <qtooltip.h> | ||
9 | #include <qwhatsthis.h> | ||
10 | #include <qtimer.h> | ||
11 | #include <qpopupmenu.h> | ||
12 | #include <qaction.h> | ||
13 | #include "listviewitemconfigentry.h" | ||
14 | 6 | ||
15 | EditWidget::EditWidget( QWidget* parent, const char* name, WFlags fl ) | 7 | EditWidget::EditWidget( QWidget* parent, const char* name, WFlags fl ) |
16 | : QWidget( parent, name, fl ) | 8 | : QWidget( parent, name, fl ) |
17 | { | 9 | { |
18 | 10 | ||
19 | EditWidgetLayout = new QGridLayout( this ); | 11 | EditWidgetLayout = new QGridLayout( this ); |
20 | EditWidgetLayout->setSpacing( 0 ); | 12 | EditWidgetLayout->setSpacing( 0 ); |
21 | EditWidgetLayout->setMargin( 0 ); | 13 | EditWidgetLayout->setMargin( 0 ); |
22 | // setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Maximum));//, sizePolicy().hasHeightForWidth() ) ); | 14 | // setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Maximum));//, sizePolicy().hasHeightForWidth() ) ); |
23 | 15 | ||
24 | TextLabelFileName = new QLabel( this, "TextLabelFileName" ); | 16 | TextLabelFileName = new QLabel( this, "TextLabelFileName" ); |
25 | TextLabelFileName->setText( tr( "File Name:" ) ); | 17 | TextLabelFileName->setText( tr( "File Name:" ) ); |
diff --git a/noncore/apps/confedit/listviewitemconffile.cpp b/noncore/apps/confedit/listviewitemconffile.cpp index ce6504c..1ff2c44 100644 --- a/noncore/apps/confedit/listviewitemconffile.cpp +++ b/noncore/apps/confedit/listviewitemconffile.cpp | |||
@@ -2,25 +2,24 @@ | |||
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | 9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> |
10 | 10 | ||
11 | #include "listviewitemconffile.h" | 11 | #include "listviewitemconffile.h" |
12 | #include <qmessagebox.h> | 12 | #include <qmessagebox.h> |
13 | #include <qtextstream.h> | 13 | #include <qtextstream.h> |
14 | #include <qstring.h> | ||
15 | #include "listviewitemconfigentry.h" | 14 | #include "listviewitemconfigentry.h" |
16 | 15 | ||
17 | #define tr QObject::tr | 16 | #define tr QObject::tr |
18 | 17 | ||
19 | ListViewItemConfFile::ListViewItemConfFile(QFileInfo *file, QListView *parent) | 18 | ListViewItemConfFile::ListViewItemConfFile(QFileInfo *file, QListView *parent) |
20 | : ListViewItemConf(parent), _valid(false) | 19 | : ListViewItemConf(parent), _valid(false) |
21 | { | 20 | { |
22 | confFileInfo = file; | 21 | confFileInfo = file; |
23 | // parseFile(); | 22 | // parseFile(); |
24 | displayText(); | 23 | displayText(); |
25 | } | 24 | } |
26 | 25 | ||
diff --git a/noncore/apps/confedit/listviewitemconfigentry.cpp b/noncore/apps/confedit/listviewitemconfigentry.cpp index 5ef9f61..0970125 100644 --- a/noncore/apps/confedit/listviewitemconfigentry.cpp +++ b/noncore/apps/confedit/listviewitemconfigentry.cpp | |||
@@ -1,24 +1,23 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogtp <tille@handhelds.org> | 9 | // (c) 2002 Patrick S. Vogtp <tille@handhelds.org> |
10 | 10 | ||
11 | #include "listviewitemconfigentry.h" | 11 | #include "listviewitemconfigentry.h" |
12 | #include "listviewitemconffile.h" | ||
13 | #include <qtextstream.h> | 12 | #include <qtextstream.h> |
14 | 13 | ||
15 | ListViewItemConfigEntry::ListViewItemConfigEntry(ListViewItemConfFile *parent, QString group, QString key) | 14 | ListViewItemConfigEntry::ListViewItemConfigEntry(ListViewItemConfFile *parent, QString group, QString key) |
16 | : ListViewItemConf(parent) | 15 | : ListViewItemConf(parent) |
17 | { | 16 | { |
18 | _fileItem = parent; | 17 | _fileItem = parent; |
19 | _file = parent->fileName(); | 18 | _file = parent->fileName(); |
20 | _group = group; | 19 | _group = group; |
21 | setKey(key); | 20 | setKey(key); |
22 | _groupOrig = group; | 21 | _groupOrig = group; |
23 | _keyOrig = _key; | 22 | _keyOrig = _key; |
24 | _valueOrig = _value; | 23 | _valueOrig = _value; |
diff --git a/noncore/apps/confedit/mainwindow.cpp b/noncore/apps/confedit/mainwindow.cpp index 4fe45ba..5f7ad50 100644 --- a/noncore/apps/confedit/mainwindow.cpp +++ b/noncore/apps/confedit/mainwindow.cpp | |||
@@ -3,38 +3,29 @@ | |||
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | 9 | ||
10 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | 10 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> |
11 | 11 | ||
12 | 12 | ||
13 | #include "mainwindow.h" | 13 | #include "mainwindow.h" |
14 | 14 | ||
15 | #include <qaction.h> | ||
16 | #include <qmessagebox.h> | ||
17 | #include <qpopupmenu.h> | ||
18 | #include <qtoolbutton.h> | ||
19 | #include <qstring.h> | ||
20 | #include <qlabel.h> | 15 | #include <qlabel.h> |
21 | #include <qfile.h> | ||
22 | #include <qpushbutton.h> | ||
23 | #include <qlayout.h> | 16 | #include <qlayout.h> |
24 | #include <qlineedit.h> | 17 | #include <qlineedit.h> |
25 | #include <qcursor.h> | ||
26 | 18 | ||
27 | #include "listviewconfdir.h" | 19 | #include "listviewconfdir.h" |
28 | #include "listviewitemconf.h" | ||
29 | #include "listviewitemconfigentry.h" | 20 | #include "listviewitemconfigentry.h" |
30 | 21 | ||
31 | 22 | ||
32 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : | 23 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : |
33 | QMainWindow( parent, name, f ), _currentItem(0), _fileItem(0) | 24 | QMainWindow( parent, name, f ), _currentItem(0), _fileItem(0) |
34 | { | 25 | { |
35 | setCaption( tr("Conf File Editor") ); | 26 | setCaption( tr("Conf File Editor") ); |
36 | 27 | ||
37 | //setBaseSize( qApp->globalStrut() ); | 28 | //setBaseSize( qApp->globalStrut() ); |
38 | setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); | 29 | setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); |
39 | 30 | ||
40 | mainLayout = new QVBoxLayout( this ); | 31 | mainLayout = new QVBoxLayout( this ); |
diff --git a/noncore/apps/keyz-cfg/main.cpp b/noncore/apps/keyz-cfg/main.cpp index 264db20..55cc23e 100644 --- a/noncore/apps/keyz-cfg/main.cpp +++ b/noncore/apps/keyz-cfg/main.cpp | |||
@@ -1,18 +1,16 @@ | |||
1 | #include <stdio.h> | 1 | #include <stdio.h> |
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | #include <qpe/qcopenvelope_qws.h> | ||
4 | #include <qmainwindow.h> | 3 | #include <qmainwindow.h> |
5 | 4 | ||
6 | #include "cfgfile.h" | ||
7 | #include "cfgdlg.h" | 5 | #include "cfgdlg.h" |
8 | 6 | ||
9 | int main( int argc, char **argv ) { | 7 | int main( int argc, char **argv ) { |
10 | QPEApplication app(argc, argv); | 8 | QPEApplication app(argc, argv); |
11 | CfgFile cfile; | 9 | CfgFile cfile; |
12 | CfgParser cp; | 10 | CfgParser cp; |
13 | cp.load(QPEApplication::qpeDir()+"/share/zkb/zkb.xml", cfile); | 11 | cp.load(QPEApplication::qpeDir()+"/share/zkb/zkb.xml", cfile); |
14 | 12 | ||
15 | QMainWindow m; | 13 | QMainWindow m; |
16 | CfgDlg c(&m, &cfile, &app); | 14 | CfgDlg c(&m, &cfile, &app); |
17 | app.showMainWidget(&m); | 15 | app.showMainWidget(&m); |
18 | m.hide(); | 16 | m.hide(); |
diff --git a/noncore/apps/keyz-cfg/zkb.cpp b/noncore/apps/keyz-cfg/zkb.cpp index abe1f5f..f315d4b 100644 --- a/noncore/apps/keyz-cfg/zkb.cpp +++ b/noncore/apps/keyz-cfg/zkb.cpp | |||
@@ -1,13 +1,12 @@ | |||
1 | #include <qnamespace.h> | ||
2 | #include "zkb.h" | 1 | #include "zkb.h" |
3 | #include <stdio.h> | 2 | #include <stdio.h> |
4 | 3 | ||
5 | // Implementation of Action class | 4 | // Implementation of Action class |
6 | Action::Action():state(0), keycode(0), unicode(0), flags(0) { | 5 | Action::Action():state(0), keycode(0), unicode(0), flags(0) { |
7 | } | 6 | } |
8 | 7 | ||
9 | Action::Action(State* s, ushort kc, ushort uni, int f): | 8 | Action::Action(State* s, ushort kc, ushort uni, int f): |
10 | state(s), keycode(kc), unicode(uni), flags(f) { | 9 | state(s), keycode(kc), unicode(uni), flags(f) { |
11 | } | 10 | } |
12 | 11 | ||
13 | Action::~Action() { | 12 | Action::~Action() { |
diff --git a/noncore/apps/keyz-cfg/zkbnames.cpp b/noncore/apps/keyz-cfg/zkbnames.cpp index c20a114..b2180ba 100644 --- a/noncore/apps/keyz-cfg/zkbnames.cpp +++ b/noncore/apps/keyz-cfg/zkbnames.cpp | |||
@@ -1,14 +1,13 @@ | |||
1 | #include <qmap.h> | 1 | #include <qmap.h> |
2 | #include <qstring.h> | ||
3 | 2 | ||
4 | #include "zkbnames.h" | 3 | #include "zkbnames.h" |
5 | 4 | ||
6 | QString Null_String((const char*) 0); | 5 | QString Null_String((const char*) 0); |
7 | 6 | ||
8 | // Implementation of KeyNames | 7 | // Implementation of KeyNames |
9 | static struct { | 8 | static struct { |
10 | int key; | 9 | int key; |
11 | char *name; | 10 | char *name; |
12 | } Key_Names[] = { | 11 | } Key_Names[] = { |
13 | { 32, "Space" }, | 12 | { 32, "Space" }, |
14 | { 39, "Apostrophe" }, | 13 | { 39, "Apostrophe" }, |
diff --git a/noncore/apps/opie-bartender/bac.cpp b/noncore/apps/opie-bartender/bac.cpp index ac8a83e..c97a253 100644 --- a/noncore/apps/opie-bartender/bac.cpp +++ b/noncore/apps/opie-bartender/bac.cpp | |||
@@ -8,27 +8,24 @@ | |||
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #include "bac.h" | 12 | #include "bac.h" |
13 | 13 | ||
14 | #include <qcombobox.h> | 14 | #include <qcombobox.h> |
15 | #include <qlabel.h> | 15 | #include <qlabel.h> |
16 | #include <qlcdnumber.h> | 16 | #include <qlcdnumber.h> |
17 | #include <qpushbutton.h> | 17 | #include <qpushbutton.h> |
18 | #include <qspinbox.h> | 18 | #include <qspinbox.h> |
19 | #include <qlayout.h> | 19 | #include <qlayout.h> |
20 | #include <qvariant.h> | ||
21 | #include <qtooltip.h> | ||
22 | #include <qwhatsthis.h> | ||
23 | BacDialog::BacDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 20 | BacDialog::BacDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
24 | : QDialog( parent, name, modal, fl ) | 21 | : QDialog( parent, name, modal, fl ) |
25 | { | 22 | { |
26 | if ( !name ) | 23 | if ( !name ) |
27 | setName( "BacDialog" ); | 24 | setName( "BacDialog" ); |
28 | setCaption( tr( "Blood Alcohol Estimator" ) ); | 25 | setCaption( tr( "Blood Alcohol Estimator" ) ); |
29 | 26 | ||
30 | Layout7 = new QVBoxLayout( this); | 27 | Layout7 = new QVBoxLayout( this); |
31 | Layout7->setSpacing( 6 ); | 28 | Layout7->setSpacing( 6 ); |
32 | Layout7->setMargin( 0 ); | 29 | Layout7->setMargin( 0 ); |
33 | 30 | ||
34 | Layout1 = new QHBoxLayout; | 31 | Layout1 = new QHBoxLayout; |
diff --git a/noncore/apps/opie-bartender/bartender.cpp b/noncore/apps/opie-bartender/bartender.cpp index 740478f..3c010e9 100644 --- a/noncore/apps/opie-bartender/bartender.cpp +++ b/noncore/apps/opie-bartender/bartender.cpp | |||
@@ -2,57 +2,46 @@ | |||
2 | ** | 2 | ** |
3 | ** Created: Sat Jul 20 08:10:53 2002 | 3 | ** Created: Sat Jul 20 08:10:53 2002 |
4 | ** by: L.J. Potter <ljp@llornkcor.com> | 4 | ** by: L.J. Potter <ljp@llornkcor.com> |
5 | ** copyright : (C) 2002 by ljp | 5 | ** copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | 12 | ||
13 | #include "bartender.h" | 13 | #include "bartender.h" |
14 | #include "newdrinks.h" | ||
15 | #include "showdrinks.h" | 14 | #include "showdrinks.h" |
16 | #include "inputDialog.h" | 15 | #include "inputDialog.h" |
17 | #include "searchresults.h" | 16 | #include "searchresults.h" |
18 | #include "bac.h" | 17 | #include "bac.h" |
19 | 18 | ||
20 | #include <qpe/qpetoolbar.h> | 19 | #include <qpe/qpetoolbar.h> |
21 | #include <qmenubar.h> | 20 | #include <qmenubar.h> |
22 | //#include <opie2/colorpopupmenu.h> | 21 | //#include <opie2/colorpopupmenu.h> |
23 | #include <qpe/qpeapplication.h> | 22 | #include <qpe/qpeapplication.h> |
24 | #include <qpe/resource.h> | 23 | #include <qpe/resource.h> |
25 | 24 | ||
26 | #include <qcstring.h> | ||
27 | #include <qlineedit.h> | 25 | #include <qlineedit.h> |
28 | #include <qdir.h> | 26 | #include <qdir.h> |
29 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
30 | #include <qlistbox.h> | 28 | #include <qlistbox.h> |
31 | #include <qstringlist.h> | ||
32 | #include <qmultilineedit.h> | 29 | #include <qmultilineedit.h> |
33 | #include <qmessagebox.h> | 30 | #include <qmessagebox.h> |
34 | #include <qfile.h> | ||
35 | #include <qtextstream.h> | 31 | #include <qtextstream.h> |
36 | #include <qfile.h> | ||
37 | #include <qaction.h> | 32 | #include <qaction.h> |
38 | #include <qheader.h> | 33 | #include <qheader.h> |
39 | #include <qlistview.h> | 34 | #include <qlistview.h> |
40 | #include <qwidget.h> | ||
41 | #include <qlayout.h> | 35 | #include <qlayout.h> |
42 | #include <qvariant.h> | ||
43 | #include <qtooltip.h> | ||
44 | #include <qwhatsthis.h> | ||
45 | #include <qimage.h> | ||
46 | #include <qpixmap.h> | ||
47 | 36 | ||
48 | #include <fcntl.h> | 37 | #include <fcntl.h> |
49 | #include <unistd.h> | 38 | #include <unistd.h> |
50 | #include <stdlib.h> | 39 | #include <stdlib.h> |
51 | #include <stdio.h> | 40 | #include <stdio.h> |
52 | #include <errno.h> | 41 | #include <errno.h> |
53 | 42 | ||
54 | 43 | ||
55 | Bartender::Bartender( QWidget* parent, const char* name, WFlags fl ) | 44 | Bartender::Bartender( QWidget* parent, const char* name, WFlags fl ) |
56 | : QMainWindow( parent, name, fl ) { | 45 | : QMainWindow( parent, name, fl ) { |
57 | if ( !name ) | 46 | if ( !name ) |
58 | setName( "Bartender" ); | 47 | setName( "Bartender" ); |
diff --git a/noncore/apps/opie-bartender/inputDialog.cpp b/noncore/apps/opie-bartender/inputDialog.cpp index 4f4cb84..29643ff 100644 --- a/noncore/apps/opie-bartender/inputDialog.cpp +++ b/noncore/apps/opie-bartender/inputDialog.cpp | |||
@@ -7,28 +7,24 @@ | |||
7 | ** by: L.J. Potter <ljp@llornkcor.com> | 7 | ** by: L.J. Potter <ljp@llornkcor.com> |
8 | ** copyright : (C) 2002 by ljp | 8 | ** copyright : (C) 2002 by ljp |
9 | email : ljp@llornkcor.com | 9 | email : ljp@llornkcor.com |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | ***************************************************************************/ | 14 | ***************************************************************************/ |
15 | 15 | ||
16 | #include "inputDialog.h" | 16 | #include "inputDialog.h" |
17 | 17 | ||
18 | #include <qlineedit.h> | 18 | #include <qlineedit.h> |
19 | #include <qlayout.h> | ||
20 | #include <qvariant.h> | ||
21 | #include <qtooltip.h> | ||
22 | #include <qwhatsthis.h> | ||
23 | 19 | ||
24 | 20 | ||
25 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 21 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
26 | : QDialog( parent, name, modal, fl ) | 22 | : QDialog( parent, name, modal, fl ) |
27 | { | 23 | { |
28 | if ( !name ) | 24 | if ( !name ) |
29 | setName( "InputDialog" ); | 25 | setName( "InputDialog" ); |
30 | resize( 234, 50 ); | 26 | resize( 234, 50 ); |
31 | setMaximumSize( QSize( 240, 50 ) ); | 27 | setMaximumSize( QSize( 240, 50 ) ); |
32 | setCaption( tr(name ) ); | 28 | setCaption( tr(name ) ); |
33 | 29 | ||
34 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | 30 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); |
diff --git a/noncore/apps/opie-bartender/newdrinks.cpp b/noncore/apps/opie-bartender/newdrinks.cpp index 86bcc3c..a7ada3a 100644 --- a/noncore/apps/opie-bartender/newdrinks.cpp +++ b/noncore/apps/opie-bartender/newdrinks.cpp | |||
@@ -1,36 +1,29 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Created: Sat Jul 20 08:23:27 2002 | 2 | ** Created: Sat Jul 20 08:23:27 2002 |
3 | ** by: L.J. Potter <ljp@llornkcor.com> | 3 | ** by: L.J. Potter <ljp@llornkcor.com> |
4 | ** copyright : (C) 2002 by ljp | 4 | ** copyright : (C) 2002 by ljp |
5 | email : ljp@llornkcor.com | 5 | email : ljp@llornkcor.com |
6 | * This program is free software; you can redistribute it and/or modify * | 6 | * This program is free software; you can redistribute it and/or modify * |
7 | * it under the terms of the GNU General Public License as published by * | 7 | * it under the terms of the GNU General Public License as published by * |
8 | * the Free Software Foundation; either version 2 of the License, or * | 8 | * the Free Software Foundation; either version 2 of the License, or * |
9 | * (at your option) any later version. * | 9 | * (at your option) any later version. * |
10 | ***************************************************************************/ | 10 | ***************************************************************************/ |
11 | #include "newdrinks.h" | 11 | #include "newdrinks.h" |
12 | 12 | ||
13 | #include <qpe/resource.h> | ||
14 | 13 | ||
15 | #include <qaction.h> | ||
16 | #include <qlabel.h> | 14 | #include <qlabel.h> |
17 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
18 | #include <qmultilineedit.h> | 16 | #include <qmultilineedit.h> |
19 | #include <qpushbutton.h> | ||
20 | #include <qwidget.h> | ||
21 | #include <qlayout.h> | 17 | #include <qlayout.h> |
22 | #include <qvariant.h> | ||
23 | #include <qtooltip.h> | ||
24 | #include <qwhatsthis.h> | ||
25 | 18 | ||
26 | New_Drink::New_Drink( QWidget* parent, const char* name, bool modal, WFlags fl ) | 19 | New_Drink::New_Drink( QWidget* parent, const char* name, bool modal, WFlags fl ) |
27 | : QDialog( parent, name, modal, fl ) | 20 | : QDialog( parent, name, modal, fl ) |
28 | { | 21 | { |
29 | QString drinkName = name; | 22 | QString drinkName = name; |
30 | if ( !name ) | 23 | if ( !name ) |
31 | setName( drinkName ); | 24 | setName( drinkName ); |
32 | setCaption( drinkName); | 25 | setCaption( drinkName); |
33 | 26 | ||
34 | Layout5 = new QGridLayout( this); | 27 | Layout5 = new QGridLayout( this); |
35 | Layout5->setSpacing( 6 ); | 28 | Layout5->setSpacing( 6 ); |
36 | Layout5->setMargin( 4 ); | 29 | Layout5->setMargin( 4 ); |
diff --git a/noncore/apps/opie-bartender/searchresults.cpp b/noncore/apps/opie-bartender/searchresults.cpp index 1a82c6c..4900d1f 100644 --- a/noncore/apps/opie-bartender/searchresults.cpp +++ b/noncore/apps/opie-bartender/searchresults.cpp | |||
@@ -1,36 +1,27 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Created: Sat Jul 20 08:23:27 2002 | 2 | ** Created: Sat Jul 20 08:23:27 2002 |
3 | ** by: L.J. Potter <ljp@llornkcor.com> | 3 | ** by: L.J. Potter <ljp@llornkcor.com> |
4 | ** copyright : (C) 2002 by ljp | 4 | ** copyright : (C) 2002 by ljp |
5 | email : ljp@llornkcor.com | 5 | email : ljp@llornkcor.com |
6 | * This program is free software; you can redistribute it and/or modify * | 6 | * This program is free software; you can redistribute it and/or modify * |
7 | * it under the terms of the GNU General Public License as published by * | 7 | * it under the terms of the GNU General Public License as published by * |
8 | * the Free Software Foundation; either version 2 of the License, or * | 8 | * the Free Software Foundation; either version 2 of the License, or * |
9 | * (at your option) any later version. * | 9 | * (at your option) any later version. * |
10 | ***************************************************************************/ | 10 | ***************************************************************************/ |
11 | #include "searchresults.h" | 11 | #include "searchresults.h" |
12 | 12 | ||
13 | #include <qpe/resource.h> | ||
14 | 13 | ||
15 | #include <qaction.h> | ||
16 | #include <qlabel.h> | ||
17 | #include <qlineedit.h> | ||
18 | #include <qlistbox.h> | 14 | #include <qlistbox.h> |
19 | #include <qpushbutton.h> | ||
20 | #include <qwidget.h> | ||
21 | #include <qlayout.h> | 15 | #include <qlayout.h> |
22 | #include <qvariant.h> | ||
23 | #include <qtooltip.h> | ||
24 | #include <qwhatsthis.h> | ||
25 | 16 | ||
26 | Search_Results::Search_Results( QWidget* parent, const char* name, bool modal, WFlags fl ) | 17 | Search_Results::Search_Results( QWidget* parent, const char* name, bool modal, WFlags fl ) |
27 | : QDialog( parent, name, modal, fl ) { | 18 | : QDialog( parent, name, modal, fl ) { |
28 | if ( !name ) | 19 | if ( !name ) |
29 | setName( drinkName); | 20 | setName( drinkName); |
30 | 21 | ||
31 | drinkName = name; | 22 | drinkName = name; |
32 | setCaption( drinkName ); | 23 | setCaption( drinkName ); |
33 | 24 | ||
34 | Layout5 = new QGridLayout( this ); | 25 | Layout5 = new QGridLayout( this ); |
35 | Layout5->setSpacing( 6 ); | 26 | Layout5->setSpacing( 6 ); |
36 | Layout5->setMargin( 4 ); | 27 | Layout5->setMargin( 4 ); |
diff --git a/noncore/apps/opie-bartender/showdrinks.cpp b/noncore/apps/opie-bartender/showdrinks.cpp index 745f7db..dcfce16 100644 --- a/noncore/apps/opie-bartender/showdrinks.cpp +++ b/noncore/apps/opie-bartender/showdrinks.cpp | |||
@@ -1,37 +1,28 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Created: Sat Jul 20 08:23:27 2002 | 2 | ** Created: Sat Jul 20 08:23:27 2002 |
3 | ** by: L.J. Potter <ljp@llornkcor.com> | 3 | ** by: L.J. Potter <ljp@llornkcor.com> |
4 | ** copyright : (C) 2002 by ljp | 4 | ** copyright : (C) 2002 by ljp |
5 | email : ljp@llornkcor.com | 5 | email : ljp@llornkcor.com |
6 | * This program is free software; you can redistribute it and/or modify * | 6 | * This program is free software; you can redistribute it and/or modify * |
7 | * it under the terms of the GNU General Public License as published by * | 7 | * it under the terms of the GNU General Public License as published by * |
8 | * the Free Software Foundation; either version 2 of the License, or * | 8 | * the Free Software Foundation; either version 2 of the License, or * |
9 | * (at your option) any later version. * | 9 | * (at your option) any later version. * |
10 | ***************************************************************************/ | 10 | ***************************************************************************/ |
11 | #include "showdrinks.h" | 11 | #include "showdrinks.h" |
12 | #include "bartender.h" | ||
13 | 12 | ||
14 | #include <qpe/resource.h> | ||
15 | 13 | ||
16 | #include <qaction.h> | ||
17 | #include <qlabel.h> | ||
18 | #include <qlineedit.h> | ||
19 | #include <qmultilineedit.h> | 14 | #include <qmultilineedit.h> |
20 | #include <qpushbutton.h> | 15 | #include <qpushbutton.h> |
21 | #include <qwidget.h> | ||
22 | #include <qlayout.h> | 16 | #include <qlayout.h> |
23 | #include <qvariant.h> | ||
24 | #include <qtooltip.h> | ||
25 | #include <qwhatsthis.h> | ||
26 | 17 | ||
27 | //extern Bartender *bart; | 18 | //extern Bartender *bart; |
28 | 19 | ||
29 | Show_Drink::Show_Drink( QWidget* parent, const char* name, bool modal, WFlags fl ) | 20 | Show_Drink::Show_Drink( QWidget* parent, const char* name, bool modal, WFlags fl ) |
30 | : QDialog( parent, name, modal, fl ) { | 21 | : QDialog( parent, name, modal, fl ) { |
31 | if ( !name ) | 22 | if ( !name ) |
32 | setName( drinkName); | 23 | setName( drinkName); |
33 | 24 | ||
34 | drinkName = name; | 25 | drinkName = name; |
35 | setCaption( drinkName ); | 26 | setCaption( drinkName ); |
36 | 27 | ||
37 | Layout5 = new QGridLayout( this); | 28 | Layout5 = new QGridLayout( this); |