Commit Graph

495 Commits

Author SHA1 Message Date
Marco Martin
299d00c193 reverting this bit committed by mistake
svn path=/trunk/KDE/kdelibs/; revision=977600
2009-06-04 19:49:36 +00:00
Marco Martin
ed608afc54 don't mess with size policies applets have chosen, at least with
ignoreaspectRatio applets
(aspectratio and sizepolicy sounds really colliding concepts ah, 4.0
leftovers i love you)

svn path=/trunk/KDE/kdelibs/; revision=977593
2009-06-04 19:00:16 +00:00
Aaron J. Seigo
d5ce775e22 save the desktop setting when it changes in setScreen just as we do for the screen
CCBUG:192245

svn path=/trunk/KDE/kdelibs/; revision=976441
2009-06-01 17:30:52 +00:00
Eduard Vladislavovich Sukharev
bca2659a0e fixing crash on Win and (possibly) Mac when middle mouse clicked on plasma Containment
svn path=/trunk/KDE/kdelibs/; revision=971575
2009-05-22 19:22:57 +00:00
Marco Martin
87d8831b2e set the geometry and then add the offscreen containment to corona->no
more colliding calendars

svn path=/trunk/KDE/kdelibs/; revision=970798
2009-05-20 20:27:01 +00:00
Darío Andrés Rodríguez
479203d54f Call setParent() after the m_wallpaper pointer check
BUG: 192912

svn path=/trunk/KDE/kdelibs/; revision=969230
2009-05-17 18:23:31 +00:00
Aaron J. Seigo
4ea997a9f1 don't crash when moving the focused applet from one containment to another
BUG:192589

svn path=/trunk/KDE/kdelibs/; revision=967669
2009-05-13 18:11:08 +00:00
Aaron J. Seigo
5f7fb0c500 prevent getting called twice (fixes crash on removing panels)
svn path=/trunk/KDE/kdelibs/; revision=964500
2009-05-06 19:08:29 +00:00
Aaron J. Seigo
6ca62962e2 do a sweep for kapplication usage
svn path=/trunk/KDE/kdelibs/; revision=963961
2009-05-05 18:11:50 +00:00
Chani Armitage
571367cec2 middle-click pastes data onto containments now :)
svn path=/trunk/KDE/kdelibs/; revision=963659
2009-05-05 05:19:35 +00:00
Chani Armitage
233e220ad9 safer way of creating actions, according to mjansen
svn path=/trunk/KDE/kdelibs/; revision=963095
2009-05-03 22:13:05 +00:00
Chani Armitage
c756fd29c4 configurable keyboard shortcuts
svn path=/trunk/KDE/kdelibs/; revision=963051
2009-05-03 20:22:14 +00:00
Aaron J. Seigo
9339d4e96a go back to the plugin info categories
svn path=/trunk/KDE/kdelibs/; revision=962195
2009-05-01 18:01:26 +00:00
Aaron J. Seigo
0b5c4e1947 use Keywords instead of X-KDE-PluginInfo-Category so we can be translated and even support multiple categories!
svn path=/trunk/KDE/kdelibs/; revision=961933
2009-05-01 05:36:50 +00:00
Aaron J. Seigo
7d8a4272cd put containment options last, make accidental removal of widgets a bit harder
BUG:188880

svn path=/trunk/KDE/kdelibs/; revision=960594
2009-04-28 17:30:46 +00:00
Aaron J. Seigo
6d7622271c * Toolbox -> ToolBox
* emit the signals only when things change

svn path=/trunk/KDE/kdelibs/; revision=958822
2009-04-24 19:27:58 +00:00
Aaron J. Seigo
718c24af43 correct connect statements
svn path=/trunk/KDE/kdelibs/; revision=958270
2009-04-23 16:38:16 +00:00
Marco Martin
43af4a45b4 signal void toolBoxVisibilityChanged(bool); that notifies when the
toolbox gets open/closed

svn path=/trunk/KDE/kdelibs/; revision=953372
2009-04-13 20:26:17 +00:00
Aaron J. Seigo
8952d159aa straighten out this bit of nonesense a bit :)
svn path=/trunk/KDE/kdelibs/; revision=952746
2009-04-12 13:21:49 +00:00
Marco Martin
baf9e2bffe set the screens to -1 for both containments before switching them, it
avoids a screenownerchanged infinite loop

