Commit Graph

740 Commits

Author SHA1 Message Date
Aaron Seigo
2b771e41ed remove another usage of PackageMetadata 2011-05-31 00:06:12 +02:00
Aaron Seigo
b01348aa84 rely on AppletPrivate::remoteLocation (removing the need for PackageMetadata) and make it a proper KUrl 2011-05-31 00:04:03 +02:00
Aaron Seigo
cd32321b68 Merge branch 'libplasma2_signedpackages' into libplasma2
Conflicts:
	plasma/package.cpp
2011-05-30 23:41:53 +02:00
Aaron Seigo
a4dbbf60ea remove some empty reimplemented methods 2011-05-28 00:33:12 +02:00
Aaron Seigo
4cc44f6a92 Merge remote-tracking branch 'origin/master' into libplasma2
Conflicts:
	plasma/package.cpp
2011-05-28 00:25:07 +02:00
Aaron Seigo
dd122bc011 move applet handle handling (*cough*) to applet instead of contaiment
much cleaner and eliminates the possibility of odd crashes

BUG:253421
2011-05-28 00:23:37 +02:00
Aaron Seigo
0043de0ae9 remove references to Context 2011-05-20 09:21:36 +02:00
Aaron Seigo
d7e13e62ae remove geometryChanged, it's in QGraphicsWidget these days 2011-05-20 08:53:53 +02:00
Aaron Seigo
9b31c61d29 proper capitalization of MimeType 2011-05-06 12:12:47 +02:00
Aaron Seigo
8a41ab7051 comment not accurate afaict 2011-05-06 12:02:46 +02:00
Aaron Seigo
d76ceec0ca remove another unimplemented virtual 2011-05-05 14:27:34 +02:00
Aaron Seigo
9cdbf422ff consolidate remoting files, add signing gsoc 2011-04-29 15:18:35 +02:00
Artur Duque de Souza
97b37637fa Export icon information to package metadata for remote service
Get the original package metadata's icon and inject this information
into the package metadata that is going to be sent to the remote targets.

This way we are able to use the icon in several UIs which makes things
more beautiful ;)

CCMAIL:ervin@kde.org
Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-28 18:52:34 -03:00
Aaron Seigo
fbb50df067 ensure that the containment configChanged() routine always happens 2011-04-25 16:43:48 +02:00
Aaron Seigo
175d9961ff cache formFactor(), simplify the min size check branch 2011-03-28 10:06:53 +02:00
Marco Martin
beb1f9b6cf use pointers instead of string comparison
use pointers instead of string comparison to figure out what button was pressed
2011-02-09 20:35:15 +01:00
Marco Martin
ab8ec8f17a correct the text used to fugure out the button
button have text like &Ok &Yes
This way to detect what button was pressed of course is horrible and will have to be changed
CCBUG:265738
2011-02-09 19:20:16 +01:00
Marco Martin
11d3b789a4 emit cancel signal
both when clicking cancel and pressing esc
CCBUG:265738
2011-02-09 00:11:25 +01:00
Marco Martin
e193b7eab0 pass clicks trough the busy spinner 2011-02-07 10:49:44 +01:00
Aaron Seigo
318119ef46 remove some well dead code 2011-02-01 10:07:05 -08:00
Aaron Seigo
81c7addc40 a small hack to give us the enabled button 2011-02-01 00:52:07 -08:00
Aaron J. Seigo
ae4f0579b9 only check the config for immutability if we actually have it; immutability() gets called from setHasConfigurationInterface which gets called from AppletPrivate::init() which meant it was trying to access the configuration group too early, resulting in it being misplaced; for most applets this wouldn't matter, but for applets-in-applets (it's always the sinners) it causes problems
BUG:261264

svn path=/trunk/KDE/kdelibs/; revision=1209283
2010-12-26 10:42:57 +00:00
Giulio Camuffo
3534c4fc0e look for the containment in the QObject hierarchy if it could not be find in the QGraphicsItem one. This is needed to
make the applet which are offscreen find their containment.

svn path=/trunk/KDE/kdelibs/; revision=1207068
2010-12-16 20:08:16 +00:00
Marco Martin
c8f2e0cc8e don't completely steal the filtered event, still pass to the drag handle
svn path=/trunk/KDE/kdelibs/; revision=1203605
2010-12-04 20:58:52 +00:00
Giulio Camuffo
ccb599572e use QGraphicsScene::sendEvent instead of simply calling the event handler. this allow the containments to have more
control on the moving of the applets installing event filters on them and fixes the moving of the applet Icon in some 
containments

svn path=/trunk/KDE/kdelibs/; revision=1202445
2010-11-30 22:20:34 +00:00
Aaron J. Seigo
8607a13142 clarify, document and fix how immutability (particularly kiosk-based SystemImmutability) is handled
svn path=/trunk/KDE/kdelibs/; revision=1196286
2010-11-12 22:48:31 +00:00
Chani Armitage
cf57b44044 and the winner is: Productivity. our new category :)
svn path=/trunk/KDE/kdelibs/; revision=1195647
2010-11-11 17:37:36 +00:00
Kevin Ottens
d85c4cc7ff Include cleanup.
Based on a patch by Marijn Kruisselbrink.

svn path=/trunk/KDE/kdelibs/; revision=1194730
2010-11-09 17:22:22 +00:00
Aaron J. Seigo
e7f27c4e79 build after transplant to private class
svn path=/trunk/KDE/kdelibs/; revision=1192721
2010-11-03 20:55:23 +00:00
Aaron J. Seigo
92511efde0 * let the Corona know as soon as cleanUpAndDelete is called if we are a Containment
* simplify the path from an Applet being destroyed to cleanUpAndDelete being called

