move this where its useful in its capacity as a test
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906380
This commit is contained in:
parent
f50517cb87
commit
ec3560411e
14
scriptengines/javascript/tests/tiger/contents/code/main
Normal file
14
scriptengines/javascript/tests/tiger/contents/code/main
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
svg = new PlasmaSvg( 'tiger', plasmoid );
|
||||||
|
plasmoid.setAction("myAction", "Select Me!", "plasma");
|
||||||
|
|
||||||
|
plasmoid.action_myAction = function()
|
||||||
|
{
|
||||||
|
print("myAction triggered!");
|
||||||
|
plasmoid.removeAction("myAction");
|
||||||
|
}
|
||||||
|
|
||||||
|
plasmoid.paintInterface = function(painter)
|
||||||
|
{
|
||||||
|
svg.resize( plasmoid.size() );
|
||||||
|
svg.paint( painter, 0,0 );
|
||||||
|
}
|
730
scriptengines/javascript/tests/tiger/contents/images/tiger.svg
Normal file
730
scriptengines/javascript/tests/tiger/contents/images/tiger.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 94 KiB |
42
scriptengines/javascript/tests/tiger/metadata.desktop
Normal file
42
scriptengines/javascript/tests/tiger/metadata.desktop
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=Tiger
|
||||||
|
Name[el]=Τίγρης
|
||||||
|
Name[gl]=Tigre
|
||||||
|
Name[km]=ខ្លា
|
||||||
|
Name[pa]=ਸ਼ੇਰ
|
||||||
|
Name[pl]=Tygrys
|
||||||
|
Name[pt]=Tigre
|
||||||
|
Name[ro]=Tigru
|
||||||
|
Name[tr]=Kaplan
|
||||||
|
Name[uk]=Тигр
|
||||||
|
Name[x-test]=xxTigerxx
|
||||||
|
Comment=A Script Adaptor
|
||||||
|
Comment[el]=Μια υποδοχή σεναρίου
|
||||||
|
Comment[es]=Un adaptador de script
|
||||||
|
Comment[et]=Skriptiadaptor
|
||||||
|
Comment[fr]=Un adaptateur de script
|
||||||
|
Comment[gl]=Un adaptador de script
|
||||||
|
Comment[ja]=スクリプトアダプタ
|
||||||
|
Comment[km]=អាដាប់ទ័រស្គ្រីប
|
||||||
|
Comment[nds]=En Skript-Topasser
|
||||||
|
Comment[nn]=Skripttilpassar
|
||||||
|
Comment[pa]=ਇੱਕ ਸਕ੍ਰਿਪਟ ਐਡਪਟਰ
|
||||||
|
Comment[pt]=Um Adaptador de Programas
|
||||||
|
Comment[pt_BR]=Um Adaptador de Script
|
||||||
|
Comment[sv]=En skriptadapter
|
||||||
|
Comment[uk]=Пристосування скриптів
|
||||||
|
Comment[x-test]=xxA Script Adaptorxx
|
||||||
|
Type=Service
|
||||||
|
ServiceTypes=Plasma/Applet
|
||||||
|
|
||||||
|
X-KDE-PluginInfo-Author=Richard Moore
|
||||||
|
X-KDE-PluginInfo-Email=panel-devel@kde.org
|
||||||
|
X-KDE-PluginInfo-Name=tiger
|
||||||
|
X-KDE-PluginInfo-Version=pre0.1
|
||||||
|
X-KDE-PluginInfo-Website=http://plasma.kde.org/
|
||||||
|
X-KDE-PluginInfo-Category=Examples
|
||||||
|
X-KDE-PluginInfo-Depends=
|
||||||
|
X-KDE-PluginInfo-License=GPL
|
||||||
|
X-KDE-PluginInfo-EnabledByDefault=true
|
||||||
|
X-Plasma-API=javascript
|
Loading…
Reference in New Issue
Block a user