author | allenforsythe <allenforsythe> | 2003-05-04 22:02:48 (UTC) |
---|---|---|
committer | allenforsythe <allenforsythe> | 2003-05-04 22:02:48 (UTC) |
commit | 4593e3cf4eca4867e34b3220007c24523cf642b6 (patch) (unidiff) | |
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) (ignore 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 @@ | |||
1 | #ifndef NEWACCOUNT_H | ||
2 | #define NEWACCOUNT_H | ||
3 | |||
4 | #include <qbuttongroup.h> | ||
5 | #include <qcombobox.h> | ||
6 | #include <qlineedit.h> | ||
7 | #include <qpushbutton.h> | ||
8 | #include <qradiobutton.h> | ||
9 | #include <qlayout.h> | ||
10 | #include <qdialog.h> | ||
11 | #include <qlabel.h> | ||
12 | #include <qhbox.h> | ||
13 | #include <qcheckbox.h> | ||
14 | |||
15 | #include "account.h" | ||
16 | #include "preferences.h" | ||
17 | #include "currency.h" | ||
18 | |||
19 | class NewAccount : public QDialog | ||
20 | { | ||
21 | Q_OBJECT | ||
22 | |||
23 | public: | ||
24 | NewAccount ( QWidget *parent = 0, const char *name = 0, bool modal = TRUE ); | ||
25 | ~NewAccount(); | ||
26 | |||
27 | QLabel *namelabel; | ||
28 | QHBox *accountbox; | ||
29 | QLineEdit* accountname; | ||
30 | QPushButton* descriptionbutton; | ||
31 | |||
32 | QHBox *datebox; | ||
33 | QLabel *datelabel; | ||
34 | QLineEdit* startdate; | ||
35 | QPushButton* datebutton; | ||
36 | |||
37 | QCheckBox* childcheckbox; | ||
38 | |||
39 | QLabel *childlabel; | ||
40 | QComboBox *childbox; | ||
41 | |||
42 | QLabel *balancelabel; | ||
43 | QHBox *balancebox; | ||
44 | QLineEdit* accountbalance; | ||
45 | QPushButton* balancecalculator; | ||
46 | |||
47 | QLabel *creditlimitlabel; | ||
48 | QHBox *creditlimitbox; | ||
49 | QLineEdit* creditlimit; | ||
50 | QPushButton* creditlimitcalculator; | ||
51 | |||
52 | Currency *currencybox; | ||
53 | |||
54 | QLabel *typelabel; | ||
55 | QComboBox* accounttype; | ||
56 | |||
57 | QGridLayout *layout; | ||
58 | |||
59 | int getDay (); | ||
60 | int getMonth (); | ||
61 | int getYear (); | ||
62 | QString getDescription (); | ||
63 | void setDescription ( QString ); | ||
64 | |||
65 | // When a user edits an account and edits the date, this flag | ||
66 | // is set to TRUE adding the new date to the account. Otherwise, | ||
67 | // the old date is used for the edited account. This prevents a date | ||
68 | // from reverting to 0/0/0 if the date is not edited | ||
69 | bool getDateEdited (); | ||
70 | |||
71 | public slots: | ||
72 | void showChildPulldownMenu(); | ||
73 | void hideChildPulldownMenu(); | ||
74 | void showCalculator(); | ||
75 | void showCreditLimitCalculator (); | ||
76 | void activateCreditLimit ( int ); | ||
77 | void showCalendar (); | ||
78 | void addAccountDescription (); | ||
79 | |||
80 | private: | ||
81 | int index, year, month, day, currencypreference; | ||
82 | QString accountdescription; | ||
83 | bool dateedited; | ||
84 | }; | ||
85 | |||
86 | #endif | ||
87 | |||