summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/transactiondisplay.h
Unidiff
Diffstat (limited to 'noncore/apps/qashmoney/transactiondisplay.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/transactiondisplay.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/transactiondisplay.h b/noncore/apps/qashmoney/transactiondisplay.h
new file mode 100755
index 0000000..79f20ba
--- a/dev/null
+++ b/noncore/apps/qashmoney/transactiondisplay.h
@@ -0,0 +1,79 @@
1#ifndef TRANSACTIONDISPLAY_H
2#define TRANSACTIONDISPLAY_H
3
4#include <qlayout.h>
5#include <qhbox.h>
6#include <qlistview.h>
7#include <qpushbutton.h>
8#include <qlabel.h>
9#include <qlineedit.h>
10
11class TransactionDisplay : public QWidget
12 {
13 Q_OBJECT
14
15 public:
16 TransactionDisplay ( QWidget* parent );
17
18 QListView* listview;
19 QPushButton* newtransaction;
20 QPushButton* edittransaction;
21 QPushButton* deletetransaction;
22 QPushButton* toggletransaction;
23 QPushButton* viewtransactionnotes;
24
25 QLabel *name;
26 QLabel *balance;
27 QLineEdit *limitbox;
28 QLineEdit *amount;
29 QLineEdit *date;
30
31 int getIDColumn ();
32
33 public slots:
34 void setChildren ( bool );
35 void setAccountID ( int );
36 void showTransactionNotes ();
37
38 private slots:
39 void addTransaction ();
40 void editTransaction ();
41 void editTransfer ();
42 void deleteTransaction ();
43 void toggleTransaction ();
44 void checkListViewDelete ();
45 void checkListViewEdit ();
46 void checkListViewToggle ();
47 void saveColumnSize ( int column, int oldsize, int newsize );
48 void limitDisplay ( const QString & );
49 void showCalculator ();
50 void showCalendar ();
51
52 private:
53 int accountid, fromaccount, fromparent, toaccount, toparent, day, month, year, transferid;
54 bool children;
55 QBoxLayout *layout;
56 QHBox *firstline;
57 QHBox *secondline;
58 void redisplayAccountBalance ();
59 void updateAndDisplay ( int accountid );
60 };
61
62#endif
63
64#ifndef COLORLISTITEM_H
65#define COLORLISTITEM_H
66
67class ColorListItem : public QListViewItem
68 {
69 public:
70
71 ColorListItem ( QListView *parent );
72 ColorListItem ( QListView *parent, QString label1, QString label2, QString label3, QString label4 );
73 ColorListItem ( QListView *parent, QString label1, QString label2, QString label3, QString label4, QString label5 );
74
75 virtual void paintCell ( QPainter *p, const QColorGroup &cg, int column, int width, int alignment );
76 };
77
78#endif
79