summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qashmoney/accountdisplay.h
Unidiff
Diffstat (limited to 'noncore/unsupported/qashmoney/accountdisplay.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/unsupported/qashmoney/accountdisplay.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/noncore/unsupported/qashmoney/accountdisplay.h b/noncore/unsupported/qashmoney/accountdisplay.h
new file mode 100755
index 0000000..6d67b9b
--- a/dev/null
+++ b/noncore/unsupported/qashmoney/accountdisplay.h
@@ -0,0 +1,54 @@
1#ifndef ACCOUNTDISPLAY_H
2#define ACCOUNTDISPLAY_H
3
4#include <qlistview.h>
5#include <qpushbutton.h>
6#include <qlayout.h>
7#include <qtabwidget.h>
8#include <qhbox.h>
9
10class AccountDisplay : public QWidget
11 {
12 Q_OBJECT
13
14 public:
15 AccountDisplay ( QWidget *parent );
16
17 QHBox *firstline;
18
19 QPushButton* newaccount;
20 QPushButton* editaccount;
21 QPushButton* deleteaccount;
22 QPushButton* transferbutton;
23
24 QListView* listview;
25
26 QBoxLayout *layout;
27
28 void setTabs ( QWidget *newtab2, QTabWidget *newtabs );
29 int getIDColumn ();
30 void setToggleButton ();
31
32 public slots:
33 void addAccount ();
34 void editAccount ();
35 void deleteAccount ();
36 void accountTransfer ( bool state );
37 void getTransferAccounts ( QListViewItem * item );
38 void disableParentsWithChildren ();
39 void enableAccounts ();
40
41 private slots:
42 void saveColumnSize ( int column, int oldsize, int newsize );
43 void setAccountExpanded ( QListViewItem *item );
44 void setAccountCollapsed ( QListViewItem *item );
45 void saveSortingPreference ( int column );
46
47 private:
48 int type, firstaccountid, secondaccountid, cleared;
49 QWidget *tab2;
50 QTabWidget *maintabs;
51};
52
53#endif // ACCOUNTDISPLAY_H
54