Commit Graph

48 Commits

Author SHA1 Message Date
Aaron J. Seigo
35e4fd39b2 push the storage of a view's associated desktop down into the containment just like the screen
svn path=/trunk/KDE/kdelibs/; revision=885333
2008-11-17 04:44:10 +00:00
Aaron J. Seigo
160e70ccd0 add proper support for virtual desktops, which really requires more than just the View being aware of it; given the default parameters, it's a detail most plasma based apps can ignore (just like screens in general, actually =)
svn path=/trunk/KDE/kdelibs/; revision=885330
2008-11-17 04:34:55 +00:00
Aaron J. Seigo
df73771a1b ++compile
svn path=/trunk/KDE/kdelibs/; revision=879801
2008-11-04 02:55:37 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Aaron J. Seigo
62c417fe46 get the connection right
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873121
2008-10-18 20:59:53 +00:00
Aaron J. Seigo
333b91acfb allow swapping of arbitrary containments, not just this view's containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872751
2008-10-18 01:29:42 +00:00
Aaron J. Seigo
725c0c3137 when the contianment goes away, zero our pointer to it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871483
2008-10-15 00:26:42 +00:00
Allen Winter
e88e2faa63 first batch of small coding style fixes.
these were found while testing the Krazy style checker, which I'm adapting
for the kdelibs style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870051
2008-10-11 16:19:04 +00:00
Aaron J. Seigo
364aabf073 drop the requirement of a containment on construction
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852337
2008-08-25 19:25:15 +00:00
Aaron J. Seigo
9244760edb make this connectable outside of libplasma
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852177
2008-08-25 13:16:31 +00:00
Petri Damstén
6c2ca9a337 Don't move applets from old containment to the new one, since restore recreates them.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852160
2008-08-25 12:44:03 +00:00
Petri Damstén
25435b35fb - use setContainment before restore so screen gets set correctly
- copy configuration from the old containment to a new one

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851622
2008-08-24 07:43:04 +00:00
Alex Merry
7d47005103 Hopefully fix bug 165051. It seems to be quite elusive, so I can't check whether it will for certain.
Clears the focus on the Corona before ~QGraphicsView runs.  See comment for more info.

BUG: 165051


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851511
2008-08-23 21:59:27 +00:00
Alexis Ménard
c768094fd1 Fix a focus crash, i wasn't able to reproduce it in a simple test case for Qt guys.
I will remove it if the bug is in Qt and add a patch un qt-copy if needed

Backport in 4.1

CCMAIL:lapeyre.martial@gmail.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850353
2008-08-21 10:22:32 +00:00
Aaron J. Seigo
9a94a36afd introduce a detroy(bool confirm) for containments so that we can confirm on zoom out, but not on containment swapping; was not a pleasant surprise to have a containment instantly evaporated without this =/
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850224
2008-08-21 02:57:42 +00:00
Aaron J. Seigo
3f7d35a61b fix up swapContainment a bit; it doesn't need to take the old containment, as we already know what that is, document with some comments, and make better use of save/restore and addApplet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849912
2008-08-20 13:13:03 +00:00
Petri Damstén
bacc1d65d4 Add swapContainment function
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849802
2008-08-20 08:07:09 +00:00
Chani Armitage
ac1f7e3b5b when a new activity is added, don't move more than necessary to show it
this seems to fix dragging the view around too :)
BUG: 164545
please backport.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838477
2008-07-27 22:38:58 +00:00
Aaron J. Seigo
e675d65da3 --compiler_warning;
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828631
2008-07-06 09:45:31 +00:00
Aaron J. Seigo
b6393ba5a2 a bit of code detangling.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828176
2008-07-04 20:39:45 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Aaron J. Seigo
c5c1c7b1d6 swap screens when swapping containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826348
2008-06-30 14:40:59 +00:00
Aaron J. Seigo
b36bca71ca always ensure we have a valid view id.
BUG:163053

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=819127
2008-06-10 16:57:09 +00:00
Chani Armitage
1d8eb91e89 keyboard shortcuts.
the defaults are kinda lame right now, but I'm planning to do a lot more with this.
applet focus and the shorcut hooks work properly, however.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=808610
2008-05-17 03:39:24 +00:00
Rob Scheepmaker
143b126bca Improved drag&drop: when an applet gets dragged, it now only moves to a toplevel
window when necesarry (when the applet moves over another view or window).


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806641
2008-05-11 22:02:35 +00:00
Rob Scheepmaker
571e8a0db6 ...oops?... Let's also add an implementation...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802211
2008-04-28 20:37:10 +00:00
Rob Scheepmaker
78bfa23fac added setTrackContainmentChanges to view. necesarry for improved drag&drop visualisation.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802187
2008-04-28 19:14:28 +00:00
Rob Scheepmaker
f27fb3fc1b Applied some of the API changes to Plasma::View:
- renamed drawWallpaper
- made config() protected
- moved updateSceneRect() and initGraphicsView to pimpl


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=798623
2008-04-18 17:40:57 +00:00
Alexis Ménard
548d250d59 say hello again to the panel, and fix some performance issue
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796806
2008-04-14 10:48:32 +00:00
Alexis Ménard
4467261c95 Merge woc branch to trunk, say good bye to old plasma, there is a lot of stuff to port
applets, 
please update to another revision to use the version that works

