author | llornkcor <llornkcor> | 2004-07-18 04:51:25 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-07-18 04:51:25 (UTC) |
commit | 987705b1c4fac4a33b82b10ef1bac3ebdb49b1b8 (patch) (unidiff) | |
tree | 0c4ff8001a9c7f190e4d9a44e5f6ca10ac5f598d | |
parent | 3d069bdbbad674fffdc3115888d5ed8fc771366c (diff) | |
download | opie-987705b1c4fac4a33b82b10ef1bac3ebdb49b1b8.zip opie-987705b1c4fac4a33b82b10ef1bac3ebdb49b1b8.tar.gz opie-987705b1c4fac4a33b82b10ef1bac3ebdb49b1b8.tar.bz2 |
add qcombobox include
-rwxr-xr-x | noncore/apps/qashmoney/newtransaction.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/newtransaction.h b/noncore/apps/qashmoney/newtransaction.h index 4ee3b9d..db3a5ad 100755 --- a/noncore/apps/qashmoney/newtransaction.h +++ b/noncore/apps/qashmoney/newtransaction.h | |||
@@ -1,95 +1,96 @@ | |||
1 | #ifndef NEWTRANSACTION_H | 1 | #ifndef NEWTRANSACTION_H |
2 | #define NEWTRANSACTION_H | 2 | #define NEWTRANSACTION_H |
3 | 3 | ||
4 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
5 | #include <qpushbutton.h> | 5 | #include <qpushbutton.h> |
6 | #include <qlayout.h> | 6 | #include <qlayout.h> |
7 | #include <qcheckbox.h> | 7 | #include <qcheckbox.h> |
8 | #include <qdialog.h> | 8 | #include <qdialog.h> |
9 | #include <qlabel.h> | 9 | #include <qlabel.h> |
10 | #include <qstringlist.h> | 10 | #include <qstringlist.h> |
11 | #include <qhbox.h> | 11 | #include <qhbox.h> |
12 | #include <qcombobox.h> | ||
12 | 13 | ||
13 | #include "transaction.h" | 14 | #include "transaction.h" |
14 | #include "preferences.h" | 15 | #include "preferences.h" |
15 | 16 | ||
16 | class NewTransaction : public QDialog | 17 | class NewTransaction : public QDialog |
17 | { | 18 | { |
18 | Q_OBJECT | 19 | Q_OBJECT |
19 | 20 | ||
20 | public: | 21 | public: |
21 | 22 | ||
22 | int year, month, day; | 23 | int year, month, day; |
23 | 24 | ||
24 | NewTransaction ( QWidget* parent ); | 25 | NewTransaction ( QWidget* parent ); |
25 | ~NewTransaction(); | 26 | ~NewTransaction(); |
26 | 27 | ||
27 | QLabel *namelabel; | 28 | QLabel *namelabel; |
28 | QHBox *transactionnamebox; | 29 | QHBox *transactionnamebox; |
29 | QComboBox* transactionname; | 30 | QComboBox* transactionname; |
30 | QPushButton* descriptionbutton; | 31 | QPushButton* descriptionbutton; |
31 | 32 | ||
32 | QLabel *amountlabel; | 33 | QLabel *amountlabel; |
33 | QHBox *transactionamountbox; | 34 | QHBox *transactionamountbox; |
34 | QLineEdit* transactionamount; | 35 | QLineEdit* transactionamount; |
35 | QPushButton* calculatorbutton; | 36 | QPushButton* calculatorbutton; |
36 | 37 | ||
37 | QLabel *datelabel; | 38 | QLabel *datelabel; |
38 | QHBox *transactiondatebox; | 39 | QHBox *transactiondatebox; |
39 | QLineEdit* transactiondate; | 40 | QLineEdit* transactiondate; |
40 | QPushButton* datebutton; | 41 | QPushButton* datebutton; |
41 | 42 | ||
42 | QCheckBox *clearedcheckbox; | 43 | QCheckBox *clearedcheckbox; |
43 | 44 | ||
44 | QLabel *numberlabel; | 45 | QLabel *numberlabel; |
45 | QLineEdit *transactionnumber; | 46 | QLineEdit *transactionnumber; |
46 | 47 | ||
47 | QLabel *budgetlabel; | 48 | QLabel *budgetlabel; |
48 | QComboBox *budgetbox; | 49 | QComboBox *budgetbox; |
49 | 50 | ||
50 | QLabel *lineitemlabel; | 51 | QLabel *lineitemlabel; |
51 | QComboBox *lineitembox; | 52 | QComboBox *lineitembox; |
52 | 53 | ||
53 | QCheckBox *depositbox; | 54 | QCheckBox *depositbox; |
54 | 55 | ||
55 | QGridLayout *layout; | 56 | QGridLayout *layout; |
56 | 57 | ||
57 | int getDay (); | 58 | int getDay (); |
58 | int getMonth (); | 59 | int getMonth (); |
59 | int getYear (); | 60 | int getYear (); |
60 | QString getDescription (); | 61 | QString getDescription (); |
61 | void setDescription ( QString ); | 62 | void setDescription ( QString ); |
62 | void setComboBoxes ( int, int ); | 63 | void setComboBoxes ( int, int ); |
63 | 64 | ||
64 | // When a user edits an transaction and edits the date, this flag | 65 | // When a user edits an transaction and edits the date, this flag |
65 | // is set to TRUE adding the new date to the transaction. Otherwise, | 66 | // is set to TRUE adding the new date to the transaction. Otherwise, |
66 | // the old date is used for the edited transaction. This prevents a date | 67 | // the old date is used for the edited transaction. This prevents a date |
67 | // from reverting to 0/0/0 if the date is not edited | 68 | // from reverting to 0/0/0 if the date is not edited |
68 | bool getDateEdited (); | 69 | bool getDateEdited (); |
69 | 70 | ||
70 | public slots: | 71 | public slots: |
71 | 72 | ||
72 | void showCalculator(); | 73 | void showCalculator(); |
73 | void showCalendar (); | 74 | void showCalendar (); |
74 | void addTransactionDescription (); | 75 | void addTransactionDescription (); |
75 | int getNameIndex ( QString name ); | 76 | int getNameIndex ( QString name ); |
76 | int getCurrentBudget (); | 77 | int getCurrentBudget (); |
77 | int getCurrentLineItem (); | 78 | int getCurrentLineItem (); |
78 | int getBudgetIndex ( int budgetid ); | 79 | int getBudgetIndex ( int budgetid ); |
79 | int getLineItemIndex ( int lineitemid ); | 80 | int getLineItemIndex ( int lineitemid ); |
80 | void setLineItems (); | 81 | void setLineItems (); |
81 | 82 | ||
82 | private slots: | 83 | private slots: |
83 | void setCurrentBudget ( int index ); | 84 | void setCurrentBudget ( int index ); |
84 | void setCurrentLineItem ( int index ); | 85 | void setCurrentLineItem ( int index ); |
85 | 86 | ||
86 | private: | 87 | private: |
87 | bool dateedited; | 88 | bool dateedited; |
88 | int index, currentbudget, currentlineitem; | 89 | int index, currentbudget, currentlineitem; |
89 | QString transactiondescription; | 90 | QString transactiondescription; |
90 | QStringList *budgetnameslist, *budgetidslist; | 91 | QStringList *budgetnameslist, *budgetidslist; |
91 | QStringList lineitemslist, lineitemidslist; | 92 | QStringList lineitemslist, lineitemidslist; |
92 | 93 | ||
93 | }; | 94 | }; |
94 | 95 | ||
95 | #endif | 96 | #endif |