[Kde-bindings] KDE/kdebindings/ruby/plasma

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri May 2 11:39:55 UTC 2008


SVN commit 803240 by rdale:

* Enclosed the applet and data engine example classes within Ruby
  modules to match the new krubypluginfactory naming convention.
  Everything installed under share/apps has underscores in the names
  rather than hyphens. The .desktop file names contain hyphens, and
  the X-KDE-PluginInfo-Name entries have hyphens too.

CCMAIL: kde-bindings at kde.org



 M  +8 -0      ChangeLog  
 M  +2 -2      examples/applets/analog-clock/CMakeLists.txt  
 D             examples/applets/analog-clock/analog_clock.rb  
 A             examples/applets/analog-clock/clock.rb   examples/applets/analog-clock/analog_clock.rb#803208
 M  +1 -1      examples/applets/analog-clock/plasma-ruby-clock-default.desktop  
 M  +3 -3      examples/applets/digital-clock/CMakeLists.txt  
 A             examples/applets/digital-clock/clock.rb   examples/applets/digital-clock/digital_clock.rb#802993
 D             examples/applets/digital-clock/digital_clock.rb  
 M  +1 -1      examples/applets/digital-clock/plasma-ruby-digital-clock-default.desktop  
 M  +1 -1      examples/applets/webapplet/CMakeLists.txt  
 M  +1 -1      examples/applets/webapplet/plasma-ruby-applet-web.desktop  
 M  +3 -0      examples/applets/webapplet/web_applet.rb  
 M  +1 -1      examples/dataengines/dbpedia_albums/CMakeLists.txt  
 M  +12 -11    examples/dataengines/dbpedia_albums/dbpedia_albums_engine.rb  
 M  +1 -1      examples/dataengines/dbpedia_albums/plasma-dataengine-dbpedia-albums.desktop  
 M  +1 -1      examples/dataengines/time/CMakeLists.txt  
 M  +1 -1      examples/dataengines/time/plasma-dataengine-ruby-time.desktop  
 M  +4 -0      examples/dataengines/time/time_engine.rb  


--- trunk/KDE/kdebindings/ruby/plasma/ChangeLog #803239:803240
@@ -1,3 +1,11 @@
+2008-05-02  Richard Dale  <richard.j.dale at gmail.com>
+
+	* Enclosed the applet and data engine example classes within Ruby
+	  modules to match the new krubypluginfactory naming convention.
+	  Everything installed under share/apps has underscores in the names
+	  rather than hyphens. The .desktop file names contain hyphens, and
+	  the X-KDE-PluginInfo-Name entries have hyphens too.
+
 2008-04-28  Richard Dale  <richard.j.dale at gmail.com>
 
 	* Update  the clock applets, plasmoidviewer and engineexplorer in line 
--- trunk/KDE/kdebindings/ruby/plasma/examples/applets/analog-clock/CMakeLists.txt #803239:803240
@@ -10,8 +10,8 @@
 
 	install(FILES plasma-ruby-clock-default.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
-	install(FILES analog_clock.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-ruby-analog-clock)
-	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/analog_clock_config.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-ruby-analog-clock)
+	install(FILES clock.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_ruby_analog_clock)
+	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/analog_clock_config.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_ruby_analog_clock)
 else(RBUIC4)
         MESSAGE(STATUS "rbuic4 not found, ruby-clock will not created")
 endif(RBUIC4)
--- trunk/KDE/kdebindings/ruby/plasma/examples/applets/analog-clock/plasma-ruby-clock-default.desktop #803239:803240
@@ -24,7 +24,7 @@
 Type=Service
 ServiceTypes=Plasma/Applet
 X-KDE-Library=krubypluginfactory
-X-KDE-PluginKeyword=plasma-ruby-analog-clock/analog_clock.rb
+X-KDE-PluginKeyword=plasma_ruby_analog_clock/clock.rb
 X-KDE-PluginInfo-Author=The Plasma Team
 X-KDE-PluginInfo-Email=panel-devel at kde.org
 X-KDE-PluginInfo-Name=ruby-clock
--- trunk/KDE/kdebindings/ruby/plasma/examples/applets/digital-clock/CMakeLists.txt #803239:803240
@@ -13,9 +13,9 @@
 
 	install(FILES plasma-ruby-digital-clock-default.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
-	install(FILES digital_clock.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-ruby-digital-clock)
-	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/digital_clock_config.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-ruby-digital-clock)
-	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/calendar.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-ruby-digital-clock)
+	install(FILES clock.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_ruby_digital_clock)
+	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/digital_clock_config.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_ruby_digital_clock)
+	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/calendar.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_ruby_digital_clock)
 else(RBUIC4)
         MESSAGE(STATUS "rbuic4 not found, ruby-digital-clock will not created")
 endif(RBUIC4)
--- trunk/KDE/kdebindings/ruby/plasma/examples/applets/digital-clock/plasma-ruby-digital-clock-default.desktop #803239:803240
@@ -99,7 +99,7 @@
 X-KDE-ServiceTypes=Plasma/Applet
 
 X-KDE-Library=krubypluginfactory
-X-KDE-PluginKeyword=plasma-ruby-digital-clock/digital_clock.rb
+X-KDE-PluginKeyword=plasma_ruby_digital_clock/clock.rb
 
 X-KDE-PluginInfo-Author=Riccardo Iaconelli
 X-KDE-PluginInfo-Email=riccardo at kde.org
