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) (side-by-side diff)
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 @@
#ifndef CHECKBOOK_H
#define CHECKBOOK_H
-#include "traninfo.h"
-
#include <qdialog.h>
#include <qlistview.h>
class OTabWidget;
+class CBInfo;
class Graph;
class GraphInfo;
class QCheckBox;
@@ -45,30 +44,26 @@ class QLineEdit;
class QListView;
class QMultiLineEdit;
class QString;
+class TranInfo;
+class TranInfoList;
class Checkbook : public QDialog
{
Q_OBJECT
public:
- Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0,
- const QString & = "$" );
+ Checkbook( QWidget * = 0x0, CBInfo * = 0x0, const QString & = "$" );
~Checkbook();
- const QString &getName();
-
private:
- TranInfoList transactions;
- QString name;
- QString filename;
- QString filedir;
- QString currencySymbol;
- QString password;
- int highTranNum;
+ CBInfo *info;
+ TranInfoList *tranList;
+ QString currencySymbol;
+ int highTranNum;
OTabWidget *mainWidget;
void loadCheckbook();
- void adjustBalance( float );
+ void adjustBalance();
TranInfo *findTran( const QString &, const QString &, const QString & );
// Info tab
@@ -81,13 +76,11 @@ class Checkbook : public QDialog
QLineEdit *pinNumEdit;
QLineEdit *balanceEdit;
QMultiLineEdit *notesEdit;
- float startBalance;
// Transactions tab
QWidget *initTransactions();
QListView *tranTable;
QLabel *balanceLabel;
- float currBalance;
// Charts tab
QWidget *initCharts();