summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qashmoney/accountdisplay.h
Side-by-side diff
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 @@
+#ifndef ACCOUNTDISPLAY_H
+#define ACCOUNTDISPLAY_H
+
+#include <qlistview.h>
+#include <qpushbutton.h>
+#include <qlayout.h>
+#include <qtabwidget.h>
+#include <qhbox.h>
+
+class AccountDisplay : public QWidget
+ {
+ Q_OBJECT
+
+ public:
+ AccountDisplay ( QWidget *parent );
+
+ QHBox *firstline;
+
+ QPushButton* newaccount;
+ QPushButton* editaccount;
+ QPushButton* deleteaccount;
+ QPushButton* transferbutton;
+
+ QListView* listview;
+
+ QBoxLayout *layout;
+
+ void setTabs ( QWidget *newtab2, QTabWidget *newtabs );
+ int getIDColumn ();
+ void setToggleButton ();
+
+ public slots:
+ void addAccount ();
+ void editAccount ();
+ void deleteAccount ();
+ void accountTransfer ( bool state );
+ void getTransferAccounts ( QListViewItem * item );
+ void disableParentsWithChildren ();
+ void enableAccounts ();
+
+ private slots:
+ void saveColumnSize ( int column, int oldsize, int newsize );
+ void setAccountExpanded ( QListViewItem *item );
+ void setAccountCollapsed ( QListViewItem *item );
+ void saveSortingPreference ( int column );
+
+ private:
+ int type, firstaccountid, secondaccountid, cleared;
+ QWidget *tab2;
+ QTabWidget *maintabs;
+};
+
+#endif // ACCOUNTDISPLAY_H
+