green flag from aaron


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796368
2008-04-13 13:23:39 +00:00
Aaron J. Seigo
74e51821a9 SVN_SILENT ws fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796304
2008-04-13 08:22:20 +00:00
Marco Martin
e95b67428a svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=794677 2008-04-08 10:21:11 +00:00
Aaron J. Seigo
30b0cef28a add view id and config (the latter relying on the former)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=794394
2008-04-07 09:17:10 +00:00
Aaron J. Seigo
771fd1804b improve mointor hot[un]plug support, patch by Aike J Sommer. thanks, Aike!
CCMAIL:dev@aikesommer.name

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792179
2008-03-31 14:56:55 +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
Aaron J. Seigo
9c638f076d * remove the screen based ctor. now we always require a containment.
* move some code into setContainment that was always needed, not just in setScreen
* fix a boolean logic error

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786174
2008-03-16 07:19:27 +00:00
Aaron J. Seigo
6dc52aaa65 a bit more containment safety, so a view can have no containment and still function
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=784939
2008-03-12 20:40:02 +00:00
Aaron J. Seigo
9089d89b12 signals for when the view is about to adjust its scene rect in response to the containment changing so that geometry changes made in view subclasses can be properly coordinated
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782388
2008-03-05 00:02:37 +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
7bce16a810 don't show the rubber band: it doesn't do anything these days. if/when we get multiple selection, turn it back on.
BUG:156740,157498

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774352
2008-02-13 02:45:45 +00:00
Jason Stubbs
4a1823bff4 Initialize the graphicsview with default properties regardless of which
constructor is called. This is important to the panel because QGraphicsView
has an off-by-one bug when using the default AlignCenter alignment and an
odd height.

CCBUG: 154832

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754550
2007-12-30 07:32:48 +00:00
Aaron J. Seigo
b3a584ab04 always root to the origin. prevents auto-centering which works against the zooming
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742031
2007-11-26 23:33:59 +00:00
Aaron J. Seigo
40e5395c3e guard a bit better against multiple desktop containments claiming the same screen
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738061
2007-11-17 20:50:57 +00:00
Andre Duffeck
7677e98e9f do not disconnect if there's nothing to disconnect
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737447
2007-11-16 08:52:09 +00:00
Aaron J. Seigo
206b07ece1 and now panels set themselves properly again
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737021
2007-11-15 09:15:53 +00:00
Aaron J. Seigo
030ca6d6d2 a common view class
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=736997
2007-11-15 08:22:58 +00:00