24 #include <tqpushbutton.h>
25 #include <kdialogbase.h>
35 class RepetitionButton : public TQPushButton
40 RepetitionButton( const TQString& caption, bool waitForInitialisation, TQWidget* parent, const char* name = 0);
41 void set( int interval, int count);
42 void set( int interval, int count, bool dateOnly, int maxDuration = -1);
43 void initialise( int interval, int count, bool dateOnly, int maxDuration = -1);
44 void activate() { activate( false); }
45 int interval() const { return mInterval; }
46 int count() const { return mCount; }
47 virtual void setReadOnly( bool ro) { mReadOnly = ro; }
48 virtual bool isReadOnly() const { return mReadOnly; }
51 void needsInitialisation();
55 void slotPressed() { activate(mWaitForInit); }
58 void activate( bool waitForInitialisation);
61 RepetitionDlg* mDialog;
71 class RepetitionDlg : public KDialogBase
76 RepetitionDlg( const TQString& caption, bool readOnly, TQWidget* parent = 0, const char* name = 0);
77 void setReadOnly( bool);
78 void set( int interval, int count, bool dateOnly = false, int maxDuration = -1);
84 void intervalChanged( int);
85 void countChanged( int);
86 void durationChanged( int);
87 void repetitionToggled( bool);
90 TimeSelector* mTimeSelector;
91 ButtonGroup* mButtonGroup;
92 RadioButton* mCountButton;
94 RadioButton* mDurationButton;
95 TimePeriod* mDuration;
|