Commit Graph

83 Commits

Author SHA1 Message Date
Riccardo Iaconelli
075c1315ec Const QStrings
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694679
2007-07-31 10:56:05 +00:00
Riccardo Iaconelli
5aaccf0489 The applets now can associate with (one or more) certain mimetypes, and be called when that mime is dragged onto the desktop. Very rudimental for the moment, we should pass the name of the file to the applet. Added some copyrights I missed in the past.
Aaron: your turn now to discover the 'Mimetypes' key problem.
CCMAIL: aseigo@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694676
2007-07-31 10:52:05 +00:00
Aaron J. Seigo
8d4debed10 * add missing return in instanceName
* turn off clipping to shape for Applet as that breaks background painting in cute and wonderful ways
* remove some dead code
* use setFlag instead of setFlags everywhere

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694556
2007-07-31 01:11:25 +00:00
Thomas Georgiou
999cd6ed57 Cache standard applet background.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694542
2007-07-31 00:21:08 +00:00
Sebastian Sauer
d66a988732 added the QList<QAction*> Applet::contextActions() method. thanks aaron :)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694540
2007-07-31 00:20:19 +00:00
Aaron J. Seigo
8d5d8daeb3 give the configxml object our config object; probably works better that way ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694408
2007-07-30 16:19:07 +00:00
Aaron J. Seigo
f7abb4b135 * call prepareGeometryChange when the darw default background setting changes
* add in a completely untested-but-should-work ;) implementation of config ui loading; requires a package with config/ui/main.ui and config/xml/main.xml in it. should shave 7LOC off of the clock's Script.js, which is ~10% of the code line count!

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694399
2007-07-30 16:00:29 +00:00
Aaron J. Seigo
b09384dcc5 remove more of the misguided lock applet commit
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693805
2007-07-29 05:06:04 +00:00
Thomas Georgiou
42199d52da Finish reverting to the right revision.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693803
2007-07-29 04:36:38 +00:00
Thomas Georgiou
3b051def64 Revert commit.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693801
2007-07-29 04:33:21 +00:00
Thomas Georgiou
ee0793ef7d Convert painters to stack from pointers.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693788
2007-07-29 01:41:13 +00:00
Thomas Georgiou
d58bbd2d29 Add dynamic shadows to standard background.
Color the shadows instead of a roundrect when zoomed out.
Actually paint the applet when zoomed out.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693787
2007-07-29 01:24:58 +00:00
Aaron J. Seigo
947ed386ab * remove the lock/move stuff as it ignores kiosk and is already covered nicely by isImmutable and setImmutable
* on the base implementation of contentSize, check to see if we have a layout and if so use that to determine the size we ought to be

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693769
2007-07-28 23:41:40 +00:00
Aaron Eisenberg
36649f248d Use the Oxygen color palette for coloring applets in group mode (based on their category).
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693736
2007-07-28 21:07:18 +00:00
Aaron J. Seigo
a7fb94fb42 separate out the concept of kioskImmutability so we can take separate internal actions based on that as needed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693391
2007-07-27 21:05:45 +00:00
Aaron J. Seigo
62052a153c SVN_SILENT rm dead code
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693384
2007-07-27 20:40:27 +00:00
Aaron J. Seigo
293c4b5693 as useful as this is for people who screw up writing their applet, it makes it impossible to follow the debug log when it gets hit (and it is valid to hit it)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693360
2007-07-27 19:56:50 +00:00
Laurent Montel
e94eba8882 Some applet mustn't be move (for example desktop applets)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693187
2007-07-27 11:42:43 +00:00
Aaron Eisenberg
8d4d0e0631 Applets in group mode change color based on category (Currently only date and time category)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693065
2007-07-26 22:58:30 +00:00
Laurent Montel
1553ae4492 Allow to lock applet position
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693020
2007-07-26 20:22:04 +00:00
Andre Duffeck
569e685e66 fix mysterious black boxes on the sides.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692738
2007-07-26 06:44:27 +00:00
Aaron J. Seigo
b3f60fa248 this one took me a while to figure out =/
we need a separate private contentSize() for Applet because we need to be able to override what the subclass might be trying to accomplish. since the method is virtual, i had to put it in the dptr and call Applet::contentSize from there on successfully passing various tests such as "is this a script?" and "has this applet been marked as failed?". stupid polymorphism.

end result is that now an applet can, as expected, call setFailedToLaunch(true) and the applet gets the right size, no matter when or where it was called from.

huzzah.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692630
2007-07-26 02:36:53 +00:00
Aaron J. Seigo
455f06eb8b set immutability even if the applet fails to load
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692621
2007-07-26 02:07:18 +00:00
Aaron Eisenberg
52514c1c35 Improve icon location and size as well as the applet's background in group mode.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692618
2007-07-26 01:45:06 +00:00
Aaron J. Seigo
19a46e2c40 only paint the interface on DesktopZoom. based on a patch by The Other Aaron.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692597
2007-07-25 23:42:43 +00:00
Alex Merry
eddb8f294f Change how boundingRect() is calculated and backgrounds are drawn.
Instead of implementing boundingRect(), applets should now implement
contentSize(), to tell Plasma::Applet how much space they need.