svn path=/trunk/KDE/kdelibs/; revision=952429
2009-04-11 21:12:03 +00:00
Marco Martin
05828b7b81 a bit more debug or i will become totally mad about that
svn path=/trunk/KDE/kdelibs/; revision=952360
2009-04-11 16:23:38 +00:00
Marco Martin
c4e76cdc54 restore as offscreen widgets containments that was offscreen widgets
svn path=/trunk/KDE/kdelibs/; revision=951274
2009-04-08 20:37:45 +00:00
Marco Martin
875688e040 make corona's offscreenwidgets list accessible, don't reposition
containments that are in offscreen widgets

svn path=/trunk/KDE/kdelibs/; revision=950841
2009-04-07 21:22:18 +00:00
Aaron J. Seigo
deb92dbdf5 parent the wallpaper so it gets deleted when we get deleted
svn path=/trunk/KDE/kdelibs/; revision=950829
2009-04-07 21:00:26 +00:00
Aaron J. Seigo
339c9cbf9a oops, straggler in the query
svn path=/trunk/KDE/kdelibs/; revision=948431
2009-04-03 00:34:53 +00:00
Aaron J. Seigo
5ef5f88b7e listing methods for all installed types of containments and for all containments of a given type
svn path=/trunk/KDE/kdelibs/; revision=948427
2009-04-03 00:29:54 +00:00
Aaron J. Seigo
04f8e295b7 make the wallpaper stuff a bit more robust and integrated around configuration issues
svn path=/trunk/KDE/kdelibs/; revision=948052
2009-04-02 04:15:50 +00:00
Aaron J. Seigo
7dd4f42869 the wallpaper is always a (0, 0) of the containment; don't rely on the boundingRect to give us that
svn path=/trunk/KDE/kdelibs/; revision=945044
2009-03-26 19:14:58 +00:00
Aaron J. Seigo
f2ba0859cb SVN_SILENT: i'm sure one pair of parens is enough. this isn't lisp.
svn path=/trunk/KDE/kdelibs/; revision=943975
2009-03-24 18:51:29 +00:00
Chani Armitage
111e6a60c3 zoomout is moving to desktop/plasmaapp
svn path=/trunk/KDE/kdelibs/; revision=941581
2009-03-20 00:36:04 +00:00
Aaron J. Seigo
9024aa28bb don't automatically add a remove action to custom containments
svn path=/trunk/KDE/kdelibs/; revision=939041
2009-03-13 17:07:58 +00:00
Chani Armitage
f406ed1d77 stuff that lets me move "add activity" to plasmaapp:
-added enableAction function to corona for convenience
-added immutabilityChanged signal so that plasmaapp can respond to lock/unlock
-removed "add activity" action from containment because it's on its way to plasmaapp
-stopped adding corona actions to the containment toolbox, plasmaapp can do a better job of it
-made lock action actually disable on SystemImmutable; sure it wouldn't have worked, but now there's no worries about it showing up in the UI

svn path=/trunk/KDE/kdelibs/; revision=938383
2009-03-11 18:37:12 +00:00
Rob Scheepmaker
e1730c4704 Move the showing of the dropzone from panelview to containment. Leads to less code duplication and makes showing dropzones when dragging extenderitems to the panel work. Also don't hide the extenderapplet and panel when detaching the last item from an extenderapplet, and move extenderitems off screen before creating the pixmap to avoid other items appearing in the pixmap.
svn path=/trunk/KDE/kdelibs/; revision=938242
2009-03-11 14:41:37 +00:00
Chani Armitage
9af884bad7 update the lock action once, instead of having every containment do it
svn path=/trunk/KDE/kdelibs/; revision=938042
2009-03-11 04:46:13 +00:00
Chani Armitage
aa34398a80 give corona its own action collection.
this is a place for things which shouldn't be duplicated over every single containment, like "lock" and "new activity".
for now we still add the lock action to every containment, so that none of the code lower down notices the change - but we only have one action behind it all :)

