Commit Graph

14 Commits

Author SHA1 Message Date
Aaron J. Seigo
a56fc2ed44 alter the toolbox backer layout when the items change
BUG:224278

svn path=/trunk/KDE/kdelibs/; revision=1080323
2010-01-26 06:06:43 +00:00
Igor Trindade Oliveira
36cda82e22 port desktoptoolbox to new animation api
svn path=/trunk/KDE/kdelibs/; revision=1077702
2010-01-20 18:06:29 +00:00
Aaron J. Seigo
50726d7f08 rework the toolboxes so that they actually mesh with the API of AbstractToolBox:
* have setShowing call the show/hide feature, not the other way around (fixes bug 202549)
* put the actions in order by the tags applied so that things appear ordered
* allow the toolbox to define what the parent of the tools should be (so the desktop toolbox can use the backing as the parent)
* use a layout in the desktop toolbox background that the tools are in; waaaaaay simpler code as a result
* keep only one svg object around for the desktop toolbox background, not two
* use a QtKinetic animation for the show/hide

i'm not happy with the precise positioning of the desktop toolbox nor with the animation (just a fade in/out right now.. meh) but the hard work is done with this commit and the rest is twiddling (which i'll do in the coming days)
BUG:202549

svn path=/trunk/KDE/kdelibs/; revision=1069706
2010-01-04 06:41:43 +00:00
Marco Martin
6b0a4590d2 Export a really simple AbstractToolBox
add a setToolBox function

svn path=/trunk/KDE/kdelibs/; revision=1038024
2009-10-20 14:14:53 +00:00
Aaron J. Seigo
0d3fdb718a add a tooltip
svn path=/trunk/KDE/kdelibs/; revision=1032393
2009-10-07 18:32:15 +00:00
Aaron J. Seigo
68d9558843 fix desktop toolbox dragging once and for all; i should have implemented dragging like this in the first place. also fixes misplacement of the toolbox on the bottom or right edge of the screen. there's some room for optimization here as cornerSize, fullHeight and fullWidth do a -lot- of manip on the background svg that really is only needed once per drag. in practice, it's not so bad and i'd like to keep the diff as small as possible (it's already huge) so i can backport it without feeling tooo guilty ;)
BUG:201672

svn path=/trunk/KDE/kdelibs/; revision=1003346
2009-07-28 03:19:33 +00:00
Marco Martin
4f20cfe5a6 try again to show the toolbox as a circle in the corners, but more
important fix the dragging quirkiness (by not changing the
boundingRect(), only paint it as if it had a different geometry)

svn path=/trunk/KDE/kdelibs/; revision=944004
2009-03-24 20:37:28 +00:00
Aaron J. Seigo
ff2402b48b some small tweaks to the desktop toolbox to make it work with the cashew-triggers-dashboard change
svn path=/trunk/KDE/kdelibs/; revision=917728
2009-01-28 13:38:57 +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
cdf562df11 simplify toolbox positioining and drawing
svn path=/trunk/KDE/kdelibs/; revision=882672
2008-11-11 08:12:20 +00:00
Aaron J. Seigo
beaa49aeb2 ++compile
svn path=/trunk/KDE/kdelibs/; revision=879800
2008-11-04 02:39:56 +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
Aaron J. Seigo
63bce9d1b4 move all the prive code into private/; makes it much clearer with the division lines are
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839792
2008-07-30 20:35:42 +00:00