00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GENERALINFOPAGE_H
00021 #define GENERALINFOPAGE_H
00022
00023
00024 #include <generalinfolayout.h>
00025
00026
00027 #include <qwidget.h>
00028 #include <qdatetime.h>
00029 #include <qlineedit.h>
00030
00031
00032 #include <kdatepicker.h>
00033 #include <ktextedit.h>
00034
00038 class GeneralInfoPage : public GeneralInfoLayout
00039 {
00040 Q_OBJECT
00041 public:
00042 GeneralInfoPage(QWidget *parent = 0, const char *name = 0);
00043 ~GeneralInfoPage();
00044
00046 inline void setDate(QDate date){
00047 kDatePicker->setDate(date);
00048 };
00049
00051 inline void setExperimenters(QString experimenters){
00052 experimentersLineEdit->setText(experimenters);
00053 };
00054
00056 inline void setDescription(QString description){
00057 descriptionTextEdit->setText(description);
00058 };
00059
00061 inline void setNotes(QString notes){
00062 notesTextEdit->setText(notes);
00063 };
00064
00065
00067 inline QDate getDate(){
00068 return kDatePicker->date();
00069 };
00070
00072 inline QString getExperimenters(){
00073 return experimentersLineEdit->text();
00074 };
00075
00077 inline QString getDescription(){
00078 return descriptionTextEdit->text();
00079 };
00080
00082 inline QString getNotes(){
00083 return notesTextEdit->text();
00084 };
00085
00087 inline bool isModified()const{return modified;};
00088
00090 inline void initialisationOver(){isInit = false;}
00091
00092 public slots:
00093
00095 inline void propertyModified(){if(!isInit) modified = true;};
00096
00098 inline void resetModificationStatus(){modified = false;};
00099
00100 private:
00101 bool modified;
00102 bool isInit;
00103 };
00104
00105 #endif