summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.cpp4
-rw-r--r--noncore/apps/checkbook/configuration.cpp2
-rw-r--r--noncore/apps/checkbook/graph.cpp2
-rw-r--r--noncore/apps/checkbook/mainwindow.cpp3
-rw-r--r--noncore/apps/checkbook/password.cpp2
-rw-r--r--noncore/apps/checkbook/traninfo.h1
-rw-r--r--noncore/apps/checkbook/transaction.cpp5
7 files changed, 0 insertions, 19 deletions
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp
index 5fe660c..653ee4a 100644
--- a/noncore/apps/checkbook/checkbook.cpp
+++ b/noncore/apps/checkbook/checkbook.cpp
@@ -22,48 +22,44 @@
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 "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 36
37#include <opie/otabwidget.h> 37#include <opie/otabwidget.h>
38#include <qpe/config.h>
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 <qfile.h>
46#include <qfontmetrics.h>
47#include <qlabel.h> 44#include <qlabel.h>
48#include <qlayout.h> 45#include <qlayout.h>
49#include <qlineedit.h> 46#include <qlineedit.h>
50#include <qmultilineedit.h> 47#include <qmultilineedit.h>
51#include <qpushbutton.h> 48#include <qpushbutton.h>
52#include <qwhatsthis.h> 49#include <qwhatsthis.h>
53#include <qwidget.h>
54 50
55Checkbook::Checkbook( QWidget *parent, CBInfo *i, const QString &symbol ) 51Checkbook::Checkbook( QWidget *parent, CBInfo *i, const QString &symbol )
56 : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) 52 : QDialog( parent, 0, TRUE, WStyle_ContextHelp )
57{ 53{
58 info = i; 54 info = i;
59 currencySymbol = symbol; 55 currencySymbol = symbol;
60 56
61 if ( info->name() != "" ) 57 if ( info->name() != "" )
62 { 58 {
63 QString tempstr = info->name(); 59 QString tempstr = info->name();
64 tempstr.append( " - " ); 60 tempstr.append( " - " );
65 tempstr.append( tr( "Checkbook" ) ); 61 tempstr.append( tr( "Checkbook" ) );
66 setCaption( tempstr ); 62 setCaption( tempstr );
67 } 63 }
68 else 64 else
69 { 65 {
diff --git a/noncore/apps/checkbook/configuration.cpp b/noncore/apps/checkbook/configuration.cpp
index 37208da..7731cf3 100644
--- a/noncore/apps/checkbook/configuration.cpp
+++ b/noncore/apps/checkbook/configuration.cpp
@@ -16,37 +16,35 @@
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
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 30
31#include <qcheckbox.h> 31#include <qcheckbox.h>
32#include <qfontmetrics.h>
33#include <qlabel.h> 32#include <qlabel.h>
34#include <qlayout.h> 33#include <qlayout.h>
35#include <qlineedit.h> 34#include <qlineedit.h>
36#include <qstring.h>
37#include <qwhatsthis.h> 35#include <qwhatsthis.h>
38 36
39Configuration::Configuration( QWidget *parent, const QString &cs, bool sl, bool sb ) 37Configuration::Configuration( QWidget *parent, const QString &cs, bool sl, bool sb )
40 : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) 38 : QDialog( parent, 0, TRUE, WStyle_ContextHelp )
41{ 39{
42 setCaption( tr( "Configure Checkbook" ) ); 40 setCaption( tr( "Configure Checkbook" ) );
43 41
44 QFontMetrics fm = fontMetrics(); 42 QFontMetrics fm = fontMetrics();
45 int fh = fm.height(); 43 int fh = fm.height();
46 44
47 QGridLayout *layout = new QGridLayout( this ); 45 QGridLayout *layout = new QGridLayout( this );
48 layout->setSpacing( 4 ); 46 layout->setSpacing( 4 );
49 layout->setMargin( 4 ); 47 layout->setMargin( 4 );
50 48
51 QLabel *label = new QLabel( tr( "Enter currency symbol:" ), this ); 49 QLabel *label = new QLabel( tr( "Enter currency symbol:" ), this );
52 QWhatsThis::add( label, tr( "Enter your local currency symbol here." ) ); 50 QWhatsThis::add( label, tr( "Enter your local currency symbol here." ) );
diff --git a/noncore/apps/checkbook/graph.cpp b/noncore/apps/checkbook/graph.cpp
index acdb846..389972e 100644
--- a/noncore/apps/checkbook/graph.cpp
+++ b/noncore/apps/checkbook/graph.cpp
@@ -16,34 +16,32 @@
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
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 "graph.h" 29#include "graph.h"
30#include "graphinfo.h" 30#include "graphinfo.h"
31 31
32#include <qcolor.h>
33#include <qfontmetrics.h>
34#include <qpainter.h> 32#include <qpainter.h>
35 33
36#include <math.h> 34#include <math.h>
37 35
38Graph::Graph( QWidget *parent, GraphInfo *d, const QString &name, int flags ) 36Graph::Graph( QWidget *parent, GraphInfo *d, const QString &name, int flags )
39 : QWidget( parent, name, flags ) 37 : QWidget( parent, name, flags )
40{ 38{
41 data = d; 39 data = d;
42 40
43 graph.setOptimization( QPixmap::BestOptim ); 41 graph.setOptimization( QPixmap::BestOptim );
44} 42}
45 43
46void Graph::setGraphInfo( GraphInfo *d ) 44void Graph::setGraphInfo( GraphInfo *d )
47{ 45{
48 data = d; 46 data = d;
49} 47}
diff --git a/noncore/apps/checkbook/mainwindow.cpp b/noncore/apps/checkbook/mainwindow.cpp
index ab1ceef..6d1d7b9 100644
--- a/noncore/apps/checkbook/mainwindow.cpp
+++ b/noncore/apps/checkbook/mainwindow.cpp
@@ -31,35 +31,32 @@
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 34
35#include <qpe/config.h> 35#include <qpe/config.h>
36#include <qpe/global.h> 36#include <qpe/global.h>
37#include <qpe/qpeapplication.h> 37#include <qpe/qpeapplication.h>
38#include <qpe/qpemenubar.h> 38#include <qpe/qpemenubar.h>
39#include <qpe/qpemessagebox.h> 39#include <qpe/qpemessagebox.h>
40#include <qpe/qpetoolbar.h> 40#include <qpe/qpetoolbar.h>
41#include <qpe/resource.h> 41#include <qpe/resource.h>
42 42
43#include <qaction.h> 43#include <qaction.h>
44#include <qcheckbox.h> 44#include <qcheckbox.h>
45#include <qdir.h> 45#include <qdir.h>
46#include <qlineedit.h> 46#include <qlineedit.h>
47#include <qlistview.h>
48#include <qpopupmenu.h>
49#include <qstring.h>
50#include <qwhatsthis.h> 47#include <qwhatsthis.h>
51 48
52MainWindow::MainWindow() 49MainWindow::MainWindow()
53 : QMainWindow( 0x0, 0x0, WStyle_ContextHelp ) 50 : QMainWindow( 0x0, 0x0, WStyle_ContextHelp )
54{ 51{
55 setCaption( tr( "Checkbook" ) ); 52 setCaption( tr( "Checkbook" ) );
56 53
57 cbDir = Global::applicationFileName( "checkbook", "" ); 54 cbDir = Global::applicationFileName( "checkbook", "" );
58 lockIcon = Resource::loadPixmap( "locked" ); 55 lockIcon = Resource::loadPixmap( "locked" );
59 56
60 // Load configuration options 57 // Load configuration options
61 Config config( "checkbook" ); 58 Config config( "checkbook" );
62 config.setGroup( "Config" ); 59 config.setGroup( "Config" );
63 currencySymbol = config.readEntry( "CurrencySymbol", "$" ); 60 currencySymbol = config.readEntry( "CurrencySymbol", "$" );
64 showLocks = config.readBoolEntry( "ShowLocks", FALSE ); 61 showLocks = config.readBoolEntry( "ShowLocks", FALSE );
65 showBalances = config.readBoolEntry( "ShowBalances", FALSE ); 62 showBalances = config.readBoolEntry( "ShowBalances", FALSE );
diff --git a/noncore/apps/checkbook/password.cpp b/noncore/apps/checkbook/password.cpp
index 82020d5..f381271 100644
--- a/noncore/apps/checkbook/password.cpp
+++ b/noncore/apps/checkbook/password.cpp
@@ -18,35 +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 "password.h" 29#include "password.h"
30 30
31#include <qlabel.h> 31#include <qlabel.h>
32#include <qlayout.h> 32#include <qlayout.h>
33#include <qlineedit.h> 33#include <qlineedit.h>
34#include <qpixmap.h>
35#include <qpushbutton.h> 34#include <qpushbutton.h>
36#include <qwidget.h>
37 35
38static const char* const showhideimage_data[] = { 36static const char* const showhideimage_data[] = {
39"16 16 2 1", 37"16 16 2 1",
40". c None", 38". c None",
41"# c #000000", 39"# c #000000",
42"................", 40"................",
43"...#...###...##.", 41"...#...###...##.",
44"..#.#..#..#.##..", 42"..#.#..#..#.##..",
45"..###..###.##...", 43"..###..###.##...",
46".#...#.#..##....", 44".#...#.#..##....",
47".#...#.#.##.....", 45".#...#.#.##.....",
48"........##.#..#.", 46"........##.#..#.",
49"..##...##...##..", 47"..##...##...##..",
50".#..#.###...##..", 48".#..#.###...##..",
51".#...##..#.#..#.", 49".#...##..#.#..#.",
52".#..##..........", 50".#..##..........",
diff --git a/noncore/apps/checkbook/traninfo.h b/noncore/apps/checkbook/traninfo.h
index 5f67262..f6c5cae 100644
--- a/noncore/apps/checkbook/traninfo.h
+++ b/noncore/apps/checkbook/traninfo.h
@@ -18,33 +18,32 @@
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#ifndef TRANINFO_H 29#ifndef TRANINFO_H
30#define TRANINFO_H 30#define TRANINFO_H
31 31
32#include <qdatetime.h> 32#include <qdatetime.h>
33#include <qlist.h> 33#include <qlist.h>
34#include <qstring.h>
35 34
36class Config; 35class Config;
37 36
38class TranInfo 37class TranInfo
39{ 38{
40 public: 39 public:
41 TranInfo( int = 0, const QString & = 0x0, const QDate & = QDate::currentDate(), 40 TranInfo( int = 0, const QString & = 0x0, const QDate & = QDate::currentDate(),
42 bool = TRUE, const QString & = 0x0, const QString & = 0x0, 41 bool = TRUE, const QString & = 0x0, const QString & = 0x0,
43 float = 0.0, float = 0.0, 42 float = 0.0, float = 0.0,
44 const QString & = 0x0, const QString & = 0x0 ); 43 const QString & = 0x0, const QString & = 0x0 );
45 TranInfo( Config, int ); 44 TranInfo( Config, int );
46 45
47 int id() const { return i; } 46 int id() const { return i; }
48 const QString &desc() const { return d; } 47 const QString &desc() const { return d; }
49 const QDate &date() const { return td; } 48 const QDate &date() const { return td; }
50 const QString &datestr(); 49 const QString &datestr();
diff --git a/noncore/apps/checkbook/transaction.cpp b/noncore/apps/checkbook/transaction.cpp
index 17be669..07d5ae1 100644
--- a/noncore/apps/checkbook/transaction.cpp
+++ b/noncore/apps/checkbook/transaction.cpp
@@ -17,45 +17,40 @@
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
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 "transaction.h" 29#include "transaction.h"
30#include "traninfo.h" 30#include "traninfo.h"
31 31
32#include <qpe/datebookmonth.h> 32#include <qpe/datebookmonth.h>
33#include <qpe/timestring.h>
34 33
35#include <qbuttongroup.h> 34#include <qbuttongroup.h>
36#include <qcombobox.h> 35#include <qcombobox.h>
37#include <qlabel.h> 36#include <qlabel.h>
38#include <qlayout.h> 37#include <qlayout.h>
39#include <qlineedit.h> 38#include <qlineedit.h>
40#include <qmultilineedit.h> 39#include <qmultilineedit.h>
41#include <qpopupmenu.h>
42#include <qpushbutton.h>
43#include <qradiobutton.h> 40#include <qradiobutton.h>
44#include <qscrollview.h>
45#include <qstring.h>
46#include <qwhatsthis.h> 41#include <qwhatsthis.h>
47 42
48Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *info, 43Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *info,
49 const QString &symbol ) 44 const QString &symbol )
50 : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) 45 : QDialog( parent, 0, TRUE, WStyle_ContextHelp )
51{ 46{
52 QString tempstr = tr( "Transaction for " ); 47 QString tempstr = tr( "Transaction for " );
53 tempstr.append( acctname ); 48 tempstr.append( acctname );
54 setCaption( tempstr ); 49 setCaption( tempstr );
55 50
56 tran = info; 51 tran = info;
57 currencySymbol = symbol; 52 currencySymbol = symbol;
58 53
59 QVBoxLayout *vb = new QVBoxLayout( this ); 54 QVBoxLayout *vb = new QVBoxLayout( this );
60 55
61 QScrollView *sv = new QScrollView( this ); 56 QScrollView *sv = new QScrollView( this );