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