svn path=/trunk/KDE/kdelibs/; revision=1192720
2010-11-03 20:52:13 +00:00
Giulio Camuffo
da9459d009 start always with a default size, otherwise if an applet doesn't resize itself it will freeze plasma
svn path=/trunk/KDE/kdelibs/; revision=1186915
2010-10-17 21:54:40 +00:00
Marco Martin
3c86640b76 check for configLoader before accessing it
svn path=/trunk/KDE/kdelibs/; revision=1182706
2010-10-05 12:57:49 +00:00
Aaron J. Seigo
47a41796cc create the needed metadata fields to publish with more info
svn path=/trunk/KDE/kdelibs/; revision=1182538
2010-10-04 21:10:48 +00:00
Aaron J. Seigo
64bc2af527 SVN_SILENT: pedant
svn path=/trunk/KDE/kdelibs/; revision=1178741
2010-09-23 19:18:16 +00:00
Aaron J. Seigo
b6d4b71680 we enforce immutability in other ways already, try not to get in the way of programmatic manipulation (versus user manipulation) of applets
svn path=/trunk/KDE/kdelibs/; revision=1177864
2010-09-21 14:26:47 +00:00
Aaron J. Seigo
6590d607fd cascade corona -> containment -> applet immutability
svn path=/trunk/KDE/kdelibs/; revision=1177862
2010-09-21 14:21:58 +00:00
Marco Martin
bddd511086 when the config is changed, the config skeleton has to reload the config from the config group again
svn path=/trunk/KDE/kdelibs/; revision=1175737
2010-09-15 18:51:42 +00:00
Aaron J. Seigo
8a74b21168 no longer relevant
svn path=/trunk/KDE/kdelibs/; revision=1173977
2010-09-11 00:47:56 +00:00
Chani Armitage
900f8c6318 don't test isEnabled, it can be changed for >1 reason
svn path=/trunk/KDE/kdelibs/; revision=1171799
2010-09-05 08:03:27 +00:00
Aaron J. Seigo
f02786e31a SVN_SILENT: ease giulio's pain in generate diffs
svn path=/trunk/KDE/kdelibs/; revision=1171395
2010-09-03 18:09:18 +00:00
Marco Martin
ac2976dbac store the size for form factor only if not empty
svn path=/trunk/KDE/kdelibs/; revision=1168893
2010-08-27 19:27:19 +00:00
Marco Martin
c53542ca7d add accelerators to keys, also bind esc with the message overlay destruction
svn path=/trunk/KDE/kdelibs/; revision=1164893
2010-08-17 21:46:00 +00:00
Aaron J. Seigo
5cdd5be918 geometryChanged is a signal in QGraphicsWidget in Qt 4.7, conflicting with Applet's. but they do the same thing (seems others ran into the same issues we did? :) .. so provide a binary compat preserving way to move Applet's signal "out of the way". right now we are getting warning msgs on console due to it, doulbe signal emissions and that all just smacks of bugs waiting to happen.
thanks to Gof for the protected method idea, and Alexis for his fast response to reported issues with the signal as implemented in the pre-release versions of Qt 4.7
CCMAIL:ogoffart@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1162242
2010-08-11 18:23:32 +00:00
Marco Martin
2735f78f51 block events in AppletOverlayWidget::mousePressEvent
svn path=/trunk/KDE/kdelibs/; revision=1160687
2010-08-08 19:57:11 +00:00
Aaron J. Seigo
c42a1e3d78 easier to scan
svn path=/trunk/KDE/kdelibs/; revision=1158866
2010-08-04 00:59:09 +00:00
Aaron J. Seigo
f007828382 allow one to supply the KPluginInfo directly to the applet
svn path=/trunk/KDE/kdelibs/; revision=1158540
2010-08-02 23:56:02 +00:00
Aaron J. Seigo
14c8caae4e more sensible to not get overly worried about no service
svn path=/trunk/KDE/kdelibs/; revision=1158535
2010-08-02 23:28:13 +00:00
Aaron J. Seigo
7cbf6e1651 this can be simplified even further now
svn path=/trunk/KDE/kdelibs/; revision=1155700
2010-07-27 22:07:07 +00:00
Giulio Camuffo
698d924ded AppletHandle is no more parent of Applet, removing an unuseful piece of code that could cause problems
svn path=/trunk/KDE/kdelibs/; revision=1155655
2010-07-27 19:54:26 +00:00
Ryan James Rix
8d2574b6d9 Moving Plasma::Applet::listAppletInfo into the PluginLoader logic. Also implemented internalAppletNames which, if implemented, will return a QStringList of the available applets' names. PluginLoader::listAppletInfo will then search for .desktop files in $APPDATA/plasma/applets/ which match the applets' names (ie. $APPDATA/plasma/applets/org.skrooge.report.desktop), and add them to the KPluginInfo::List returned by PluginLoader::listAppletInfo and subsequently Plasma::Applet::listAppletInfo.
Since the applets are dynamically loaded, the .desktop files don't need an X-KDE-Library entries, but the others will be used, for example X-KDE-PluginInfo-Name (which will be the value given to PluginLoader::internalAppletLoad, so it is really important), Icon, Type, ServiceTypes...

svn path=/trunk/KDE/kdelibs/; revision=1154551
2010-07-25 20:56:03 +00:00