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 <tqframe.h>
00025
00026 #include "timeperiod.h"
00027 #include "timeselector.h"
00028 class TQBoxLayout;
00029 class TQWidgetStack;
00030 class CheckBox;
00031
00032
00033 class LateCancelSelector : public TQFrame
00034 {
00035 Q_OBJECT
00036 TQ_OBJECT
00037 public:
00038 LateCancelSelector(bool allowHourMinute, TQWidget* parent, const char* name = 0);
00039 int minutes() const;
00040 void setMinutes(int Minutes, bool dateOnly, TimePeriod::Units defaultUnits);
00041 void setDateOnly(bool dateOnly);
00042 void showAutoClose(bool show);
00043 bool isAutoClose() const;
00044 void setAutoClose(bool autoClose);
00045 bool isReadOnly() const { return mReadOnly; }
00046 void setReadOnly(bool);
00047
00048 static TQString i18n_CancelIfLate();
00049 static TQString i18n_n_CancelIfLate();
00050 static TQString i18n_AutoCloseWin();
00051 static TQString i18n_AutoCloseWinLC();
00052 static TQString i18n_i_AutoCloseWinLC();
00053
00054 private slots:
00055 void slotToggled(bool);
00056
00057 private:
00058 TQBoxLayout* mLayout;
00059 TQWidgetStack* mStack;
00060 TQFrame* mCheckboxFrame;
00061 CheckBox* mCheckbox;
00062 TQFrame* mTimeSelectorFrame;
00063 TimeSelector* mTimeSelector;
00064 CheckBox* mAutoClose;
00065 bool mDateOnly;
00066 bool mReadOnly;
00067 bool mAutoCloseShown;
00068 };
00069
00070 #endif // LATECANCEL_H
|