Commit Graph

16 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Allen Winter
3674a94a99 more coding style fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870169
2008-10-11 23:28:20 +00:00
Marco Martin
2e8dba5df2 smooth animation until the end ensuring the repaint is scheduled before
the delete by emitting the signal in the paint event and with a
singleshot timer

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863664
2008-09-22 19:28:11 +00:00
Marco Martin
1cb382a09a new look and animation for applet handles, based on an old Nuno mockup,
that uses the standard applet background (will have new graphics).

also, don't use painter->setOpacity anymore, so should be a bit faster

the look is slightly different in 3 cases:
-the applet is smaller than the handle, the panelsvg gets drawn
completely and looks like the old thing
-shape not rectangular: the panelsvg is wider, so it's visible also for
instance behind the clock circle
-normal: only a bit of the panelsvg exits from the applet and is
visible, the hidden part has a few pixels fade out gradient to look less wrong with
transparent backgrounds like folderview or themes with all backgrounds
more transparent

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862411
2008-09-18 19:40:46 +00:00
Marco Martin
0e4ad264c3 a new widget that contains little monocrome svg icons to be used around
plasma and make the applet handle use that

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=861319
2008-09-15 20:08:21 +00:00
Aaron J. Seigo
81ff908a3e * for ghost painting, used when dragging, we only need to know true or false .. we don't need to check the view
* cache the current view as this gets called on every mouse move event when dragging something by the handle.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858901
2008-09-09 00:23:02 +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
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