diff options
Diffstat (limited to 'kwin-styles/icewm/config')
-rw-r--r-- | kwin-styles/icewm/config/config.cpp | 82 | ||||
-rw-r--r-- | kwin-styles/icewm/config/config.h | 28 |
2 files changed, 55 insertions, 55 deletions
diff --git a/kwin-styles/icewm/config/config.cpp b/kwin-styles/icewm/config/config.cpp index 7cae598e..980e949a 100644 --- a/kwin-styles/icewm/config/config.cpp +++ b/kwin-styles/icewm/config/config.cpp @@ -25,10 +25,10 @@ */ #include "config.h" -#include <qdir.h> -#include <qregexp.h> -#include <qvbox.h> -#include <qwhatsthis.h> +#include <tqdir.h> +#include <tqregexp.h> +#include <tqvbox.h> +#include <tqwhatsthis.h> #include <kglobal.h> #include <klocale.h> #include <kstandarddirs.h> @@ -39,7 +39,7 @@ extern "C" { - KDE_EXPORT QObject* allocate_config( KConfig* conf, QWidget* parent ) + KDE_EXPORT TQObject* allocate_config( KConfig* conf, TQWidget* parent ) { return(new IceWMConfig(conf, parent)); } @@ -51,43 +51,43 @@ extern "C" // 'conf' is a pointer to the kwindecoration modules open kwin config, // and is by default set to the "Style" group. // -// 'parent' is the parent of the QObject, which is a VBox inside the +// 'parent' is the parent of the TQObject, which is a VBox inside the // Configure tab in kwindecoration // ========================================================================== -IceWMConfig::IceWMConfig( KConfig* conf, QWidget* parent ) - : QObject( parent ) +IceWMConfig::IceWMConfig( KConfig* conf, TQWidget* parent ) + : TQObject( parent ) { icewmConfig = new KConfig("kwinicewmrc"); KGlobal::locale()->insertCatalogue("kwin_art_clients"); - mainWidget = new QVBox( parent ); + mainWidget = new TQVBox( parent ); mainWidget->setSpacing( KDialog::spacingHint() ); - themeListBox = new QListBox( mainWidget ); - QWhatsThis::add( themeListBox, + themeListBox = new TQListBox( mainWidget ); + TQWhatsThis::add( themeListBox, i18n("Make your IceWM selection by clicking on a theme here. ") ); - cbThemeTitleTextColors = new QCheckBox( + cbThemeTitleTextColors = new TQCheckBox( i18n("Use theme &title text colors"), mainWidget ); - QWhatsThis::add( cbThemeTitleTextColors, + TQWhatsThis::add( cbThemeTitleTextColors, i18n("When selected, titlebar colors will follow those set " "in the IceWM theme. If not selected, the current KDE " "titlebar colors will be used instead.") ); - cbTitleBarOnTop = new QCheckBox( + cbTitleBarOnTop = new TQCheckBox( i18n("&Show title bar on top of windows"), mainWidget ); - QWhatsThis::add( cbTitleBarOnTop, + TQWhatsThis::add( cbTitleBarOnTop, i18n("When selected, all window titlebars will be shown " "at the top of each window, otherwise they will be " "shown at the bottom.") ); - cbShowMenuButtonIcon = new QCheckBox( + cbShowMenuButtonIcon = new TQCheckBox( i18n("&Menu button always shows application mini icon"), mainWidget ); - QWhatsThis::add( cbShowMenuButtonIcon, + TQWhatsThis::add( cbShowMenuButtonIcon, i18n("When selected, all titlebar menu buttons will have " "the application icon shown. If not selected, the current " "theme's defaults are used instead.") ); @@ -95,7 +95,7 @@ IceWMConfig::IceWMConfig( KConfig* conf, QWidget* parent ) urlLabel = new KURLLabel( mainWidget ); urlLabel->setText( i18n("Open KDE's IceWM theme folder") ); - themeLabel = new QLabel( + themeLabel = new TQLabel( i18n("Clicking on the link above will cause a window to appear " "showing the KDE IceWM theme folder. You can " "add or remove native IceWM themes by " @@ -107,36 +107,36 @@ IceWMConfig::IceWMConfig( KConfig* conf, QWidget* parent ) load( conf ); // Ensure we track user changes properly - connect( themeListBox, SIGNAL(selectionChanged()), - this, SLOT(slotSelectionChanged()) ); + connect( themeListBox, TQT_SIGNAL(selectionChanged()), + this, TQT_SLOT(slotSelectionChanged()) ); - connect( urlLabel, SIGNAL(leftClickedURL(const QString&)), - this, SLOT(callURL(const QString&))); + connect( urlLabel, TQT_SIGNAL(leftClickedURL(const TQString&)), + this, TQT_SLOT(callURL(const TQString&))); - connect( cbThemeTitleTextColors, SIGNAL(clicked()), - this, SLOT(slotSelectionChanged()) ); + connect( cbThemeTitleTextColors, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotSelectionChanged()) ); - connect( cbTitleBarOnTop, SIGNAL(clicked()), - this, SLOT(slotSelectionChanged()) ); + connect( cbTitleBarOnTop, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotSelectionChanged()) ); - connect( cbShowMenuButtonIcon, SIGNAL(clicked()), - this, SLOT(slotSelectionChanged()) ); + connect( cbShowMenuButtonIcon, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotSelectionChanged()) ); // Create the theme directory (if not found) ... and obtain the path as we do so. localThemeString = KGlobal::dirs()->saveLocation("data", "kwin"); localThemeString += "/icewm-themes"; - if (!QFile::exists(localThemeString)) - QDir().mkdir(localThemeString); + if (!TQFile::exists(localThemeString)) + TQDir().mkdir(localThemeString); // Watch the icewm theme directory for theme additions/removals KDirWatch::self()->addDir(localThemeString); - connect( KDirWatch::self(), SIGNAL(dirty(const QString&)), this, SLOT(findIceWMThemes()) ); - connect( KDirWatch::self(), SIGNAL(created(const QString&)), this, SLOT(findIceWMThemes()) ); - connect( KDirWatch::self(), SIGNAL(deleted(const QString&)), this, SLOT(findIceWMThemes()) ); + connect( KDirWatch::self(), TQT_SIGNAL(dirty(const TQString&)), this, TQT_SLOT(findIceWMThemes()) ); + connect( KDirWatch::self(), TQT_SIGNAL(created(const TQString&)), this, TQT_SLOT(findIceWMThemes()) ); + connect( KDirWatch::self(), TQT_SIGNAL(deleted(const TQString&)), this, TQT_SLOT(findIceWMThemes()) ); // Set the konqui link url - QString urlThemeString = QString("file://") + localThemeString; - urlThemeString.replace( QRegExp("~"), "$HOME" ); + TQString urlThemeString = TQString("file://") + localThemeString; + urlThemeString.replace( TQRegExp("~"), "$HOME" ); urlLabel->setURL( urlThemeString ); // Make the widgets visible in kwindecoration @@ -158,8 +158,8 @@ IceWMConfig::~IceWMConfig() // Searches for all installed IceWM themes, and adds them to the listBox. void IceWMConfig::findIceWMThemes() { - QStringList dirList = KGlobal::dirs()->findDirs("data", "kwin/icewm-themes"); - QStringList::ConstIterator it; + TQStringList dirList = KGlobal::dirs()->findDirs("data", "kwin/icewm-themes"); + TQStringList::ConstIterator it; // Remove any old themes in the list (if any) themeListBox->clear(); @@ -169,11 +169,11 @@ void IceWMConfig::findIceWMThemes() for( it = dirList.begin(); it != dirList.end(); it++) { // List all directory names only... - QDir d(*it, QString("*"), QDir::Unsorted, QDir::Dirs | QDir::Readable ); + TQDir d(*it, TQString("*"), TQDir::Unsorted, TQDir::Dirs | TQDir::Readable ); if (d.exists()) { QFileInfoListIterator it2( *d.entryInfoList() ); - QFileInfo* finfo; + TQFileInfo* finfo; // Step through all directories within the kwin/icewm-themes directory while( (finfo = it2.current()) ) @@ -197,7 +197,7 @@ void IceWMConfig::findIceWMThemes() themeListBox->sort(); // Select the currently used IceWM theme - QString themeName = icewmConfig->readEntry("CurrentTheme"); + TQString themeName = icewmConfig->readEntry("CurrentTheme"); // Provide a theme alias if (themeName == "default") @@ -211,7 +211,7 @@ void IceWMConfig::findIceWMThemes() } -void IceWMConfig::callURL( const QString& s ) +void IceWMConfig::callURL( const TQString& s ) { kapp->invokeBrowser( s ); } diff --git a/kwin-styles/icewm/config/config.h b/kwin-styles/icewm/config/config.h index e156137e..09c2fd8c 100644 --- a/kwin-styles/icewm/config/config.h +++ b/kwin-styles/icewm/config/config.h @@ -27,11 +27,11 @@ #ifndef _ICEWMCONFIG_H #define _ICEWMCONFIG_H -#include <qwidget.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qlistbox.h> -#include <qlabel.h> +#include <tqwidget.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqlistbox.h> +#include <tqlabel.h> #include <kurllabel.h> #include <kconfig.h> @@ -42,7 +42,7 @@ class IceWMConfig: public QObject Q_OBJECT public: - IceWMConfig( KConfig* conf, QWidget* parent ); + IceWMConfig( KConfig* conf, TQWidget* parent ); ~IceWMConfig(); // These public signals/slots work similar to KCM modules @@ -56,19 +56,19 @@ class IceWMConfig: public QObject protected slots: void slotSelectionChanged(); // Internal use - void callURL( const QString& s ); + void callURL( const TQString& s ); void findIceWMThemes(); private: KConfig* icewmConfig; - QCheckBox* cbThemeTitleTextColors; - QCheckBox* cbTitleBarOnTop; - QCheckBox* cbShowMenuButtonIcon; - QListBox* themeListBox; - QLabel* themeLabel; + TQCheckBox* cbThemeTitleTextColors; + TQCheckBox* cbTitleBarOnTop; + TQCheckBox* cbShowMenuButtonIcon; + TQListBox* themeListBox; + TQLabel* themeLabel; KURLLabel* urlLabel; - QString localThemeString; - QVBox* mainWidget; + TQString localThemeString; + TQVBox* mainWidget; }; |