svn path=/trunk/KDE/kdelibs/; revision=937923
2009-03-10 19:52:50 +00:00
Chani Armitage
d1fa9d361b (hopefully) temporary fix for shortcuts.
this could interfere with plasma-mid, because it assumes one view per window
but it's the best we can get until we can use real QGraphicsWidget action stuff

svn path=/trunk/KDE/kdelibs/; revision=935758
2009-03-06 05:22:08 +00:00
Aaron J. Seigo
655f63d1fb allow custom containment types to utilize the toolboxes if they wish
svn path=/trunk/KDE/kdelibs/; revision=935732
2009-03-06 01:41:01 +00:00
Marco Martin
8fd655c54b desktop toolbox is more tiny and shows the activity name if any is set
an experiment, let's see how it goes

svn path=/trunk/KDE/kdelibs/; revision=935674
2009-03-05 22:15:06 +00:00
Aaron J. Seigo
04824f48c7 streamlining made while hunting for the panel changing bug. at least i have something to show for my pain.
svn path=/trunk/KDE/kdelibs/; revision=930729
2009-02-24 04:54:57 +00:00
Aaron J. Seigo
9f40f63081 prevent panels from encroaching into positive space and screwing things up: constraintsEvent is delayed, and that event loop is entered between. this is something that needs to be done synchronously, however. SizeConstraint is triggered by Applet::resizeEvent, so putting this code in resizeEvent is no more or less immune to applets/containments reimplementing resizeEvent and not calling the base implementation.
BUG:176280

svn path=/trunk/KDE/kdelibs/; revision=928671
2009-02-19 19:50:19 +00:00
Aaron J. Seigo
1f6e98c957 revert r#176280 as it's just a work around for the real problem
svn path=/trunk/KDE/kdelibs/; revision=928670
2009-02-19 19:47:24 +00:00
Marco Martin
d2446a59fc make the applet appear in the direction nearest to the mouse instead of
the entry position, more hanle-follows-mind

svn path=/trunk/KDE/kdelibs/; revision=928669
2009-02-19 19:43:52 +00:00
Joshua Levesque
fcb0f36d7f Prevent horizontal panels from bleeding over into positive coordinates by creating a positioning offset, much like that given to vertical panels.
CCBUG: 176280

svn path=/trunk/KDE/kdelibs/; revision=927169
2009-02-16 22:55:24 +00:00
Marco Martin
f4514950f4 reverting the last change, the panel height is still the old one at that
point :)

CCBUG:176280

svn path=/trunk/KDE/kdelibs/; revision=927158
2009-02-16 22:11:24 +00:00
Marco Martin
59a0e9f0e8 theory: the desktop breakage could happen because the panel overlaps the
desktop for a while, making containment()->view() or
corona::containmentfordesktop() fails, leaving the desktop view without
a containment
try to reposition the panel before a vertical movement, it should
prevent the panel to go into the desktop for an instant
CCBUG:176280

svn path=/trunk/KDE/kdelibs/; revision=927141
2009-02-16 21:45:18 +00:00
Artur Duque de Souza
cae61ee4ca Use enums from KIconLoader
Instead of using hardcore numbers, it would be great to use the enums provided by 
KIconLoader whenever we use sizes for icons.

Made the change for the obvious ones replacing "16" by KIconLoader::SizeSmall, 
"22" by KIconLoader::SizeSmallMedium and "32" by KIconLoader::SizeMedium.

svn path=/trunk/KDE/kdelibs/; revision=926544
2009-02-15 16:35:52 +00:00
Rob Scheepmaker
fe805eb338 Massive refactoring of extender drag&drop handling. This should avoid bugs with the old way of doing things (toplevel view on an offscreen widget can lose
mouse events while dragging), and is generally shorter and cleaner. There are still some regressions I'll be working on fixing, but it basically works, avoids 
crashes and is even faster.


svn path=/trunk/KDE/kdelibs/; revision=923915
2009-02-09 18:10:45 +00:00
Alexis Ménard
ef4b6c7187 Add an appletDestroyed signal instead of catching the destruction in containments with qobject destroyed signal.
THis fix errors because we give an invalid pointer to public appletRemoved signal.

