Difference between revisions of "Development/Tutorials/Plasma/QML/ActiveSettings"

Jump to: navigation, search
(start active-settings docu)
 
Line 6: Line 6:
 
You can query available modules using the --list argument to active-settings:
 
You can query available modules using the --list argument to active-settings:
  
<nowiki>
+
<pre>
 
$ active-settings --list                                              org.kde.active.settings.web            Settings for history, caching, etc.
 
$ active-settings --list                                              org.kde.active.settings.web            Settings for history, caching, etc.
 
org.kde.active.settings.configtest              Test Module for the Config Bindings
 
org.kde.active.settings.configtest              Test Module for the Config Bindings
 
org.kde.active.settings.time            Settings for timezone and date display
 
org.kde.active.settings.time            Settings for timezone and date display
</nowiki>
+
</pre>
  
 
You can load an individual module by supplying its plugin name as argument to active-settings:
 
You can load an individual module by supplying its plugin name as argument to active-settings:

Revision as of 17:47, 30 December 2011

This tutorial teaches you how you can load Active settings modules into your app, and create your own modules.

Architecture

Active Settings is an app, much like Plasma Desktop's kcmshell that shows and loads configuration modules. These configuration modules are plugins providing a QML package and an optional C++-plugin which exports custom-written configuration objects as QObject to the declarative environment.

You can query available modules using the --list argument to active-settings:

$ active-settings --list                                               org.kde.active.settings.web             Settings for history, caching, etc.
org.kde.active.settings.configtest              Test Module for the Config Bindings
org.kde.active.settings.time            Settings for timezone and date display

You can load an individual module by supplying its plugin name as argument to active-settings: active-settings org.kde.active.settings.time will open the active-settings app and load the "Time and Date" module on startup.


KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal