author | allenforsythe <allenforsythe> | 2003-05-04 22:02:48 (UTC) |
---|---|---|
committer | allenforsythe <allenforsythe> | 2003-05-04 22:02:48 (UTC) |
commit | 4593e3cf4eca4867e34b3220007c24523cf642b6 (patch) (side-by-side diff) | |
tree | bd8071834dec2a5008b1b270c7953f5cfd65754d /noncore/apps/qashmoney/newaccount.h | |
parent | 2894d0b14c0b3efa3ce259214b5aa597a6abfed1 (diff) | |
download | opie-4593e3cf4eca4867e34b3220007c24523cf642b6.zip opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.gz opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/apps/qashmoney/newaccount.h') (more/less context) (show whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/newaccount.h | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/newaccount.h b/noncore/apps/qashmoney/newaccount.h new file mode 100755 index 0000000..f8235d5 --- a/dev/null +++ b/noncore/apps/qashmoney/newaccount.h @@ -0,0 +1,87 @@ +#ifndef NEWACCOUNT_H +#define NEWACCOUNT_H + +#include <qbuttongroup.h> +#include <qcombobox.h> +#include <qlineedit.h> +#include <qpushbutton.h> +#include <qradiobutton.h> +#include <qlayout.h> +#include <qdialog.h> +#include <qlabel.h> +#include <qhbox.h> +#include <qcheckbox.h> + +#include "account.h" +#include "preferences.h" +#include "currency.h" + +class NewAccount : public QDialog + { + Q_OBJECT + + public: + NewAccount ( QWidget *parent = 0, const char *name = 0, bool modal = TRUE ); + ~NewAccount(); + + QLabel *namelabel; + QHBox *accountbox; + QLineEdit* accountname; + QPushButton* descriptionbutton; + + QHBox *datebox; + QLabel *datelabel; + QLineEdit* startdate; + QPushButton* datebutton; + + QCheckBox* childcheckbox; + + QLabel *childlabel; + QComboBox *childbox; + + QLabel *balancelabel; + QHBox *balancebox; + QLineEdit* accountbalance; + QPushButton* balancecalculator; + + QLabel *creditlimitlabel; + QHBox *creditlimitbox; + QLineEdit* creditlimit; + QPushButton* creditlimitcalculator; + + Currency *currencybox; + + QLabel *typelabel; + QComboBox* accounttype; + + QGridLayout *layout; + + int getDay (); + int getMonth (); + int getYear (); + QString getDescription (); + void setDescription ( QString ); + + // When a user edits an account and edits the date, this flag + // is set to TRUE adding the new date to the account. Otherwise, + // the old date is used for the edited account. This prevents a date + // from reverting to 0/0/0 if the date is not edited + bool getDateEdited (); + + public slots: + void showChildPulldownMenu(); + void hideChildPulldownMenu(); + void showCalculator(); + void showCreditLimitCalculator (); + void activateCreditLimit ( int ); + void showCalendar (); + void addAccountDescription (); + + private: + int index, year, month, day, currencypreference; + QString accountdescription; + bool dateedited; +}; + +#endif + |