Commit Graph

124 Commits

Author SHA1 Message Date
Aaron J. Seigo
1637053a9b let the applet restore itself
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774338
2008-02-13 01:52:45 +00:00
Aaron J. Seigo
899202d2fb BIC Monday: slight change in the way we handle saving/loading of applets. it no longer sets the internal config name. makes importing/exporting snippets of applets easier, and it also prevents plasmoidviewer from clobbering plasma settings
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773847
2008-02-11 21:43:09 +00:00
Bill Egert
9560513680 SVN_SILENT:
- Removed unused #includes.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771050
2008-02-05 03:48:07 +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
32c6c94c76 some kiosk/immutability logic fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758174
2008-01-07 04:00:39 +00:00
Aaron J. Seigo
5614923b50 applet sets the immutability properly, corona doen't need to do this
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758165
2008-01-07 02:26:46 +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
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
91300d6fc9 s/SIGNAL/SLOT/ typo fix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757552
2008-01-05 10:50:12 +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
Aaron J. Seigo
8d909f6f0e listen to config save requests from containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757442
2008-01-04 23:14:06 +00:00
Jason Stubbs
ecbe57e4ea Remove the FIXME because it's already enabled and working correctly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756461
2008-01-03 09:45:25 +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
Aaron J. Seigo
e3ff7be17d * do not reset the config file name when saveApplets is called with a specific file name
* don't delete applet config groups because nobody actually bothers to implement saveState (*grrrr*) but that's somewhat ok now as we destroy the group on applet destruction. this does mean that dragging applets between containments is probably broken now, but i'll fix that next
* don't recreate the config file on every saveApplets but use the existing shared config ptr whenever possible

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755635
2008-01-01 23:41:59 +00:00
Aaron J. Seigo
e12dbeb000 provide a way for applets to signal that they'd like their config saved out to disk, please.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755616
2008-01-01 22:44:56 +00:00
Aaron J. Seigo
f6bc2e893d pager after the tasks... more .. "natural" feeling.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755519
2008-01-01 19:37:05 +00:00
Jason Stubbs
9cec9edf9c The order that applets are saved is currently important for the panel. If an
applet is removed from the panel and readded elsewhere, its position in the
config file currently doesn't change. To fix this, this patch clears out the
config group before rewriting it out.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754139
2007-12-29 05:24:45 +00:00
Alexis Ménard
6987d74f32 Un-comment the transform saving wich work perfectly in my case
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753889
2007-12-28 18:04:00 +00:00
Jason Stubbs
4aa76d859b Add the pager to the panel by default, placing it next to kickoff's button
somewhat similar to kde3

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752438
2007-12-24 12:56:28 +00:00
Aaron J. Seigo
50bd42b0e9 * initialize kioskImmutable so if loadApplets isn't used, we still get a sane value here
* remove addApplet, as it breaks the corona->containment->applet concept and leads to easily to subtle bugs (c.f. r750746)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750747
2007-12-19 23:59:59 +00:00
Aaron J. Seigo
291e3afae4 respond to xrandr changes for *all* containments on the affected screen
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749729
2007-12-17 18:26:38 +00:00
Aaron J. Seigo
059505f639 save/restore lock status
CCMAIL:tokoe@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=745809
2007-12-07 05:02:54 +00:00
Aaron J. Seigo
57f73a4dc1 propagate constraints update on immutability change
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=745247
2007-12-05 20:27:16 +00:00
Chani Armitage
7065e1722d SVN_SILENT:
remove a completely unused variable

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=744809
2007-12-04 16:29:37 +00:00
Aaron J. Seigo
e2249860fd differentiate between runtime and kiosk immutability
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=744675
2007-12-04 04:15:21 +00:00
Aaron J. Seigo
4babf5217d let's get rid of all our containments on the way out as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=743814
2007-12-02 00:54:20 +00:00
Aaron J. Seigo
4c582073df we need to init() the constraint earlier now that the ContainmentType isn't set until init()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742848
2007-11-29 01:02:33 +00:00
Aaron J. Seigo
c746f91370 check for missing screens after creating existing ones
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742837
2007-11-29 00:19:03 +00:00
Alexis Ménard
779a913e6d Add the device notifier to the taskbar
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742410
2007-11-27 23:22:07 +00:00
Aaron J. Seigo
0b2c1b481f rough in what should be screen hotplug detection, once QDesktopWidget gets it stuff together
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742393
2007-11-27 22:55:09 +00:00
Aaron J. Seigo
f63f585f1a take into consideration the appearance of new screens between plasma runs.
thanks to Frederic Marmond for testing these situations

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742145
2007-11-27 09:06:52 +00:00
Aaron J. Seigo
fa2286925c try and be a bit more careful about creating non-existent containments due to broken config files
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742122
2007-11-27 07:47:23 +00:00
Aaron J. Seigo
b8d5915b22 don't bother creating applets with no plugin=
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742108
2007-11-27 06:35:26 +00:00
Aaron J. Seigo
ed8c50e03f completely change how we save and load containments and panels.
it all happens from one file now using nested groups. this has two major effects:

 - one file to rule them all for any given corona; this makes things even nicer for use in other apps, btw.
 - the ability to easily save, send/share and restore corona configuration layouts; something i've wanted from the start


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741158
2007-11-24 23:38:37 +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
07e9e1d3e3 stub in the code for restoring the transform; however it doesn't work as the FIXME explains. but i'm too tired to do anymore on this tonight
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738595
2007-11-19 09:21:57 +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
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
Aaron J. Seigo
6aa793e6a8 * fix the case of empty pluginName properly
* mark containments as containments; we need to do this here because a containment may also be used as a regular applet; only the corona knows which is when

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737028
2007-11-15 09:41:55 +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
131fb643b6 KRUSH:
* endsWith, since it must end with; prevent possible clash with an applet with the name containment ;)
* don't add containments multiple times to the scene; no harm, but it spits out warnings to the konsole

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735125
2007-11-10 23:20:48 +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
709136813b ensure even the "null" containment gets a layout
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=732190
2007-11-03 01:36:53 +00:00
Aaron J. Seigo
045ca46537 i suppose we do want the bottom most left screen ....
is it possible to have a 2x2 grid where screen at (0,0) has an x() > 0?

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=731847
2007-11-02 02:31:58 +00:00
Aaron J. Seigo
f330f504d7 try to figure out what the top left screen is for the default panel
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=731846
2007-11-02 02:21:13 +00:00
Aaron J. Seigo
43ea2d708f workspace -> kworkspace to mirror the library name and install path
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=731519
2007-10-31 22:06:41 +00:00
Aaron J. Seigo
d71b8d5a5a some useful debug output, which helped me realize just how badly we need PanelLayout ... and perhaps just how broken BoxLayout is? hm.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730535
2007-10-29 05:01:35 +00:00
Aaron J. Seigo
d5dc647850 allow creating a plain Containment object by passing in "null" for the plugin name. this still allows us to protect better against broken configurations where the plugin value is no longer readable while getting us back the ability to request a plain Containment on purpose.
CCMAIL:frerich@hex.athame.co.uk

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730445
2007-10-28 20:04:38 +00:00