This section describes how to use the Settings API in your Tablet application.
$ sudo zypper install meego-ux-settings-libsettings
See the Desktop specification for more information. The most important fields are the "
Type" and a custom section labeled "
Type" must be "
ControlPanelApplet". In the custom section, point to your XML settings file like this: "
Part=/path/to/your/settings/file.xml". When you are done, place the desktop file in
/usr/share/meego-ux-settings/apps. When the settings application is launched, it will look in this directory and create menu entries for each setting.
Here is an example desktop file:
[Desktop Entry] Type=ControlPanelApplet Name=Example Settings Applet Icon= [DCP] Part=example.xml
The following sample application can be used as a reference. It creates a simple window in which you can use to test your settings application.
$ tar xvjf ./settings-sdk.tgz $ cd tests $ ./test-declarative-settings /path/to/your/settings.xml
You can also use meego ux settings to test your applet if available:
meego-qml-wrapper --app meego-tablet-settings --fullscreen --cmd showPage --cdata NameOfSettingsPage
Contained in this attachment are sample desktop and XML examples.