From 4593e3cf4eca4867e34b3220007c24523cf642b6 Mon Sep 17 00:00:00 2001 From: allenforsythe Date: Sun, 04 May 2003 22:02:48 +0000 Subject: Initial revision --- (limited to 'noncore/apps/qashmoney/accountdisplay.h') diff --git a/noncore/apps/qashmoney/accountdisplay.h b/noncore/apps/qashmoney/accountdisplay.h new file mode 100755 index 0000000..37bcb34 --- a/dev/null +++ b/noncore/apps/qashmoney/accountdisplay.h @@ -0,0 +1,53 @@ +#ifndef ACCOUNTDISPLAY_H +#define ACCOUNTDISPLAY_H + +#include +#include +#include +#include +#include + +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 ); + + private: + int type, firstaccountid, secondaccountid, cleared; + QWidget *tab2; + QTabWidget *maintabs; +}; + +#endif // ACCOUNTDISPLAY_H + -- cgit v0.9.0.2