summaryrefslogtreecommitdiffstats
path: root/ksysv/TopWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksysv/TopWidget.cpp')
-rw-r--r--ksysv/TopWidget.cpp134
1 files changed, 67 insertions, 67 deletions
diff --git a/ksysv/TopWidget.cpp b/ksysv/TopWidget.cpp
index 04e439c..88c5c2b 100644
--- a/ksysv/TopWidget.cpp
+++ b/ksysv/TopWidget.cpp
@@ -139,27 +139,27 @@ KSVTopLevel::KSVTopLevel()
setCentralWidget(mView);
// ensure that the statusbar gets updated correctly
- connect (mView, TQT_SIGNAL(sigRun(const TQString&)), this, TQT_SLOT(slotUpdateRunning(const TQString&)));
- connect (mView, TQT_SIGNAL(sigStop()), statusBar(), TQT_SLOT(clear()));
- connect (mView, TQT_SIGNAL(cannotGenerateNumber()), this, TQT_SLOT(catchCannotGenerateNumber()));
- connect (mView, TQT_SIGNAL(undoAction(KSVAction*)), this, TQT_SLOT(pushUndoAction(KSVAction*)));
- connect (mView, TQT_SIGNAL(logChanged()), this, TQT_SLOT(enableLogActions()));
+ connect (mView, TQ_SIGNAL(sigRun(const TQString&)), this, TQ_SLOT(slotUpdateRunning(const TQString&)));
+ connect (mView, TQ_SIGNAL(sigStop()), statusBar(), TQ_SLOT(clear()));
+ connect (mView, TQ_SIGNAL(cannotGenerateNumber()), this, TQ_SLOT(catchCannotGenerateNumber()));
+ connect (mView, TQ_SIGNAL(undoAction(KSVAction*)), this, TQ_SLOT(pushUndoAction(KSVAction*)));
+ connect (mView, TQ_SIGNAL(logChanged()), this, TQ_SLOT(enableLogActions()));
// cut & copy
- connect (mView, TQT_SIGNAL (newOrigin()),
- this, TQT_SLOT (dispatchEdit()));
+ connect (mView, TQ_SIGNAL (newOrigin()),
+ this, TQ_SLOT (dispatchEdit()));
// undo
- connect (mUndoList, TQT_SIGNAL(empty()), this, TQT_SLOT(disableUndo()));
- connect (mUndoList, TQT_SIGNAL(filled()), this, TQT_SLOT(enableUndo()));
+ connect (mUndoList, TQ_SIGNAL(empty()), this, TQ_SLOT(disableUndo()));
+ connect (mUndoList, TQ_SIGNAL(filled()), this, TQ_SLOT(enableUndo()));
// and redo
- connect (mRedoList, TQT_SIGNAL(empty()), this, TQT_SLOT(disableRedo()));
- connect (mRedoList, TQT_SIGNAL(filled()), this, TQT_SLOT(enableRedo()));
+ connect (mRedoList, TQ_SIGNAL(empty()), this, TQ_SLOT(disableRedo()));
+ connect (mRedoList, TQ_SIGNAL(filled()), this, TQ_SLOT(enableRedo()));
// paste
- connect (kapp->clipboard(), TQT_SIGNAL (dataChanged()),
- this, TQT_SLOT (dispatchEdit()));
+ connect (kapp->clipboard(), TQ_SIGNAL (dataChanged()),
+ this, TQ_SLOT (dispatchEdit()));
// init mView according to saved preferences
slotReadConfig();
@@ -186,23 +186,23 @@ KSVTopLevel::~KSVTopLevel()
void KSVTopLevel::initTools()
{
- connect (mStartDlg, TQT_SIGNAL(doAction(const TQString&)),
- mView, TQT_SLOT(startService(const TQString&)));
- connect (mStopDlg, TQT_SIGNAL(doAction(const TQString&)),
- mView, TQT_SLOT(editService(const TQString&)));
- connect (mRestartDlg, TQT_SIGNAL(doAction(const TQString&)),
- mView, TQT_SLOT(restartService(const TQString&)));
- connect (mEditDlg, TQT_SIGNAL(doAction(const TQString&)),
- mView, TQT_SLOT(editService(const TQString&)));
-
- connect (mStartDlg, TQT_SIGNAL (display (bool)),
- this, TQT_SLOT (dispatchStartService (bool)));
- connect (mStopDlg, TQT_SIGNAL (display (bool)),
- this, TQT_SLOT (dispatchStopService (bool)));
- connect (mRestartDlg, TQT_SIGNAL (display (bool)),
- this, TQT_SLOT (dispatchRestartService (bool)));
- connect (mEditDlg, TQT_SIGNAL (display (bool)),
- this, TQT_SLOT (dispatchEditService (bool)));
+ connect (mStartDlg, TQ_SIGNAL(doAction(const TQString&)),
+ mView, TQ_SLOT(startService(const TQString&)));
+ connect (mStopDlg, TQ_SIGNAL(doAction(const TQString&)),
+ mView, TQ_SLOT(editService(const TQString&)));
+ connect (mRestartDlg, TQ_SIGNAL(doAction(const TQString&)),
+ mView, TQ_SLOT(restartService(const TQString&)));
+ connect (mEditDlg, TQ_SIGNAL(doAction(const TQString&)),
+ mView, TQ_SLOT(editService(const TQString&)));
+
+ connect (mStartDlg, TQ_SIGNAL (display (bool)),
+ this, TQ_SLOT (dispatchStartService (bool)));
+ connect (mStopDlg, TQ_SIGNAL (display (bool)),
+ this, TQ_SLOT (dispatchStopService (bool)));
+ connect (mRestartDlg, TQ_SIGNAL (display (bool)),
+ this, TQ_SLOT (dispatchRestartService (bool)));
+ connect (mEditDlg, TQ_SIGNAL (display (bool)),
+ this, TQ_SLOT (dispatchEditService (bool)));
}
@@ -211,48 +211,48 @@ void KSVTopLevel::initActions ()
TDEActionCollection* coll = actionCollection();
// setup File menu
- mFileRevert = KStdAction::revert (this, TQT_SLOT (slotClearChanges()), coll);
+ mFileRevert = KStdAction::revert (this, TQ_SLOT (slotClearChanges()), coll);
mFileRevert->setText (i18n("Re&vert Configuration"));
- mFileLoad = KStdAction::open (this, TQT_SLOT (load()), coll);
+ mFileLoad = KStdAction::open (this, TQ_SLOT (load()), coll);
mFileLoad->setText (i18n ("&Open..."));
- mFileSave = KStdAction::save(this, TQT_SLOT(slotAcceptChanges()), coll);
+ mFileSave = KStdAction::save(this, TQ_SLOT(slotAcceptChanges()), coll);
mFileSave->setText (i18n("&Save Configuration"));
- mFileSaveAs = KStdAction::saveAs (this, TQT_SLOT (saveAs ()), coll);
+ mFileSaveAs = KStdAction::saveAs (this, TQ_SLOT (saveAs ()), coll);
- mFileSaveLog = KStdAction::save (this, TQT_SLOT(slotSaveLog()), coll, "ksysv_save_log");
+ mFileSaveLog = KStdAction::save (this, TQ_SLOT(slotSaveLog()), coll, "ksysv_save_log");
mFileSaveLog->setText (i18n("Save &Log..."));
mFileSaveLog->setShortcut (Key_L+CTRL);
mFileSaveLog->setEnabled (false);
// disabled due to complexity
- // mFilePrint = KStdAction::print (this, TQT_SLOT (print()), coll);
+ // mFilePrint = KStdAction::print (this, TQ_SLOT (print()), coll);
- mFilePrintLog = KStdAction::print(this, TQT_SLOT(printLog()), coll, "ksysv_print_log");
+ mFilePrintLog = KStdAction::print(this, TQ_SLOT(printLog()), coll, "ksysv_print_log");
mFilePrintLog->setText( i18n("&Print Log..."));
mFilePrintLog->setEnabled (false);
- mFileQuit = KStdAction::quit(this, TQT_SLOT(close()), coll);
+ mFileQuit = KStdAction::quit(this, TQ_SLOT(close()), coll);
// setup Edit menu
- mEditUndo = KStdAction::undo(this, TQT_SLOT(editUndo()), coll);
+ mEditUndo = KStdAction::undo(this, TQ_SLOT(editUndo()), coll);
mEditUndo->setEnabled (false);
- mEditRedo = KStdAction::redo(this, TQT_SLOT(editRedo()), coll);
+ mEditRedo = KStdAction::redo(this, TQ_SLOT(editRedo()), coll);
mEditUndo->setEnabled (false);
- mEditCut = KStdAction::cut(this, TQT_SLOT(editCut()), coll);
- mEditCopy = KStdAction::copy(this, TQT_SLOT(editCopy()), coll);
- mEditPaste = KStdAction::paste(this, TQT_SLOT(editPaste()), coll);
- mPasteAppend = KStdAction::paste (this, TQT_SLOT (pasteAppend()),
+ mEditCut = KStdAction::cut(this, TQ_SLOT(editCut()), coll);
+ mEditCopy = KStdAction::copy(this, TQ_SLOT(editCopy()), coll);
+ mEditPaste = KStdAction::paste(this, TQ_SLOT(editPaste()), coll);
+ mPasteAppend = KStdAction::paste (this, TQ_SLOT (pasteAppend()),
coll, "ksysv_paste_append");
mEditProperties = new TDEAction (i18n("P&roperties"), 0,
- this, TQT_SLOT(properties()),
+ this, TQ_SLOT(properties()),
coll, "ksysv_properties");
mOpenDefault = new TDEAction (i18n ("&Open"), 0,
- this, TQT_SLOT (editService()),
+ this, TQ_SLOT (editService()),
coll, "ksysv_open_service");
mOpenWith = new TDEActionMenu (i18n ("Open &With"), coll, "ksysv_open_with");
@@ -260,30 +260,30 @@ void KSVTopLevel::initActions ()
// setup Settings menu
createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true);
- KStdAction::keyBindings (this, TQT_SLOT(configureKeys()), coll);
- KStdAction::configureToolbars (this, TQT_SLOT(configureToolbars()), coll);
- KStdAction::saveOptions(this, TQT_SLOT(saveOptions()), coll);
- KStdAction::preferences(this, TQT_SLOT(slotShowConfig()), coll);
+ KStdAction::keyBindings (this, TQ_SLOT(configureKeys()), coll);
+ KStdAction::configureToolbars (this, TQ_SLOT(configureToolbars()), coll);
+ KStdAction::saveOptions(this, TQ_SLOT(saveOptions()), coll);
+ KStdAction::preferences(this, TQ_SLOT(slotShowConfig()), coll);
mOptionsToggleLog = new TDEToggleAction (i18n("Show &Log"), "toggle_log", 0,
- this, TQT_SLOT (toggleLog()),
+ this, TQ_SLOT (toggleLog()),
coll, "ksysv_toggle_log");
mOptionsToggleLog->setCheckedState(i18n("Hide &Log"));
// setup Tools menu
mToolsStartService = new TDEToggleAction (i18n("&Start Service..."), "ksysv_start", 0,
- mStartDlg, TQT_SLOT (toggle()),
+ mStartDlg, TQ_SLOT (toggle()),
coll, "ksysv_start_service");
mToolsStopService = new TDEToggleAction (i18n("&Stop Service..."), "ksysv_stop", 0,
- mStopDlg, TQT_SLOT (toggle()),
+ mStopDlg, TQ_SLOT (toggle()),
coll, "ksysv_stop_service");
mToolsRestartService = new TDEToggleAction (i18n("&Restart Service..."), 0,
- mRestartDlg, TQT_SLOT (toggle()),
+ mRestartDlg, TQ_SLOT (toggle()),
coll, "ksysv_restart_service");
mToolsEditService = new TDEToggleAction (i18n("&Edit Service..."), 0,
- mEditDlg, TQT_SLOT (toggle()),
+ mEditDlg, TQ_SLOT (toggle()),
coll, "ksysv_edit_service");
createGUI(xmlFile());
@@ -393,7 +393,7 @@ void KSVTopLevel::initStatusBar()
TQHBox* visBox = new TQHBox (status, "visBox");
TQButtonGroup* group = new TQButtonGroup (this, "visButtonGroup");
group->hide();
- connect (group, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (toggleRunlevel (int)));
+ connect (group, TQ_SIGNAL (clicked (int)), this, TQ_SLOT (toggleRunlevel (int)));
TQWhatsThis::add (visBox, i18n ("<p>Click on the checkboxes to <strong>show</strong> or "\
"<strong>hide</strong> runlevels.</p> " \
@@ -416,8 +416,8 @@ void KSVTopLevel::initStatusBar()
TQWidget* strut = new TQWidget (authIconBox, "Strut");
strut->setFixedWidth (KDialog::spacingHint());
mAuth = new RunlevelAuthIcon (mConfig->scriptPath(), mConfig->runlevelPath(), authIconBox);
- connect (mAuth, TQT_SIGNAL (authChanged(bool)), mView, TQT_SLOT(multiplexEnabled(bool)));
- connect (mAuth, TQT_SIGNAL (authChanged(bool)), this, TQT_SLOT(writingEnabled(bool)));
+ connect (mAuth, TQ_SIGNAL (authChanged(bool)), mView, TQ_SLOT(multiplexEnabled(bool)));
+ connect (mAuth, TQ_SIGNAL (authChanged(bool)), this, TQ_SLOT(writingEnabled(bool)));
TQWhatsThis::add (authIconBox, i18n ("<p>If the lock is closed <img src=\"user|ksysv_locked\"/>, "\
"you don't have the right " \
@@ -444,17 +444,17 @@ void KSVTopLevel::slotShowConfig()
{
mPreferences = KSVPreferences::self();
- connect (mPreferences, TQT_SIGNAL (updateColors ()),
- this, TQT_SLOT (updateColors ()));
+ connect (mPreferences, TQ_SIGNAL (updateColors ()),
+ this, TQ_SLOT (updateColors ()));
- connect (mPreferences, TQT_SIGNAL (updateServicesPath ()),
- this, TQT_SLOT (updateServicesPath ()));
+ connect (mPreferences, TQ_SIGNAL (updateServicesPath ()),
+ this, TQ_SLOT (updateServicesPath ()));
- connect (mPreferences, TQT_SIGNAL (updateRunlevelsPath ()),
- this, TQT_SLOT (updateRunlevelsPath ()));
+ connect (mPreferences, TQ_SIGNAL (updateRunlevelsPath ()),
+ this, TQ_SLOT (updateRunlevelsPath ()));
- connect (mPreferences, TQT_SIGNAL (updateFonts ()),
- mView, TQT_SLOT (repaintRunlevels ()));
+ connect (mPreferences, TQ_SIGNAL (updateFonts ()),
+ mView, TQ_SLOT (repaintRunlevels ()));
}
// mPreferences->setInitialSize (TQSize (400,300), true);
@@ -981,7 +981,7 @@ void KSVTopLevel::configureKeys ()
void KSVTopLevel::configureToolbars ()
{
KEditToolbar dlg(filteredActions(), xmlFile(), true, this);
- connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() ));
+ connect(&dlg, TQ_SIGNAL( newToolbarConfig() ), this, TQ_SLOT( slotNewToolbarConfig() ));
dlg.exec();
}