Commit Graph

407 Commits

Author SHA1 Message Date
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