Commit Graph

190 Commits

Author SHA1 Message Date
Aaron J. Seigo
d2baf76321 toolbox drag improvement by Lukas Dolezal
BUG:178707

svn path=/trunk/KDE/kdelibs/; revision=901337
2008-12-25 08:29:03 +00:00
Ambroz Bizjak
69eccb04ce Make sure aspect ratio is preserved when size limits are hit, minor
cleanup

svn path=/trunk/KDE/kdelibs/; revision=901264
2008-12-24 21:23:27 +00:00
Ambroz Bizjak
32e0e2ed35 Rewrite resize and rotate logic.
Fixes inconsistent resize behaviour, e.g. if mouse was moved more
than the applet could be shrunk, and then moved back a small amount,
the applet would immediately start expanding, instead of starting to
expand where it stopped shrinking.

svn path=/trunk/KDE/kdelibs/; revision=901173
2008-12-24 15:13:09 +00:00
Aaron J. Seigo
4d38cc53b6 make tooltips orientation aware; fixes problems with panel autohiding as well as avoids some unecessary painting in vertical panels
BUG:178552

svn path=/trunk/KDE/kdelibs/; revision=900840
2008-12-23 19:38:52 +00:00
Marco Martin
1b7bf8cdb9 use plasma font in some more widgets
svn path=/trunk/KDE/kdelibs/; revision=899830
2008-12-21 17:17:35 +00:00
Urs Wolfer
f320d2e700 * typos--
* optimize QString operations
* fix include guard

svn path=/trunk/KDE/kdelibs/; revision=899600
2008-12-21 11:56:01 +00:00
Marco Martin
03733b6b9d check harder if the tooltip has the proper size
svn path=/trunk/KDE/kdelibs/; revision=898694
2008-12-18 19:11:54 +00:00
Aaron J. Seigo
4b034eacae don't animate the moves of tool items when it's a toolbar; it looks a bit odd and when zoomed out it's excruciately slow thanks to the software based scaling
svn path=/trunk/KDE/kdelibs/; revision=898648
2008-12-18 15:48:01 +00:00
Marco Martin
5e421239c9 always keep toold hidden when their enabled/disabled status changes
unhide all the enabled ones when the toolbox is opened

BUG:178014

svn path=/trunk/KDE/kdelibs/; revision=898560
2008-12-18 12:32:06 +00:00
Aaron J. Seigo
97869ca7c7 z value related cleanups, including one fixme
svn path=/trunk/KDE/kdelibs/; revision=897861
2008-12-17 00:51:30 +00:00
Aaron J. Seigo
9c25aa59a5 share one style amongst all the widgets
svn path=/trunk/KDE/kdelibs/; revision=897366
2008-12-15 21:17:43 +00:00
Aaron J. Seigo
a029c8396f put the common code (repeated in two places) into a shared method in the private class and document it a bit; also, move the change triggering on startup compmlete to the end of the constraints event
svn path=/trunk/KDE/kdelibs/; revision=897304
2008-12-15 17:41:37 +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
e9411c577e add tooltips to items, makes it easier to figure out what they do when zoomed out
BUG:177835

svn path=/trunk/KDE/kdelibs/; revision=897284
2008-12-15 16:42:29 +00:00
Beat Wolf
22bd89da08 fixed jumpy resizing when resize starts
svn path=/trunk/KDE/kdelibs/; revision=896906
2008-12-14 17:57:50 +00:00
Beat Wolf
073c56b8de removed some dead code after recent code change
svn path=/trunk/KDE/kdelibs/; revision=896893
2008-12-14 17:19:02 +00:00
Marco Martin
eee1671b3c re-set the window preview when the size changes, since its behaviour
depends from the tooltip size
BUG:177378

svn path=/trunk/KDE/kdelibs/; revision=896526
2008-12-13 18:17:36 +00:00
Beat Wolf
26c61a6205 resizing of applets is less jumpy now, there is still a problem at big applet sizes though
svn path=/trunk/KDE/kdelibs/; revision=896200
2008-12-12 20:20:07 +00:00
Aaron J. Seigo
47866f417b List->Set, and try and make the even filter a little more efficient
svn path=/trunk/KDE/kdelibs/; revision=895578
2008-12-11 03:10:36 +00:00
Rob Scheepmaker
c51d9d7d9b Yeah, finally! Fixed a crash that occurs when moving an extenderitem back to its source from an extender that was also the last one to have a spacer inserted because the same item was hovering over it. Phew, that was a mouthfull... With this fix we monitor if previousTargetExtender get's destoryed so we don't accidently try to remove it's spacer.
BUG: 171498


