diff options
Diffstat (limited to 'src/configpluginspage.cpp')
-rw-r--r-- | src/configpluginspage.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/configpluginspage.cpp b/src/configpluginspage.cpp index 0b8cb47..3fe80ff 100644 --- a/src/configpluginspage.cpp +++ b/src/configpluginspage.cpp @@ -41,29 +41,29 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* parent, const c TQHBoxLayout* pluginsBox = new TQHBoxLayout( box ); lPlugins = new TDEListBox( parent, "lPlugins" ); pluginsBox->addWidget(lPlugins); - connect( lPlugins, TQT_SIGNAL(highlighted(int)), - this, TQT_SLOT(pluginsSelectionChanged(int)) + connect( lPlugins, TQ_SIGNAL(highlighted(int)), + this, TQ_SLOT(pluginsSelectionChanged(int)) ); refreshPlugins(); TQVBoxLayout* pluginsRightBox = new TQVBoxLayout( pluginsBox ); pAddPlugin = new KPushButton( iconLoader->loadIcon("add",TDEIcon::Small), i18n("Add ..."), parent, "pAddPlugin" ); pluginsRightBox->addWidget( pAddPlugin ); - connect( pAddPlugin, TQT_SIGNAL(clicked()), - this, TQT_SLOT(getPlugin()) + connect( pAddPlugin, TQ_SIGNAL(clicked()), + this, TQ_SLOT(getPlugin()) ); pRemovePlugin = new KPushButton( iconLoader->loadIcon("remove",TDEIcon::Small), i18n("Remove"), parent, "pRemovePlugin" ); pRemovePlugin->setEnabled( false ); pluginsRightBox->addWidget( pRemovePlugin ); - connect( pRemovePlugin, TQT_SIGNAL(clicked()), - this, TQT_SLOT(removePlugin()) + connect( pRemovePlugin, TQ_SIGNAL(clicked()), + this, TQ_SLOT(removePlugin()) ); pluginsRightBox->addStretch(); pAboutPlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("About"), parent, "pAboutPlugin" ); pAboutPlugin->setEnabled( false ); pluginsRightBox->addWidget( pAboutPlugin ); - connect( pAboutPlugin, TQT_SIGNAL(clicked()), - this, TQT_SLOT(aboutPlugin()) + connect( pAboutPlugin, TQ_SIGNAL(clicked()), + this, TQ_SLOT(aboutPlugin()) ); /* NOTE kaligames.de is down box->addSpacing( 5 ); @@ -73,41 +73,41 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* parent, const c TQHBoxLayout* onlinePluginsBox = new TQHBoxLayout( box ); lOnlinePlugins = new TDEListBox( parent, "lOnlinePlugins" ); onlinePluginsBox->addWidget( lOnlinePlugins ); - connect( lOnlinePlugins, TQT_SIGNAL(highlighted(int)), - this, TQT_SLOT(onlinePluginsSelectionChanged(int)) + connect( lOnlinePlugins, TQ_SIGNAL(highlighted(int)), + this, TQ_SLOT(onlinePluginsSelectionChanged(int)) ); TQVBoxLayout* onlinePluginsRightBox = new TQVBoxLayout( onlinePluginsBox ); pRefreshOnlinePlugins = new KPushButton( iconLoader->loadIcon("reload",TDEIcon::Small), i18n("Refresh"), parent, "pRefreshOnlinePlugins" ); TQToolTip::add( pRefreshOnlinePlugins, i18n("Download the latest list of available plugins.") ); onlinePluginsRightBox->addWidget( pRefreshOnlinePlugins ); - connect( pRefreshOnlinePlugins, TQT_SIGNAL(clicked()), - this, TQT_SLOT(refreshOnlinePlugins()) + connect( pRefreshOnlinePlugins, TQ_SIGNAL(clicked()), + this, TQ_SLOT(refreshOnlinePlugins()) ); // TODO upgrade button // pUpgradeOnlinePlugins = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Upgrade"), parent, "pUpgradeOnlinePlugins" ); // pUpgradeOnlinePlugins->setEnabled( false ); // TQToolTip::add( pUpgradeOnlinePlugins, i18n("Download all plugins and install them into the soundKonverter directory.") ); // onlinePluginsRightBox->addWidget( pUpgradeOnlinePlugins ); -// connect(pInstallAllOnlinePlugins,TQT_SIGNAL(clicked()),this,TQT_SLOT(upgradeOnlinePlugins())); +// connect(pInstallAllOnlinePlugins,TQ_SIGNAL(clicked()),this,TQ_SLOT(upgradeOnlinePlugins())); onlinePluginsRightBox->addStretch(); pInstallOnlinePlugin = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Install"), parent, "pInstallOnlinePlugin" ); pInstallOnlinePlugin->setEnabled( false ); TQToolTip::add( pInstallOnlinePlugin, i18n("Download the selected plugin and install it into the soundKonverter directory.") ); onlinePluginsRightBox->addWidget( pInstallOnlinePlugin ); - connect( pInstallOnlinePlugin, TQT_SIGNAL(clicked()), - this, TQT_SLOT(getOnlinePlugin()) + connect( pInstallOnlinePlugin, TQ_SIGNAL(clicked()), + this, TQ_SLOT(getOnlinePlugin()) ); pAboutOnlinePlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("About"), parent, "pAboutOnlinePlugin" ); pAboutOnlinePlugin->setEnabled( false ); onlinePluginsRightBox->addWidget( pAboutOnlinePlugin ); - connect( pAboutOnlinePlugin, TQT_SIGNAL(clicked()), - this, TQT_SLOT(aboutOnlinePlugin()) + connect( pAboutOnlinePlugin, TQ_SIGNAL(clicked()), + this, TQ_SLOT(aboutOnlinePlugin()) ); cCheckOnlinePlugins = new TQCheckBox( i18n("Check for new plugins on every startup"), parent, "cCheckOnlinePlugins" ); cCheckOnlinePlugins->setChecked( config->data.plugins.checkForUpdates ); box->addWidget( cCheckOnlinePlugins ); - connect( cCheckOnlinePlugins, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(cfgChanged()) + connect( cCheckOnlinePlugins, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(cfgChanged()) ); // box->addStretch(); @@ -231,8 +231,8 @@ void ConfigPluginsPage::getPlugin() TQString fileName = filePathName.right( filePathName.length() - filePathName.findRev("/") ); getPluginFilePathName = locateLocal("data","soundkonverter/plugins/") + fileName; getPluginJob = TDEIO::file_copy( url, getPluginFilePathName, -1, true, false, false ); - connect( getPluginJob, TQT_SIGNAL(result(TDEIO::Job*)), - this, TQT_SLOT(getPluginFinished(TDEIO::Job*)) + connect( getPluginJob, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(getPluginFinished(TDEIO::Job*)) ); } } @@ -430,8 +430,8 @@ void ConfigPluginsPage::refreshOnlinePlugins() refreshOnlinePluginsJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/download.php?version=" + TQString::number(config->data.app.configVersion), locateLocal("data","soundkonverter/pluginlist.txt"), -1, true, false, false ); - connect( refreshOnlinePluginsJob, TQT_SIGNAL(result(TDEIO::Job*)), - this, TQT_SLOT(refreshOnlinePluginsFinished(TDEIO::Job*)) + connect( refreshOnlinePluginsJob, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(refreshOnlinePluginsFinished(TDEIO::Job*)) ); } @@ -505,8 +505,8 @@ void ConfigPluginsPage::getOnlinePlugin() KURL::encode_string( name ); getOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/getfile.php?version=" + TQString::number(config->data.app.configVersion) + "&file=" + name, locateLocal("data","soundkonverter/plugins/newplugin.xml"), -1, true, false, false ); - connect( getOnlinePluginJob, TQT_SIGNAL(result(TDEIO::Job*)), - this, TQT_SLOT(getOnlinePluginFinished(TDEIO::Job*)) + connect( getOnlinePluginJob, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(getOnlinePluginFinished(TDEIO::Job*)) ); } @@ -604,8 +604,8 @@ void ConfigPluginsPage::aboutOnlinePlugin() KURL::encode_string( name ); aboutOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/info.php?file=" + name + "&lang=" + TQLocale::languageToString(TQLocale::system().language()), locateLocal("data","soundkonverter/plugin_info.txt"), -1, true, false, false ); - connect( aboutOnlinePluginJob, TQT_SIGNAL(result(TDEIO::Job*)), - this, TQT_SLOT(aboutOnlinePluginFinished(TDEIO::Job*)) + connect( aboutOnlinePluginJob, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(aboutOnlinePluginFinished(TDEIO::Job*)) ); } |