Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/checkbook.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h index 27658ff..4a5011b 100644 --- a/noncore/apps/checkbook/checkbook.h +++ b/noncore/apps/checkbook/checkbook.h | |||
@@ -20,83 +20,76 @@ | |||
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" | ||
33 | |||
34 | #include <qdialog.h> | 32 | #include <qdialog.h> |
35 | #include <qlistview.h> | 33 | #include <qlistview.h> |
36 | 34 | ||
37 | class OTabWidget; | 35 | class OTabWidget; |
38 | 36 | ||
37 | class CBInfo; | ||
39 | class Graph; | 38 | class Graph; |
40 | class GraphInfo; | 39 | class GraphInfo; |
41 | class QCheckBox; | 40 | class QCheckBox; |
42 | class QComboBox; | 41 | class QComboBox; |
43 | class QLabel; | 42 | class QLabel; |
44 | class QLineEdit; | 43 | class QLineEdit; |
45 | class QListView; | 44 | class QListView; |
46 | class QMultiLineEdit; | 45 | class QMultiLineEdit; |
47 | class QString; | 46 | class QString; |
47 | class TranInfo; | ||
48 | class TranInfoList; | ||
48 | 49 | ||
49 | class Checkbook : public QDialog | 50 | class Checkbook : public QDialog |
50 | { | 51 | { |
51 | Q_OBJECT | 52 | Q_OBJECT |
52 | 53 | ||
53 | public: | 54 | public: |
54 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, | 55 | Checkbook( QWidget * = 0x0, CBInfo * = 0x0, const QString & = "$" ); |
55 | const QString & = "$" ); | ||
56 | ~Checkbook(); | 56 | ~Checkbook(); |
57 | 57 | ||
58 | const QString &getName(); | ||
59 | |||
60 | private: | 58 | private: |
61 | TranInfoList transactions; | 59 | CBInfo *info; |
62 | QString name; | 60 | TranInfoList *tranList; |
63 | QString filename; | 61 | QString currencySymbol; |
64 | QString filedir; | 62 | int highTranNum; |
65 | QString currencySymbol; | ||
66 | QString password; | ||
67 | int highTranNum; | ||
68 | 63 | ||
69 | OTabWidget *mainWidget; | 64 | OTabWidget *mainWidget; |
70 | void loadCheckbook(); | 65 | void loadCheckbook(); |
71 | void adjustBalance( float ); | 66 | void adjustBalance(); |
72 | TranInfo *findTran( const QString &, const QString &, const QString & ); | 67 | TranInfo *findTran( const QString &, const QString &, const QString & ); |
73 | 68 | ||
74 | // Info tab | 69 | // Info tab |
75 | QWidget *initInfo(); | 70 | QWidget *initInfo(); |
76 | QCheckBox *passwordCB; | 71 | QCheckBox *passwordCB; |
77 | QLineEdit *nameEdit; | 72 | QLineEdit *nameEdit; |
78 | QComboBox *typeList; | 73 | QComboBox *typeList; |
79 | QLineEdit *bankEdit; | 74 | QLineEdit *bankEdit; |
80 | QLineEdit *acctNumEdit; | 75 | QLineEdit *acctNumEdit; |
81 | QLineEdit *pinNumEdit; | 76 | QLineEdit *pinNumEdit; |
82 | QLineEdit *balanceEdit; | 77 | QLineEdit *balanceEdit; |
83 | QMultiLineEdit *notesEdit; | 78 | QMultiLineEdit *notesEdit; |
84 | float startBalance; | ||
85 | 79 | ||
86 | // Transactions tab | 80 | // Transactions tab |
87 | QWidget *initTransactions(); | 81 | QWidget *initTransactions(); |
88 | QListView *tranTable; | 82 | QListView *tranTable; |
89 | QLabel *balanceLabel; | 83 | QLabel *balanceLabel; |
90 | float currBalance; | ||
91 | 84 | ||
92 | // Charts tab | 85 | // Charts tab |
93 | QWidget *initCharts(); | 86 | QWidget *initCharts(); |
94 | GraphInfo *graphInfo; | 87 | GraphInfo *graphInfo; |
95 | QComboBox *graphList; | 88 | QComboBox *graphList; |
96 | Graph *graphWidget; | 89 | Graph *graphWidget; |
97 | 90 | ||
98 | void drawBalanceChart(); | 91 | void drawBalanceChart(); |
99 | void drawCategoryChart( bool = TRUE ); | 92 | void drawCategoryChart( bool = TRUE ); |
100 | 93 | ||
101 | protected slots: | 94 | protected slots: |
102 | void accept(); | 95 | void accept(); |