Fredrik Höglund
4f0a9c1b2f
Don't start the fade out animation if the applet handle is still under the mouse.
...
svn path=/trunk/KDE/kdelibs/; revision=948317
2009-04-02 19:08:22 +00:00
Marco Martin
dbc4852624
if a qmenu is open the handle doesn't disappear, make it disappear as
...
soon as the menu closes, this way it doesn't steal anymore the focus to
the applet
BUG:180752
svn path=/trunk/KDE/kdelibs/; revision=948256
2009-04-02 16:43:41 +00:00
Sebastian Kügler
57162f188d
Don't crash here.
...
It does crash there for me when I click onto an applet's handle which has been added from another applet. I'm not sure why this happens. I've been running with this patch for a couple of days and didn't notice any sideeffects, besides plasma not crashing.
svn path=/trunk/KDE/kdelibs/; revision=931935
2009-02-26 00:11:41 +00:00
Ambroz Bizjak
205a1700b2
Fix handle possibly moving to the other side if the cursor exist for a short time.
...
Remove the handle if the cursor goes away before we even appear, previously the handle
was kept invisible until the cursor next entered.
svn path=/trunk/KDE/kdelibs/; revision=929233
2009-02-20 23:23:55 +00:00
Alexis Ménard
7f18ee0afa
Revert "Avoid too much updates, remove old codes since 4.5 manage the opacity."
...
Revert it since it cause some problems, i will investigate
svn path=/trunk/KDE/kdelibs/; revision=929192
2009-02-20 21:30:05 +00:00
Alexis Ménard
6afbdb4870
Avoid too much updates, remove old codes since 4.5 manage the opacity.
...
svn path=/trunk/KDE/kdelibs/; revision=929188
2009-02-20 21:22:34 +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
Ambroz Bizjak
476fd1a6a3
Added signals appletTransformedByUsed and appletTransformedItself to
...
Plasma::Applet. This makes it easier for layouts to know when applets
are transformed (moved/resized/rotated), and know whether the change
was by the user or the applet itself.
svn path=/trunk/KDE/kdelibs/; revision=923848
2009-02-09 15:09:28 +00:00
Aaron J. Seigo
32d2b4c4c9
small fixes for dragging; i don't think they warrant a backport, though
...
svn path=/trunk/KDE/kdelibs/; revision=908503
2009-01-09 20:45:28 +00:00
Aaron J. Seigo
a2ea13a973
bring back ctrl-overrides-aspect-ratio-mode
...
svn path=/trunk/KDE/kdelibs/; revision=905774
2009-01-05 01:08:40 +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
97869ca7c7
z value related cleanups, including one fixme
...
svn path=/trunk/KDE/kdelibs/; revision=897861
2008-12-17 00:51:30 +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
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
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
2eb6b3ed9c
hide the view on rmb click
...
BUG: 166902
svn path=/trunk/KDE/kdelibs/; revision=886216
2008-11-18 20:39:05 +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
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
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
81d09742bb
fix spelling
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870322
2008-10-12 11:12:24 +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
Aaron J. Seigo
2f87c469f7
the contents rect check is a cheap cop out mostly, but it works a lot. when it doesn't, also make sure we aren't dealing with an applets whose shape is the bounding rect
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866793
2008-10-01 22:26:43 +00:00
Marco Martin
7e975d764c
make it compile on arm
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864367
2008-09-24 15:59:29 +00:00
Laurent Montel
8e9aed75a6
Be sure to delete it
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864270
2008-09-24 11:44:39 +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
Aaron J. Seigo
b4b2a4a96a
qFuzzyCompare doesn't work well with 0.0, so compare against 1.0 instead; interesting to know
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863599
2008-09-22 16:37:36 +00:00
Marco Martin
b2e27747b9
move the gradient to the opposite side of the sliding animation, so acts
...
like a clip but with a smooth edge
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863334
2008-09-21 20:55:18 +00:00
Marco Martin
da12953de9
don't pre-render the configure button when it's not needed
...
no more configure instead of close icon on applets that don't have
config options
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863126
2008-09-21 08:02:54 +00:00
Aaron J. Seigo
de163b5e37
proper fix; now if we take the offset into consideration, they should even disappear perfectly behind translucent things =)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862853
2008-09-20 06:26:26 +00:00
Aaron J. Seigo
c302aa3ff4
* try not to call view() if possible
...
* code clarifications, simplicity++
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862852
2008-09-20 06:08:28 +00:00
Aaron J. Seigo
f9244362a4
we cache the view for a reason
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862851
2008-09-20 05:48:38 +00:00
Aaron J. Seigo
b9bd00fdae
smoooooooth, faaaaaaaaaast
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862849
2008-09-20 05:47:18 +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
Petri Damstén
e5fe5ed0c2
add FixedSize to AspectRatioMode and don't show resize button when FixedSize.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860649
2008-09-13 17:09:34 +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
Alex Merry
7ee88a1007
We shouldn't be doing this. Containment deletes us itself.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853474
2008-08-27 19:15:59 +00:00
Alex Merry
bfe6bd2906
Stack allocation is better than heap.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851427
2008-08-23 16:21:49 +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
Marco Martin
23839efb30
translate the painter to draw in a less blurry way, this was getting way
...
too annoying...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=848919
2008-08-18 17:57:37 +00:00
Ambroz Bizjak
b91b722dc2
Fade applet handle back in if the mouse reenters the applet while it's already fading out.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845999
2008-08-12 19:08:55 +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