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