Commit Graph

430 Commits

Author SHA1 Message Date
Aaron J. Seigo
85161ce13f re-enable some debug needed to work out problems with multiscreen
svn path=/trunk/KDE/kdelibs/; revision=897316
2008-12-15 18:28:28 +00:00
Aaron J. Seigo
6e6cb12b9b delay the saving of new applets so that layouts can do their job
svn path=/trunk/KDE/kdelibs/; revision=897306
2008-12-15 17:48:28 +00:00
Aaron J. Seigo
5c2927870d * consolidate the remove action enabling check into one method
* check the remove action on immutability changes (prevents "Remove" from showing up erroniously when locking then unlocking)

svn path=/trunk/KDE/kdelibs/; revision=897290
2008-12-15 16:54:09 +00:00
Aaron J. Seigo
29b2776ee4 carefully save applets on creation, prevents losing new applets right after adding them
svn path=/trunk/KDE/kdelibs/; revision=895934
2008-12-12 01:05:00 +00:00
Aaron J. Seigo
4ffa080061 SVN_SILENT: quit spamming the output with this one
svn path=/trunk/KDE/kdelibs/; revision=895806
2008-12-11 19:53:35 +00:00
Frederik Gladhorn
f0c5eeea37 put the "Appearance Settings" after "Lock Widgets" in the context menu of the desktop
svn path=/trunk/KDE/kdelibs/; revision=894992
2008-12-09 19:10:30 +00:00
Marco Martin
98b833977b correct some last toolbox annoyances...
svn path=/trunk/KDE/kdelibs/; revision=893011
2008-12-05 18:16:30 +00:00
Aaron J. Seigo
2207ff1dc5 make it possible to remove panels again
svn path=/trunk/KDE/kdelibs/; revision=892648
2008-12-04 20:34:04 +00:00
Marco Martin
b596d894e5 keep remove action enabled on panels
svn path=/trunk/KDE/kdelibs/; revision=892472
2008-12-04 12:55:34 +00:00
Aaron J. Seigo
5055bf7bf0 the margins should be constant; it's a grid.
svn path=/trunk/KDE/kdelibs/; revision=891718
2008-12-02 18:42:06 +00:00
Marco Martin
9fd8a3298d correctly position new activity when adding one
never show text on wider zoom level

svn path=/trunk/KDE/kdelibs/; revision=891258
2008-12-01 13:17:27 +00:00
Marco Martin
d9c14c87ba show the toolbox as an external solid-background toolbar under the
containment, don't show text on icons except add windgets and add
activity
show the remove activity button in the toolbox for non active ones

svn path=/trunk/KDE/kdelibs/; revision=891209
2008-12-01 12:40:08 +00:00
Aaron J. Seigo
509632ff64 a couple of related fixes to make destroying containments work a lot better
svn path=/trunk/KDE/kdelibs/; revision=889816
2008-11-27 18:55:32 +00:00
Aaron J. Seigo
15cc6a0731 disconnect applets from the containment they get moved from
CCBUG:173879

svn path=/trunk/KDE/kdelibs/; revision=888666
2008-11-25 03:07:18 +00:00
Aaron J. Seigo
7b4de980b8 clarify this code a wee bit more and call positionContainments() in all necessary cases
svn path=/trunk/KDE/kdelibs/; revision=888637
2008-11-25 00:23:43 +00:00
Aaron J. Seigo
323c6a7232 * catch CustomPanelContainment as well on immutability settings
* immobilize the desktop toolbox on immutability

svn path=/trunk/KDE/kdelibs/; revision=886372
2008-11-19 03:28:15 +00:00
Aaron J. Seigo
8a68d06f0d grant minimal access to the toolbox so we can avoid nasty hacks in containments. see next commit to PanelContainment for what i meant ;)
svn path=/trunk/KDE/kdelibs/; revision=886223
2008-11-18 20:49:42 +00:00
Aaron J. Seigo
d6bd085b75 cover a few more cases where we should position the toolbox
svn path=/trunk/KDE/kdelibs/; revision=885841
2008-11-18 00:16:45 +00:00
Aaron J. Seigo
e1c9aadb93 save/restore the desktop setting
svn path=/trunk/KDE/kdelibs/; revision=885338
2008-11-17 05:16:33 +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
d0c7968b18 load and save toolbox position between restarts!
still to come:

* don't paint when zoomed, replace with tool strip instead
* respect available area during drag
* smarter positioning (right now it just loads the saved position whenever it needs to reposition)

