summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.h
authordrw <drw>2002-12-04 02:12:25 (UTC)
committer drw <drw>2002-12-04 02:12:25 (UTC)
commitd000538b68b3411a409e829c4e68f42f9646b940 (patch) (unidiff)
tree72abee0785a595ef9d5edf9ecd20743a9ff16559 /noncore/apps/checkbook/checkbook.h
parent9b23bf789c15bcc84dabc400f16fa38ff3a34ebd (diff)
downloadopie-d000538b68b3411a409e829c4e68f42f9646b940.zip
opie-d000538b68b3411a409e829c4e68f42f9646b940.tar.gz
opie-d000538b68b3411a409e829c4e68f42f9646b940.tar.bz2
Abstracted checkbook storage, added new main window display/configuration options.
Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h
index 27658ff..4a5011b 100644
--- a/noncore/apps/checkbook/checkbook.h
+++ b/noncore/apps/checkbook/checkbook.h
@@ -29,13 +29,12 @@
29#ifndef CHECKBOOK_H 29#ifndef CHECKBOOK_H
30#define CHECKBOOK_H 30#define CHECKBOOK_H
31 31
32#include "traninfo.h"
33
34#include <qdialog.h> 32#include <qdialog.h>
35#include <qlistview.h> 33#include <qlistview.h>
36 34
37class OTabWidget; 35class OTabWidget;
38 36
37class CBInfo;
39class Graph; 38class Graph;
40class GraphInfo; 39class GraphInfo;
41class QCheckBox; 40class QCheckBox;
@@ -45,30 +44,26 @@ class QLineEdit;
45class QListView; 44class QListView;
46class QMultiLineEdit; 45class QMultiLineEdit;
47class QString; 46class QString;
47class TranInfo;
48class TranInfoList;
48 49
49class Checkbook : public QDialog 50class Checkbook : public QDialog
50{ 51{
51 Q_OBJECT 52 Q_OBJECT
52 53
53 public: 54 public:
54 Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, 55 Checkbook( QWidget * = 0x0, CBInfo * = 0x0, const QString & = "$" );
55 const QString & = "$" );
56 ~Checkbook(); 56 ~Checkbook();
57 57
58 const QString &getName();
59
60 private: 58 private:
61 TranInfoList transactions; 59 CBInfo *info;
62 QString name; 60 TranInfoList *tranList;
63 QString filename; 61 QString currencySymbol;
64 QString filedir; 62 int highTranNum;
65 QString currencySymbol;
66 QString password;
67 int highTranNum;
68 63
69 OTabWidget *mainWidget; 64 OTabWidget *mainWidget;
70 void loadCheckbook(); 65 void loadCheckbook();
71 void adjustBalance( float ); 66 void adjustBalance();
72 TranInfo *findTran( const QString &, const QString &, const QString & ); 67 TranInfo *findTran( const QString &, const QString &, const QString & );
73 68
74 // Info tab 69 // Info tab
@@ -81,13 +76,11 @@ class Checkbook : public QDialog
81 QLineEdit *pinNumEdit; 76 QLineEdit *pinNumEdit;
82 QLineEdit *balanceEdit; 77 QLineEdit *balanceEdit;
83 QMultiLineEdit *notesEdit; 78 QMultiLineEdit *notesEdit;
84 float startBalance;
85 79
86 // Transactions tab 80 // Transactions tab
87 QWidget *initTransactions(); 81 QWidget *initTransactions();
88 QListView *tranTable; 82 QListView *tranTable;
89 QLabel *balanceLabel; 83 QLabel *balanceLabel;
90 float currBalance;
91 84
92 // Charts tab 85 // Charts tab
93 QWidget *initCharts(); 86 QWidget *initCharts();