Commit Graph

33 Commits

Author SHA1 Message Date
Marco Martin
edad4c4043 add Application formFactor 2012-11-23 17:46:52 +01:00
Sebastian Kügler
d9612651cb ToolBox bindings for declarative containments
This adds the necessary bits, actions handling, showing / hiding of
toolbox and a hooks for config interface and add widgets.

The interesting bits:

Toolbox separate on the scene

For declarative containments, we add a declarativewidget on top of the
view which loads the "org.kde.toolbox" package. The toolbox can differ
per platform, layout of toolbox and containment can not "leak" into each
other.

ToolBox import

The most important and interesting bit is the list of actions the
ToolBox exposes, it's collected from corona, containment. The latter is
actually problematic, since we don't get access to the actions
internally provided by Containment
(ContainmentPrivate::addDefaultActions).
Containment::setToolBox(AbstractToolBox) being protected, we cannot
register our declarative ToolBoxProxy implementation to the containment,
so we have to wire up settings and addwidgets separately. Sorting of the
actions is "random", and expected to be done by the QML toolbox
implementation, based on objectName strings.

REVIEW:107232
2012-11-07 17:21:26 +01:00
Marco Martin
18c1cc8dab popupShowing property 2012-09-20 17:07:07 +02:00
Marco Martin
c36c2f88aa support for tooltips in collapsed popupapplets 2012-08-22 12:03:54 +02:00
Marco Martin
8d4c76ac1f add binding for horizontal and vertical size policy of the plasmoid 2012-08-01 20:39:06 +02:00
Aaron Seigo
2435f1cc6a fix video tuortial widget 2011-12-05 22:40:16 +01:00
Jacopo De Simoi
24639f0d7a Add the popupEvent signal to appletinterface 2011-11-24 18:04:43 +01:00
Marco Martin
f6f9c26fdd support popup with timeout 2011-11-01 21:30:45 +01:00
Aaron Seigo
1e2e094fdd allow adding separators to the context menu 2011-10-27 16:44:55 +02:00
Marco Martin
84de302083 fix containment margins
signal availableScreenRegionChanged() too
2011-10-01 15:14:43 +02:00
Aaron Seigo
136ea88ec4 preserve order of actions 2011-09-28 08:50:43 +02:00
Marco Martin
388d61203f compatible signature in connect 2011-04-14 22:49:13 +02:00
Marco Martin
469f2076dd reorder together the other Plasma enums 2011-04-14 19:50:57 +02:00
Marco Martin
ef1ff5403e FEATURE:bind Applet::status() 2011-04-14 16:38:15 +02:00
Marco Martin
2754c01add FEATURE: expose the activity name and id
expose activity name and activityid in the containment wrapper interface
2011-04-04 16:15:48 +02:00
Marco Martin
264aa5e8fb bind setAssociatedApplication 2011-03-27 16:59:08 +02:00
Marco Martin
fcd51b4c67 support availableScreenregion()
FEATURE: bridge to Corona::availableScreenRegion(), as an array of rects
2011-03-13 17:26:59 +01:00
Marco Martin
f07062fae5 movableApplets property of Containment
just for scripted contaiments, C++ ones can easily implement it themselves
2011-03-07 20:17:52 +01:00
Marco Martin
33fe3f4874 export the QRectF as an objecy QtScript understand 2011-03-02 15:41:57 +01:00
Marco Martin
0dda9c72ee bind screen() and Corona::screenGeometry() 2011-03-02 15:41:57 +01:00
Marco Martin
15122a4d6e export action() 2011-02-28 20:42:24 +01:00
Marco Martin
a5636902e6 correctly register the type property 2011-02-25 22:12:41 +01:00
Marco Martin
b6f2751ba2 possible to set drawWallpaper and containmentType 2011-02-22 13:25:03 +01:00
Marco Martin
ea0b394a55 a simple binding for scripted containments 2011-02-20 19:45:40 +01:00
Aaron J. Seigo
906b55c050 unbreak update() method
svn path=/trunk/KDE/kdebase/runtime/; revision=1217812
2011-01-28 19:44:35 +00:00
Marco Martin
ac8de83bbd first important part for the ml bindings merge:
make appletInterface more generic it could work with QML too
simplejavascriptapplet inherits from an abstract ckass that provides just the virtuals of functions needed by appletinterface so a different scriptengine implementation can be used as well.

The behaviour of the current js bindings should be completely unchanged.

svn path=/trunk/KDE/kdebase/runtime/; revision=1185532
2010-10-13 16:12:43 +00:00
Aaron J. Seigo
33c240ffa4 use filePathFromScriptContext
svn path=/trunk/KDE/kdebase/runtime/; revision=1171720
2010-09-04 22:51:13 +00:00
Aaron J. Seigo
603096a318 make addon packages work with Svg objects as well (and just about everything else that we might need in future); need to replicate this for DataEngine and Runner now.
svn path=/trunk/KDE/kdebase/runtime/; revision=1171497
2010-09-04 00:27:45 +00:00
Aaron J. Seigo
de6c425f17 package is no longer needed, use the local package if there is one, falling back to the main one when it isn't. overhead is negligable (measured it)
svn path=/trunk/KDE/kdebase/runtime/; revision=1171490
2010-09-04 00:06:18 +00:00
Aaron J. Seigo
bf35cc9176 use the centralized global object methods from ScriptEnv in SimpleJavaScriptApplet; gets rid of a handful of code and makes it more consistent
svn path=/trunk/KDE/kdebase/runtime/; revision=1171438
2010-09-03 21:31:37 +00:00
Aaron J. Seigo
871d541d9f avoid infinite loop when connecting to a dataengine, but not reimplementing dataUpdated in the js
svn path=/trunk/KDE/kdebase/runtime/; revision=1171421
2010-09-03 20:42:52 +00:00
Aaron J. Seigo
c9b045fa86 themed colors
svn path=/trunk/KDE/kdebase/runtime/; revision=1170430
2010-08-31 20:47:05 +00:00
Aaron J. Seigo
b5669412c5 reorg the sources; was growing increasingly messy and was only going to get "worse" as DataEngine grows
svn path=/trunk/KDE/kdebase/runtime/; revision=1159715
2010-08-06 02:01:40 +00:00