kstars
timebox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef TIMEBOX_H
00019 #define TIMEBOX_H
00020
00021 #include <qhbox.h>
00022 #include <qlineedit.h>
00023 #include <qstring.h>
00024
00025 class QTime;
00026 class ExtDate;
00027
00037 class timeBox : public QLineEdit {
00038 public:
00046 timeBox(QWidget *parent, const char *n, bool tt=TRUE);
00047
00048 ~timeBox();
00049
00055 void showTime(QTime t);
00056
00062 void showDate(ExtDate t);
00063
00067 QTime createTime(bool *ok=0);
00068
00072 ExtDate createDate(bool *ok=0);
00073
00074
00078 void setEntry(QString s) { setText(s); }
00079
00084 bool timeType(void) const {return timet;}
00085
00089 void clearFields (void) { setEntry(""); }
00090
00091 private:
00092 bool timet;
00093 };
00094
00095 #endif