--- trunk/KDE/kdebindings/ruby/plasma/examples/applets/webapplet/CMakeLists.txt #803239:803240
@@ -2,4 +2,4 @@
 
 include_directories( ${RUBY_INCLUDE_PATH} )
 install(FILES plasma-ruby-applet-web.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-install(FILES web_applet.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-ruby-webapplet)
+install(FILES web_applet.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_ruby_web_applet)
--- trunk/KDE/kdebindings/ruby/plasma/examples/applets/webapplet/plasma-ruby-applet-web.desktop #803239:803240
@@ -7,7 +7,7 @@
 Icon=internet-web-browser
 
 X-KDE-Library=krubypluginfactory
-X-KDE-PluginKeyword=plasma-ruby-webapplet/web_applet.rb
+X-KDE-PluginKeyword=plasma_ruby_web_applet/web_applet.rb
 
 X-KDE-PluginInfo-Author=The Plasma Team
 X-KDE-PluginInfo-Email=panel-devel at kde.org
--- trunk/KDE/kdebindings/ruby/plasma/examples/applets/webapplet/web_applet.rb #803239:803240
@@ -26,6 +26,8 @@
 
 require 'plasma_applet'
 
+module PlasmaRubyWebApplet
+
 class WebApplet < Plasma::Applet
 
   slots 'dataUpdated(QString,Plasma::DataEngine::Data)',
@@ -86,5 +88,6 @@
     puts "loading #{url.toString}"
     @page.mainFrame.load(url)
   end
+end
 
 end
--- trunk/KDE/kdebindings/ruby/plasma/examples/dataengines/dbpedia_albums/CMakeLists.txt #803239:803240
@@ -1,3 +1,3 @@
 install(FILES plasma-dataengine-dbpedia-albums.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
-install(FILES dbpedia_albums_engine.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-engine-dbpedia-albums)
+install(FILES dbpedia_albums_engine.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_engine_dbpedia_albums)
 
--- trunk/KDE/kdebindings/ruby/plasma/examples/dataengines/dbpedia_albums/dbpedia_albums_engine.rb #803239:803240
@@ -163,15 +163,16 @@
    }
 EOS
 
-#
-# Customize the use of the SparqlDataEngine by giving it the url of an endpoint,
-# a query to execute, and the name of the most important (or primary) value.
-# The '%s' in the query text above is replaced with the source name, with any
-# spaces replaced by underscores.
-#
-class DbpediaAlbumsEngine < SparqlDataEngine
-  def initialize(parent, args)
-    super(parent, args, 'http://dbpedia.org/sparql', SPARQL_QUERY, 'name')
+module PlasmaEngineDbpediaAlbums
+  #
+  # Customize the use of the SparqlDataEngine by giving it the url of an endpoint,
+  # a query to execute, and the name of the most important (or primary) value.
+  # The '%s' in the query text above is replaced with the source name, with any
+  # spaces replaced by underscores.
+  #
+  class DbpediaAlbumsEngine < SparqlDataEngine
+    def initialize(parent, args)
+      super(parent, args, 'http://dbpedia.org/sparql', SPARQL_QUERY, 'name')
+    end
   end
-end
-
+end
\ No newline at end of file
--- trunk/KDE/kdebindings/ruby/plasma/examples/dataengines/dbpedia_albums/plasma-dataengine-dbpedia-albums.desktop #803239:803240
@@ -5,5 +5,5 @@
 Type=Service
 Icon=
 X-KDE-Library=krubypluginfactory
-X-KDE-PluginKeyword=plasma-engine-dbpedia-albums/dbpedia_albums_engine.rb
+X-KDE-PluginKeyword=plasma_engine_dbpedia_albums/dbpedia_albums_engine.rb
 X-Plasma-EngineName=dbpedia-albums
--- trunk/KDE/kdebindings/ruby/plasma/examples/dataengines/time/CMakeLists.txt #803239:803240
@@ -1,3 +1,3 @@
 install(FILES plasma-dataengine-ruby-time.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
-install(FILES time_engine.rb DESTINATION ${DATA_INSTALL_DIR}/plasma-ruby-engine-time)
+install(FILES time_engine.rb DESTINATION ${DATA_INSTALL_DIR}/plasma_ruby_engine_time)
 
--- trunk/KDE/kdebindings/ruby/plasma/examples/dataengines/time/plasma-dataengine-ruby-time.desktop #803239:803240
@@ -108,5 +108,5 @@
 Type=Service
 Icon=alarmclock
 X-KDE-Library=krubypluginfactory
-X-KDE-PluginKeyword=plasma-ruby-engine-time/time_engine.rb
+X-KDE-PluginKeyword=plasma_ruby_engine_time/time_engine.rb
 X-Plasma-EngineName=ruby-time
--- trunk/KDE/kdebindings/ruby/plasma/examples/dataengines/time/time_engine.rb #803239:803240
@@ -23,6 +23,8 @@
 
 require 'plasma_applet'
 
+module PlasmaRubyEngineTime
+
 class TimeEngine < Plasma::DataEngine
 
   def initialize(parent, args)
@@ -69,3 +71,5 @@
     return true
   end
 end
+
+end



More information about the Kde-bindings mailing list