Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ProjectDialog.h

Go to the documentation of this file.
00001 //LabPlot : ProjectDialog.h
00002 
00003 #ifndef PROJECTDIALOG_H
00004 #define PROJECTDIALOG_H
00005 
00006 #include <qfont.h>
00007 #include <qcheckbox.h>
00008 #include <kdeversion.h>
00009 #if KDE_VERSION > 0x030104
00010 #include <kdatetimewidget.h>
00011 #endif
00012 #include "Worksheet.h"
00013 #include "Dialog.h"
00014 
00015 class ProjectDialog: public Dialog
00016 {
00017         Q_OBJECT
00018 public:
00019         ProjectDialog(MainWin *mw, const char *name);
00020 public slots:
00021         QString Title() { return titlele->text(); }
00022         void setTitle(QString t) { titlele->setText(t); }
00023         QString Author() { return authorle->text(); }
00024         void setAuthor(QString t) { authorle->setText(t); }
00025         QDateTime Created() { 
00026 #if KDE_VERSION > 0x030104
00027                 return created->dateTime(); 
00028 #endif
00029                 return QDateTime::currentDateTime();
00030         }
00031         void setCreated(QDateTime dt) { 
00032 #if KDE_VERSION > 0x030104
00033                 created->setDateTime(dt); 
00034 #endif
00035         }       
00036         QDateTime Modified() { 
00037 #if KDE_VERSION > 0x030104
00038                 return modified->dateTime(); 
00039 #endif
00040                 return QDateTime::currentDateTime();
00041         }
00042         void setModified(QDateTime dt) { 
00043 #if KDE_VERSION > 0x030104
00044                 modified->setDateTime(dt); 
00045 #endif
00046         }       
00047         QString Comment() { return commentle->text(); }
00048         void setComment(QString t) { commentle->setText(t); }
00049 
00050         void Apply() { apply_clicked(); }
00051 private:
00052         Project *project;
00053         KLineEdit *titlele, *authorle, *commentle;
00054 #if KDE_VERSION > 0x030104
00055         KDateTimeWidget *created, *modified;
00056 #endif
00057 private slots:
00058         void ok_clicked() { apply_clicked(); accept(); }
00059         void apply_clicked();
00060 };
00061 
00062 #endif //PROJECTDIALOG_H

Generated on Sun Apr 2 02:05:09 2006 for LabPlot by  doxygen 1.4.4