author | llornkcor <llornkcor> | 2003-07-17 15:00:34 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-07-17 15:00:34 (UTC) |
commit | 6140e0d6a131ac127ebfc583990cb6ceefdd30ad (patch) (unidiff) | |
tree | 7b0f5f856dc16b535454f9737b59dff18d7b3626 /noncore | |
parent | 53237dd02577d118e1ad19a18819f86f1a4ea207 (diff) | |
download | opie-6140e0d6a131ac127ebfc583990cb6ceefdd30ad.zip opie-6140e0d6a131ac127ebfc583990cb6ceefdd30ad.tar.gz opie-6140e0d6a131ac127ebfc583990cb6ceefdd30ad.tar.bz2 |
fixincludes
-rw-r--r-- | noncore/apps/checkbook/checkbook.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/checkbook/configuration.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/graph.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/mainwindow.cpp | 3 | ||||
-rw-r--r-- | noncore/apps/checkbook/password.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/traninfo.h | 1 | ||||
-rw-r--r-- | noncore/apps/checkbook/transaction.cpp | 5 |
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 | |||
@@ -14,64 +14,60 @@ | |||
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
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 "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 | ||
55 | Checkbook::Checkbook( QWidget *parent, CBInfo *i, const QString &symbol ) | 51 | Checkbook::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 | { |
70 | setCaption( tr( "New checkbook" ) ); | 66 | setCaption( tr( "New checkbook" ) ); |
71 | } | 67 | } |
72 | 68 | ||
73 | // Setup layout to make everything pretty | 69 | // Setup layout to make everything pretty |
74 | QVBoxLayout *layout = new QVBoxLayout( this ); | 70 | QVBoxLayout *layout = new QVBoxLayout( this ); |
75 | layout->setMargin( 2 ); | 71 | layout->setMargin( 2 ); |
76 | layout->setSpacing( 4 ); | 72 | layout->setSpacing( 4 ); |
77 | 73 | ||
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 | |||
@@ -8,53 +8,51 @@ | |||
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
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 | ||
39 | Configuration::Configuration( QWidget *parent, const QString &cs, bool sl, bool sb ) | 37 | Configuration::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." ) ); |
53 | label->setMaximumHeight( fh + 3 ); | 51 | label->setMaximumHeight( fh + 3 ); |
54 | layout->addWidget( label, 0, 0 ); | 52 | layout->addWidget( label, 0, 0 ); |
55 | 53 | ||
56 | symbolEdit = new QLineEdit( cs, this ); | 54 | symbolEdit = new QLineEdit( cs, this ); |
57 | QWhatsThis::add( symbolEdit, tr( "Enter your local currency symbol here." ) ); | 55 | QWhatsThis::add( symbolEdit, tr( "Enter your local currency symbol here." ) ); |
58 | symbolEdit->setMaximumHeight( fh + 5 ); | 56 | symbolEdit->setMaximumHeight( fh + 5 ); |
59 | symbolEdit->setFocus(); | 57 | symbolEdit->setFocus(); |
60 | layout->addWidget( symbolEdit, 0, 1 ); | 58 | layout->addWidget( symbolEdit, 0, 1 ); |
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 | |||
@@ -8,50 +8,48 @@ | |||
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
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 | ||
38 | Graph::Graph( QWidget *parent, GraphInfo *d, const QString &name, int flags ) | 36 | Graph::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 | ||
46 | void Graph::setGraphInfo( GraphInfo *d ) | 44 | void Graph::setGraphInfo( GraphInfo *d ) |
47 | { | 45 | { |
48 | data = d; | 46 | data = d; |
49 | } | 47 | } |
50 | 48 | ||
51 | void Graph::drawGraph( bool regen ) | 49 | void Graph::drawGraph( bool regen ) |
52 | { | 50 | { |
53 | if ( regen ) | 51 | if ( regen ) |
54 | { | 52 | { |
55 | initGraph(); | 53 | initGraph(); |
56 | } | 54 | } |
57 | QPainter p( this ); | 55 | QPainter p( this ); |
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 | |||
@@ -23,51 +23,48 @@ | |||
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 | 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 | ||
52 | MainWindow::MainWindow() | 49 | MainWindow::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 ); |
66 | 63 | ||
67 | // Build menu and tool bars | 64 | // Build menu and tool bars |
68 | setToolBarsMovable( FALSE ); | 65 | setToolBarsMovable( FALSE ); |
69 | 66 | ||
70 | QPEToolBar *bar = new QPEToolBar( this ); | 67 | QPEToolBar *bar = new QPEToolBar( this ); |
71 | bar->setHorizontalStretchable( TRUE ); | 68 | bar->setHorizontalStretchable( TRUE ); |
72 | QPEMenuBar *mb = new QPEMenuBar( bar ); | 69 | QPEMenuBar *mb = new QPEMenuBar( bar ); |
73 | mb->setMargin( 0 ); | 70 | mb->setMargin( 0 ); |
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 | |||
@@ -10,51 +10,49 @@ | |||
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
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 "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 | ||
38 | static const char* const showhideimage_data[] = { | 36 | static 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 | ".#..##..........", |
53 | ".#.##.#..#.#..#.", | 51 | ".#.##.#..#.#..#.", |
54 | "..##...##...##..", | 52 | "..##...##...##..", |
55 | ".##....##...##..", | 53 | ".##....##...##..", |
56 | ".#....#..#.#..#.", | 54 | ".#....#..#.#..#.", |
57 | "................"}; | 55 | "................"}; |
58 | 56 | ||
59 | Password::Password( QWidget *parent, const char *caption, const char *prompt ) | 57 | Password::Password( QWidget *parent, const char *caption, const char *prompt ) |
60 | : QDialog( parent, 0x0, TRUE, 0x0 ) | 58 | : QDialog( parent, 0x0, TRUE, 0x0 ) |
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 | |||
@@ -10,49 +10,48 @@ | |||
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
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 | #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 | ||
36 | class Config; | 35 | class Config; |
37 | 36 | ||
38 | class TranInfo | 37 | class 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(); |
51 | bool withdrawal()const { return w; } | 50 | bool withdrawal()const { return w; } |
52 | const QString &type() const { return t; } | 51 | const QString &type() const { return t; } |
53 | const QString &category()const { return c; } | 52 | const QString &category()const { return c; } |
54 | float amount() const { return a; } | 53 | float amount() const { return a; } |
55 | float fee() const { return f; } | 54 | float fee() const { return f; } |
56 | const QString &number()const { return cn; } | 55 | const QString &number()const { return cn; } |
57 | const QString ¬es() const { return n; } | 56 | const QString ¬es() const { return n; } |
58 | 57 | ||
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 | |||
@@ -9,61 +9,56 @@ | |||
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
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 "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 | ||
48 | Transaction::Transaction( QWidget *parent, const QString &acctname, TranInfo *info, | 43 | Transaction::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 ); |
62 | vb->addWidget( sv, 0, 0 ); | 57 | vb->addWidget( sv, 0, 0 ); |
63 | sv->setResizePolicy( QScrollView::AutoOneFit ); | 58 | sv->setResizePolicy( QScrollView::AutoOneFit ); |
64 | sv->setFrameStyle( QFrame::NoFrame ); | 59 | sv->setFrameStyle( QFrame::NoFrame ); |
65 | 60 | ||
66 | QWidget *container = new QWidget( sv->viewport() ); | 61 | QWidget *container = new QWidget( sv->viewport() ); |
67 | sv->addChild( container ); | 62 | sv->addChild( container ); |
68 | 63 | ||
69 | QGridLayout *layout = new QGridLayout( container ); | 64 | QGridLayout *layout = new QGridLayout( container ); |