svn path=/trunk/KDE/kdelibs/; revision=895405
2008-12-10 17:29:40 +00:00
Rob Scheepmaker
72eaf8c5f7 No longer use a QGraphicsGridLayout to manage offscreen widgets in corona. Instead position them manually and give each one a spot where they can grow up to QWIDGETSIZEMAX. This has the advantage of not requiring hacks to work around QGL problems, and it avoids having to move all views when one item resizes. It feels snappier and the code looks cleaner.
svn path=/trunk/KDE/kdelibs/; revision=895118
2008-12-10 00:57:42 +00:00
Aaron J. Seigo
a6140d5a27 use isEmpty; a couple minor, minor changes that crept in while debugging things elsewhere
svn path=/trunk/KDE/kdelibs/; revision=895022
2008-12-09 20:37:41 +00:00
Rob Scheepmaker
b321b2f033 Performance optimization: only change the icon if it's actually a different icon. Mainly affects uiserver widgets atm.
Oh, and warning--.


svn path=/trunk/KDE/kdelibs/; revision=894878
2008-12-09 14:04:33 +00:00
Aaron J. Seigo
e42452e847 * update the direction on location changes
* update the dialog, if it exists, when checking the border of the extender
BUG:177113

svn path=/trunk/KDE/kdelibs/; revision=894469
2008-12-08 18:03:23 +00:00
Marco Martin
ba43ebdd06 corrected sizing problem
animation jumps a bit less randomly
BUG: 176672

svn path=/trunk/KDE/kdelibs/; revision=893099
2008-12-05 22:48:58 +00:00
Marco Martin
b47c32869f use elements dimensions to resize the scrollbar
svn path=/trunk/KDE/kdelibs/; revision=893050
2008-12-05 21:04:33 +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
Marco Martin
e22429867b int with a frameSvg when it's not in a corner
svn path=/trunk/KDE/kdelibs/; revision=892649
2008-12-04 20:36:35 +00:00
Marco Martin
c64d38b551 waay more reliable toolbox->toolbar switching, killed the weird
d->needsToolbarBehaviour()

svn path=/trunk/KDE/kdelibs/; revision=892273
2008-12-03 22:44:16 +00:00
Beat Wolf
8eeb660cdd fixing typo. Resolves toolbox that is drawn outside screen
svn path=/trunk/KDE/kdelibs/; revision=891521
2008-12-02 12:44:39 +00:00
Aaron J. Seigo
f8acdb1861 apparently the documentation isn't right and you shouldn't delete the entries
to the report of the bug: please check that this fixes it for you whenever you can get an updated build (e.g. next build, or sooner if using svn); if not, please comment on the report and reopen it. thanks.

BUG:176661

svn path=/trunk/KDE/kdelibs/; revision=891424
2008-12-02 00:08:09 +00:00
Rob Scheepmaker
ab56a3a388 Couple of fixes:
* Close empty extender when clicking in it.
BUG:176545
* Saner size policy for Plasma::Meter. (the height should never be able to be smaller then svg's height because labels could otherwise overlap, actually, the whole current approach doesn't consider font size, I think we should think of a better approach for 4.3)
* Use the same spacer as used in the panel for extenders. I think we would want some svg themable shared spacer widget for 4.3, but at least this adds some consistency.


svn path=/trunk/KDE/kdelibs/; revision=891328
2008-12-01 18:30:42 +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
Jesse Lee Zamora
629a3b3789 Polish the rough edges out of the gradient painting code.
svn path=/trunk/KDE/kdelibs/; revision=891051
2008-12-01 01:54:07 +00:00
Aaron J. Seigo
7fca1acbb6 if the applet is destroyed, then returnToSource() the extenders. perhaps we should be watching for extenders being deleted at random (QObject::destroyed signal?). also, seems that returnToSource is broken in general atm, but only for items in the panel, though that seems to be a separate issue. i wonder if that's a PopupApplet bug? will need to investigate.
CCMAIL:r.scheepmaker@student.utwente.nl
BUG:176411

