summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qashmoney/newaccount.h
Unidiff
Diffstat (limited to 'noncore/unsupported/qashmoney/newaccount.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/unsupported/qashmoney/newaccount.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/noncore/unsupported/qashmoney/newaccount.h b/noncore/unsupported/qashmoney/newaccount.h
new file mode 100755
index 0000000..f8235d5
--- a/dev/null
+++ b/noncore/unsupported/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
19class 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