Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/checkbook.h | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h new file mode 100644 index 0000000..a86c0f9 --- a/dev/null +++ b/noncore/apps/checkbook/checkbook.h | |||
@@ -0,0 +1,102 @@ | |||
1 | /* | ||
2 | This file is part of the OPIE Project | ||
3 | =. | ||
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | ||
5 | .>+-= | ||
6 | _;:, .> :=|. This file is free software; you can | ||
7 | .> <`_, > . <= redistribute it and/or modify it under | ||
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | ||
9 | .="- .-=="i, .._ License as published by the Free Software | ||
10 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
11 | ._= =} : or (at your option) any later version. | ||
12 | .%`+i> _;_. | ||
13 | .i_,=:_. -<s. This file is distributed in the hope that | ||
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
15 | : .. .:, . . . without even the implied warranty of | ||
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | ||
18 | ..}^=.= = ; Public License for more details. | ||
19 | ++= -. .` .: | ||
20 | : = ...= . :.=- You should have received a copy of the GNU | ||
21 | -. .:....=;==+<; General Public License along with this file; | ||
22 | -_. . . )=. = see the file COPYING. If not, write to the | ||
23 | -- :-=` Free Software Foundation, Inc., | ||
24 | 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
29 | #ifndef CHECKBOOK_H | ||
30 | #define CHECKBOOK_H | ||
31 | |||
32 | #include "traninfo.h" | ||
33 | |||
34 | #include <qdialog.h> | ||
35 | |||
36 | class OTabWidget; | ||
37 | |||
38 | class QComboBox; | ||
39 | class QLabel; | ||
40 | class QLineEdit; | ||
41 | class QListView; | ||
42 | class QMultiLineEdit; | ||
43 | class QString; | ||
44 | |||
45 | class Checkbook : public QDialog | ||
46 | { | ||
47 | Q_OBJECT | ||
48 | |||
49 | public: | ||
50 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' ); | ||
51 | ~Checkbook(); | ||
52 | |||
53 | const QString &getName(); | ||
54 | |||
55 | private: | ||
56 | TranInfoList transactions; | ||
57 | QString name; | ||
58 | QString filename; | ||
59 | QString filedir; | ||
60 | char currencySymbol; | ||
61 | int highTranNum; | ||
62 | |||
63 | OTabWidget *mainWidget; | ||
64 | void loadCheckbook(); | ||
65 | void adjustBalance( float ); | ||
66 | TranInfo *findTranByID( int ); | ||
67 | |||
68 | // Info tab | ||
69 | QWidget *initInfo(); | ||
70 | QLineEdit *nameEdit; | ||
71 | QComboBox *typeList; | ||
72 | QLineEdit *bankEdit; | ||
73 | QLineEdit *acctNumEdit; | ||
74 | QLineEdit *pinNumEdit; | ||
75 | QLineEdit *balanceEdit; | ||
76 | QMultiLineEdit *notesEdit; | ||
77 | float startBalance; | ||
78 | |||
79 | // Transactions tab | ||
80 | QWidget *initTransactions(); | ||
81 | QListView *tranTable; | ||
82 | QLabel *balanceLabel; | ||
83 | float currBalance; | ||
84 | |||
85 | // Charts tab | ||
86 | QWidget *initCharts(); | ||
87 | //QComboBox *graphList; | ||
88 | QWidget *graphWidget; | ||
89 | |||
90 | protected slots: | ||
91 | void accept(); | ||
92 | |||
93 | private slots: | ||
94 | void slotNameChanged( const QString & ); | ||
95 | void slotStartingBalanceChanged( const QString & ); | ||
96 | void slotNewTran(); | ||
97 | void slotEditTran(); | ||
98 | void slotDeleteTran(); | ||
99 | void slotDrawGraph(); | ||
100 | }; | ||
101 | |||
102 | #endif | ||