Commit Graph

35 Commits

Author SHA1 Message Date
Aaron J. Seigo
46ef63168e allow applets to query for their context, update the context via a constraint (we're running out of them!)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=848820
2008-08-18 14:04:30 +00:00
Loic Marteau
88b7a7022e some stuff in Plasma::PopupApplet
- add QGraphicsWidget support
- add a timer so we can show a popup during a specified time and hide it again
- let applet Notifier does a last Swan song by convert it in a PopupApplet before dying and 
reborn sooner like a phoenix

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838490
2008-07-27 23:23:57 +00:00
Aaron J. Seigo
19b3401af9 * get rid of ToolTipManager::getItemItsApplet
* introduce Plasma::viewFor and Plasma::popupPosition

generally nicer code all around.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833534
2008-07-16 23:48:41 +00:00
Aaron J. Seigo
922c85c705 it makes no sense to have the blur stuff in one header/namespace and the roundedRectangle stuff in another: it's all painting related. putting them together, however, makes "ImageEffects" really not accurate. ImageEffects will also clash, concept-wise, with a real effects lib.
therefore, introducing Plasma::PaintUtils.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827859
2008-07-03 23:50:13 +00:00
Marco Martin
1cb044332c new aspect ratio mode ConstrainedSquare
it makes applets in panel to not
be wider than tall in horizontal panels and not taller than wider in
vertical panels, but can be for instance less wide than tall in
horizontal panels, as opposed to square applets.
it makes poossible to have icons with a reasonable size in very big
panels as vertical panels usually are for instance

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816757
2008-06-04 18:58:38 +00:00
Chani Armitage
2a6a5fa6db :%s/NotImmutable/Mutable/g
because double negatives hurt my brain.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805296
2008-05-08 04:26:52 +00:00
Aaron J. Seigo
43e6bac986 Plasma::AspectRatioMode, just like Qt::AspectRatioMode. the setter/getter in Applet even used Mode.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802866
2008-04-30 22:13:27 +00:00
Marco Martin
43066e49ce API review:
remainSquare(), aspectRatioMode() and their setters are merged in
aspectRatioMode() + setAspectRatioMode(Plasma::AspectRatio)
Plasma::AspectRatio has IgnoreAspectRatio, KeepAspectRatio and Square

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802561
2008-04-29 20:31:18 +00:00
Aaron J. Seigo
4d6ab4bb1a * zoomRequested
* zoomIn/Out -> pimpl
* Plasma::ZoomDirection enumeration

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801132
2008-04-25 19:08:49 +00:00
Marco Martin
7d057a2bc2 API review:
isImmutable(), setIsImmutable() and isKioskImmutable() of applet and
corona are merged in one property so they becamed
immutability() and setImmutability() using the new type
ImmutabilityType defined in plasma.h as:
NotImmutable: normal behaviour
UserImmutable: the user locked the desktop, can unlock it
SystemImmutable: the system locked the desktop and the user can't unlock
it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800724
2008-04-24 18:24:11 +00:00
Aaron J. Seigo
7f3aea19ff move MarginEdge to the Plasma namespace to avoid coupling to the layout stuff in innapropriate places
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771704
2008-02-06 19:12:21 +00:00
Anne-Marie Mahfouf
782bcbce51 a few typos
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770891
2008-02-04 16:26:49 +00:00
Aaron J. Seigo
68acc75d20 ComponentType enumeration
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765979
2008-01-25 00:11:11 +00:00
Aaron J. Seigo
da34471e13 add a way for Containments to get notified that startup is indeed complete
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758066
2008-01-06 20:38:35 +00:00
Ivan Čukić
12a2f50922 FlipLayout committed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=747176
2007-12-11 09:06:21 +00:00
Aaron J. Seigo
12af5bc729 add a constraint for immutability changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=745242
2007-12-05 20:23:25 +00:00
Aaron J. Seigo
1e1b63b9fe add the Geometry Changed constraint
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741157
2007-11-24 23:37:18 +00:00
Aaron J. Seigo
9c9e6e4371 provide a rounded rectangle path generator so we can share this implementatoin around plasma
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738424
2007-11-18 21:33:04 +00:00
Aaron J. Seigo
147f087d3c add a NoConstraint enum entry to Constraints
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729448
2007-10-26 01:10:13 +00:00
Aaron J. Seigo
b51cc728fd actually pass around what constraints are being updated. this allows preventing of unecessary processing (for one) and also can avoid recursion where someone calls a constraints setter from inside constraintsUpdated.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=719831
2007-10-01 23:24:38 +00:00
Ivan Čukić
63164d2cc0 BorderLayout initial import
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713071
2007-09-16 09:08:08 +00:00
Aaron J. Seigo
e15c950bc3 introduce interval alignment, so it is possible to align a time interval to the minute or hour (we can add arbitrary ones to the mix should we choose; e.g. "every 10 mins" or whatever..but there needs to be good use cases =)
this is needed by clocks, as the obvious example, since "once a minute" isn't enough: it needs to be once a minute *on* the minute

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711737
2007-09-12 17:53:54 +00:00
Aaron J. Seigo
db4a7ebe61 copyright cleanups:
* Copyright (C) -> Copyright
* add "or later" clause to files that i have the sole copyright on
* add current year (2007) to my copyrights where it was missing

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696946
2007-08-06 11:20:02 +00:00
Aaron J. Seigo
0710825034 add a ZoomLevel enum and a conversion method to Plasma namespace
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692584
2007-07-25 22:43:43 +00:00
Aaron J. Seigo
04d138869a remove dead code which; Applet manages these ids itself
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=688723
2007-07-16 17:52:49 +00:00
Pino Toscano
1633d8d791 use QtModule/QFoo includes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=687972
2007-07-14 22:40:00 +00:00
Aaron J. Seigo
5f8c6be988 make Applet (and lineedit) usable with qgraphics_item cast. we probably want to do this with all of our QGI subclasses.
i introduced a new enum in the Plasma namespace, ItemType, so we can keep track of these id's centrally.
however, the right click mechanism is rather broken in its implementation; we need a way to offer a centralized menu on appets no metter where they are clicked.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678562
2007-06-21 18:07:39 +00:00
Aaron J. Seigo
bbaebc6b1b move workspace/plasma/lib to workspace/lib/plasma so that we can do:
#include <plasma/foo.h>

in headers in libplasma. this is important so that they can be used post-install by third party plugins, apps, etc.

also, changed Applet::loadDataEngine to just Applet::dataEngine and make it actually return the data engine; move the applets to using it. safer and fewer LoC

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=670850
2007-06-02 17:29:39 +00:00
Aaron J. Seigo
df56575ef4 add the ability to get at the max size hint constraint
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=670578
2007-06-02 04:47:09 +00:00
Aaron J. Seigo
87c431393a * AppletConstraint -> FormFactor, since it may not only be applicable to applets and form factor is simply more common verbology
* add a FormFactor for MediaCenter
* ScreenEdge -> Location, as it isn't always an edge
* document enum values

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668310
2007-05-25 22:51:23 +00:00
Matt Williams
199833129b Mmm, gotta love those APPLEYLAYOUTs :P
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667779
2007-05-23 22:45:21 +00:00
Aaron J. Seigo
520553079a PLASMA_EXPORT
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666752
2007-05-20 20:13:46 +00:00
Script Kiddy
2c0224231b Fix FSF address (old address)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=501565
2006-01-23 11:37:31 +00:00
Aaron J. Seigo
98d9df63d9 build
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=494705
2006-01-06 01:13:22 +00:00
Aaron J. Seigo
b645137010 some pieces that compile at the moment
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=492417
2005-12-29 21:55:22 +00:00