author | drw <drw> | 2002-12-04 02:12:25 (UTC) |
---|---|---|
committer | drw <drw> | 2002-12-04 02:12:25 (UTC) |
commit | d000538b68b3411a409e829c4e68f42f9646b940 (patch) (unidiff) | |
tree | 72abee0785a595ef9d5edf9ecd20743a9ff16559 /noncore/apps/checkbook/checkbook.h | |
parent | 9b23bf789c15bcc84dabc400f16fa38ff3a34ebd (diff) | |
download | opie-d000538b68b3411a409e829c4e68f42f9646b940.zip opie-d000538b68b3411a409e829c4e68f42f9646b940.tar.gz opie-d000538b68b3411a409e829c4e68f42f9646b940.tar.bz2 |
Abstracted checkbook storage, added new main window display/configuration options.
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 | |||
@@ -29,13 +29,12 @@ | |||
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; |
@@ -45,30 +44,26 @@ 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 |
@@ -81,13 +76,11 @@ class Checkbook : public QDialog | |||
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(); |