|
|
@ -118,13 +118,13 @@ TopLevel::TopLevel() : KSystemTray()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
startAct = new TDEAction(i18n("&Start"), "1rightarrow", 0,
|
|
|
|
startAct = new TDEAction(i18n("&Start"), "1rightarrow", 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(start()), actionCollection(), "start");
|
|
|
|
this, TQT_SLOT(start()), actionCollection(), "start");
|
|
|
|
stopAct = new TDEAction(i18n("Sto&p"), "cancel", 0,
|
|
|
|
stopAct = new TDEAction(i18n("Sto&p"), "cancel", 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(stop()), actionCollection(), "stop");
|
|
|
|
this, TQT_SLOT(stop()), actionCollection(), "stop");
|
|
|
|
confAct = new TDEAction(i18n("&Configure..."), "configure", 0,
|
|
|
|
confAct = new TDEAction(i18n("&Configure..."), "configure", 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(config()), actionCollection(), "configure");
|
|
|
|
this, TQT_SLOT(config()), actionCollection(), "configure");
|
|
|
|
anonAct = new TDEAction(i18n("&Anonymous..."), 0, 0,
|
|
|
|
anonAct = new TDEAction(i18n("&Anonymous..."), 0, 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(anonymous()), actionCollection(), "anonymous");
|
|
|
|
this, TQT_SLOT(anonymous()), actionCollection(), "anonymous");
|
|
|
|
// TDEAction *quitAct = actionCollection()->action("file_quit");
|
|
|
|
// TDEAction *quitAct = actionCollection()->action("file_quit");
|
|
|
|
|
|
|
|
|
|
|
|
// create app menu (displayed on right-click)
|
|
|
|
// create app menu (displayed on right-click)
|
|
|
@ -452,7 +452,7 @@ void TopLevel::start()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// else both are already defined by dialog handler
|
|
|
|
// else both are already defined by dialog handler
|
|
|
|
|
|
|
|
|
|
|
|
TQT_TQOBJECT(this)->killTimers();
|
|
|
|
this->killTimers();
|
|
|
|
startTimer(1000); // 1000ms = 1s (sufficient resolution)
|
|
|
|
startTimer(1000); // 1000ms = 1s (sufficient resolution)
|
|
|
|
|
|
|
|
|
|
|
|
running = true;
|
|
|
|
running = true;
|
|
|
@ -466,7 +466,7 @@ void TopLevel::start()
|
|
|
|
/* menu-slot: "stop" selected in menu */
|
|
|
|
/* menu-slot: "stop" selected in menu */
|
|
|
|
void TopLevel::stop()
|
|
|
|
void TopLevel::stop()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQT_TQOBJECT(this)->killTimers();
|
|
|
|
this->killTimers();
|
|
|
|
|
|
|
|
|
|
|
|
running = false;
|
|
|
|
running = false;
|
|
|
|
ready = false;
|
|
|
|
ready = false;
|
|
|
|