summaryrefslogtreecommitdiffstats
path: root/ksysv
diff options
context:
space:
mode:
Diffstat (limited to 'ksysv')
-rw-r--r--ksysv/OldView.cpp176
-rw-r--r--ksysv/PreferencesDialog.cpp8
-rw-r--r--ksysv/Properties.cpp20
-rw-r--r--ksysv/RunlevelAuthIcon.cpp2
-rw-r--r--ksysv/SpinBox.cpp8
-rw-r--r--ksysv/TopWidget.cpp134
-rw-r--r--ksysv/kscroller.cpp8
-rw-r--r--ksysv/ksvconfigwizard.cpp4
-rw-r--r--ksysv/ksvdraglist.cpp4
9 files changed, 182 insertions, 182 deletions
diff --git a/ksysv/OldView.cpp b/ksysv/OldView.cpp
index e24b422..5825f6f 100644
--- a/ksysv/OldView.cpp
+++ b/ksysv/OldView.cpp
@@ -102,12 +102,12 @@ KSVContent::KSVContent (TDEPopupMenu* openWithMenu, KSVTopLevel* parent, const c
// watch services dir
KDirWatch* dirwatch = KDirWatch::self();
dirwatch->addDir (conf->scriptPath ());
- connect (dirwatch, TQT_SIGNAL (dirty (const TQString&)),
- this, TQT_SLOT (updateServicesAfterChange (const TQString&)));
- connect (dirwatch, TQT_SIGNAL (created (const TQString&)),
- this, TQT_SLOT (updateServicesAfterChange (const TQString&)));
- connect (dirwatch, TQT_SIGNAL (deleted (const TQString&)),
- this, TQT_SLOT (updateServicesAfterChange (const TQString&)));
+ connect (dirwatch, TQ_SIGNAL (dirty (const TQString&)),
+ this, TQ_SLOT (updateServicesAfterChange (const TQString&)));
+ connect (dirwatch, TQ_SIGNAL (created (const TQString&)),
+ this, TQ_SLOT (updateServicesAfterChange (const TQString&)));
+ connect (dirwatch, TQ_SIGNAL (deleted (const TQString&)),
+ this, TQ_SLOT (updateServicesAfterChange (const TQString&)));
setSizes(KSVContent::panningFactorToSplitter (conf->panningFactor()));
@@ -126,7 +126,7 @@ KSVContent::KSVContent (TDEPopupMenu* openWithMenu, KSVTopLevel* parent, const c
textDisplay->setStyleSheet (ksv::styleSheet());
// Open With... menu
- connect (mOpenWithMenu, TQT_SIGNAL (activated (int)), this, TQT_SLOT (openWith (int)));
+ connect (mOpenWithMenu, TQ_SIGNAL (activated (int)), this, TQ_SLOT (openWith (int)));
calcMinSize();
}
@@ -219,25 +219,25 @@ void KSVContent::initLList()
servL->setBuddy(scripts);
// doubleclick && return
- connect (scripts, TQT_SIGNAL(executed(TQListViewItem*)),
- this, TQT_SLOT(slotScriptProperties(TQListViewItem*)));
- connect (scripts, TQT_SIGNAL (returnPressed (TQListViewItem*)),
- this, TQT_SLOT (slotScriptProperties (TQListViewItem*)));
+ connect (scripts, TQ_SIGNAL(executed(TQListViewItem*)),
+ this, TQ_SLOT(slotScriptProperties(TQListViewItem*)));
+ connect (scripts, TQ_SIGNAL (returnPressed (TQListViewItem*)),
+ this, TQ_SLOT (slotScriptProperties (TQListViewItem*)));
// context menus
- connect (scripts, TQT_SIGNAL (contextMenu (TDEListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT (popupServicesMenu (TDEListView*, TQListViewItem*, const TQPoint&)));
+ connect (scripts, TQ_SIGNAL (contextMenu (TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQ_SLOT (popupServicesMenu (TDEListView*, TQListViewItem*, const TQPoint&)));
// for cut & copy
- connect (scripts, TQT_SIGNAL (newOrigin ()),
- this, TQT_SLOT (fwdOrigin ()));
+ connect (scripts, TQ_SIGNAL (newOrigin ()),
+ this, TQ_SLOT (fwdOrigin ()));
// for origin updates
- connect (scripts, TQT_SIGNAL (newOrigin (KSVDragList*)),
- this, TQT_SLOT (fwdOrigin (KSVDragList*)));
+ connect (scripts, TQ_SIGNAL (newOrigin (KSVDragList*)),
+ this, TQ_SLOT (fwdOrigin (KSVDragList*)));
trash = new KSVTrash(mScriptBox, "Trash");
- connect (trash, TQT_SIGNAL (undoAction (KSVAction*)), this, TQT_SLOT (fwdUndoAction (KSVAction*)));
+ connect (trash, TQ_SIGNAL (undoAction (KSVAction*)), this, TQ_SLOT (fwdUndoAction (KSVAction*)));
TQWhatsThis::add (trash,
i18n ("<p>You can drag services from a runlevel onto " \
"the <img src=\"small|trash\"/> <strong>trashcan</strong> to " \
@@ -290,21 +290,21 @@ void KSVContent::initLList()
rlL->setBuddy(startRL[i]);
// for cut'n'paste
- connect (startRL[i], TQT_SIGNAL (newOrigin ()),
- this, TQT_SLOT (fwdOrigin ()));
- connect (startRL[i], TQT_SIGNAL (newOrigin (KSVDragList*)),
- this, TQT_SLOT (fwdOrigin (KSVDragList*)));
-
- connect (stopRL[i], TQT_SIGNAL (newOrigin ()),
- this, TQT_SLOT (fwdOrigin ()));
- connect (stopRL[i], TQT_SIGNAL (newOrigin (KSVDragList*)),
- this, TQT_SLOT (fwdOrigin (KSVDragList*)));
+ connect (startRL[i], TQ_SIGNAL (newOrigin ()),
+ this, TQ_SLOT (fwdOrigin ()));
+ connect (startRL[i], TQ_SIGNAL (newOrigin (KSVDragList*)),
+ this, TQ_SLOT (fwdOrigin (KSVDragList*)));
+
+ connect (stopRL[i], TQ_SIGNAL (newOrigin ()),
+ this, TQ_SLOT (fwdOrigin ()));
+ connect (stopRL[i], TQ_SIGNAL (newOrigin (KSVDragList*)),
+ this, TQ_SLOT (fwdOrigin (KSVDragList*)));
}
lay->addStretch(1);
- connect (scripts, TQT_SIGNAL(undoAction(KSVAction*)),
- this, TQT_SLOT(fwdUndoAction(KSVAction*)));
+ connect (scripts, TQ_SIGNAL(undoAction(KSVAction*)),
+ this, TQ_SLOT(fwdUndoAction(KSVAction*)));
// add text-diplay widget
textDisplay = new TQTextEdit( TQString(), TQString(), this, "TextDisplayWidget" );
@@ -313,41 +313,41 @@ void KSVContent::initLList()
for (int i = 0; i < ksv::runlevelNumber; ++i)
{
- connect (startRL[i], TQT_SIGNAL(newOrigin()), stopRL[i], TQT_SLOT(slotNewOrigin()));
- connect (stopRL[i], TQT_SIGNAL(newOrigin()), startRL[i], TQT_SLOT(slotNewOrigin()));
+ connect (startRL[i], TQ_SIGNAL(newOrigin()), stopRL[i], TQ_SLOT(slotNewOrigin()));
+ connect (stopRL[i], TQ_SIGNAL(newOrigin()), startRL[i], TQ_SLOT(slotNewOrigin()));
- connect (startRL[i], TQT_SIGNAL(undoAction(KSVAction*)),
- this, TQT_SLOT(fwdUndoAction(KSVAction*)));
- connect (stopRL[i], TQT_SIGNAL(undoAction(KSVAction*)),
- this, TQT_SLOT(fwdUndoAction(KSVAction*)));
+ connect (startRL[i], TQ_SIGNAL(undoAction(KSVAction*)),
+ this, TQ_SLOT(fwdUndoAction(KSVAction*)));
+ connect (stopRL[i], TQ_SIGNAL(undoAction(KSVAction*)),
+ this, TQ_SLOT(fwdUndoAction(KSVAction*)));
// doubleclick && return
- connect (startRL[i], TQT_SIGNAL(executed(TQListViewItem*)),
- this, TQT_SLOT(slotDoubleClick(TQListViewItem*)));
- connect (stopRL[i], TQT_SIGNAL(executed(TQListViewItem*)),
- this, TQT_SLOT(slotDoubleClick(TQListViewItem*)));
- connect (startRL[i], TQT_SIGNAL(returnPressed(TQListViewItem*)),
- this, TQT_SLOT(slotDoubleClick(TQListViewItem*)));
- connect (stopRL[i], TQT_SIGNAL(returnPressed(TQListViewItem*)),
- this, TQT_SLOT(slotDoubleClick(TQListViewItem*)));
+ connect (startRL[i], TQ_SIGNAL(executed(TQListViewItem*)),
+ this, TQ_SLOT(slotDoubleClick(TQListViewItem*)));
+ connect (stopRL[i], TQ_SIGNAL(executed(TQListViewItem*)),
+ this, TQ_SLOT(slotDoubleClick(TQListViewItem*)));
+ connect (startRL[i], TQ_SIGNAL(returnPressed(TQListViewItem*)),
+ this, TQ_SLOT(slotDoubleClick(TQListViewItem*)));
+ connect (stopRL[i], TQ_SIGNAL(returnPressed(TQListViewItem*)),
+ this, TQ_SLOT(slotDoubleClick(TQListViewItem*)));
// context menus
- connect (startRL[i], TQT_SIGNAL (contextMenu (TDEListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT (popupRunlevelMenu (TDEListView*, TQListViewItem*, const TQPoint&)));
- connect (stopRL[i], TQT_SIGNAL (contextMenu (TDEListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT (popupRunlevelMenu (TDEListView*, TQListViewItem*, const TQPoint&)));
+ connect (startRL[i], TQ_SIGNAL (contextMenu (TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQ_SLOT (popupRunlevelMenu (TDEListView*, TQListViewItem*, const TQPoint&)));
+ connect (stopRL[i], TQ_SIGNAL (contextMenu (TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQ_SLOT (popupRunlevelMenu (TDEListView*, TQListViewItem*, const TQPoint&)));
// cannot generate sorting number
- connect (startRL[i], TQT_SIGNAL(cannotGenerateNumber()),
- this, TQT_SLOT(fwdCannotGenerateNumber()));
- connect (stopRL[i], TQT_SIGNAL(cannotGenerateNumber()),
- this, TQT_SLOT(fwdCannotGenerateNumber()));
+ connect (startRL[i], TQ_SIGNAL(cannotGenerateNumber()),
+ this, TQ_SLOT(fwdCannotGenerateNumber()));
+ connect (stopRL[i], TQ_SIGNAL(cannotGenerateNumber()),
+ this, TQ_SLOT(fwdCannotGenerateNumber()));
// connecting origin things for "Scripts", too
- connect (scripts, TQT_SIGNAL(newOrigin()), startRL[i], TQT_SLOT(slotNewOrigin()));
- connect (scripts, TQT_SIGNAL(newOrigin()), stopRL[i], TQT_SLOT(slotNewOrigin()));
- connect (startRL[i], TQT_SIGNAL(newOrigin()), scripts, TQT_SLOT(slotNewOrigin()));
- connect (stopRL[i], TQT_SIGNAL(newOrigin()), scripts, TQT_SLOT(slotNewOrigin()));
+ connect (scripts, TQ_SIGNAL(newOrigin()), startRL[i], TQ_SLOT(slotNewOrigin()));
+ connect (scripts, TQ_SIGNAL(newOrigin()), stopRL[i], TQ_SLOT(slotNewOrigin()));
+ connect (startRL[i], TQ_SIGNAL(newOrigin()), scripts, TQ_SLOT(slotNewOrigin()));
+ connect (stopRL[i], TQ_SIGNAL(newOrigin()), scripts, TQ_SLOT(slotNewOrigin()));
// use this loop for setting tooltips
startRL[i]->setToolTip (i18n("Drag here to start services\n" \
@@ -359,11 +359,11 @@ void KSVContent::initLList()
{
if (i != j)
{
- connect (startRL[i], TQT_SIGNAL (newOrigin()), startRL[j], TQT_SLOT (slotNewOrigin()));
- connect (stopRL[i], TQT_SIGNAL (newOrigin()), stopRL[j], TQT_SLOT (slotNewOrigin()));
+ connect (startRL[i], TQ_SIGNAL (newOrigin()), startRL[j], TQ_SLOT (slotNewOrigin()));
+ connect (stopRL[i], TQ_SIGNAL (newOrigin()), stopRL[j], TQ_SLOT (slotNewOrigin()));
- connect (startRL[i], TQT_SIGNAL(newOrigin()), stopRL[j], TQT_SLOT(slotNewOrigin()));
- connect (stopRL[i], TQT_SIGNAL(newOrigin()), startRL[j], TQT_SLOT(slotNewOrigin()));
+ connect (startRL[i], TQ_SIGNAL(newOrigin()), stopRL[j], TQ_SLOT(slotNewOrigin()));
+ connect (stopRL[i], TQ_SIGNAL(newOrigin()), startRL[j], TQ_SLOT(slotNewOrigin()));
}
}
}
@@ -574,14 +574,14 @@ void KSVContent::infoOnData (KSVItem* item)
KSVData newState = oldState;
KSVEntryPropertiesDialog* props = new KSVEntryPropertiesDialog (newState, kapp->mainWidget());
- connect (props, TQT_SIGNAL (editService (const TQString&)),
- this, TQT_SLOT (editService (const TQString&)));
- connect (props, TQT_SIGNAL (startService (const TQString&)),
- this, TQT_SLOT (startService (const TQString&)));
- connect (props, TQT_SIGNAL (stopService (const TQString&)),
- this, TQT_SLOT (stopService (const TQString&)));
- connect (props, TQT_SIGNAL (restartService (const TQString&)),
- this, TQT_SLOT (restartService (const TQString&)));
+ connect (props, TQ_SIGNAL (editService (const TQString&)),
+ this, TQ_SLOT (editService (const TQString&)));
+ connect (props, TQ_SIGNAL (startService (const TQString&)),
+ this, TQ_SLOT (startService (const TQString&)));
+ connect (props, TQ_SIGNAL (stopService (const TQString&)),
+ this, TQ_SLOT (stopService (const TQString&)));
+ connect (props, TQ_SIGNAL (restartService (const TQString&)),
+ this, TQ_SLOT (restartService (const TQString&)));
int res = props->exec();
@@ -608,9 +608,9 @@ void KSVContent::stopService (const TQString& path)
*_proc << path << "stop";
- connect(_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitedProcess(TDEProcess*)));
- connect(_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
- connect(_proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotExitedProcess(TDEProcess*)));
+ connect(_proc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
// refresh textDisplay
appendLog(i18n("** <stop>Stopping</stop> <cmd>%1</cmd> **<br/>").arg(path),
@@ -634,9 +634,9 @@ void KSVContent::startService (const TQString& path)
*_proc << path << "start";
- connect(_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitedProcess(TDEProcess*)));
- connect(_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
- connect(_proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotExitedProcess(TDEProcess*)));
+ connect(_proc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
// refresh textDisplay
appendLog(i18n("** <start>Starting</start> <cmd>%1</cmd> **<br/>").arg(path),
@@ -674,9 +674,9 @@ void KSVContent::restartService (const TQString& path)
*_proc << path << "restart";
- connect(_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitDuringRestart(TDEProcess*)));
- connect(_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
- connect(_proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotExitDuringRestart(TDEProcess*)));
+ connect(_proc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
// refresh textDisplay
appendLog(i18n("** Re-starting <cmd>%1</cmd> **</br>").arg(path),
@@ -716,14 +716,14 @@ void KSVContent::slotScriptProperties(TQListViewItem* item)
KSVServicePropertiesDialog* prop =
new KSVServicePropertiesDialog (*static_cast<KSVItem*> (item)->data(), kapp->mainWidget());
- connect (prop, TQT_SIGNAL (editService (const TQString&)),
- this, TQT_SLOT (editService (const TQString&)));
- connect (prop, TQT_SIGNAL (startService (const TQString&)),
- this, TQT_SLOT (startService (const TQString&)));
- connect (prop, TQT_SIGNAL (stopService (const TQString&)),
- this, TQT_SLOT (stopService (const TQString&)));
- connect (prop, TQT_SIGNAL (restartService (const TQString&)),
- this, TQT_SLOT (restartService (const TQString&)));
+ connect (prop, TQ_SIGNAL (editService (const TQString&)),
+ this, TQ_SLOT (editService (const TQString&)));
+ connect (prop, TQ_SIGNAL (startService (const TQString&)),
+ this, TQ_SLOT (startService (const TQString&)));
+ connect (prop, TQ_SIGNAL (stopService (const TQString&)),
+ this, TQ_SLOT (stopService (const TQString&)));
+ connect (prop, TQ_SIGNAL (restartService (const TQString&)),
+ this, TQ_SLOT (restartService (const TQString&)));
prop->exec();
@@ -737,9 +737,9 @@ void KSVContent::slotExitDuringRestart( TDEProcess* proc )
// signals connected that screw up our output
proc->clearArguments();
- connect(proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitedProcess(TDEProcess*)));
- connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
- connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(proc, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotExitedProcess(TDEProcess*)));
+ connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQ_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
}
@@ -1026,7 +1026,7 @@ void KSVContent::popupServicesMenu (TDEListView*, TQListViewItem* i, const TQPoi
if (i >= 1)
mOpenWithMenu->insertSeparator();
- mOpenWithMenu->insertItem (i18n ("&Other..."), this, TQT_SLOT (openWith()));
+ mOpenWithMenu->insertItem (i18n ("&Other..."), this, TQ_SLOT (openWith()));
mScriptMenu->exec (p, 1);
}
diff --git a/ksysv/PreferencesDialog.cpp b/ksysv/PreferencesDialog.cpp
index 8189924..c830a34 100644
--- a/ksysv/PreferencesDialog.cpp
+++ b/ksysv/PreferencesDialog.cpp
@@ -40,7 +40,7 @@ KSVPreferences::KSVPreferences (TQWidget* parent)
*/
TQFrame* lafPage = addPage (i18n ("Look & Feel"), TQString(), DesktopIcon ("colorize", 32));
mLookAndFeel = new KSVLookAndFeel (lafPage);
- connect( mLookAndFeel, TQT_SIGNAL( configChanged() ), this, TQT_SLOT( slotChanged() ) );
+ connect( mLookAndFeel, TQ_SIGNAL( configChanged() ), this, TQ_SLOT( slotChanged() ) );
TQVBoxLayout* lafLayout = new TQVBoxLayout (lafPage);
lafLayout->addWidget (mLookAndFeel);
@@ -68,7 +68,7 @@ KSVPreferences::KSVPreferences (TQWidget* parent)
*/
TQFrame* pathPage = addPage (i18n ("Paths"), TQString(), DesktopIcon ("kfm", 32));
mPathConfig = new KSVPathConfig(pathPage);
- connect( mPathConfig, TQT_SIGNAL( configChanged() ), this, TQT_SLOT( slotChanged() ) );
+ connect( mPathConfig, TQ_SIGNAL( configChanged() ), this, TQ_SLOT( slotChanged() ) );
TQVBoxLayout *pathLayout = new TQVBoxLayout (pathPage);
pathLayout->addWidget (mPathConfig);
@@ -79,12 +79,12 @@ KSVPreferences::KSVPreferences (TQWidget* parent)
TQFrame* miscPage = addPage (i18n ("Miscellaneous"), i18n("Settings Not Fitting Anywhere Else"),
DesktopIcon ("misc", 32));
mMiscConfig = new KSVMiscConfig(miscPage);
- connect( mMiscConfig, TQT_SIGNAL( configChanged() ), this, TQT_SLOT( slotChanged() ) );
+ connect( mMiscConfig, TQ_SIGNAL( configChanged() ), this, TQ_SLOT( slotChanged() ) );
TQVBoxLayout *miscLayout = new TQVBoxLayout (miscPage);
miscLayout->addWidget (mMiscConfig);
- connect (mMiscConfig->mShowAll, TQT_SIGNAL (clicked()), this, TQT_SLOT (showAllMessages()));
+ connect (mMiscConfig->mShowAll, TQ_SIGNAL (clicked()), this, TQ_SLOT (showAllMessages()));
reReadConfig();
enableButton( Apply, false );
diff --git a/ksysv/Properties.cpp b/ksysv/Properties.cpp
index 96e0ebf..dd5fccd 100644
--- a/ksysv/Properties.cpp
+++ b/ksysv/Properties.cpp
@@ -56,19 +56,19 @@ KSVServicesPage::KSVServicesPage (KSVData& data, KPropertiesDialog* props)
TQButtonGroup* buttons = new TQButtonGroup (1,TQt::Vertical, i18n ("Actions"), mPage);
TQPushButton* b = new TQPushButton (i18n ("&Edit"), buttons);
- connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doEdit()));
+ connect (b, TQ_SIGNAL (clicked()), props, TQ_SLOT (doEdit()));
TQFrame* spacer = new TQFrame (buttons);
spacer->setMinimumWidth (KDialog::spacingHint());
b = new TQPushButton (i18n ("&Start"), buttons);
- connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doStart()));
+ connect (b, TQ_SIGNAL (clicked()), props, TQ_SLOT (doStart()));
b = new TQPushButton (i18n ("S&top"), buttons);
- connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doStop()));
+ connect (b, TQ_SIGNAL (clicked()), props, TQ_SLOT (doStop()));
b = new TQPushButton (i18n ("&Restart"), buttons);
- connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doRestart()));
+ connect (b, TQ_SIGNAL (clicked()), props, TQ_SLOT (doRestart()));
}
KSVServicesPage::~KSVServicesPage ()
@@ -150,12 +150,12 @@ KSVEntryPage::KSVEntryPage (KSVData& data, KPropertiesDialog* props)
top->addWidget (mNumberEdit, 2, 1);
top->addWidget (iconLabel, 3, 0);
- connect (mServiceEdit, TQT_SIGNAL (textChanged (const TQString&)),
- this, TQT_SLOT (emitChanged()));
- connect (mLabelEdit, TQT_SIGNAL (textChanged (const TQString&)),
- this, TQT_SLOT (emitChanged()));
- connect (mNumberEdit, TQT_SIGNAL (valueChanged (int)),
- this, TQT_SLOT (emitChanged()));
+ connect (mServiceEdit, TQ_SIGNAL (textChanged (const TQString&)),
+ this, TQ_SLOT (emitChanged()));
+ connect (mLabelEdit, TQ_SIGNAL (textChanged (const TQString&)),
+ this, TQ_SLOT (emitChanged()));
+ connect (mNumberEdit, TQ_SIGNAL (valueChanged (int)),
+ this, TQ_SLOT (emitChanged()));
}
KSVEntryPage::~KSVEntryPage ()
diff --git a/ksysv/RunlevelAuthIcon.cpp b/ksysv/RunlevelAuthIcon.cpp
index 6199e16..2093464 100644
--- a/ksysv/RunlevelAuthIcon.cpp
+++ b/ksysv/RunlevelAuthIcon.cpp
@@ -39,7 +39,7 @@ RunlevelAuthIcon::RunlevelAuthIcon (const TQString& servicesPath, const TQString
lockBox->setFrameStyle (TQFrame::NoFrame);
lockBox->setFixedSize (lockBox->sizeHint());
- connect (mTimer, TQT_SIGNAL (timeout()), this, TQT_SLOT (timerEvent()));
+ connect (mTimer, TQ_SIGNAL (timeout()), this, TQ_SLOT (timerEvent()));
mTimer->start (mInterval);
for (int i = 0; i < ksv::runlevelNumber; ++i)
diff --git a/ksysv/SpinBox.cpp b/ksysv/SpinBox.cpp
index 5ff296b..9e52fd0 100644
--- a/ksysv/SpinBox.cpp
+++ b/ksysv/SpinBox.cpp
@@ -17,10 +17,10 @@ KSVSpinBox::KSVSpinBox (TQWidget* parent, const char* name)
editor()->installEventFilter (this);
- connect (editor(), TQT_SIGNAL (textChanged (const TQString&)),
- comp, TQT_SLOT (slotMakeCompletion (const TQString&)));
- connect (comp, TQT_SIGNAL (match (const TQString&)),
- this, TQT_SLOT (handleMatch (const TQString&)));
+ connect (editor(), TQ_SIGNAL (textChanged (const TQString&)),
+ comp, TQ_SLOT (slotMakeCompletion (const TQString&)));
+ connect (comp, TQ_SIGNAL (match (const TQString&)),
+ this, TQ_SLOT (handleMatch (const TQString&)));
}
KSVSpinBox::~KSVSpinBox ()
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();
}
diff --git a/ksysv/kscroller.cpp b/ksysv/kscroller.cpp
index 87d8b71..58cb254 100644
--- a/ksysv/kscroller.cpp
+++ b/ksysv/kscroller.cpp
@@ -37,10 +37,10 @@ KScroller::KScroller (TQWidget* parent, const char* name)
mVertical->hide();
mHorizontal->hide();
- connect (mVertical, TQT_SIGNAL (valueChanged (int)),
- this, TQT_SLOT (scrollVertical (int)));
- connect (mHorizontal, TQT_SIGNAL (valueChanged (int)),
- this, TQT_SLOT (scrollHorizontal (int)));
+ connect (mVertical, TQ_SIGNAL (valueChanged (int)),
+ this, TQ_SLOT (scrollVertical (int)));
+ connect (mHorizontal, TQ_SIGNAL (valueChanged (int)),
+ this, TQ_SLOT (scrollHorizontal (int)));
}
KScroller::~KScroller ()
diff --git a/ksysv/ksvconfigwizard.cpp b/ksysv/ksvconfigwizard.cpp
index 54450fa..86aaf24 100644
--- a/ksysv/ksvconfigwizard.cpp
+++ b/ksysv/ksvconfigwizard.cpp
@@ -55,8 +55,8 @@ KSVConfigWizard::KSVConfigWizard (TQWidget* parent, const char* name, bool modal
setFinishEnabled (mFinishedPage, true);
// some connections
- connect (this, TQT_SIGNAL (selected (const TQString&)),
- this, TQT_SLOT (selectedPage (const TQString&)));
+ connect (this, TQ_SIGNAL (selected (const TQString&)),
+ this, TQ_SLOT (selectedPage (const TQString&)));
// hide cancel-button
cancelButton()->hide();
diff --git a/ksysv/ksvdraglist.cpp b/ksysv/ksvdraglist.cpp
index 5ca8e36..077bad4 100644
--- a/ksysv/ksvdraglist.cpp
+++ b/ksysv/ksvdraglist.cpp
@@ -358,8 +358,8 @@ KSVDragList::KSVDragList ( TQWidget* parent, const char* name )
mRMList.setAutoDelete(true);
// catch drops
- connect (this, TQT_SIGNAL (dropped (TQDropEvent*, TQListViewItem*)),
- this, TQT_SLOT (drop (TQDropEvent*, TQListViewItem*)));
+ connect (this, TQ_SIGNAL (dropped (TQDropEvent*, TQListViewItem*)),
+ this, TQ_SLOT (drop (TQDropEvent*, TQListViewItem*)));
}
KSVDragList::~KSVDragList()