#include <KFileDialog>
#include <KMessageBox>
-#include <KNS3/DownloadDialog>
#include <KPluginInfo>
#include <KPluginSelector>
#include <KStandardDirs>
// Load config
gui.kcfg_AutoUpdateScripts->setChecked( AmarokConfig::autoUpdateScripts() );
- gui.manageButton->setIcon( KIcon( "get-hot-new-stuff-amarok" ) );
- connect( gui.manageButton, SIGNAL(clicked()), SLOT(slotManageScripts()) );
connect( gui.installButton, SIGNAL(clicked(bool)), SLOT(installLocalScript()) );
m_selector = gui.scriptSelector;
{}
void
-ScriptsConfig::slotManageScripts()
-{
- QStringList updateScriptsList;
- KNS3::DownloadDialog dialog("amarok.knsrc", this);
- dialog.exec();
-
- if( !dialog.installedEntries().isEmpty() || !dialog.changedEntries().isEmpty() )
- m_timer->start();
-}
-
-void
ScriptsConfig::updateSettings()
{
DEBUG_BLOCK
void slotConfigChanged( bool changed );
private slots:
- void slotManageScripts();
void installLocalScript();
void slotReloadScriptSelector();
void slotUpdateScripts();
<x>0</x>
<y>0</y>
<width>590</width>
- <height>115</height>
+ <height>141</height>
</rect>
</property>
<property name="sizePolicy">
</spacer>
</item>
<item>
- <widget class="QPushButton" name="manageButton">
- <property name="toolTip">
- <string>Browse, install, and uninstall scripts</string>
- </property>
- <property name="text">
- <string>Manage Scripts</string>
- </property>
- </widget>
- </item>
- <item>
<widget class="KPushButton" name="reloadButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="text">
+ <string>Reload</string>
+ </property>
<property name="icon">
<iconset theme="view-refresh">
<normaloff/>