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/budgetdisplay.h | |
parent | 2894d0b14c0b3efa3ce259214b5aa597a6abfed1 (diff) | |
download | opie-4593e3cf4eca4867e34b3220007c24523cf642b6.zip opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.gz opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/apps/qashmoney/budgetdisplay.h') (more/less context) (show whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/budgetdisplay.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/budgetdisplay.h b/noncore/apps/qashmoney/budgetdisplay.h new file mode 100755 index 0000000..25e952a --- a/dev/null +++ b/noncore/apps/qashmoney/budgetdisplay.h | |||
@@ -0,0 +1,85 @@ | |||
1 | #ifndef BUDGETDISPLAY_H | ||
2 | #define BUDGETDISPLAY_H | ||
3 | |||
4 | #include <qlistview.h> | ||
5 | #include <qlineedit.h> | ||
6 | #include <qpushbutton.h> | ||
7 | #include <qcombobox.h> | ||
8 | #include <qlayout.h> | ||
9 | #include <qlabel.h> | ||
10 | #include <qstringlist.h> | ||
11 | #include <qdatetime.h> | ||
12 | #include <qpe/qpemenubar.h> | ||
13 | #include <qpopupmenu.h> | ||
14 | #include <qhbox.h> | ||
15 | |||
16 | #include "currency.h" | ||
17 | |||
18 | class BudgetDisplay : public QWidget | ||
19 | { | ||
20 | Q_OBJECT | ||
21 | |||
22 | public: | ||
23 | BudgetDisplay ( QWidget *parent ); | ||
24 | |||
25 | QPEMenuBar *menu; | ||
26 | QPopupMenu *budgetmenu; | ||
27 | QPopupMenu *lineitemsmenu; | ||
28 | QPopupMenu *datemenu; | ||
29 | |||
30 | QHBox *firstline; | ||
31 | QHBox *secondline; | ||
32 | |||
33 | QLabel *budgeted; | ||
34 | QLabel *actual; | ||
35 | QLabel *date; | ||
36 | |||
37 | QLineEdit *budgetname; | ||
38 | QLineEdit *description; | ||
39 | Currency *currencybox; | ||
40 | |||
41 | QLineEdit *lineitemname; | ||
42 | QLineEdit *lineitemamount; | ||
43 | QComboBox *lineitemtime; | ||
44 | |||
45 | QListView *listview; | ||
46 | QComboBox *budgetbox; | ||
47 | QComboBox *budgetview; | ||
48 | |||
49 | QBoxLayout *layout; | ||
50 | |||
51 | int getIDColumn (); | ||
52 | |||
53 | public slots: | ||
54 | void displayBudgetNames (); | ||
55 | void displayLineItems (); | ||
56 | void updateBudgetInformation (); | ||
57 | |||
58 | private slots: | ||
59 | void saveColumnSize ( int column, int oldsize, int newsize ); | ||
60 | void newBudget (); | ||
61 | void deleteBudget (); | ||
62 | void setCurrentBudget ( int ); | ||
63 | void setCurrentView ( int ); | ||
64 | void showCalendar (); | ||
65 | void newLineItem (); | ||
66 | void deleteLineItem (); | ||
67 | void checkBudgets (); | ||
68 | void editBudget (); | ||
69 | void editLineItem (); | ||
70 | void constructBudgetWindow (); | ||
71 | void constructLineItemWindow (); | ||
72 | |||
73 | private: | ||
74 | QStringList *names; | ||
75 | QStringList *ids; | ||
76 | int currentbudget, year, month, day; | ||
77 | QDate newDate; | ||
78 | QString totalbudget, totalactual; | ||
79 | QString datelabel; | ||
80 | QDialog *nb; | ||
81 | QDialog *newlineitem; | ||
82 | }; | ||
83 | |||
84 | #endif // BUDGETDISPLAY_H | ||
85 | |||