Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/checkbook.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h index a86c0f9..01f1115 100644 --- a/noncore/apps/checkbook/checkbook.h +++ b/noncore/apps/checkbook/checkbook.h | |||
@@ -1,102 +1,103 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
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 | #ifndef CHECKBOOK_H | 29 | #ifndef CHECKBOOK_H |
30 | #define CHECKBOOK_H | 30 | #define CHECKBOOK_H |
31 | 31 | ||
32 | #include "traninfo.h" | 32 | #include "traninfo.h" |
33 | 33 | ||
34 | #include <qdialog.h> | 34 | #include <qdialog.h> |
35 | 35 | ||
36 | class OTabWidget; | 36 | class OTabWidget; |
37 | 37 | ||
38 | class Graph; | ||
38 | class QComboBox; | 39 | class QComboBox; |
39 | class QLabel; | 40 | class QLabel; |
40 | class QLineEdit; | 41 | class QLineEdit; |
41 | class QListView; | 42 | class QListView; |
42 | class QMultiLineEdit; | 43 | class QMultiLineEdit; |
43 | class QString; | 44 | class QString; |
44 | 45 | ||
45 | class Checkbook : public QDialog | 46 | class Checkbook : public QDialog |
46 | { | 47 | { |
47 | Q_OBJECT | 48 | Q_OBJECT |
48 | 49 | ||
49 | public: | 50 | public: |
50 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' ); | 51 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' ); |
51 | ~Checkbook(); | 52 | ~Checkbook(); |
52 | 53 | ||
53 | const QString &getName(); | 54 | const QString &getName(); |
54 | 55 | ||
55 | private: | 56 | private: |
56 | TranInfoList transactions; | 57 | TranInfoList transactions; |
57 | QString name; | 58 | QString name; |
58 | QString filename; | 59 | QString filename; |
59 | QString filedir; | 60 | QString filedir; |
60 | char currencySymbol; | 61 | char currencySymbol; |
61 | int highTranNum; | 62 | int highTranNum; |
62 | 63 | ||
63 | OTabWidget *mainWidget; | 64 | OTabWidget *mainWidget; |
64 | void loadCheckbook(); | 65 | void loadCheckbook(); |
65 | void adjustBalance( float ); | 66 | void adjustBalance( float ); |
66 | TranInfo *findTranByID( int ); | 67 | TranInfo *findTranByID( int ); |
67 | 68 | ||
68 | // Info tab | 69 | // Info tab |
69 | QWidget *initInfo(); | 70 | QWidget *initInfo(); |
70 | QLineEdit *nameEdit; | 71 | QLineEdit *nameEdit; |
71 | QComboBox *typeList; | 72 | QComboBox *typeList; |
72 | QLineEdit *bankEdit; | 73 | QLineEdit *bankEdit; |
73 | QLineEdit *acctNumEdit; | 74 | QLineEdit *acctNumEdit; |
74 | QLineEdit *pinNumEdit; | 75 | QLineEdit *pinNumEdit; |
75 | QLineEdit *balanceEdit; | 76 | QLineEdit *balanceEdit; |
76 | QMultiLineEdit *notesEdit; | 77 | QMultiLineEdit *notesEdit; |
77 | float startBalance; | 78 | float startBalance; |
78 | 79 | ||
79 | // Transactions tab | 80 | // Transactions tab |
80 | QWidget *initTransactions(); | 81 | QWidget *initTransactions(); |
81 | QListView *tranTable; | 82 | QListView *tranTable; |
82 | QLabel *balanceLabel; | 83 | QLabel *balanceLabel; |
83 | float currBalance; | 84 | float currBalance; |
84 | 85 | ||
85 | // Charts tab | 86 | // Charts tab |
86 | QWidget *initCharts(); | 87 | QWidget *initCharts(); |
87 | //QComboBox *graphList; | 88 | //QComboBox *graphList; |
88 | QWidget *graphWidget; | 89 | Graph *graphWidget; |
89 | 90 | ||
90 | protected slots: | 91 | protected slots: |
91 | void accept(); | 92 | void accept(); |
92 | 93 | ||
93 | private slots: | 94 | private slots: |
94 | void slotNameChanged( const QString & ); | 95 | void slotNameChanged( const QString & ); |
95 | void slotStartingBalanceChanged( const QString & ); | 96 | void slotStartingBalanceChanged( const QString & ); |
96 | void slotNewTran(); | 97 | void slotNewTran(); |
97 | void slotEditTran(); | 98 | void slotEditTran(); |
98 | void slotDeleteTran(); | 99 | void slotDeleteTran(); |
99 | void slotDrawGraph(); | 100 | void slotDrawGraph(); |
100 | }; | 101 | }; |
101 | 102 | ||
102 | #endif | 103 | #endif |