diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:30:47 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:30:47 -0600 |
commit | cc74f360bb40da3d79f58048f8e8611804980aa6 (patch) | |
tree | c4385d2c16b904757b1c8bb998a4aec6993373f7 /twin/kcmtwin/twindecoration | |
parent | 79b21d47bce1ee428affc97534cd8b257232a871 (diff) | |
download | tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'twin/kcmtwin/twindecoration')
-rw-r--r-- | twin/kcmtwin/twindecoration/preview.cpp | 2 | ||||
-rw-r--r-- | twin/kcmtwin/twindecoration/preview.h | 4 | ||||
-rw-r--r-- | twin/kcmtwin/twindecoration/twindecoration.cpp | 36 | ||||
-rw-r--r-- | twin/kcmtwin/twindecoration/twindecoration.h | 16 |
4 files changed, 29 insertions, 29 deletions
diff --git a/twin/kcmtwin/twindecoration/preview.cpp b/twin/kcmtwin/twindecoration/preview.cpp index 43555ef60..8c12f9048 100644 --- a/twin/kcmtwin/twindecoration/preview.cpp +++ b/twin/kcmtwin/twindecoration/preview.cpp @@ -454,7 +454,7 @@ KDecorationPreviewOptions::~KDecorationPreviewOptions() unsigned long KDecorationPreviewOptions::updateSettings() { - KConfig cfg( "twinrc", true ); + TDEConfig cfg( "twinrc", true ); unsigned long changed = 0; changed |= d->updateKWinSettings( &cfg ); diff --git a/twin/kcmtwin/twindecoration/preview.h b/twin/kcmtwin/twindecoration/preview.h index 2a753db69..56a342cfc 100644 --- a/twin/kcmtwin/twindecoration/preview.h +++ b/twin/kcmtwin/twindecoration/preview.h @@ -138,11 +138,11 @@ class KDecorationPreviewPlugins : public KDecorationPlugins { public: - KDecorationPreviewPlugins( KConfig* cfg ); + KDecorationPreviewPlugins( TDEConfig* cfg ); virtual bool provides( Requirement ); }; -inline KDecorationPreviewPlugins::KDecorationPreviewPlugins( KConfig* cfg ) +inline KDecorationPreviewPlugins::KDecorationPreviewPlugins( TDEConfig* cfg ) : KDecorationPlugins( cfg ) { } diff --git a/twin/kcmtwin/twindecoration/twindecoration.cpp b/twin/kcmtwin/twindecoration/twindecoration.cpp index efe46c1bc..30695cdef 100644 --- a/twin/kcmtwin/twindecoration/twindecoration.cpp +++ b/twin/kcmtwin/twindecoration/twindecoration.cpp @@ -62,14 +62,14 @@ #include <kdecoration_plugins_p.h> #include <kdecorationfactory.h> -// KCModule plugin interface +// TDECModule plugin interface // ========================= typedef KGenericFactory<KWinDecorationModule, TQWidget> KWinDecoFactory; K_EXPORT_COMPONENT_FACTORY( kcm_twindecoration, KWinDecoFactory("kcmtwindecoration") ) KWinDecorationModule::KWinDecorationModule(TQWidget* parent, const char* name, const TQStringList &) : DCOPObject("KWinClientDecoration"), - KCModule(KWinDecoFactory::instance(), parent, name), + TDECModule(KWinDecoFactory::instance(), parent, name), twinConfig("twinrc"), pluginObject(0) { @@ -477,7 +477,7 @@ void KWinDecorationModule::createThirdPartyWMList() // Reset the decoration plugin to what the user just selected void KWinDecorationModule::slotChangeDecoration( const TQString & text) { - KConfig twinConfig("twinrc"); + TDEConfig twinConfig("twinrc"); twinConfig.setGroup("Style"); // Let the user see config options for the currently selected decoration @@ -488,7 +488,7 @@ void KWinDecorationModule::slotChangeDecoration( const TQString & text) // This is the selection handler setting void KWinDecorationModule::slotSelectionChanged() { - emit KCModule::changed(true); + emit TDECModule::changed(true); processEnabledDisabledTabs(); } @@ -555,7 +555,7 @@ void KWinDecorationModule::slotBorderChanged( int size ) { if( lBorder->isHidden()) return; - emit KCModule::changed( true ); + emit TDECModule::changed( true ); TQValueList< BorderSize > sizes; if( plugins->factory() != NULL ) sizes = plugins->factory()->borderSizes(); @@ -611,7 +611,7 @@ TQString KWinDecorationModule::decorationLibName( const TQString& name ) // Loads/unloads and inserts the decoration config plugin into the // pluginConfigWidget, allowing for dynamic configuration of decorations -void KWinDecorationModule::resetPlugin( KConfig* conf, const TQString& currentDecoName ) +void KWinDecorationModule::resetPlugin( TDEConfig* conf, const TQString& currentDecoName ) { // Config names are "twin_icewm_config" // for "twin3_icewm" twin client @@ -656,13 +656,13 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const TQString& currentDe if (alloc_ptr != NULL) { - allocatePlugin = (TQObject* (*)(KConfig* conf, TQWidget* parent))alloc_ptr; + allocatePlugin = (TQObject* (*)(TDEConfig* conf, TQWidget* parent))alloc_ptr; pluginObject = (TQObject*)(allocatePlugin( conf, pluginConfigWidget )); // connect required signals and slots together... connect( pluginObject, TQT_SIGNAL(changed()), this, TQT_SLOT(slotSelectionChanged()) ); - connect( this, TQT_SIGNAL(pluginLoad(KConfig*)), pluginObject, TQT_SLOT(load(KConfig*)) ); - connect( this, TQT_SIGNAL(pluginSave(KConfig*)), pluginObject, TQT_SLOT(save(KConfig*)) ); + connect( this, TQT_SIGNAL(pluginLoad(TDEConfig*)), pluginObject, TQT_SLOT(load(TDEConfig*)) ); + connect( this, TQT_SIGNAL(pluginSave(TDEConfig*)), pluginObject, TQT_SLOT(save(TDEConfig*)) ); connect( this, TQT_SIGNAL(pluginDefaults()), pluginObject, TQT_SLOT(defaults()) ); pluginConfigWidget->show(); return; @@ -675,7 +675,7 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const TQString& currentDe // Reads the twin config settings, and sets all UI controls to those settings // Updating the config plugin if required -void KWinDecorationModule::readConfig( KConfig* conf ) +void KWinDecorationModule::readConfig( TDEConfig* conf ) { // General tab // ============ @@ -767,17 +767,17 @@ void KWinDecorationModule::readConfig( KConfig* conf ) processEnabledDisabledTabs(); - emit KCModule::changed(false); + emit TDECModule::changed(false); } // Writes the selected user configuration to the twin config file -void KWinDecorationModule::writeConfig( KConfig* conf ) +void KWinDecorationModule::writeConfig( TDEConfig* conf ) { TQString name = decorationList->currentText(); TQString libName = decorationLibName( name ); - KConfig twinConfig("twinrc"); + TDEConfig twinConfig("twinrc"); twinConfig.setGroup("Style"); // General settings @@ -835,7 +835,7 @@ void KWinDecorationModule::writeConfig( KConfig* conf ) currentLibraryName = libName; // We saved, so tell kcmodule that there have been no new user changes made. - emit KCModule::changed(false); + emit TDECModule::changed(false); } @@ -843,7 +843,7 @@ void KWinDecorationModule::dcopUpdateClientList() { // Changes the current active ListBox item, and // Loads a new plugin configuration tab if required. - KConfig twinConfig("twinrc"); + TDEConfig twinConfig("twinrc"); twinConfig.setGroup("Style"); readConfig( &twinConfig ); @@ -851,10 +851,10 @@ void KWinDecorationModule::dcopUpdateClientList() } -// Virutal functions required by KCModule +// Virutal functions required by TDECModule void KWinDecorationModule::load() { - KConfig twinConfig("twinrc"); + TDEConfig twinConfig("twinrc"); twinConfig.setGroup("Style"); // Reset by re-reading the config @@ -865,7 +865,7 @@ void KWinDecorationModule::load() void KWinDecorationModule::save() { - KConfig twinConfig("twinrc"); + TDEConfig twinConfig("twinrc"); twinConfig.setGroup("Style"); writeConfig( &twinConfig ); diff --git a/twin/kcmtwin/twindecoration/twindecoration.h b/twin/kcmtwin/twindecoration/twindecoration.h index aa9855408..14e24c777 100644 --- a/twin/kcmtwin/twindecoration/twindecoration.h +++ b/twin/kcmtwin/twindecoration/twindecoration.h @@ -59,7 +59,7 @@ struct DecorationInfo }; -class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface, public KDecorationDefines +class KWinDecorationModule : public TDECModule, virtual public KWinDecorationIface, public KDecorationDefines { Q_OBJECT @@ -76,8 +76,8 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface virtual void dcopUpdateClientList(); signals: - void pluginLoad( KConfig* conf ); - void pluginSave( KConfig* conf ); + void pluginLoad( TDEConfig* conf ); + void pluginSave( TDEConfig* conf ); void pluginDefaults(); protected slots: @@ -88,8 +88,8 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface void slotButtonsChanged(); private: - void readConfig( KConfig* conf ); - void writeConfig( KConfig* conf ); + void readConfig( TDEConfig* conf ); + void writeConfig( TDEConfig* conf ); void findDecorations(); void createDecorationList(); void createThirdPartyWMList(); @@ -98,7 +98,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface TQString decorationLibName( const TQString& name ); TQString decorationName ( TQString& libName ); static TQString styleToConfigLib( TQString& styleLib ); - void resetPlugin( KConfig* conf, const TQString& currentDecoName = TQString::null ); + void resetPlugin( TDEConfig* conf, const TQString& currentDecoName = TQString::null ); void resetKWin(); void checkSupportedBorderSizes(); static int borderSizeToIndex( BorderSize size, TQValueList< BorderSize > sizes ); @@ -117,7 +117,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface KDecorationPreview* preview; KDecorationPlugins* plugins; - KConfig twinConfig; + TDEConfig twinConfig; TQCheckBox* cbUseCustomButtonPositions; // TQCheckBox* cbUseMiniWindows; @@ -130,7 +130,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface TQWidget* pluginConfigWidget; TQString currentLibraryName; TQString oldLibraryName; - TQObject* (*allocatePlugin)( KConfig* conf, TQWidget* parent ); + TQObject* (*allocatePlugin)( TDEConfig* conf, TQWidget* parent ); // Page 2 ButtonPositionWidget *buttonPositionWidget; |