kalarm
latecancel.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef LATECANCEL_H
00022 #define LATECANCEL_H
00023
00024 #include <qframe.h>
00025
00026 #include "timeperiod.h"
00027 #include "timeselector.h"
00028 class QBoxLayout;
00029 class QWidgetStack;
00030 class CheckBox;
00031
00032
00033 class LateCancelSelector : public QFrame
00034 {
00035 Q_OBJECT
00036 public:
00037 LateCancelSelector(bool allowHourMinute, QWidget* parent, const char* name = 0);
00038 int minutes() const;
00039 void setMinutes(int Minutes, bool dateOnly, TimePeriod::Units defaultUnits);
00040 void setDateOnly(bool dateOnly);
00041 void showAutoClose(bool show);
00042 bool isAutoClose() const;
00043 void setAutoClose(bool autoClose);
00044 bool isReadOnly() const { return mReadOnly; }
00045 void setReadOnly(bool);
00046
00047 static QString i18n_CancelIfLate();
00048 static QString i18n_n_CancelIfLate();
00049 static QString i18n_AutoCloseWin();
00050 static QString i18n_AutoCloseWinLC();
00051 static QString i18n_i_AutoCloseWinLC();
00052
00053 private slots:
00054 void slotToggled(bool);
00055
00056 private:
00057 QBoxLayout* mLayout;
00058 QWidgetStack* mStack;
00059 QFrame* mCheckboxFrame;
00060 CheckBox* mCheckbox;
00061 QFrame* mTimeSelectorFrame;
00062 TimeSelector* mTimeSelector;
00063 CheckBox* mAutoClose;
00064 bool mDateOnly;
00065 bool mReadOnly;
00066 bool mAutoCloseShown;
00067 };
00068
00069 #endif // LATECANCEL_H
|