svn path=/trunk/KDE/kdelibs/; revision=884072
2008-11-14 07:28:02 +00:00
Aaron J. Seigo
a65daf42b2 more accurate sorting, based on a patch by zhangqiang
CCMAIL:zhangqiang@redflag-linux.com

svn path=/trunk/KDE/kdelibs/; revision=884048
2008-11-14 04:01:01 +00:00
Beat Wolf
675b4b59b8 add general way to add context menus to containments. Reviewed by aseigo
svn path=/trunk/KDE/kdelibs/; revision=884003
2008-11-13 23:08:58 +00:00
Aaron J. Seigo
f709ce0d05 ok, that was too long. Activity is a bit of a detail as well..
svn path=/trunk/KDE/kdelibs/; revision=883457
2008-11-12 23:10:57 +00:00
Aaron J. Seigo
cdf562df11 simplify toolbox positioining and drawing
svn path=/trunk/KDE/kdelibs/; revision=882672
2008-11-11 08:12:20 +00:00
Aaron J. Seigo
aec4445dec grrrrr.. eventualy i'll find a phrase that doesnt' suck; not sure this is it yet though =P
svn path=/trunk/KDE/kdelibs/; revision=882614
2008-11-11 01:07:35 +00:00
Aaron J. Seigo
4e964a2ec8 update the hover pos to make the entry point the last hovered location
BUG:172075

