00001 #ifndef TRANSFERDIALOG_H 00002 #define TRANSFERDIALOG_H 00003 00004 #include <qdialog.h> 00005 #include <qlayout.h> 00006 #include <qlineedit.h> 00007 #include <qpushbutton.h> 00008 #include <qcheckbox.h> 00009 #include <qhbox.h> 00010 #include <qlabel.h> 00011 00012 #include "preferences.h" 00013 #include "account.h" 00014 00015 class TransferDialog : public QDialog 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 TransferDialog ( QWidget *parent, int fromaccountid, int toaccountid ); 00021 00022 QLabel *fromaccountlabel; 00023 QLabel *fromaccount; 00024 00025 QLabel *toaccountlabel; 00026 QLabel *toaccount; 00027 00028 QLabel *datelabel; 00029 00030 QHBox *datebox; 00031 QLineEdit *date; 00032 QPushButton *datebutton; 00033 00034 QLabel *amounttlabel; 00035 00036 QHBox *amountbox; 00037 QLineEdit *amount; 00038 QPushButton *calculatorbutton; 00039 00040 QCheckBox *clearedcheckbox; 00041 00042 QBoxLayout *layout; 00043 00044 bool getDateEdited (); 00045 00046 public slots: 00047 00048 void showCalendar (); 00049 void showCalculator (); 00050 int getDay (); 00051 int getMonth (); 00052 int getYear (); 00053 00054 private: 00055 00056 int fromaccountid; 00057 int toaccountid; 00058 int year, month, day; 00059 bool dateedited; 00060 }; 00061 00062 #endif
1.4.2