Commit Graph

156 Commits

Author SHA1 Message Date
Dan Meltzer
4780390ae2 Do not automatically install a scene event filter on items in customcontainments. The custom containment can handle this itself if it feels it appropriate
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=787834
2008-03-19 23:26:21 +00:00
Chani Armitage
124f1da013 activity (desktop containment) switching
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786809
2008-03-17 23:49:01 +00:00
Chani Armitage
1f6956398d don't create the toolbox unnecessarily
there's really no point trying to mess with specific tools when the toolbox itself isn't there.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786440
2008-03-16 23:58:12 +00:00
Aaron J. Seigo
863e0f7797 various fixes for xinerama and non-isContainment() containments (e.g. applets which are Containment subclasses)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786175
2008-03-16 07:20:42 +00:00
Aaron J. Seigo
6b53321428 * new containment layout strategy for non-PanelContainments: lay them out in a lose gridish manner; not strictly a grid, and not strictly a packing-for-efficiency system, though it should be ok in that respect.
* allow containments to define what the layout should be
* a few less assumptions about panels and other containment types in the layout seting in addApplet

these are steps towards:
* more friendly for arbitray containments on the desktop
* multiple containments
* ignoring braindamage that may eminate from the direction of x.org regarding screen geometries

we can now add and remove containments on the fly as well as lay them out nicely. next: UI! and that's one more 4.1 task DONE.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=785673
2008-03-14 17:05:37 +00:00
Aaron J. Seigo
eb0bf064ab instead of announcing new screens and not announcing new containments, announce new containments as well as screen affinity changes and let the host app worry about what to do from there
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=784941
2008-03-12 20:41:03 +00:00
Aaron J. Seigo
e702ebca9a new panel containment positioning strategy: stacking horiz and non-horiz panels together vertically and horizontally, respectively
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=784842
2008-03-12 15:23:33 +00:00
Stephan Binner
30595bb415 seperate applet and panel options in context menu
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=783210
2008-03-07 12:43:17 +00:00
Sebastian Sauer
33b65cd58e pass the init() call on to the applet which in turn is able to redirect it to an optional ScriptEngine
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782791
2008-03-06 00:40:09 +00:00
Aaron J. Seigo
8c4cfbca60 keep the toolbox in the workArea (e.g. out from underneath panels and other strut reservers)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782438
2008-03-05 07:08:32 +00:00
Aaron J. Seigo
a68747bd1d * for now MediaCenter gets a FreeLayout
* emit geometryChanged when our location changes in a way that won't trigger an actual geometry adjustment

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782390
2008-03-05 00:06:22 +00:00
Aaron J. Seigo
7a107c9425 emit geometryChanged when the location or screen changes for a panel, since the actual scene geometry may not change, but from the perspective of a view it does
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782258
2008-03-04 17:48:28 +00:00
Aaron J. Seigo
bb3b40349a activate the lock widgets toolbox button
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781768
2008-03-03 18:14:07 +00:00
Chani Armitage
054f4bd2f9 remove unnecesary line
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781695
2008-03-03 14:40:02 +00:00
Chani Armitage
34ae05a9b2 move toggleDesktopImmutability() from defaultdesktop to containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781623
2008-03-03 11:44:40 +00:00
Aaron J. Seigo
0a302e2944 if the init of the applet is not delayed (so it's not startup or some other mass creation) then we schedule a config saving
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781207
2008-03-02 09:04:04 +00:00
Aaron J. Seigo
483276b488 schedule a config saving when an applet is removed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781204
2008-03-02 08:43:07 +00:00
Aaron J. Seigo
8c1990f49b put the applet notification of immutability in the containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780750
2008-02-29 22:17:55 +00:00
Dan Meltzer
7f624f85d9 Revert one large git mess
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780657
2008-02-29 17:50:57 +00:00
Dan Meltzer
64f0ce7739 Fix some problems aseigo pointed out in the code.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780655
2008-02-29 17:43:35 +00:00
Dan Meltzer
a081559257 Commit initial progress of work to port to qt4.4
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780654
2008-02-29 17:43:31 +00:00
Aaron J. Seigo
7cf7109266 load* -> load .. simpler, less verbose API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779407
2008-02-26 01:58:55 +00:00
Aaron J. Seigo
4b193edf0e don't make a submenu if there are no items in the top menu
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778473
2008-02-23 18:02:42 +00:00
Aaron J. Seigo
2b68bb49ee This lets the View have a desktop set to it and when drawing a Containment we pass in the effective desktop # being currently painted. The Containment is free to ignore this information, or it can try and cast the passed in options to a Containment::StyleOption to retrieve this information. This should be used for any per-desktop painting that happens (e.g. separate background per desktop) and opens the way to having View-per-Desktop for better composite manager support (think: desktop grid or cube where more than one desktop is simultaneously visible)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778239
2008-02-22 23:41:44 +00:00
Aaron J. Seigo
b01fa6947c don't add items when we're immutable, unless delayInit is called (e.g. startup or loading)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776378
2008-02-17 23:02:09 +00:00
Andreas Aardal Hanssen
7516d7ea30 Introduce QGraphicsItem::CacheMode in place of Widget::CachePaintMode.
This move was planned from the beginning; Widget::CachePaintMode was a
backport of the same feature in Qt 4.4. OK'ed by aseigo after post on
panel-devel. I've left CachePaintMode in there (it simply redirects to
CacheMode); I don't know if it's OK to remove these APIs or not (and
it's not monday anyway).

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775198
2008-02-15 06:51:37 +00:00
Aaron J. Seigo
134ccdec7c * allow 2 actions from the containment before creating a separate menu
* let the applet know when all things are up and running, just as with containments

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774347
2008-02-13 02:29:45 +00:00
Chani Armitage
ed47acc7a0 make setting a layout actually safe
(reviewed in #plasma)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771825
2008-02-07 00:18:22 +00:00
Aaron J. Seigo
0609ee5e38 Injects the containment's context menu into the widget's. This allows, e.g. "Configure Panel" to show up in the context menu.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771315
2008-02-05 18:27:01 +00:00
Chani Armitage
be64c5939d enable dragging from desktop to panel
note: there's no visual feedback before you release the mouse button, and there's no way to drag back to the desktop.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770333
2008-02-03 13:09:21 +00:00
Aaron J. Seigo
a6b4d53d83 fix applet detection, don't mistake a containment for an applet in the context menu code path
BUG:156596

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770208
2008-02-03 00:51:15 +00:00
Aaron J. Seigo
06011ef27e put the applet's menu items first, put remove at the end.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766021
2008-01-25 01:41:16 +00:00
Stephan Binner
404b0b74d1 open toolbox when the dashboard view starts (to show the
user a way how to "Hide Dashboard" again)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764361
2008-01-21 15:10:19 +00:00
Aaron J. Seigo
45e31f3aee need to map from the scene, since we may be rotated or otherwise transformed.
BUG:155372

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759228
2008-01-10 08:21:37 +00:00
Aaron J. Seigo
a36c114b4f * make handles disapear reliably
* don't pop them immediately so just moving the mouse around the screen doesn't cause tons of flickering handles

based on a patch by Cody. thanks, guy!
CCMAL:fjctracy@gmail.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759079
2008-01-09 23:43:49 +00:00
Thomas Braxton
3cafce3bde KConfigGroups can now be reparented.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758543
2008-01-08 07:34:53 +00:00
Aaron J. Seigo
f7d3a27b1e fix context menus on applets that are also containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758527
2008-01-08 04:01:42 +00:00
Aaron J. Seigo
ee32d3c996 remove the use of 1209 explicitly now that i have Winter's Magic Formula for default debug space. makes backporting way easier; sorry for the noise of the earlier commit. suppose i should read planetkde.org more closely ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758498
2008-01-08 01:25:09 +00:00
Aaron J. Seigo
12ef6308cb use the plasma debug area (1209); i considered wrapping this in Plasma::debug() but that seems overkill ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758415
2008-01-07 20:50:31 +00:00
Aaron J. Seigo
9db2d7e783 SVN_SILENT: fix the debug output too
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758399
2008-01-07 20:19:16 +00:00
Craig Duquette
53c0b890a9 Re-enable zoom-in/zoom-out in the toolbox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758367
2008-01-07 18:49:25 +00:00
Aaron J. Seigo
033f1f52b3 * immutability is handled by the applet
* Applet::isImmutable already checks for Corona immutability
* vertical means y, not x ..*sigh*

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758173
2008-01-07 03:56:46 +00:00
Aaron J. Seigo
ea793d2259 move panels even on vertically arranged monitors up into negative space
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758160
2008-01-07 02:15:29 +00:00
Jason Stubbs
b5983aed50 Flush constraints in corona rather than containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757860
2008-01-06 07:17:53 +00:00
Jason Stubbs
1e247fa749 Flush containment constraints as soon as they are loaded so that they can be
acted upon without having to wait for the event loop. This is needed so that
the desktop doesn't temporarily appear white when a wallpaper hasn't been
set.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757548
2008-01-05 10:35:32 +00:00
Stephan Binner
a0103a9c6a i18n style guide fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757289
2008-01-04 16:53:55 +00:00
Thomas Georgiou
cb869ce141 Make zooming invisible to user (doesn't do anything yet)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757079
2008-01-04 03:09:30 +00:00
Aaron J. Seigo
41a5e62f79 the toolbox icons also need the background
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756932
2008-01-03 22:33:27 +00:00
Jason Stubbs
ee428ee92c Add applets at the correct position when the applet is dropped in the margin
between two existing applets

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756618
2008-01-03 13:48:22 +00:00
Jason Stubbs
092b7ff835 Ensure that applets are added to the panel in left to right (or top to bottom)
order as BoxLayout is not really capable of anything else. On the containment
side, ignore the specified geometry when delaying init as the placement
calculations can lead to slight mispositioning of applets even when received
in the correct order.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756435
2008-01-03 08:44:14 +00:00