svn path=/trunk/KDE/kdelibs/; revision=882611
2008-11-11 00:57:08 +00:00
Aaron J. Seigo
86e88a2be2 SVN_SILENT: remove some out of date TODOs
svn path=/trunk/KDE/kdelibs/; revision=882216
2008-11-10 03:52:45 +00:00
Aaron J. Seigo
249a44ab8d don't overload the meaning of hasConfigurationInterface for containments, since that makes things difficult for applets-that-are-containments, e.g. folderview
svn path=/trunk/KDE/kdelibs/; revision=882205
2008-11-10 01:26:27 +00:00
Aaron J. Seigo
daf6fa87b5 avoid making a copy of the config group in the loop, and switch to a mutable iterator to avoid a const_cast (which are ugly); should make krazy happier
svn path=/trunk/KDE/kdelibs/; revision=880617
2008-11-05 23:14:47 +00:00
Aaron J. Seigo
1a86e5cf41 no longer needed as there are unix/win/mac impls of kwindowsystem now
svn path=/trunk/KDE/kdelibs/; revision=880604
2008-11-05 22:57:45 +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
Albert Astals Cid
45edd84dfc add context
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879206
2008-11-02 17:38:52 +00:00
Aaron J. Seigo
60ab332312 don't assert, just check. over the next month or two we need to keep an eye on which asserts around corona() get triggered and try and make as many of those calls happen only post-load
CCMAIL:faure@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878025
2008-10-31 04:37:56 +00:00
Kevin Ottens
f66b4d819b API changes as announced:
* ConfigXml becomes ConfigLoader
  * Containment::(add|remove)ToolBoxTool(QAction *action) becomes
    Containment::(add|remove)ToolBoxAction(QAction *action)
  * Flash becomes FlashingLabel
  * Icon becomes IconWidget
  * PanelSvg becomes FrameSvg

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877504
2008-10-29 17:46:33 +00:00
Guillaume Pothier
bd7e7b10c9 Added screen management methods to Corona and removed usage of QDesktopWidget in plasmalibs.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877451
2008-10-29 15:22:38 +00:00
Beat Wolf
df65542e6a Position the toolbox in the right place after moving the panel
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=875532
2008-10-24 18:57:59 +00:00
Aaron J. Seigo
5c8d95bade so that's why we do it for every containment, regardless of screen =P
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874224
2008-10-21 00:03:06 +00:00
Marco Martin
63a8fba67c show an empty area when dropping applets from applet browser to the
panel, making easier to add applets

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874087
2008-10-20 18:51:15 +00:00
Aaron J. Seigo
6ef3b851ac update some of these todos
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873711
2008-10-20 01:41:15 +00:00
Aaron J. Seigo
b31b4da0ba ok, this is a much, much easier way to approach the grouping and doesn't require QDesktopWidget either
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873703
2008-10-20 00:42:50 +00:00
Aaron J. Seigo
8005bf4a73 nothing actually used this, and it breaks with the whole view/model thing and brings one more dep on QDesktopWidget with it, so good riddence
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873691
2008-10-19 23:27:58 +00:00
Aaron J. Seigo
3fb4975896 swap the magic number for a constant
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873689
2008-10-19 23:21:03 +00:00
Aaron J. Seigo
b5df90348f don't load the wallpaper config until we paint. this means that if we have off-screen containments, even with complex wallpapers, they don't take up unecessary memory or delay start up because they won't render the wallpaper until the first paint event.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872755
2008-10-18 01:31:52 +00:00
Aaron J. Seigo
d725fd9413 swap screens with the containment we kick off our screen if we have a screen of our own to trade them
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872382
2008-10-17 05:16:26 +00:00
Aaron J. Seigo
5e987c6ba8 send the containment along with the signal for consitency with similar signals
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872308
2008-10-16 20:54:15 +00:00
Aaron J. Seigo
11536c679b this was a hack, albeit a mildly useful one, but it's in the way now; need to find a better solution for the keyboard shortcuts madness (or just switch to qt 4.5)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872302
2008-10-16 20:30:34 +00:00
Guillaume Pothier
7b201201b0 Fixed positioning of desktop containments' toolbox
BUG: 166770

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872129
2008-10-16 11:47:03 +00:00
Aaron J. Seigo
2118460d27 applet -> widget
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871125
2008-10-13 23:16:22 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +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
06e71be8c3 we no longer need to check for spontaneity; move the trick up to Applet as well to avoid repaints where possible
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868200
2008-10-05 17:48:44 +00:00
Konstantin Heil
a99aee5e8d Scrolling on desktop travels the virtual desktop in reverge direction than scrolling on the pager. Because scolling on desktop was a little bit confusing: changed scoll direction.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867906
2008-10-04 22:09:15 +00:00
Aaron J. Seigo
367936cc09 * remove the check for layout() in setFormFactor; that's no longer valid
* emit config needs saving signals when these things change
* only write the changes if the values actually do change

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=865206
2008-09-27 01:54:24 +00:00
Aaron J. Seigo
d732923026 save changes as they happen
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=865205
2008-09-27 01:51:52 +00:00
Aaron J. Seigo
cd7e48a164 a bit less convoluted and does the same thing
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863697
2008-09-22 21:50:01 +00:00
Aaron J. Seigo
a90457d7a1 only care about mucking about with the focus item if it isn't null
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863641
2008-09-22 18:35:24 +00:00
Aaron J. Seigo
56a9ad52ce make it harder for people to fall into the temptation of nesting containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863619
2008-09-22 17:50:23 +00:00
Aaron J. Seigo
f505d063e7 and if it isn't acting as a containment, but an applet, then use the standard configuration mechanism as provided by Applet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862308
2008-09-18 14:58:06 +00:00
Aaron J. Seigo
c633c8ac57 hook up the containment configuration interface to the generic containment configuration mechanism; now it shows in the toolbox too! whee!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859593
2008-09-10 18:51:30 +00:00
Aaron J. Seigo
bf942582e8 support adding the configuration entry to the toolbox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859589
2008-09-10 18:42:52 +00:00
Aaron J. Seigo
4ae5e8bdf7 respect "null" as a containment request: no wallpaper
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858909
2008-09-09 01:16:10 +00:00
Aaron J. Seigo
d404d951f2 one more call using geometry rather than boundingRect
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858894
2008-09-08 23:08:25 +00:00
Aaron J. Seigo
eed04daf07 should be boundingrect; wallpapers paint relative to the containment at all times
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858893
2008-09-08 22:56:55 +00:00
Marco Martin
2c2e7ecf3b set a default wallpaper when the user creates a new containment from the
ui

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858793
2008-09-08 18:38:14 +00:00
Aaron J. Seigo
329b1782f1 better ...
CCMAIL:kossebau@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858370
2008-09-07 21:47:55 +00:00
Aaron J. Seigo
8ef4eaa1d4 don't duplicate this over and over again
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858359
2008-09-07 21:07:30 +00:00
Aaron J. Seigo
f5168c65de put notmart out of his misery on this one =) let containment tell the world when it's context changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857852
2008-09-06 16:29:47 +00:00
Aaron J. Seigo
99e664d0c5 make is possible to ask for the containment's own context menu
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857605
2008-09-05 20:06:30 +00:00
Aaron J. Seigo
b244d65ec5 let's keep each paper's config separate from each other, so that when you switch between papers your config is actually saved
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857511
2008-09-05 15:32:55 +00:00
Aaron J. Seigo
90d21e4b31 be a lot more careful about what we save, when and how. leaves us still with an annoying problem with save/restore of papers at runtime though .. working on that now
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857505
2008-09-05 15:16:49 +00:00
Aaron J. Seigo
3b314b6578 * delete the wallpaper config group when we change plugins
* save the wallpaper config before moving on if the wallpaper remains the same, so that when we restore the paper later on we're all good and safe

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857500
2008-09-05 15:01:30 +00:00
Aaron J. Seigo
72aff55a52 it's wheelEvent, not mouseWheelEvent
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857248
2008-09-05 04:33:40 +00:00
Aaron J. Seigo
d89ad4cba0 context API adjustments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857207
2008-09-05 00:22:42 +00:00
Aaron J. Seigo
b3b8ac7ee3 ignore the event if we don't care
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857154
2008-09-04 20:13:23 +00:00
Benoît Jacob
6d24078bc7 Forward wheel events to the wallpaper
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857101
2008-09-04 18:11:46 +00:00
Aaron J. Seigo
e8bbd8c33f ensure we get mouse focus even if the wallpaper accpets the event
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856795
2008-09-03 19:57:53 +00:00
Aaron J. Seigo
02c5028f8c make it possible for the wallpaper to accept mouse clicks, thereby getting mouse moves
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856723
2008-09-03 16:46:01 +00:00
Marco Martin
0df88727ef allows the Desktop toolbox to be positioned in the four corners or four
edges, rendering the right bits of the arc.
this now is used by the containment to render a non cutted toolbox when
there is a panel on top or on right
and to put the toolbox on the left with RTL layouts

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853991
2008-08-28 15:59:03 +00:00
Alex Merry
20af95eee1 Bogus foreach.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853577
2008-08-27 22:17:28 +00:00
Aaron J. Seigo
8d6f5e7196 get rid of some api bloat; this can be gotten from the wallpaper plugin itself, after all
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850854
2008-08-22 12:14:10 +00:00
Aaron J. Seigo
ae115c4cbb when we get a non-file dropped, check to see if any applets support any of the mimetypes in the drop. if so, create a tempfile with the data in it and start the applet with that data. it's pretty ... interesting to drop web content from a webbrowser onto the desktop and get a miniwebrowser showing the results.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850349
2008-08-21 10:07:07 +00:00
Aaron J. Seigo
145069e66f if we aren't a containment, don't do anything; and don't bother calling Applet::init as nothing interesting happens there for us.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850293
2008-08-21 07:49:46 +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
6101f26c52 update to context->activity changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849913
2008-08-20 13:13:31 +00:00
Aaron J. Seigo
71796f6bf3 save the wallpaper info when save() is called
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849901
2008-08-20 12:45:19 +00:00
Ambroz Bizjak
b7e61e34c4 Fix a rare bug when a new applet handle is created before the previous one is
destroyed, causing the applet not to follow the handle when moved or fail to appear.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849828
2008-08-20 09:14:27 +00:00
Petri Damstén
0a2eb79e61 Wallpaper API changes:
- modes -> renderingModes
- remove modeName & modeIcon
- add config group to init for reading config
- add save for config saving

