summaryrefslogtreecommitdiffstats
path: root/ksysv/PreferencesDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksysv/PreferencesDialog.cpp')
-rw-r--r--ksysv/PreferencesDialog.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/ksysv/PreferencesDialog.cpp b/ksysv/PreferencesDialog.cpp
index b0a2c42..b2ad038 100644
--- a/ksysv/PreferencesDialog.cpp
+++ b/ksysv/PreferencesDialog.cpp
@@ -1,14 +1,14 @@
// (c) 2000 Peter Putzer
-#include <qframe.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qgrid.h>
-#include <qdir.h>
-#include <qcheckbox.h>
+#include <tqframe.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
+#include <tqgrid.h>
+#include <tqdir.h>
+#include <tqcheckbox.h>
#include <kdebug.h>
#include <klocale.h>
@@ -28,7 +28,7 @@
#include "PreferencesDialog.h"
-KSVPreferences::KSVPreferences (QWidget* parent)
+KSVPreferences::KSVPreferences (TQWidget* parent)
: KDialogBase (IconList, i18n("Configure"), Help|Ok|Apply|Cancel, Ok,
parent, "KSysV Preferences", true, true),
mConfig (KSVConfig::self())
@@ -38,53 +38,53 @@ KSVPreferences::KSVPreferences (QWidget* parent)
/**
* Look & Feel Page
*/
- QFrame* lafPage = addPage (i18n ("Look & Feel"), QString::null, DesktopIcon ("colorize", 32));
+ TQFrame* lafPage = addPage (i18n ("Look & Feel"), TQString::null, DesktopIcon ("colorize", 32));
mLookAndFeel = new KSVLookAndFeel (lafPage);
- connect( mLookAndFeel, SIGNAL( configChanged() ), this, SLOT( slotChanged() ) );
+ connect( mLookAndFeel, TQT_SIGNAL( configChanged() ), this, TQT_SLOT( slotChanged() ) );
- QVBoxLayout* lafLayout = new QVBoxLayout (lafPage);
+ TQVBoxLayout* lafLayout = new TQVBoxLayout (lafPage);
lafLayout->addWidget (mLookAndFeel);
// /**
// * Colors Page
// */
-// QFrame* colorPage = addPage (i18n("Colors"), QString::null, DesktopIcon ("colorize", 32));
+// TQFrame* colorPage = addPage (i18n("Colors"), TQString::null, DesktopIcon ("colorize", 32));
// mColorConfig = new KSVColorConfig(colorPage);
-// QVBoxLayout* colorLayout = new QVBoxLayout(colorPage);
+// TQVBoxLayout* colorLayout = new TQVBoxLayout(colorPage);
// colorLayout->addWidget(mColorConfig);
// /**
// * Fonts Page
// */
-// QFrame* fontPage = addPage (i18n("Fonts"), QString::null, DesktopIcon ("fonts", 32));
+// TQFrame* fontPage = addPage (i18n("Fonts"), TQString::null, DesktopIcon ("fonts", 32));
// mFontConfig = new KSVFontConfig(fontPage);
-// QVBoxLayout* fontLayout = new QVBoxLayout (fontPage);
+// TQVBoxLayout* fontLayout = new TQVBoxLayout (fontPage);
// fontLayout->addWidget(mFontConfig);
/**
* Paths Page
*/
- QFrame* pathPage = addPage (i18n ("Paths"), QString::null, DesktopIcon ("kfm", 32));
+ TQFrame* pathPage = addPage (i18n ("Paths"), TQString::null, DesktopIcon ("kfm", 32));
mPathConfig = new KSVPathConfig(pathPage);
- connect( mPathConfig, SIGNAL( configChanged() ), this, SLOT( slotChanged() ) );
+ connect( mPathConfig, TQT_SIGNAL( configChanged() ), this, TQT_SLOT( slotChanged() ) );
- QVBoxLayout *pathLayout = new QVBoxLayout (pathPage);
+ TQVBoxLayout *pathLayout = new TQVBoxLayout (pathPage);
pathLayout->addWidget (mPathConfig);
/**
* Miscellaneous Page
*/
- QFrame* miscPage = addPage (i18n ("Miscellaneous"), i18n("Settings Not Fitting Anywhere Else"),
+ TQFrame* miscPage = addPage (i18n ("Miscellaneous"), i18n("Settings Not Fitting Anywhere Else"),
DesktopIcon ("misc", 32));
mMiscConfig = new KSVMiscConfig(miscPage);
- connect( mMiscConfig, SIGNAL( configChanged() ), this, SLOT( slotChanged() ) );
+ connect( mMiscConfig, TQT_SIGNAL( configChanged() ), this, TQT_SLOT( slotChanged() ) );
- QVBoxLayout *miscLayout = new QVBoxLayout (miscPage);
+ TQVBoxLayout *miscLayout = new TQVBoxLayout (miscPage);
miscLayout->addWidget (mMiscConfig);
- connect (mMiscConfig->mShowAll, SIGNAL (clicked()), this, SLOT (showAllMessages()));
+ connect (mMiscConfig->mShowAll, TQT_SIGNAL (clicked()), this, TQT_SLOT (showAllMessages()));
reReadConfig();
enableButton( Apply, false );
@@ -138,7 +138,7 @@ bool KSVPreferences::checkPaths ()
{
bool result = true;
- if (!QDir(mPathConfig->mServicesPath->text()).exists())
+ if (!TQDir(mPathConfig->mServicesPath->text()).exists())
result = (KMessageBox::warningContinueCancel(this,
i18n ("The service folder you specified does "
"not exist.\n"
@@ -148,7 +148,7 @@ bool KSVPreferences::checkPaths ()
i18n ("Warning"))
!= KMessageBox::Cancel);
- if (!QDir(mPathConfig->mRunlevelPath->text()).exists())
+ if (!TQDir(mPathConfig->mRunlevelPath->text()).exists())
result = result
&& (KMessageBox::warningContinueCancel(this,
i18n ("The runlevel folder you specified does "
@@ -171,22 +171,22 @@ void KSVPreferences::slotOk ()
}
}
-QColor KSVPreferences::newNormal() const
+TQColor KSVPreferences::newNormal() const
{
return mLookAndFeel->mNewNormal->color();
}
-QColor KSVPreferences::newSelected() const
+TQColor KSVPreferences::newSelected() const
{
return mLookAndFeel->mNewSelected->color();
}
-QColor KSVPreferences::changedNormal() const
+TQColor KSVPreferences::changedNormal() const
{
return mLookAndFeel->mChangedNormal->color();
}
-QColor KSVPreferences::changedSelected() const
+TQColor KSVPreferences::changedSelected() const
{
return mLookAndFeel->mChangedSelected->color();
}
@@ -203,7 +203,7 @@ void KSVPreferences::setConfig ()
{
// if necessary, update service path
{
- QString sp = mPathConfig->mServicesPath->text();
+ TQString sp = mPathConfig->mServicesPath->text();
if (sp != mConfig->scriptPath())
{
mConfig->setScriptPath (sp);
@@ -214,7 +214,7 @@ void KSVPreferences::setConfig ()
// if necesssary, update root path for runlevels
{
- QString rp = mPathConfig->mRunlevelPath->text();
+ TQString rp = mPathConfig->mRunlevelPath->text();
if (rp != mConfig->runlevelPath ())
{
mConfig->setRunlevelPath (rp);
@@ -233,10 +233,10 @@ void KSVPreferences::setConfig ()
// if necessary, update colors
{
- QColor nn = newNormal();
- QColor ns = newSelected();
- QColor cn = changedNormal();
- QColor cs = changedSelected();
+ TQColor nn = newNormal();
+ TQColor ns = newSelected();
+ TQColor cn = changedNormal();
+ TQColor cs = changedSelected();
if (nn != mConfig->newNormalColor() ||
ns != mConfig->newSelectedColor() ||
@@ -254,8 +254,8 @@ void KSVPreferences::setConfig ()
// if necessary, update fonts
{
- const QFont& sf = mLookAndFeel->serviceFont();
- const QFont& ns = mLookAndFeel->numberFont();
+ const TQFont& sf = mLookAndFeel->serviceFont();
+ const TQFont& ns = mLookAndFeel->numberFont();
if (sf != mConfig->serviceFont() || ns != mConfig->numberFont())
{
@@ -281,7 +281,7 @@ void KSVPreferences::reReadMessages()
mMiscConfig->mWarnSortingNumber->setChecked (mConfig->showMessage (ksv::CouldNotGenerateSortingNumber));
}
-void KSVPreferences::showEvent (QShowEvent* e)
+void KSVPreferences::showEvent (TQShowEvent* e)
{
reReadMessages();