I wrote a long commit log, then realised it belonged in the apidocs.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692519
2007-07-25 19:15:23 +00:00
Andre Duffeck
1dede63a8f fix Applet::contentsRect()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692500
2007-07-25 18:16:07 +00:00
Aaron J. Seigo
6c297f6cbb * proof of concept dynamic shadow, #if 0'd out
* some implementation notes

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692252
2007-07-25 07:13:34 +00:00
Aaron J. Seigo
d661a64be4 drawTiledPixmap. about 30s after committing i remembered it existed. *sigh*
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692075
2007-07-25 00:09:15 +00:00
Aaron J. Seigo
052958075c make the background render properly. i, or someone like me, REALLY needs to implement tiling in Plasma::Svg.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692070
2007-07-24 23:46:54 +00:00
Aaron J. Seigo
2c251118fd * new background drawing code; 9 segments + center, documented at http://techbase.kde.org/Projects/Plasma/Theme#Current_Theme_Elements
* introduce contentsRect() and pass that into paintInterface instead of a widget

i missed monday so much i wanted to break SOMETHING, so i broke all the plasma widgets. i rock! ;P

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692002
2007-07-24 21:04:31 +00:00
Aaron J. Seigo
8970a02211 catch when paintInterface is mis-implemented, draw -something- and spit out a warning on the console
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691980
2007-07-24 19:27:58 +00:00
Alex Merry
4d8628230f Don't crash if we can't load an applet.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691410
2007-07-23 15:59:10 +00:00
Aaron J. Seigo
cac7c24c0f more script engine work after some late night (for me anyways) discussion with richard.. getting closer =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691269
2007-07-23 09:21:45 +00:00
Aaron J. Seigo
39422a9a6b first draft of the ScriptEngine plugin
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691244
2007-07-23 07:42:29 +00:00
Aaron J. Seigo
b8a9f72008 add an icon() accessor
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691201
2007-07-23 06:12:38 +00:00
Aaron J. Seigo
0491b8b112 immutable -> isImmutable.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691135
2007-07-23 00:24:36 +00:00
Matthias Kretz
1fd776be2e port to value based KPluginInfo
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691115
2007-07-22 23:10:53 +00:00
Aaron J. Seigo
dd7b8b306b ebn fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691079
2007-07-22 22:01:10 +00:00
Aaron J. Seigo
51a0162fae started on docu fixes from ebn until i realized that the line numbers are all messed up in the apidox tests and so moved on
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690174
2007-07-20 08:12:20 +00:00
Aaron J. Seigo
af043ca588 too tired to do much of anything else, i figured i could fix some ebn issues
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690173
2007-07-20 08:06:27 +00:00
Aaron J. Seigo
8c8504964e * disable copying of Applet due to dptr-but-no-copy-ctor
* provide an accessor to the Package object.
* some const corrections

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690105
2007-07-20 03:34:20 +00:00
Aaron J. Seigo
44fe05f668 create a Package if we have a scripted plasmoid on hand.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690104
2007-07-20 03:28:34 +00:00
Aaron J. Seigo
c7b13e477b don't crash when we are asked to create something bogus
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=689221
2007-07-17 22:26:18 +00:00
Aaron J. Seigo
f6a4e9612d * X-PlasmoidCategory => X-KDE-PluginInfo-Category
* allow filtering applets by category and parent app
* allow filtering categories by parent app

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=689200
2007-07-17 21:30:27 +00:00
Aaron J. Seigo
94a57ed051 * appletConfig -> config
* globalAppletConfig -> globalConfig
* add a convenience and safety method for accessing groups in the applet config, which namespaces the groups appropriately

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=687046
2007-07-12 19:14:23 +00:00
Aaron J. Seigo
8ee8f97aa1 * gaurd against an args with less than 2 items in it being passed in
* add a setFailedToLaunch method to applet to allow a generic way to set such status

it's pretty fugly looking at this point, but it works; i'll work with the artists to make it prettier later.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=687027
2007-07-12 18:34:53 +00:00
Alex Merry
7de863a242 kill an unused variable (relic of a previous implementation)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=686947
2007-07-12 13:27:05 +00:00
Alex Merry
71c21577d3 Add categories to plasmoids. The actual category names are subject
to change at some point - a definitive list on techbase will probably
be assembled.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=686945
2007-07-12 13:24:35 +00:00
Alex Merry
2b4b22883d Make the APIDOX not lie, and change the logic to make sense
(loadDataEngine will always return a data engine - it just
might not be valid).

I changed it this way, rather than changing the test to
engine->isValid(), since all the plasmoids written so far
blindly assume a valid pointer is returned.  (In fact, they
all blindly assume the correct data engine is returned, but
at least this way they shouldn't crash plasma :-P)


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=686301
2007-07-11 01:24:43 +00:00