[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/amarok
From:       Seb Ruiz <seb100 () optusnet ! com ! au>
Date:       2005-04-22 1:17:17
Message-ID: 20050422011717.3FF7C652 () office ! kde ! org
[Download RAW message or body]

CVS commit by seb: 

FEATURE: Ability to download ContextBrowser themes via KHNS.


  M +1 -0      ChangeLog   1.619
  M +1 -1      src/Makefile.am   1.174
  M +21 -0     src/Options2.ui   1.48
  M +8 -0      src/Options2.ui.h   1.8
  M +5 -0      src/amarokrc   1.10


--- kdeextragear-1/amarok/ChangeLog  #1.618:1.619
@@ -6,4 +6,5 @@
 VERSION 1.3-beta1:
   FEATURES:
+    * Automatic download of ContextBrowser themes using GHNS.
     * Support for reading embedded images from ID3 tags. (BR 88492)
     * Wikipedia tab in ContextBrowser allows for artist biography retrieval

--- kdeextragear-1/amarok/src/Makefile.am  #1.173:1.174
@@ -111,5 +111,5 @@
     $(top_builddir)/amarok/src/ipod/itunesdb/libitunesdb.la \
     $(top_builddir)/amarok/src/statusbar/libstatusbar.la \
-    $(LIB_KUTILS) $(LIB_KFILE) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_KHTML) \
+    $(LIB_KUTILS) $(LIB_KFILE) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_KHTML) $(LIB_KNEWSTUFF) \
     $(taglib_libs) $(gl_libs) $(LIB_SQLITE) $(LIB_SQLITE_LOCAL) $(LIB_TUNEPIMP) \
     $(mysql_libs) \

--- kdeextragear-1/amarok/src/Options2.ui  #1.47:1.48
@@ -548,4 +548,18 @@
                             </property>
                         </widget>
+                        <widget class="QPushButton">
+                            <property name="name">
+                                <cstring>retrievePushButton</cstring>
+                            </property>
+                            <property name="text">
+                                <string>Get New Styles</string>
+                            </property>
+                            <property name="toolTip" stdset="0">
+                                <string>Click to download new Context Browser styles.</string>
+                            </property>
+                            <property name="whatsThis" stdset="0">
+                                <string>Select and download new Context Browser styles.</string>
+                            </property>
+                        </widget>
                     </hbox>
                 </widget>
@@ -590,4 +604,10 @@
         <slot>installPushButton_clicked()</slot>
     </connection>
+    <connection>
+        <sender>retrievePushButton</sender>
+        <signal>clicked()</signal>
+        <receiver>Options2</receiver>
+        <slot>retrievePushButton_clicked()</slot>
+    </connection>
 </connections>
 <includes>
@@ -596,4 +616,5 @@
 <slots>
     <slot>installPushButton_clicked()</slot>
+    <slot>retrievePushButton_clicked()</slot>
 </slots>
 <functions>

--- kdeextragear-1/amarok/src/Options2.ui.h  #1.7:1.8
@@ -20,4 +20,5 @@
 #include <kmessagebox.h>
 #include <ktar.h>
+#include <knewstuff/downloaddialog.h>
 class KArchiveDirectory;
 
@@ -73,2 +74,9 @@ void Options2::updateStyleComboBox()
     styleComboBox->setCurrentItem(AmarokConfig::contextBrowserStyleSheet());
 }
+
+void Options2::retrievePushButton_clicked()
+{
+    KNS::DownloadDialog::open("amarok/styles");
+    styleComboBox->clear();
+    updateStyleComboBox();
+}

--- kdeextragear-1/amarok/src/amarokrc  #1.9:1.10
@@ -8,2 +8,7 @@
 #see PlaylistWidget::setColumnWidth() for explanation for below
 ColumnWidths=0,200,100,100,0,0,0,0,0,80,0
+
+[KNewStuff]
+TargetDir=amarok/themes
+Uncompress=application/x-gzip
+ProvidersUrl=http://download.kde.org/khotnewstuff/amarokthemes-providers.xml


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic