author | drw <drw> | 2004-02-22 00:08:21 (UTC) |
---|---|---|
committer | drw <drw> | 2004-02-22 00:08:21 (UTC) |
commit | e8aa81decb9a22828dcdbbaf3d08e2c6f1d2217f (patch) (unidiff) | |
tree | 2ebc546b4cf84d014eae25b9753f2cb40be37b48 /noncore/apps/checkbook/checkbook.h | |
parent | 58f490cf6fd94ec27eec01c0ffc9d0411be594e8 (diff) | |
download | opie-e8aa81decb9a22828dcdbbaf3d08e2c6f1d2217f.zip opie-e8aa81decb9a22828dcdbbaf3d08e2c6f1d2217f.tar.gz opie-e8aa81decb9a22828dcdbbaf3d08e2c6f1d2217f.tar.bz2 |
Checkbook: libopie->libopie2
Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/checkbook.h | 110 |
1 files changed, 56 insertions, 54 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h index e18f00c..e2f0e56 100644 --- a/noncore/apps/checkbook/checkbook.h +++ b/noncore/apps/checkbook/checkbook.h | |||
@@ -29,11 +29,13 @@ | |||
29 | #ifndef CHECKBOOK_H | 29 | #ifndef CHECKBOOK_H |
30 | #define CHECKBOOK_H | 30 | #define CHECKBOOK_H |
31 | 31 | ||
32 | #include <opie2/otabwidget.h> | ||
33 | |||
32 | #include <qdatetime.h> | 34 | #include <qdatetime.h> |
33 | #include <qdialog.h> | 35 | #include <qdialog.h> |
34 | #include <qlistview.h> | 36 | #include <qlistview.h> |
35 | 37 | ||
36 | class OTabWidget; | 38 | using Opie::OTabWidget; |
37 | 39 | ||
38 | class CBInfo; | 40 | class CBInfo; |
39 | class Graph; | 41 | class Graph; |
@@ -54,11 +56,11 @@ class QMouseEvent; | |||
54 | // --- Checkbook -------------------------------------------------------------- | 56 | // --- Checkbook -------------------------------------------------------------- |
55 | class Checkbook : public QDialog | 57 | class Checkbook : public QDialog |
56 | { | 58 | { |
57 | Q_OBJECT | 59 | Q_OBJECT |
58 | 60 | ||
59 | public: | 61 | public: |
60 | Checkbook( QWidget *, CBInfo *, Cfg *cfg ); | 62 | Checkbook( QWidget *, CBInfo *, Cfg *cfg ); |
61 | ~Checkbook(); | 63 | ~Checkbook(); |
62 | 64 | ||
63 | // resort | 65 | // resort |
64 | void resort(); | 66 | void resort(); |
@@ -66,56 +68,56 @@ class Checkbook : public QDialog | |||
66 | // members | 68 | // members |
67 | TranInfoList *getTranList() { return(tranList); } | 69 | TranInfoList *getTranList() { return(tranList); } |
68 | 70 | ||
69 | private: | 71 | private: |
70 | CBInfo *info; | 72 | CBInfo *info; |
71 | TranInfoList *tranList; | 73 | TranInfoList *tranList; |
72 | Cfg *_pCfg; | 74 | Cfg *_pCfg; |
73 | 75 | ||
74 | OTabWidget *mainWidget; | 76 | OTabWidget *mainWidget; |
75 | void loadCheckbook(); | 77 | void loadCheckbook(); |
76 | void adjustBalance(); | 78 | void adjustBalance(); |
77 | 79 | ||
78 | // Info tab | 80 | // Info tab |
79 | QWidget *initInfo(); | 81 | QWidget *initInfo(); |
80 | QCheckBox *passwordCB; | 82 | QCheckBox *passwordCB; |
81 | QLineEdit *nameEdit; | 83 | QLineEdit *nameEdit; |
82 | QComboBox *typeList; | 84 | QComboBox *typeList; |
83 | QLineEdit *bankEdit; | 85 | QLineEdit *bankEdit; |
84 | QLineEdit *acctNumEdit; | 86 | QLineEdit *acctNumEdit; |
85 | QLineEdit *pinNumEdit; | 87 | QLineEdit *pinNumEdit; |
86 | QLineEdit *balanceEdit; | 88 | QLineEdit *balanceEdit; |
87 | QMultiLineEdit *notesEdit; | 89 | QMultiLineEdit *notesEdit; |
88 | int _sortCol; | 90 | int _sortCol; |
89 | 91 | ||
90 | // Transactions tab | 92 | // Transactions tab |
91 | QWidget *initTransactions(); | 93 | QWidget *initTransactions(); |
92 | QListView *tranTable; | 94 | QListView *tranTable; |
93 | QComboBox *_cbSortType; | 95 | QComboBox *_cbSortType; |
94 | QDate _dLastNew; | 96 | QDate _dLastNew; |
95 | 97 | ||
96 | // Charts tab | 98 | // Charts tab |
97 | QWidget *initCharts(); | 99 | QWidget *initCharts(); |
98 | GraphInfo *graphInfo; | 100 | GraphInfo *graphInfo; |
99 | QComboBox *graphList; | 101 | QComboBox *graphList; |
100 | Graph *graphWidget; | 102 | Graph *graphWidget; |
101 | 103 | ||
102 | void drawBalanceChart(); | 104 | void drawBalanceChart(); |
103 | void drawCategoryChart( bool = TRUE ); | 105 | void drawCategoryChart( bool = TRUE ); |
104 | 106 | ||
105 | 107 | ||
106 | protected slots: | 108 | protected slots: |
107 | void accept(); | 109 | void accept(); |
108 | void slotTab(QWidget *tab); | 110 | void slotTab(QWidget *tab); |
109 | 111 | ||
110 | private slots: | 112 | private slots: |
111 | void slotPasswordClicked(); | 113 | void slotPasswordClicked(); |
112 | void slotNameChanged( const QString & ); | 114 | void slotNameChanged( const QString & ); |
113 | void slotStartingBalanceChanged( const QString & ); | 115 | void slotStartingBalanceChanged( const QString & ); |
114 | void slotNewTran(); | 116 | void slotNewTran(); |
115 | void slotEditTran(); | 117 | void slotEditTran(); |
116 | void slotMenuTran(QListViewItem *, const QPoint &); | 118 | void slotMenuTran(QListViewItem *, const QPoint &); |
117 | void slotDeleteTran(); | 119 | void slotDeleteTran(); |
118 | void slotDrawGraph(); | 120 | void slotDrawGraph(); |
119 | void slotSortChanged( const QString & ); | 121 | void slotSortChanged( const QString & ); |
120 | }; | 122 | }; |
121 | 123 | ||
@@ -123,25 +125,25 @@ class Checkbook : public QDialog | |||
123 | // --- CBListItem ------------------------------------------------------------- | 125 | // --- CBListItem ------------------------------------------------------------- |
124 | class CBListItem : public QListViewItem | 126 | class CBListItem : public QListViewItem |
125 | { | 127 | { |
126 | //Q_OBJECT | 128 | //Q_OBJECT |
127 | 129 | ||
128 | public: | 130 | public: |
129 | CBListItem( TranInfo *, QListView *, QString = QString::null, QString = QString::null, | 131 | CBListItem( TranInfo *, QListView *, QString = QString::null, QString = QString::null, |
130 | QString = QString::null, QString = QString::null, QString = QString::null, | 132 | QString = QString::null, QString = QString::null, QString = QString::null, |
131 | QString = QString::null, QString = QString::null, QString = QString::null ); | 133 | QString = QString::null, QString = QString::null, QString = QString::null ); |
132 | 134 | ||
133 | void paintCell( QPainter *, const QColorGroup &, int, int, int ); | 135 | void paintCell( QPainter *, const QColorGroup &, int, int, int ); |
134 | 136 | ||
135 | // --- members | 137 | // --- members |
136 | TranInfo *getTranInfo() { return(_pTran); } | 138 | TranInfo *getTranInfo() { return(_pTran); } |
137 | 139 | ||
138 | private: | 140 | private: |
139 | TranInfo *_pTran; | 141 | TranInfo *_pTran; |
140 | QListView *owner; | 142 | QListView *owner; |
141 | bool m_known; | 143 | bool m_known; |
142 | bool m_odd; | 144 | bool m_odd; |
143 | 145 | ||
144 | bool isAltBackground(); | 146 | bool isAltBackground(); |
145 | }; | 147 | }; |
146 | 148 | ||
147 | 149 | ||