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
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