Marco Martin
b2d1493e74
crash--
2013-02-14 14:40:24 +01:00
Marco Martin
db078f8b53
basic support for wallpapers
2013-02-14 14:00:31 +01:00
Marco Martin
75ca61159f
remove ScriptEnv
...
ScriptEnv as it was cannot work anymore.
it's needed something that can replace it at least for event listeners (if we want to keep them)
2013-02-14 12:11:37 +01:00
Marco Martin
b6ae310780
toolbox works again, simplify creation
2013-02-14 12:00:53 +01:00
Marco Martin
21d96f9dbf
icon in popup, plasmoid exposes icon and title
2013-02-14 11:15:14 +01:00
Sebastian Kügler
9864f15c56
Use QIcon
2013-02-14 00:46:18 +01:00
Aaron Seigo
29878b42ab
header cleanup
2013-02-13 22:30:20 +01:00
Aaron Seigo
5389d11483
cleanups of headers
2013-02-13 22:30:12 +01:00
Aaron Seigo
0846a611e9
put ContainmentInterface into its own file
...
also try and get rid of a few unneeded headers
2013-02-13 22:26:50 +01:00
Aaron Seigo
3b6f014824
implement downloadPath, port to QStandardPaths
2013-02-13 22:26:49 +01:00
Marco Martin
b34b9e9f6a
prefer an applet-provided compactRepresentation
...
if possible, still fallback to a default one
2013-02-13 21:15:09 +01:00
Marco Martin
f51895ab91
move the "icon" in another file
...
so applets will be able to provide their own compactRepresentation
2013-02-13 19:56:08 +01:00
Marco Martin
1263ada92a
primitive support for popups.
...
is now using the horrible Window elements, when Dialog will be portedit will look definitely less broken
2013-02-13 17:36:38 +01:00
Marco Martin
95c82d3e82
manage qml object insertion in the scene in AppletInterface
2013-02-13 16:46:43 +01:00
Marco Martin
de5116ef01
remove popupEvent
2013-02-13 15:42:30 +01:00
Marco Martin
735bc7cf63
fix apiVersion
2013-02-13 15:42:30 +01:00
Marco Martin
6499942284
property setters and getters are not invokable
2013-02-13 15:42:30 +01:00
Marco Martin
00d9896656
remove JsAppletInterface
2013-02-13 15:42:30 +01:00
Marco Martin
78a5f5e2c5
remove plasmoid stuff in qtscript bindings
...
causes just confusion
2013-02-13 13:19:38 +01:00
Marco Martin
996665c2be
remove bindings of Qt enums
...
all Qt enums are already binded as Qt.*
2013-02-13 13:18:50 +01:00
Marco Martin
38a3807c1b
Applet::newStatus() -> Applet::statusChanged()
...
consistent naming
2013-02-12 20:44:04 +01:00
Marco Martin
de4fa09a6d
setFailedToLaunch -> setLaunchErrorMessage
...
setFailedToLaunch has a weird asymmetric api: now launchErrorMessage is a string property.
failedToLaunch remains and is internally set true the first time a message is set (is not posssible to set it back to false)
the message is in turn used by the scriptengine for the user visible error message.
It is done in 2 places:
if the applet package is invalid (applet not found) the message is created by the containment
if the applet package is valid, but there is a parse error in the qml file the error message is generated by the scriptengine of the applet itself.
I'm still really not happy about how the error ui is generated.
2013-02-12 20:07:23 +01:00
Marco Martin
0b24d969fe
show an error message on QML parse error
...
the error message is QML itself, coming from the Corona package (so there is the possibility that even the error message can't parse, in this case we have no way to show an error)
the user of the qml plasmoid still can't set a message on his own (setFailedToLaunch will probably become scriptengine only)
2013-02-12 15:57:42 +01:00
Marco Martin
ec55761461
Applet::isBusy() moved to scriptengine
...
the busy property is ui-specific, therefore goes only in the scriptengine
2013-02-12 13:04:47 +01:00
Marco Martin
f28d7c7220
move Applet::backgroundHints in the scriptEngine
...
the background hints are UI specific, therefore they go just in the script engine
2013-02-12 12:51:37 +01:00
Marco Martin
e6647c80bc
remove two completely unused signals
...
appletTransformedByUser appletTransformedItself
2013-02-12 12:34:10 +01:00
Marco Martin
cb43bb392c
remove Applet::hasAuthorization()
...
authorization will have to be done at QML level to have any hope to work
2013-02-12 12:18:42 +01:00
Marco Martin
b9036999f2
get rid of Applet::shouldConserveResources()
2013-02-12 11:51:05 +01:00
Marco Martin
70abf37a52
Applet::pluginName() -> Applet::pluginInfo()
...
Applet doesn't need to wrap every single methos of KPluginInfo, it can just make copies of its KPluginInfo accessible to everybody
2013-02-12 11:46:26 +01:00
Marco Martin
39151c048f
Applet::name() -> Applet::title()
...
since the applet user visible name/title can be set by the user, is not to be confused with the metadata coming from KPluginInfo
2013-02-12 11:30:25 +01:00
Marco Martin
bd9e863c6d
remove Applet:dataEngine
2013-02-12 11:14:14 +01:00
Marco Martin
798be9a407
remove the aspectRatioMode property
2013-02-11 19:32:41 +01:00
Marco Martin
9ee93a0661
make AppletInterface the root graphic object
...
AppletInterface is a QQuickItem ans
containments will receive pointers to AppletInterface as applets,
so will be able to have a limited access to it.
as an example of it working the button in the example applet enables/disables background hints
I'm still not 100% happy about it, we should see exactly what it happens when the containment deletes the graphic object.
2013-02-08 16:08:06 +01:00
Marco Martin
528d38a1a1
add ${KDE4_KDECORE_LIBS} to scriptengine
2013-02-08 12:07:16 +01:00
Marco Martin
dda900cbad
signal for backgroundhints
...
add a button to turn on/off background, will be needed to test containments features
2013-02-07 13:04:52 +01:00
Marco Martin
4a882503a5
get rid of jsappletinterface
2013-02-06 18:08:25 +01:00
Marco Martin
5e54b67156
remove references to qscriptengine
...
except inScriptEnv, but probably the whole class will be removed
2013-02-06 18:01:33 +01:00
Marco Martin
e28af01215
get rid of unused methods
2013-02-06 17:59:41 +01:00
Marco Martin
c282d222d7
get rid of declarativescriptenv
2013-02-06 17:42:35 +01:00
Marco Martin
9116e3f1d4
get rid of toolboxproxy
2013-02-06 17:39:41 +01:00
Marco Martin
fa8ab8574f
get rid of APPLETSUPERCLASS
2013-02-06 17:31:36 +01:00
Marco Martin
df6d918dec
get rid of abstractjsappletscript.h
2013-02-06 17:31:36 +01:00
Aaron Seigo
648fb8cf41
remove activityName
...
mapping activity IDs to other information (such as the user visible name)
should be done via other mechanisms (e.g. DataEngine or model via import)
2013-02-06 15:29:19 +01:00
Aaron Seigo
e216e08a96
stub in where wallpaper loading will happen
2013-02-06 15:27:59 +01:00
Marco Martin
c18eb599fe
visualize the toolbox
2013-02-06 14:20:24 +01:00
Marco Martin
d2bc77be27
toolBoxWidget -> toolBoxObject
2013-02-06 14:06:24 +01:00
Marco Martin
8516ec516f
don't access toolbox main object if isn't valid
2013-02-06 12:44:11 +01:00
Marco Martin
39f1048f15
fix messages.sh
2013-02-05 20:28:50 +01:00
Script Kiddy
984dc478ab
SVN_SILENT made messages (.desktop file)
2013-02-05 16:58:16 +01:00
Aaron Seigo
d6f0502960
package by reference nowadays
2013-02-05 16:34:43 +01:00