summaryrefslogtreecommitdiff
path: root/noncore/apps
Unidiff
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp10
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp11
-rw-r--r--noncore/apps/checkbook/cfg.cpp3
-rw-r--r--noncore/apps/checkbook/checkbook.cpp1
-rw-r--r--noncore/apps/checkbook/configuration.cpp4
-rw-r--r--noncore/apps/checkbook/mainwindow.cpp4
-rw-r--r--noncore/apps/checkbook/tabledef.cpp2
-rw-r--r--noncore/apps/checkbook/transaction.cpp1
-rw-r--r--noncore/apps/confedit/editwidget.cpp8
-rw-r--r--noncore/apps/confedit/listviewitemconffile.cpp1
-rw-r--r--noncore/apps/confedit/listviewitemconfigentry.cpp1
-rw-r--r--noncore/apps/confedit/mainwindow.cpp9
-rw-r--r--noncore/apps/keyz-cfg/main.cpp2
-rw-r--r--noncore/apps/keyz-cfg/zkb.cpp1
-rw-r--r--noncore/apps/keyz-cfg/zkbnames.cpp1
-rw-r--r--noncore/apps/opie-bartender/bac.cpp3
-rw-r--r--noncore/apps/opie-bartender/bartender.cpp11
-rw-r--r--noncore/apps/opie-bartender/inputDialog.cpp4
-rw-r--r--noncore/apps/opie-bartender/newdrinks.cpp7
-rw-r--r--noncore/apps/opie-bartender/searchresults.cpp9
-rw-r--r--noncore/apps/opie-bartender/showdrinks.cpp9
21 files changed, 0 insertions, 102 deletions
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
47AdvancedFm::AdvancedFm( ) 37AdvancedFm::AdvancedFm( )
48#else 38#else
49AdvancedFm::AdvancedFm(QWidget *,const char*, WFlags ) 39AdvancedFm::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
46void AdvancedFm::doDirChange() { 35void 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 --------------------------------------------------------------------
40Cfg::Cfg() 37Cfg::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
44Configuration::Configuration( QWidget *parent, Cfg &cfg ) 40Configuration::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
51MainWindow::MainWindow( QWidget* parent, const char* name, WFlags /*fl*/ ) 47MainWindow::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 --------------------------------------------------------------
35ColumnDef::ColumnDef(const char *sName, ColumnType type, const char *sNewValue) 33ColumnDef::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 ---------------------------------------------------------
44void ColumnDef::addColumnValue(const QString &sValue) 42void 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
46Transaction::Transaction( QWidget *parent, bool bNew, const QString &acctname, 45Transaction::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
15EditWidget::EditWidget( QWidget* parent, const char* name, WFlags fl ) 7EditWidget::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
19ListViewItemConfFile::ListViewItemConfFile(QFileInfo *file, QListView *parent) 18ListViewItemConfFile::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
15ListViewItemConfigEntry::ListViewItemConfigEntry(ListViewItemConfFile *parent, QString group, QString key) 14ListViewItemConfigEntry::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
32MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : 23MainWindow::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
9int main( int argc, char **argv ) { 7int 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
6Action::Action():state(0), keycode(0), unicode(0), flags(0) { 5Action::Action():state(0), keycode(0), unicode(0), flags(0) {
7} 6}
8 7
9Action::Action(State* s, ushort kc, ushort uni, int f): 8Action::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
13Action::~Action() { 12Action::~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
6QString Null_String((const char*) 0); 5QString Null_String((const char*) 0);
7 6
8// Implementation of KeyNames 7// Implementation of KeyNames
9static struct { 8static 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>
23BacDialog::BacDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) 20BacDialog::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
55Bartender::Bartender( QWidget* parent, const char* name, WFlags fl ) 44Bartender::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
25InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) 21InputDialog::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
26New_Drink::New_Drink( QWidget* parent, const char* name, bool modal, WFlags fl ) 19New_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
26Search_Results::Search_Results( QWidget* parent, const char* name, bool modal, WFlags fl ) 17Search_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
29Show_Drink::Show_Drink( QWidget* parent, const char* name, bool modal, WFlags fl ) 20Show_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);