Commit Graph

36 Commits

Author SHA1 Message Date
Aleix Pol
84aaa236e5 Split messages with \n
This way the front-end won't receive a big string but every error in a
different line, so it improves the readability of the errors.

REVIEW: 108124
2013-01-10 05:01:59 +01:00
Marco Martin
2c6d44eb23 reparent the compact representation
leak--
2012-12-28 20:40:34 +01:00
Marco Martin
cafb39f1ba typo 2012-11-23 18:28:01 +01:00
Marco Martin
da4e133c6d Make enum values accessible as plasmoid.Planar etc
Any qml object that will be calles as an enum value, like Planar {} Application{}
etc will make enums inaccessible.
maintain them global, for retrocompatibility, but register them also under plasmoid
2012-11-23 18:26:02 +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
279d3727a5 reenable QPoint bindings 2012-09-18 12:02:27 +02:00
Marco Martin
5ec3f33717 fix build 2012-09-13 13:33:55 +02:00
Marco Martin
925e330807 fix invoke of context actions in qml plasmoids 2012-09-13 13:29:05 +02:00
Marco Martin
e5316bf6bc reenable KUrl bindings 2012-09-04 14:12:09 +02:00
Marco Martin
3d48a89111 create the compactRepr in the right context 2012-09-04 11:58:23 +02:00
Alex Merry
d6a96e32ee Fix a potential crash
This was clearly supposed to be a return statement.
2012-05-21 14:00:51 +01:00
Marco Martin
c67938106b bind plasmoid.rootItem 2012-03-07 15:55:56 +01:00
Marco Martin
1471d27cfa compactRepresentation property
qml popupapplets that export this property to the root item (a component) will use that instead of an icon
2012-03-01 22:49:34 +01:00
Aaron Seigo
2435f1cc6a fix video tuortial widget 2011-12-05 22:40:16 +01:00
Marco Martin
67ab75c0fd the catalog is called "plasma_applet_"+pluginname 2011-11-02 14:48:41 +01:00
Aaron Seigo
a810cd2ab0 don't crash when the applet fails to init 2011-09-22 22:44:16 +02:00
Marco Martin
756b3f1685 crash-- move after first call to applet() 2011-07-11 22:44:05 +02:00
Marco Martin
1d5ec8c2e0 insert a catalog named as the plugin name 2011-07-11 21:24:26 +02:00
Aaron Seigo
e8258b9131 delete the NAM; it isn't deleted by the QDeclarativeEngine 2011-06-15 14:18:43 +02:00
Marco Martin
d2efdc34ee restore ability to register contextual actions 2011-06-09 14:31:35 +02:00
Marco Martin
ff47808ef2 check against a null qscriptengine 2011-05-17 16:41:42 +02:00
Marco Martin
4a906d4ed4 dataengine bindings are in DeclarativeWidget now 2011-04-30 14:37:43 +02:00
Marco Martin
6f9f911c68 don't re-bind what was done in libkdeclarative 2011-04-07 23:27:05 +02:00
Marco Martin
2a54c9c416 use the engine access in DeclarativeWidget
now DeclarativeWidget itself steals the scriptengine, so use it instead of having the hack there
2011-04-07 22:39:18 +02:00
Aaron Seigo
da186219ae give connectAllSources the same magic sauce connectSource does
thanks to emilsedgh for having the special super power of using precisely
what hasn't been properly implemented ... and then reporting it with
nice simple examples we can test with! THAT, my friends, is how it is done.
2011-04-04 14:43:40 +02:00
Marco Martin
888d964d22 register enums in the scriptengine 2011-02-25 22:11:11 +01:00
Marco Martin
ea0b394a55 a simple binding for scripted containments 2011-02-20 19:45:40 +01:00
Aaron Reichman
4037ced032 Fixed spelling errors from krazy (all in comments or debug/warnings, no strings) 2011-02-07 12:29:08 -08:00
Marco Martin
63a8e6caec deactivate the internal import directory in a (futile?) attempt to prevent binary libraries into /share
svn path=/trunk/KDE/kdebase/runtime/; revision=1204751
2010-12-08 22:45:45 +00:00
Marco Martin
dc0ab1345f loadService() function to load services without dataengines.
will be propagated to the js appletscript too

svn path=/trunk/KDE/kdebase/runtime/; revision=1189005
2010-10-23 17:30:10 +00:00
Marco Martin
58adcad0a2 add loadUi from the js engine
svn path=/trunk/KDE/kdebase/runtime/; revision=1188406
2010-10-22 10:12:35 +00:00
Marco Martin
bc13065f9a make the authorization global
svn path=/trunk/KDE/kdebase/runtime/; revision=1188264
2010-10-21 20:37:47 +00:00
Marco Martin
155dc2d056 use a custom network access manager, based on the kio one, but has a
special handling for package:/foo  urls

svn path=/trunk/KDE/kdebase/runtime/; revision=1188205
2010-10-21 17:39:05 +00:00
Marco Martin
5dd5d716dc add the package folder (script) as valid imports dir (will probably have to be contents/imports
svn path=/trunk/KDE/kdebase/runtime/; revision=1187952
2010-10-20 20:55:35 +00:00
Marco Martin
3b219d6e39 if the parsing fails, set failed to launch with a reasonable message
svn path=/trunk/KDE/kdebase/runtime/; revision=1186305
2010-10-15 18:56:30 +00:00
Marco Martin
9a02b74797 move in the proper place
svn path=/trunk/KDE/kdebase/runtime/; revision=1185948
2010-10-14 18:36:09 +00:00