|
|
@ -45,7 +45,6 @@ countDownDialog::countDownDialog( int timeout, TQWidget *parent, const char *nam
|
|
|
|
:countdown_Dialog(parent, name, false, TQt::WStyle_StaysOnTop | TQt::WDestructiveClose )
|
|
|
|
:countdown_Dialog(parent, name, false, TQt::WStyle_StaysOnTop | TQt::WDestructiveClose )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kdDebugFuncIn(trace);
|
|
|
|
kdDebugFuncIn(trace);
|
|
|
|
chancel = false;
|
|
|
|
|
|
|
|
remaining = timeout;
|
|
|
|
remaining = timeout;
|
|
|
|
timeOut = timeout;
|
|
|
|
timeOut = timeout;
|
|
|
|
|
|
|
|
|
|
|
@ -61,7 +60,7 @@ countDownDialog::countDownDialog( int timeout, TQWidget *parent, const char *nam
|
|
|
|
countDownDialog::~countDownDialog() {
|
|
|
|
countDownDialog::~countDownDialog() {
|
|
|
|
kdDebugFuncIn(trace);
|
|
|
|
kdDebugFuncIn(trace);
|
|
|
|
// no need to delete child widgets, TQt does it all for us
|
|
|
|
// no need to delete child widgets, TQt does it all for us
|
|
|
|
emit dialogClosed(chancel);
|
|
|
|
emit dialogClosed(remaining > 0);
|
|
|
|
|
|
|
|
|
|
|
|
kdDebugFuncOut(trace);
|
|
|
|
kdDebugFuncOut(trace);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -140,7 +139,6 @@ void countDownDialog::pB_cancel_pressed() {
|
|
|
|
if (PROGRESS->isActive())
|
|
|
|
if (PROGRESS->isActive())
|
|
|
|
PROGRESS->stop();
|
|
|
|
PROGRESS->stop();
|
|
|
|
|
|
|
|
|
|
|
|
chancel = true;
|
|
|
|
|
|
|
|
close();
|
|
|
|
close();
|
|
|
|
|
|
|
|
|
|
|
|
kdDebugFuncOut(trace);
|
|
|
|
kdDebugFuncOut(trace);
|
|
|
@ -152,8 +150,6 @@ void countDownDialog::reject() {
|
|
|
|
if (PROGRESS->isActive())
|
|
|
|
if (PROGRESS->isActive())
|
|
|
|
PROGRESS->stop();
|
|
|
|
PROGRESS->stop();
|
|
|
|
|
|
|
|
|
|
|
|
chancel = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
countdown_Dialog::reject();
|
|
|
|
countdown_Dialog::reject();
|
|
|
|
|
|
|
|
|
|
|
|
kdDebugFuncOut(trace);
|
|
|
|
kdDebugFuncOut(trace);
|
|
|
@ -169,7 +165,6 @@ void countDownDialog::updateProgress() {
|
|
|
|
if (PROGRESS->isActive())
|
|
|
|
if (PROGRESS->isActive())
|
|
|
|
PROGRESS->stop();
|
|
|
|
PROGRESS->stop();
|
|
|
|
|
|
|
|
|
|
|
|
chancel = false;
|
|
|
|
|
|
|
|
close();
|
|
|
|
close();
|
|
|
|
} else if ( remaining > 0) {
|
|
|
|
} else if ( remaining > 0) {
|
|
|
|
int setTo = (int)((100.0/(float)timeOut)*(float)remaining);
|
|
|
|
int setTo = (int)((100.0/(float)timeOut)*(float)remaining);
|
|
|
|