author | drw <drw> | 2002-11-02 01:29:30 (UTC) |
---|---|---|
committer | drw <drw> | 2002-11-02 01:29:30 (UTC) |
commit | bf9388acdebf6e55345dff3bd1cd652b45a2202a (patch) (unidiff) | |
tree | 737ca55c9a30a1dde3aa289fd99cac7e4c30a3f7 /noncore/apps/checkbook/checkbook.h | |
parent | 6e9225388baa9dfac4ed09f22189cfa98a610d39 (diff) | |
download | opie-bf9388acdebf6e55345dff3bd1cd652b45a2202a.zip opie-bf9388acdebf6e55345dff3bd1cd652b45a2202a.tar.gz opie-bf9388acdebf6e55345dff3bd1cd652b45a2202a.tar.bz2 |
Code updates/fixes
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 | |||
@@ -14,89 +14,90 @@ | |||
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 |