Commit Graph

80 Commits

Author SHA1 Message Date
Aaron J. Seigo
d06a97fa73 SVN_SILENT: hush
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742850
2007-11-29 01:05:16 +00:00
Aaron J. Seigo
eb62d53f8f handle the setting of the default type a bit differently; delay it until init and only if the subclass hasn't set something on us
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742839
2007-11-29 00:20:37 +00:00
Aaron J. Seigo
22893bd077 change of heart after trying a few more things out: make containment type something that can be externally set.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742774
2007-11-28 21:46:17 +00:00
Aaron J. Seigo
4013f346ae bitten by the difference between type() and containmentType() again; layering one set of concepts (plasma) over another (qgv) does have its annoying sides ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742416
2007-11-27 23:36:10 +00:00
Aaron J. Seigo
119dacffe8 right, handles only on desktops for now
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742411
2007-11-27 23:23:38 +00:00
Aaron J. Seigo
dee3a63add don't bother animating the items on start up (delayedInit) since we never see the anims anyways so it's just a bunch of unecessary computation at launch.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742409
2007-11-27 23:19:02 +00:00
Aaron J. Seigo
20470c7c67 keep screen assignments; this way if a screen is unplugged then comes back between plasma runs (e.g. log ins) we still have the containment kicking around. useful, that. ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742136
2007-11-27 08:47:46 +00:00
Aaron J. Seigo
51e828917e * simplify some of the code
* put warning comments about using config() prematurely
* improve addApplet(Applet *) by having it remove the applet from the other containment, reset the config, deal with scene event filters....
* be less noisy with kdebugamania

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742103
2007-11-27 06:08:44 +00:00
Aaron J. Seigo
c3d71fb5f3 * don't assume a screen; this prevents containments without a screen expressley set from taking over the primary desktop; at least i know that screen take over works though ;)
* only bother with screent take over is we have an actual screen (e.g. something > -1)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742029
2007-11-26 23:28:03 +00:00
Jeremy Paul Whiting
44a7a86a6c enable moving applets from one desktop containment to another, still a bit buggy, but functional
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742001
2007-11-26 21:57:50 +00:00
Aaron J. Seigo
9603d8cf57 we need to turn the background off here, as well.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741921
2007-11-26 18:32:25 +00:00
Percy Leonhardt
a166f48ccc Support resizing of applet while handle is visible.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=740406
2007-11-23 08:01:29 +00:00
Aaron J. Seigo
2fbb4b5fee SVN_SILENT: note to self.. don't patch on one machine, then commit from another blindly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739973
2007-11-22 08:00:35 +00:00
Aaron J. Seigo
fc6b8e4a95 be more careful about the things we watch
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739951
2007-11-22 07:37:57 +00:00
Aaron J. Seigo
9c52d8f067 actually make plasmoid removal work and harden the applet handle against the applet being removed from under it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739867
2007-11-22 05:11:06 +00:00
Aaron J. Seigo
9b29f430db a little bit of spacing in the panel between items makes the baby happy.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738948
2007-11-20 00:44:29 +00:00
Aaron J. Seigo
92ba2c1b0b move all the layouts to their own directory; much more logical and makes it easier to not miss layouts that need changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738898
2007-11-19 22:42:56 +00:00
Aaron J. Seigo
fbf2505f8a only if it is being used as a containment actually give it the toolbox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738519
2007-11-19 02:27:53 +00:00
Aaron J. Seigo
b0789ebe14 here, have your containments back. type() was pretty widely used and rather important apparently ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738514
2007-11-19 02:14:18 +00:00
Aaron J. Seigo
aad6b2a52b interesting; with that const fix i discovered this clashed with QGrahpicsItem::type() .. doh!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738507
2007-11-19 01:35:10 +00:00
Aaron J. Seigo
b57b27550a a bit of const correctness
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738506
2007-11-19 01:26:50 +00:00
Aaron J. Seigo
4b8f4092a0 * @internal: introduce a containmentConstraintsUpdated so that we can manage some containment specific things
* introduce CustomContainment types which will be more 'hands off'

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738503
2007-11-19 01:19:58 +00:00
Aaron J. Seigo
5b4dbbe303 we do actually still want context menus on applets, even with the hover thing.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738430
2007-11-18 22:02:01 +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
Aaron J. Seigo
47130fbba5 * initConstraints -> loadConstraints, since that's actually what it does
* turn off the background right away in containments to avoid getting size hints with the boundaries!

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737709
2007-11-17 03:31:25 +00:00
Andre Duffeck
174096635e Add signals that incicate an application launch. DashBoardView can
connect and hide itself then, for example.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737051
2007-11-15 11:06:33 +00:00
Jeremy Paul Whiting
311f58dea6 SVN_SILENT conform to kdelibs style
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=736150
2007-11-13 15:49:28 +00:00
Jeremy Paul Whiting
a9673b0ac7 don't crash when hovering over the panel plasmoids
I'm fairly confident the assertion that used to be here is bogus because of panels not belonging to the desktop containment
CCMAIL: aseigo@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735913
2007-11-13 00:29:09 +00:00
Kevin Ottens
bf77e378a6 Add support for applet handles in plasma containments.
Still a couple of issues to flesh out, but that's usable already.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735845
2007-11-12 19:27:21 +00:00
Aaron J. Seigo
a0592bf1f4 KRUSH:
* get rid of unused d->size var
* don't track the layout ourselves, use the layout() from the LayoutItem
* code clarity cleanups

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735123
2007-11-10 23:19:05 +00:00
Aaron J. Seigo
bcf898ca7b appletAdded signal
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734727
2007-11-09 18:47:35 +00:00
Aaron J. Seigo
de2dba69a9 * listen and respond to xrandr changes
* convenience accessor to the corona for containments
* some debug to track down the context menu in the upper left corner problem

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734486
2007-11-09 00:44:35 +00:00
Aaron J. Seigo
99f67622e2 the last of the full screen repaints are gone, gone gone.
TT is aware of the bugs i'm working around, so hopefully we can get rid of this code someday, but for now ... a much more performant and smoother plasma.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=733167
2007-11-05 18:40:45 +00:00
Aaron J. Seigo
cda61b4888 we need to accept hover events, even though we do nothing with them
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=733132
2007-11-05 16:41:27 +00:00
Aaron J. Seigo
7da6eebdcb less noisy on startup.. this stuff is working now
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=732531
2007-11-04 05:38:16 +00:00
Aaron J. Seigo
a5b02c9e66 fix default geometry setting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=732500
2007-11-04 01:37:56 +00:00
Aaron J. Seigo
cb956351ed don't paint anything from the base "null" containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=732493
2007-11-04 01:17:42 +00:00
Aaron J. Seigo
6a826c0150 thanks to the persistent and patient test of apaku, plasma is working fairly decently in xinerama now
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730881
2007-10-29 23:32:55 +00:00
Aaron J. Seigo
f846464288 - use addChild so that the item gets added to the layout
- proper coordinates for setLeft

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730874
2007-10-29 22:45:57 +00:00
Aaron J. Seigo
4d1cac45c8 only used once, no point in putting in a temp var
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730443
2007-10-28 20:03:04 +00:00
Cédric Borgese
3313101e56 Fix applet position when droping it from appletbrowser on a containment that doesn't start at (0,0) on the scene. Typically, the second screen on a dual screen
configuration.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729926
2007-10-27 12:37:05 +00:00
Sean Harmer
fb1fe06b79 Refactoring the background painting code into DefaultBackground.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729889
2007-10-27 08:56:42 +00:00
Aaron J. Seigo
c0231730e2 * a more sane init(), by using the default values set in the Private class (or by prior calls to set*()?)
* try to give this a hope in hell of working in xinerama; include some debug output for when it fails ;)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729449
2007-10-26 01:11:27 +00:00
Aaron J. Seigo
ee8c24dcad yeah, moving them left is not what i wanted. hello dyslexia!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729434
2007-10-25 23:33:23 +00:00
Aaron J. Seigo
91d37cd653 also set the desktop widgets sufficiently apart on the scene
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729433
2007-10-25 23:31:20 +00:00
Aaron J. Seigo
975553bb1e debug for apaku =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729430
2007-10-25 23:19:49 +00:00
Aaron J. Seigo
576798dd52 set panels properly in setScreen. this will need to be augmented with screen edge stuff eventually as well, but for now this might work better on multiple screens.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729421
2007-10-25 23:09:02 +00:00
Aaron J. Seigo
136363aefe * don't cache the painting; prevents blowing the pixmap cache and killing performance on large screens. we don't move this around anyways, and we only paint the exposed rect when using a bitmap wallpaper
* default to a bitmap wallpaper as we handle those a lot better (e.g. only painting the exposed rect)

the paper painting code really does need to move to DesktopContainment at some point =)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729228
2007-10-25 11:20:23 +00:00
Aaron J. Seigo
db095df33e animate items being removed. whee. the only problem would be if the item is being removed but plasma is quit before the anim finishes... or if some top-level applet calls disappear on itself (though why they'd do that i don't?)
let's see if that ever really matters. if it does, then we can simply keep a list of applets being removed around. but let's play fast 'n loose for now.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=728722
2007-10-24 02:10:10 +00:00
Aaron J. Seigo
1db6f236e7 provide a bit of a margin between containments; this ensures that we don't get painting "bleed" between panels and the desktop as well which should help kwin go a little less crazy trying to keep up with re-compositing the whole desktop every time =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=728530
2007-10-23 15:56:40 +00:00