svn path=/trunk/KDE/kdelibs/; revision=917619
2009-01-28 07:58:17 +00:00
Christophe Giboudeaux
ae301b3718 kaction.h is already included. Just remove the extra ones
svn path=/trunk/KDE/kdelibs/; revision=917529
2009-01-28 00:12:02 +00:00
Cédric Borgese
1b12af86cc Fix compilation : camel case includes of kdelibs headers are not accessible while building kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=917525
2009-01-28 00:01:15 +00:00
Chani Armitage
958cc6e953 -fix settings shortcut
-QAction->KAction
IMPORTANT: if you need to do things to the keyboard shortcuts of kactions (which means all of plasma's standard actions from now on), make sure you're using a KAction* and not a QAction*

svn path=/trunk/KDE/kdelibs/; revision=917435
2009-01-27 20:50:34 +00:00
Marco Martin
bb8c603060 moved the activate() signal chaining from applet to containment
svn path=/trunk/KDE/kdelibs/; revision=915940
2009-01-24 10:47:35 +00:00
Aaron J. Seigo
a414e32f0b some clean ups
svn path=/trunk/KDE/kdelibs/; revision=915487
2009-01-23 07:32:11 +00:00
Aaron J. Seigo
72d632a234 this started out as a self contained patch just to merge two actions, but rapidly got out of hand ;)
* default to no config interface for containments
* merge the Appearance Settings and Configure actions for containments
* be even more careful with about-to-be-deleted widget (d->transient) including giving them a fake-but-valid scratchpad of a KConfigGroup if requested after deletd
* replace some method calls with direct access to the private members

svn path=/trunk/KDE/kdelibs/; revision=914890
2009-01-22 00:00:16 +00:00
Chani Armitage
0f3f06f024 all plasma shortcuts are emacs-style now, starting with alt-d, to avoid conflicts.
svn path=/trunk/KDE/kdelibs/; revision=914295
2009-01-20 19:38:45 +00:00
Aaron J. Seigo
307f5760c3 * do the input sanitization first
* use newScreen and newDesktop to make the code more understandable; someone already tripped up on d->screen vs screen in a bug report. d->screen vs newScreen should be harder to miss.

svn path=/trunk/KDE/kdelibs/; revision=913111
2009-01-18 19:52:09 +00:00
Aaron J. Seigo
5e41fb8132 don't lose the desktop in the process of swaping contaiment assignments; include desktop assignment in the debug
CCBUG:175697

svn path=/trunk/KDE/kdelibs/; revision=913049
2009-01-18 17:56:06 +00:00
Aaron J. Seigo
4bc508411a neat bug: changing Activity type while widgets are locked caused Appearances settings to be permahidden. chased out a few other ways to trigger this once that one was fixed, works nicely now.
BUG:180887

svn path=/trunk/KDE/kdelibs/; revision=911727
2009-01-16 00:39:07 +00:00
Aaron J. Seigo
dd99751e2b SVN_SILENT: coding style!
svn path=/trunk/KDE/kdelibs/; revision=910608
2009-01-13 19:49:19 +00:00
Beat Wolf
ad56e279e2 Don't create submenu for "unlock widgets" if there is only one action in the submenu
svn path=/trunk/KDE/kdelibs/; revision=910410
2009-01-13 11:03:48 +00:00
Aaron J. Seigo
c5e44c35d2 if the applet is already in another containment, don't re-animate it as if it were new
svn path=/trunk/KDE/kdelibs/; revision=908501
2009-01-09 20:44:53 +00:00
Aaron J. Seigo
e009bc7382 protect access to toolbox, when used with containments that don't create one or turn theirs off
BUG:179909

svn path=/trunk/KDE/kdelibs/; revision=907205
2009-01-07 16:42:12 +00:00
Aaron J. Seigo
d4bb3c790a no need to focus an applet twice
svn path=/trunk/KDE/kdelibs/; revision=905312
2009-01-04 07:59:10 +00:00
Chani Armitage
c0496911af the settings dialog for wallpaper n'stuff needs to respect security
svn path=/trunk/KDE/kdelibs/; revision=902697
2008-12-28 23:45:27 +00:00
Sebastian Sauer
8f12925265 disable conflicting shortcut for now.
BUG:165938


svn path=/trunk/KDE/kdelibs/; revision=897447
2008-12-16 04:34:38 +00:00
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