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:
Aaron J. Seigo 2009-01-06 03:55:42 +00:00
parent f50517cb87
commit ec3560411e
3 changed files with 786 additions and 0 deletions

View 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 );
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 94 KiB

View 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