summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.h
Unidiff
Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h
index 01f1115..287788a 100644
--- a/noncore/apps/checkbook/checkbook.h
+++ b/noncore/apps/checkbook/checkbook.h
@@ -23,32 +23,33 @@
23    --        :-=` Free Software Foundation, Inc., 23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330, 24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef CHECKBOOK_H 29#ifndef CHECKBOOK_H
30#define CHECKBOOK_H 30#define CHECKBOOK_H
31 31
32#include "traninfo.h" 32#include "traninfo.h"
33 33
34#include <qdialog.h> 34#include <qdialog.h>
35 35
36class OTabWidget; 36class OTabWidget;
37 37
38class Graph; 38class Graph;
39class GraphInfo;
39class QComboBox; 40class QComboBox;
40class QLabel; 41class QLabel;
41class QLineEdit; 42class QLineEdit;
42class QListView; 43class QListView;
43class QMultiLineEdit; 44class QMultiLineEdit;
44class QString; 45class QString;
45 46
46class Checkbook : public QDialog 47class Checkbook : public QDialog
47{ 48{
48 Q_OBJECT 49 Q_OBJECT
49 50
50 public: 51 public:
51 Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' ); 52 Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' );
52 ~Checkbook(); 53 ~Checkbook();
53 54
54 const QString &getName(); 55 const QString &getName();
@@ -71,33 +72,37 @@ class Checkbook : public QDialog
71 QLineEdit *nameEdit; 72 QLineEdit *nameEdit;
72 QComboBox *typeList; 73 QComboBox *typeList;
73 QLineEdit *bankEdit; 74 QLineEdit *bankEdit;
74 QLineEdit *acctNumEdit; 75 QLineEdit *acctNumEdit;
75 QLineEdit *pinNumEdit; 76 QLineEdit *pinNumEdit;
76 QLineEdit *balanceEdit; 77 QLineEdit *balanceEdit;
77 QMultiLineEdit *notesEdit; 78 QMultiLineEdit *notesEdit;
78 float startBalance; 79 float startBalance;
79 80
80 // Transactions tab 81 // Transactions tab
81 QWidget *initTransactions(); 82 QWidget *initTransactions();
82 QListView *tranTable; 83 QListView *tranTable;
83 QLabel *balanceLabel; 84 QLabel *balanceLabel;
84 float currBalance; 85 float currBalance;
85 86
86 // Charts tab 87 // Charts tab
87 QWidget *initCharts(); 88 QWidget *initCharts();
88 //QComboBox *graphList; 89 GraphInfo *graphInfo;
89 Graph *graphWidget; 90 QComboBox *graphList;
91 Graph *graphWidget;
92
93 void drawBalanceChart();
94 void drawCategoryChart( bool = TRUE );
90 95
91 protected slots: 96 protected slots:
92 void accept(); 97 void accept();
93 98
94 private slots: 99 private slots:
95 void slotNameChanged( const QString & ); 100 void slotNameChanged( const QString & );
96 void slotStartingBalanceChanged( const QString & ); 101 void slotStartingBalanceChanged( const QString & );
97 void slotNewTran(); 102 void slotNewTran();
98 void slotEditTran(); 103 void slotEditTran();
99 void slotDeleteTran(); 104 void slotDeleteTran();
100 void slotDrawGraph(); 105 void slotDrawGraph();
101}; 106};
102 107
103#endif 108#endif