generalinfopage.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Lynn Hazan                                      *
00003  *   lynn.hazan@myrealbox.com                                              *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef GENERALINFOPAGE_H
00021 #define GENERALINFOPAGE_H
00022 
00023 //include files for the application
00024 #include <generalinfolayout.h>
00025 
00026 // include files for QT
00027 #include <qwidget.h>
00028 #include <qdatetime.h>
00029 #include <qlineedit.h>
00030 
00031 // include files for KDE
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

Generated on Sat Sep 15 16:04:45 2007 for ndmanager.kdevelop by  doxygen 1.5.1