Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/checkbook.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h index 0260b43..27658ff 100644 --- a/noncore/apps/checkbook/checkbook.h +++ b/noncore/apps/checkbook/checkbook.h | |||
@@ -35,44 +35,48 @@ | |||
35 | #include <qlistview.h> | 35 | #include <qlistview.h> |
36 | 36 | ||
37 | class OTabWidget; | 37 | class OTabWidget; |
38 | 38 | ||
39 | class Graph; | 39 | class Graph; |
40 | class GraphInfo; | 40 | class GraphInfo; |
41 | class QCheckBox; | ||
41 | class QComboBox; | 42 | class QComboBox; |
42 | class QLabel; | 43 | class QLabel; |
43 | class QLineEdit; | 44 | class QLineEdit; |
44 | class QListView; | 45 | class QListView; |
45 | class QMultiLineEdit; | 46 | class QMultiLineEdit; |
46 | class QString; | 47 | class QString; |
47 | 48 | ||
48 | class Checkbook : public QDialog | 49 | class Checkbook : public QDialog |
49 | { | 50 | { |
50 | Q_OBJECT | 51 | Q_OBJECT |
51 | 52 | ||
52 | public: | 53 | public: |
53 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' ); | 54 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, |
55 | const QString & = "$" ); | ||
54 | ~Checkbook(); | 56 | ~Checkbook(); |
55 | 57 | ||
56 | const QString &getName(); | 58 | const QString &getName(); |
57 | 59 | ||
58 | private: | 60 | private: |
59 | TranInfoList transactions; | 61 | TranInfoList transactions; |
60 | QString name; | 62 | QString name; |
61 | QString filename; | 63 | QString filename; |
62 | QString filedir; | 64 | QString filedir; |
63 | char currencySymbol; | 65 | QString currencySymbol; |
66 | QString password; | ||
64 | int highTranNum; | 67 | int highTranNum; |
65 | 68 | ||
66 | OTabWidget *mainWidget; | 69 | OTabWidget *mainWidget; |
67 | void loadCheckbook(); | 70 | void loadCheckbook(); |
68 | void adjustBalance( float ); | 71 | void adjustBalance( float ); |
69 | TranInfo *findTran( const QString &, const QString &, const QString & ); | 72 | TranInfo *findTran( const QString &, const QString &, const QString & ); |
70 | 73 | ||
71 | // Info tab | 74 | // Info tab |
72 | QWidget *initInfo(); | 75 | QWidget *initInfo(); |
76 | QCheckBox *passwordCB; | ||
73 | QLineEdit *nameEdit; | 77 | QLineEdit *nameEdit; |
74 | QComboBox *typeList; | 78 | QComboBox *typeList; |
75 | QLineEdit *bankEdit; | 79 | QLineEdit *bankEdit; |
76 | QLineEdit *acctNumEdit; | 80 | QLineEdit *acctNumEdit; |
77 | QLineEdit *pinNumEdit; | 81 | QLineEdit *pinNumEdit; |
78 | QLineEdit *balanceEdit; | 82 | QLineEdit *balanceEdit; |
@@ -95,12 +99,13 @@ class Checkbook : public QDialog | |||
95 | void drawCategoryChart( bool = TRUE ); | 99 | void drawCategoryChart( bool = TRUE ); |
96 | 100 | ||
97 | protected slots: | 101 | protected slots: |
98 | void accept(); | 102 | void accept(); |
99 | 103 | ||
100 | private slots: | 104 | private slots: |
105 | void slotPasswordClicked(); | ||
101 | void slotNameChanged( const QString & ); | 106 | void slotNameChanged( const QString & ); |
102 | void slotStartingBalanceChanged( const QString & ); | 107 | void slotStartingBalanceChanged( const QString & ); |
103 | void slotNewTran(); | 108 | void slotNewTran(); |
104 | void slotEditTran(); | 109 | void slotEditTran(); |
105 | void slotDeleteTran(); | 110 | void slotDeleteTran(); |
106 | void slotDrawGraph(); | 111 | void slotDrawGraph(); |