Commit Graph

10611 Commits

Author SHA1 Message Date
Sebastian Kügler
e26434648a enable installation, add stub to add applet programatically 2013-02-14 03:39:29 +01:00
Sebastian Kügler
86d7c96a28 Applet used to test components and imports 2013-02-14 03:39:02 +01:00
Sebastian Kügler
83b8ef9ac5 small header improvement 2013-02-14 03:16:06 +01:00
Sebastian Kügler
f58243f2a5 applet geometry reacts to background changes 2013-02-14 02:24:14 +01:00
Sebastian Kügler
a43d85cf3f Add a QIconItem to the containment, works :) 2013-02-14 02:08:33 +01:00
Sebastian Kügler
1d666bfcb1 Enable build of QtExtras, make it build, install
ColumnProxyModel and QIconItem work, more pending.
2013-02-14 02:07:37 +01:00
Sebastian Kügler
9864f15c56 Use QIcon 2013-02-14 00:46:18 +01:00
Sebastian Kügler
f4dbc62264 Fix IconItem loading of icons 2013-02-14 00:43:34 +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
55d23cddb6 undefinded warnings-- 2013-02-13 21:56:06 +01:00
Marco Martin
54f0fc4926 remove ContainmentPrivate::initApplets 2013-02-13 21:48:25 +01:00
Aaron Seigo
bc1b63ebad consolidate loading a bit more even, only save when applet is new 2013-02-13 21:39:17 +01:00
Aaron Seigo
ec1c4d18fc only save if the KPluginInfo is valid (otherwise we have a dud) 2013-02-13 21:39:17 +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
0a03157807 start with applets expanded 2013-02-13 17:48:26 +01:00
Marco Martin
647fc5e553 paint correctly the framesvg the first time 2013-02-13 17:47:03 +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
Aaron Seigo
23a417360c remove last instance of KStandardDirs in Theme 2013-02-13 14:48:47 +01:00
Aaron Seigo
e98a53df03 ws 2013-02-13 14:48:43 +01:00
Aaron Seigo
3540524072 nothing used the list theme info method.
anything that wanted a list of all themes did not want just plugin info
but also the paths, etc. which made this method useless

it may be worthwhile to have a "find all theme paths" replacement
2013-02-13 14:47:36 +01:00
Aaron Seigo
2203be8e13 slightly smarter handling of single runners 2013-02-13 13:50:45 +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
af49193eb3 test property binding to plasmoid.backgroundHints 2013-02-13 13:07:03 +01:00
Sebastian Kügler
51147c9e1a Enable plasmapkg build 2013-02-13 02:09:00 +01:00
Sebastian Kügler
c30254c0cc Make plasmapkg build and link 2013-02-13 01:39:55 +01:00
Sebastian Kügler
58f990077e plasmapkg: Factor out package handling, port to Qt5 2013-02-13 01:38:57 +01:00
Marco Martin
601c80ce35 last AppletPrivate metadata pieces in PluginLoader 2013-02-12 22:05:14 +01:00
Marco Martin
4994f9e27a Applet::category(appletName) moved in PluginLoader
Applet::category(QString) -> PluginLoader::appletCategory(QString)
2013-02-12 21:54:08 +01:00
Marco Martin
8cccff2b97 remove Applet::category(KPluginInfo) 2013-02-12 21:50:52 +01:00
Marco Martin
be8b33758e move Applet::customCategories in PluginLoader
Applet::customCategories() -> PluginLoader::customAppletCategories()
and PluginLoader::setCustomAppletCategories()
2013-02-12 21:45:18 +01:00
Marco Martin
dfaaea7c1c Applet::listCategories in PluginLoader
Applet::listCategories -> PluginLoader::listAppletCategories
2013-02-12 21:40:59 +01:00
Marco Martin
42bc0a2208 move all listAppletInfo in PluginLoader 2013-02-12 21:34:24 +01:00
Marco Martin
edf1250dce remove unused methods in AppletPrivate 2013-02-12 21:24:22 +01:00
Marco Martin
fb0da15576 get rid of Applet::listAppletInfo 2013-02-12 21:18:16 +01:00
Marco Martin
38a3807c1b Applet::newStatus() -> Applet::statusChanged()
consistent naming
2013-02-12 20:44:04 +01:00
Marco Martin
339cf7e846 remove some references to deleted classes 2013-02-12 20:17:16 +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
c9d9ccc857 corona has a package() property 2013-02-12 15:57:42 +01:00
Sebastian Kügler
abcee7e0a3 remove redefinition of 2013-02-12 15:54:32 +01:00