Commit Graph

664 Commits

Author SHA1 Message Date
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
Aaron Seigo
b0d252f803 unused variable 2013-02-05 16:34:43 +01:00
Aaron Seigo
d66d90be72 plasma library is in this repo ... link directly against it 2013-02-05 16:34:43 +01:00
Marco Martin
584ccf15f4 don't delay applet init
perfectly fixes layout restore.
all the applet delayed init mechanism will be removed
2013-02-05 15:53:53 +01:00
Marco Martin
48561504c8 remove delayedContainmentInit 2013-02-05 14:55:40 +01:00
Marco Martin
7f654acfd2 replace graphicObject with a dynamic property 2013-02-05 13:15:32 +01:00
Marco Martin
2734ceaebb reparent applet graphicobject to containment graphicobject 2013-02-05 11:59:14 +01:00
Marco Martin
b5a65921d0 get rid of the ugly async syncgraphicObject() 2013-02-05 11:03:40 +01:00
Marco Martin
5562c65127 expose completeInitialization() method 2013-02-05 10:50:18 +01:00
Marco Martin
b4669ab783 make the plasmoid object accessible 2013-02-04 20:28:41 +01:00
Marco Martin
7912da6072 actually show the containment's qml 2013-02-04 19:47:35 +01:00
Marco Martin
624817e9f3 make the scriptengine successfully load 2013-02-04 18:02:03 +01:00
Marco Martin
60b37cff34 reenable build of declarative scriptengine
just builds, is still pretty broken
2013-02-04 16:10:53 +01:00
Script Kiddy
81449003bb SVN_SILENT made messages (.desktop file) 2013-02-04 09:06:15 +01:00
Script Kiddy
2e8ba86356 SVN_SILENT made messages (.desktop file) 2013-02-03 08:58:05 +01:00
Script Kiddy
5b888cd12e SVN_SILENT made messages (.desktop file) 2013-02-02 09:35:40 +01:00
Marco Martin
8e7a995797 connect conditionally to minimumWidthChanged
this removes warnings: not all declarative items will have this signals
2013-01-11 16:02:01 +01:00
Aleix Pol
de51d8e4d2 Output some kind of warning in case the writeConfig wasn't executed
It helps find what's going on when debugging and reduces magic.

CCMAIL: aseigo@kde.org
2013-01-10 05:02:55 +01:00
Aleix Pol
cff944bfb8 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:02:55 +01:00
Script Kiddy
fe57fb7027 SVN_SILENT made messages (.desktop file) 2013-01-08 22:36:24 +01:00
Script Kiddy
815c83a1a6 SVN_SILENT made messages (.desktop file) 2013-01-03 07:38:48 +01:00
Marco Martin
2c6d44eb23 reparent the compact representation
leak--
2012-12-28 20:40:34 +01:00
Script Kiddy
fd00bbdafa SVN_SILENT made messages (.desktop file) 2012-12-24 09:03:26 +01:00
Script Kiddy
f31291bf5e SVN_SILENT made messages (.desktop file) 2012-12-23 07:59:29 +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
Marco Martin
edad4c4043 add Application formFactor 2012-11-23 17:46:52 +01:00
Sebastian Kügler
ec6200fd0e Second part of declarative toolbox bindings
This one adds the ToolBoxProxy class, belongs to
3f5d7444f8a3373befdceffca79744c82899d4e1

REVIEW:107232
2012-11-07 20:52:14 +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
Sebastian Kügler
a8ba890850 Fix screenChanged in javascript appletinterface signal and forward it
Signal/slot signatures were wrong. Correctly forward the screenChanged
signal. This removes the following warning for me when running a QML
containment in plasmoidviewer:

Object::connect: No such slot ContainmentInterface::screenChanged() in
/home/sebas/kdesvn/src/kde/kde-runtime/plasma/scriptengines/javascript/plasmoid/appletinterface.cpp:605

REVIEW:106936
2012-10-25 14:54:05 +02:00
Sebastian Kügler
d6afd5b91a AppletContainer binding for containments
This adds a class to manipulate applets in more detail in context of
containments. The type will only be available from Containments, not
Applets or PopupApplets.

This binds the necessary functionality of Applets to build fully
features containments. The code has been moved from MobileComponents,
untangling another piece there and putting the functionality where
it belongs, into the specific component type bindings to allow this
functionality also outside of plasma-mobile and further reduce the
delta between the shell implementations.

REVIEW:106817
2012-10-24 22:52:01 +02:00
Marco Martin
18c1cc8dab popupShowing property 2012-09-20 17:07:07 +02:00