summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.h
authordrw <drw>2002-11-30 22:51:39 (UTC)
committer drw <drw>2002-11-30 22:51:39 (UTC)
commit666313593479c03cdc88bd8fde926af181cb8423 (patch) (unidiff)
tree79f5334d7ec7918146469d567466607ebaea28a8 /noncore/apps/checkbook/checkbook.h
parent2e2bbf823ba532f349ad9ca3dd84cf7f758f36b0 (diff)
downloadopie-666313593479c03cdc88bd8fde926af181cb8423.zip
opie-666313593479c03cdc88bd8fde926af181cb8423.tar.gz
opie-666313593479c03cdc88bd8fde926af181cb8423.tar.bz2
Checkbook password protection
Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.h9
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
37class OTabWidget; 37class OTabWidget;
38 38
39class Graph; 39class Graph;
40class GraphInfo; 40class GraphInfo;
41class QCheckBox;
41class QComboBox; 42class QComboBox;
42class QLabel; 43class QLabel;
43class QLineEdit; 44class QLineEdit;
44class QListView; 45class QListView;
45class QMultiLineEdit; 46class QMultiLineEdit;
46class QString; 47class QString;
47 48
48class Checkbook : public QDialog 49class 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();