21#ifndef _KTIMERDIALOG_H_
22#define _KTIMERDIALOG_H_
24#include <kdialogbase.h>
71 const char *name=
nullptr,
bool modal=
true,
72 const TQString &caption=TQString::null,
73 int buttonMask=Ok|Apply|Cancel, ButtonCode defaultButton=Ok,
75 const KGuiItem &user1=KGuiItem(),
76 const KGuiItem &user2=KGuiItem(),
77 const KGuiItem &user3=KGuiItem() );
138 void slotUpdateTime(
bool update =
true );
143 void slotInternalTimeout();
152 TQTimer *updateTimer;
153 int msecRemaining, updateInterval, msecTotal;
155 ButtonCode buttonOnTimeout;
159 TQProgressBar *timerProgress;
163 class KTimerDialogPrivate;
164 KTimerDialogPrivate *d;
Provides a dialog that is only available for a specified amount of time, and reports the time remaini...
~KTimerDialog()
Destructor.
int exec()
Execute the dialog modally - see.
void setTimeoutButton(ButtonCode newButton)
Sets the ButtonCode to determine which button will be activated once the timer times out.
virtual void show()
Execute the dialog modelessly - see.
void setMainWidget(TQWidget *widget)
Overridden function which is used to set the main widget of the dialog.
int timerStyle() const
Retrieves the current TimerStyle.
void timerTimeout()
Signal which is emitted once the timer has timed out.
void setRefreshInterval(int msec)
Set the refresh interval for the timer progress.
void setTimerStyle(TimerStyle newStyle)
Sets the TimerStyle.
int timeoutButton() const
Retrieves the ButtonCode which will be activated once the timer times out.