summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/datepicker.h
authorallenforsythe <allenforsythe>2003-05-04 22:02:48 (UTC)
committer allenforsythe <allenforsythe>2003-05-04 22:02:48 (UTC)
commit4593e3cf4eca4867e34b3220007c24523cf642b6 (patch) (side-by-side diff)
treebd8071834dec2a5008b1b270c7953f5cfd65754d /noncore/apps/qashmoney/datepicker.h
parent2894d0b14c0b3efa3ce259214b5aa597a6abfed1 (diff)
downloadopie-4593e3cf4eca4867e34b3220007c24523cf642b6.zip
opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.gz
opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.bz2
Initial revision
Diffstat (limited to 'noncore/apps/qashmoney/datepicker.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/datepicker.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/datepicker.h b/noncore/apps/qashmoney/datepicker.h
new file mode 100755
index 0000000..67e63e9
--- a/dev/null
+++ b/noncore/apps/qashmoney/datepicker.h
@@ -0,0 +1,60 @@
+#ifndef DATEPICKER_H
+#define DATEPICKER_H
+
+#include <qdialog.h>
+#include <qlabel.h>
+#include <qdatetime.h>
+#include <qcombobox.h>
+#include <qlayout.h>
+
+class DatePicker : public QDialog
+
+ {
+ Q_OBJECT
+
+ public:
+ QLabel *daylabel;
+ QComboBox *daybox;
+
+ QLabel *monthlabel;
+ QComboBox *monthbox;
+
+ DatePicker ( QDate entrydate );
+ int getDay ();
+ int getMonth ();
+ int getYear ();
+
+ private slots:
+ void setDay ( int );
+ void setMonth ( int );
+ void setYear ( int );
+
+ private:
+ void displayDays ( QComboBox *daybox );
+ void displayMonths ( QComboBox *monthbox );
+ void displayYears ( QComboBox *yearbox );
+
+ QDate date;
+
+ QLabel *yearlabel;
+ QComboBox *yearbox;
+
+ QGridLayout *layout;
+
+ int day, month, year;
+
+ };
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+