Update containment for api changes.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849801
2008-08-20 08:06:34 +00:00
Aaron J. Seigo
84007a813a save/restore containment context (activity)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849513
2008-08-19 17:50:35 +00:00
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
Marco Martin
5f27b7bb30 kill the handle when the applet is destroyed, so don't crash when locking
desktop

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845313
2008-08-11 13:16:46 +00:00
Alex Merry
ba285be2ff Don't try to make an icon with a data: URI - Icon can't handle them.
BUG: 164120


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=844088
2008-08-08 17:14:35 +00:00
Aaron J. Seigo
5c9c48ef75 forward mouse move, press and release events to the wallpaper
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842825
2008-08-06 01:59:44 +00:00
Aaron J. Seigo
2c8f554ffd wheel scroll == desktop switch; no configuration, let's see how people react.
moment of philosophy: there are some features used almost exclusively by people who can't (or can't be bothered to) write code, but know where our bug tracker is, my blog is, what my email address is, etc... this is one such feature. amazing. or sad. i'm not sure which.

BUG:159876

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842821
2008-08-06 01:22:05 +00:00
Aaron J. Seigo
41565045e3 API addition, constification and param naming clarity
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842640
2008-08-05 17:32:47 +00:00
Petri Damstén
0183db7d30 Base for Plasma::Wallpaper plugins.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842590
2008-08-05 15:27:48 +00:00
Laurent Montel
234aef73f2 Translate it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841976
2008-08-04 11:40:06 +00:00
Aaron J. Seigo
577a64f563 extender is not a Plasma Widget (it doesn't follow the API pattern, isn't a button/menu/etc, isn't meant to be used as a general widget in a random layout...)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841164
2008-08-02 17:46:32 +00:00