a little config tester

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906334
This commit is contained in:
Aaron J. Seigo 2009-01-05 23:27:19 +00:00
parent a794f4b1ff
commit 728f6cbfcf
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,2 @@
print(plasmoid.readConfig("Test"));

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile name=""/>
<group name="General">
<entry name="Test" type="String">
<label>A test label</label>
<default>Heo hello!</default>
</entry>
</group>
</kcfg>

View File

@ -0,0 +1,17 @@
[Desktop Entry]
Name=javascript-config-test
Comment=Javascript config object test widget
Icon=configure
Type=Service
X-KDE-ServiceTypes=Plasma/Applet
X-Plasma-MainScript=code/main.js
X-KDE-PluginInfo-Author=Aaron Seigo
X-KDE-PluginInfo-Email=aseigo@kde.org
X-KDE-PluginInfo-Name=javascript-config-test
X-KDE-PluginInfo-Version=0.0
X-KDE-PluginInfo-Website=http://plasma.kde.org/
X-KDE-PluginInfo-Category=Utilities
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
X-Plasma-API=javascript