summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.h
Unidiff
Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.h5
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
36class OTabWidget; 36class OTabWidget;
37 37
38class Graph;
38class QComboBox; 39class QComboBox;
39class QLabel; 40class QLabel;
40class QLineEdit; 41class QLineEdit;
41class QListView; 42class QListView;
42class QMultiLineEdit; 43class QMultiLineEdit;
43class QString; 44class QString;
44 45
45class Checkbook : public QDialog 46class 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