svn path=/trunk/KDE/kdelibs/; revision=891037
2008-12-01 01:08:43 +00:00
Rob Scheepmaker
e1bb614999 Fixed crash when clicking an extenders dragger without actually dragging, and fixed the 'hand problem'.
svn path=/trunk/KDE/kdelibs/; revision=890806
2008-11-30 11:45:23 +00:00
Marco Martin
f4cf4b189b avoid an endless repaint loop
condition is still very convoluted but at least a lot faster

svn path=/trunk/KDE/kdelibs/; revision=890462
2008-11-29 13:06:12 +00:00
Aaron J. Seigo
4a7699ce82 since it leads to confusion for users, breaks occassionally in svn due to its complexity, incurs overhead on every applet paint but especially when dragging, doesn't look nice at all without composite ... just kill the top level view thing and when you drag something it just "pops" into the right containment.
BUG:176298

svn path=/trunk/KDE/kdelibs/; revision=890331
2008-11-28 22:39:29 +00:00
Aaron J. Seigo
766dc8ab60 patch by Andrew Lake to free-resize applets from the corner rather than the center; need to do some work on applet handle right now and i don't want this patch going sideways and he's not online right now, so ...
svn path=/trunk/KDE/kdelibs/; revision=890316
2008-11-28 22:01:39 +00:00
Marco Martin
827876bab0 when the view is zoomed out show all desktop toolboxes as toolbars,
makes the thing way more usable
prettier background
and disable the text on maximum zoom out level

svn path=/trunk/KDE/kdelibs/; revision=890259
2008-11-28 17:32:21 +00:00
Rob Scheepmaker
2d4971eb46 Extender Polishing time! The following problems have been adressed:
* Far more correct spacer implementation. This avoids the spacer jumping around while dragging an item. Also adjustSizeHints is now only called once/spacer move.
* Avoid spacer related memleak.
* Only load extenderItems that are actually detached. This way, attached items won't linger around in case of a plasma crash.
* Use utilities-desktop-extra as icon for items with no saved icon (e.g. items where the icon is set using setIcon(QIcon) instead of setIcon(QString)). Sure beats the questionmark.
* Update mask when offscreen extender items are resized when being dragged to avoid screwed up masks (white borders).
* Start the drag only aften being moved a minimum of QApplication::startDragDistance().
* Correct transformation for calls to showDropZone.
* Use the mouse position for positioning items in extenders or panels, the topleft corner for positioning in a desktop containment. This feels the most natural.
* Move items back to the extender they came from when they're dropped into nowhere.
* Some small code style fixes.



svn path=/trunk/KDE/kdelibs/; revision=890249
2008-11-28 17:06:00 +00:00
Marco Martin
4d962352a9 respect drawBase()
svn path=/trunk/KDE/kdelibs/; revision=889814
2008-11-27 18:36:42 +00:00
Aaron J. Seigo
057d7693fe sshhhh
svn path=/trunk/KDE/kdelibs/; revision=889813
2008-11-27 18:33:11 +00:00
Aaron J. Seigo
4659724790 don't create an unused button
svn path=/trunk/KDE/kdelibs/; revision=889542
2008-11-27 06:03:53 +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
Marco Martin
75dcbe9413 initialize this value, that's why toolbox sometimes was going to left in
an unpredictable way
BUG:175796
CCMAIL:release-team@kde.org

svn path=/trunk/KDE/kdelibs/; revision=888589
2008-11-24 22:27:42 +00:00
Adriaan de Groot
5959236882 Match up the declaration of setCorner with its definition (missing const)
svn path=/trunk/KDE/kdelibs/; revision=888512
2008-11-24 17:39:03 +00:00
Rob Scheepmaker
4fe87fcfea Avoid screwing up the panel when dropping extenderitems in it: make extenderapplet a popupapplet! And use pinheiro's nice and amazingly weird icon as popupicon. I think I'm gonna call it 'the snowman'.
svn path=/trunk/KDE/kdelibs/; revision=887651
2008-11-22 14:32:43 +00:00
Aaron J. Seigo
82ab4794bd add file
svn path=/trunk/KDE/kdelibs/; revision=887091
2008-11-21 03:45:03 +00:00