Commit Graph

75 Commits

Author SHA1 Message Date
Igor Trindade Oliveira
d7e63f903c move applethandle to new animation api.
svn path=/trunk/KDE/kdelibs/; revision=1077217
2010-01-19 17:59:24 +00:00
Marco Martin
00ffbc6616 save and restore weren't necessary here
svn path=/trunk/KDE/kdelibs/; revision=1069824
2010-01-04 10:06:25 +00:00
Marco Martin
d550c9dac2 smooth rotations
svn path=/trunk/KDE/kdelibs/; revision=1069741
2010-01-04 09:27:29 +00:00
Marco Martin
a69bcc4827 try harder to enforce a minimum size of 16x16
svn path=/trunk/KDE/kdelibs/; revision=1066278
2009-12-26 16:19:38 +00:00
Marco Martin
2afa60e695 don't mix scene coordinates and parent ones
so don't move widgets in totally absurd places

svn path=/trunk/KDE/kdelibs/; revision=1063024
2009-12-16 18:51:08 +00:00
Ambroz Bizjak
07fcab757c Simplify some math
svn path=/trunk/KDE/kdelibs/; revision=1059914
2009-12-07 16:54:25 +00:00
Ambroz Bizjak
4da40dc616 Fix the rest of rotation and resizing.
svn path=/trunk/KDE/kdelibs/; revision=1059590
2009-12-07 00:56:22 +00:00
Ambroz Bizjak
4325dd1e40 Calculate initial m_angle, simplify _k_rotatePoint
svn path=/trunk/KDE/kdelibs/; revision=1059568
2009-12-06 23:17:33 +00:00
Bruno Bigras
65455b418b Revert "Fix a bug when a plasmoid could be resized to a smaller value than it's minimumSize"
Fix _k_rotatePoint so it returns 0,0 when rotating a 0,0 point

svn path=/trunk/KDE/kdelibs/; revision=1057684
2009-12-03 06:13:38 +00:00
Bruno Bigras
7e35361bf4 Fix a bug when a plasmoid could be resized to a smaller value than it's minimumSize
svn path=/trunk/KDE/kdelibs/; revision=1057530
2009-12-02 18:51:06 +00:00
Alexis Ménard
4493bbd4f7 ARM compile++
qreal is float on ARM.

svn path=/trunk/KDE/kdelibs/; revision=1057466
2009-12-02 14:17:34 +00:00
Marco Martin
a045136fe0 when resizing/rotating with multitouch, spply a transform, resize to the proper size only at touch end event
svn path=/trunk/KDE/kdelibs/; revision=1053705
2009-11-24 16:26:28 +00:00
Marco Martin
f97924aee3 move the geometry to a correct center
svn path=/trunk/KDE/kdelibs/; revision=1053216
2009-11-23 16:48:18 +00:00
Marco Martin
644d5e363e tabs--
svn path=/trunk/KDE/kdelibs/; revision=1050130
2009-11-16 18:20:18 +00:00
Marco Martin
4988229770 support for touchEvents
svn path=/trunk/KDE/kdelibs/; revision=1049191
2009-11-14 17:33:00 +00:00
Aaron J. Seigo
6de1341e1b fix resize-after-move, which was seriously annoying me for a while now; thankfully it was an easy fix :)
svn path=/trunk/KDE/kdelibs/; revision=1045892
2009-11-06 22:34:22 +00:00
Aaron J. Seigo
7acbfbc47f be sure to always have a containment!
BUG:206379

svn path=/trunk/KDE/kdelibs/; revision=1045316
2009-11-05 19:17:00 +00:00
Marco Martin
2f7ba10bfc return the proper shape
svn path=/trunk/KDE/kdelibs/; revision=1039146
2009-10-22 20:38:32 +00:00
Marco Martin
a45a20c32c return the proper boundingRect()
svn path=/trunk/KDE/kdelibs/; revision=1039144
2009-10-22 20:32:36 +00:00
Marco Martin
82177676af better gradient when the handle is at left
svn path=/trunk/KDE/kdelibs/; revision=1039135
2009-10-22 20:01:19 +00:00
Aaron J. Seigo
c5833d1939 handles are now children of the applet, so we don't need to destroy them ourselves; we do need to clear the applet pointer in the handle before it is destroyed, however.
BUG:209058

svn path=/trunk/KDE/kdelibs/; revision=1035446
2009-10-15 03:25:07 +00:00
Aaron J. Seigo
5a36b63df8 use QGraphicsObject, another nicety in Qt 4.6
svn path=/trunk/KDE/kdelibs/; revision=1035320
2009-10-14 18:59:44 +00:00
Marco Martin
08d49e6fd0 introducing the concept of associated application:
an an application and/or an url list can be associated with an aplet
and a context menu entry and an applet handle button will be added to
launch that application.
the applet will be considered a preview of something, where the
application its full view, for example the picture frame can open
gwenview

svn path=/trunk/KDE/kdelibs/; revision=1024487
2009-09-16 17:08:45 +00:00
Marco Martin
ae59b63602 resize of rotated applets -almost- correct.. almost..
svn path=/trunk/KDE/kdelibs/; revision=1021737
2009-09-09 22:24:49 +00:00
Marco Martin
f56a174cd3 map the movement to the rotation transform
svn path=/trunk/KDE/kdelibs/; revision=1021647
2009-09-09 18:08:00 +00:00
Aaron J. Seigo
85defb5470 start of making the applet handle a child of the applet, stacked behind. a lot less code, preserves the geometry caches in the scene. also removes a ton of update() calls that aren't necessary these days. result -> a lot snappier/smoother. still some positioning bugs due to the change in parenting in the code, but definitely the direction we need to be going in.
svn path=/trunk/KDE/kdelibs/; revision=1021595
2009-09-09 16:14:20 +00:00
Marco Martin
70f4e5aee6 oops, that 1|| was bogus of course
svn path=/trunk/KDE/kdelibs/; revision=1014445
2009-08-22 20:52:03 +00:00
Marco Martin
195e3a709d also check the size hint as minimum size
boundingrect-boundingrect=0, what we want is contentsrect

svn path=/trunk/KDE/kdelibs/; revision=1014443
2009-08-22 20:49:12 +00:00
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