diff options
author | Mavridis Philippe <[email protected]> | 2024-03-10 19:57:12 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-03-10 20:04:10 +0200 |
commit | 8dbc6179f8b3bd630e3edc6d1e2a01becf5e065b (patch) | |
tree | bcb2aed9636358b58e0202e941d372da808c6442 /client/config | |
parent | db5c38267db65110beb4ad895a1fe38b42d8001f (diff) | |
download | tde-style-polyester-8dbc6179f8b3bd630e3edc6d1e2a01becf5e065b.tar.gz tde-style-polyester-8dbc6179f8b3bd630e3edc6d1e2a01becf5e065b.zip |
Port to TDE
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'client/config')
-rw-r--r-- | client/config/configdialog.cc | 2 | ||||
-rwxr-xr-x | client/config/polyesterconfig.cc | 18 | ||||
-rwxr-xr-x | client/config/polyesterconfig.h | 10 |
3 files changed, 15 insertions, 15 deletions
diff --git a/client/config/configdialog.cc b/client/config/configdialog.cc index 75f6623..4e6db04 100644 --- a/client/config/configdialog.cc +++ b/client/config/configdialog.cc @@ -1,5 +1,5 @@ #include <kdialog.h> -#include <klocale.h> +#include <tdelocale.h> /**************************************************************************** ** Form implementation generated from reading ui file './configdialog.ui' ** diff --git a/client/config/polyesterconfig.cc b/client/config/polyesterconfig.cc index 24c5ce8..7f322fb 100755 --- a/client/config/polyesterconfig.cc +++ b/client/config/polyesterconfig.cc @@ -10,9 +10,9 @@ // Please see the header file for copyright and license information. ////////////////////////////////////////////////////////////////////////////// -#include <kconfig.h> -#include <klocale.h> -#include <kglobal.h> +#include <tdeconfig.h> +#include <tdelocale.h> +#include <tdeglobal.h> #include <tqbuttongroup.h> #include <tqgroupbox.h> #include <tqradiobutton.h> @@ -29,11 +29,11 @@ // ------------- // Constructor -polyesterConfig::polyesterConfig(KConfig* config, TQWidget* parent) +polyesterConfig::polyesterConfig(TDEConfig* config, TQWidget* parent) : TQObject(parent), config_(0), dialog_(0) { // create the configuration object - config_ = new KConfig("kwinpolyesterrc"); - KGlobal::locale()->insertCatalogue("kwin_polyester_config"); + config_ = new TDEConfig("twinpolyesterrc"); + TDEGlobal::locale()->insertCatalogue("twin_polyester_config"); // create and show the configuration dialog dialog_ = new ConfigDialog(parent); @@ -104,7 +104,7 @@ void polyesterConfig::selectionChanged(int) { // ------ // Load configuration data -void polyesterConfig::load(KConfig*) { +void polyesterConfig::load(TDEConfig*) { config_->setGroup("General"); TQString value = config_->readEntry("TitleAlignment", "AlignHCenter"); @@ -141,7 +141,7 @@ void polyesterConfig::load(KConfig*) { // ------ // Save configuration data -void polyesterConfig::save(KConfig*) { +void polyesterConfig::save(TDEConfig*) { config_->setGroup("General"); TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->selected(); @@ -197,7 +197,7 @@ void polyesterConfig::defaults() { ////////////////////////////////////////////////////////////////////////////// extern "C" { - TQObject* allocate_config(KConfig* config, TQWidget* parent) { + TQObject* allocate_config(TDEConfig* config, TQWidget* parent) { return (new polyesterConfig(config, parent)); } } diff --git a/client/config/polyesterconfig.h b/client/config/polyesterconfig.h index 34c84ce..cd7e05c 100755 --- a/client/config/polyesterconfig.h +++ b/client/config/polyesterconfig.h @@ -32,28 +32,28 @@ #include <tqobject.h> -class KConfig; +class TDEConfig; class ConfigDialog; class polyesterConfig : public TQObject { TQ_OBJECT public: - polyesterConfig(KConfig* config, TQWidget* parent); + polyesterConfig(TDEConfig* config, TQWidget* parent); ~polyesterConfig(); signals: void changed(); public slots: - void load(KConfig*); - void save(KConfig*); + void load(TDEConfig*); + void save(TDEConfig*); void defaults(); protected slots: void selectionChanged(int); private: - KConfig *config_; + TDEConfig *config_; ConfigDialog *dialog_; }; |