From ec3560411e1ba071ea13af17454b042ee2d708f5 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 6 Jan 2009 03:55:42 +0000 Subject: [PATCH] move this where its useful in its capacity as a test svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906380 --- .../javascript/tests/tiger/contents/code/main | 14 + .../tests/tiger/contents/images/tiger.svg | 730 ++++++++++++++++++ .../javascript/tests/tiger/metadata.desktop | 42 + 3 files changed, 786 insertions(+) create mode 100644 scriptengines/javascript/tests/tiger/contents/code/main create mode 100644 scriptengines/javascript/tests/tiger/contents/images/tiger.svg create mode 100644 scriptengines/javascript/tests/tiger/metadata.desktop diff --git a/scriptengines/javascript/tests/tiger/contents/code/main b/scriptengines/javascript/tests/tiger/contents/code/main new file mode 100644 index 000000000..b677c918e --- /dev/null +++ b/scriptengines/javascript/tests/tiger/contents/code/main @@ -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 ); +} diff --git a/scriptengines/javascript/tests/tiger/contents/images/tiger.svg b/scriptengines/javascript/tests/tiger/contents/images/tiger.svg new file mode 100644 index 000000000..983e57026 --- /dev/null +++ b/scriptengines/javascript/tests/tiger/contents/images/tiger.svg @@ -0,0 +1,730 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scriptengines/javascript/tests/tiger/metadata.desktop b/scriptengines/javascript/tests/tiger/metadata.desktop new file mode 100644 index 000000000..80896e85b --- /dev/null +++ b/scriptengines/javascript/tests/tiger/metadata.desktop @@ -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