Commit Graph

2373 Commits

Author SHA1 Message Date
Alex Merry
cffda2ec3f Clear handles when we go immutable. Also remove an out-of-date TODO.
BUG: 166004

CCMAIL: panel-devel@kde.org
Should be backported.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=832059
2008-07-14 00:22:11 +00:00
Alex Merry
d286c118e0 Apidox for the plugin export macro
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=832056
2008-07-14 00:06:33 +00:00
Alex Merry
5668672342 Documentation fix.
SVN_SILENT


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=832033
2008-07-13 22:00:03 +00:00
William Viana Soares
b828a0efd4 Repaint the widget on request. Among other things now the scroll works well.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=832013
2008-07-13 20:50:53 +00:00
Marco Martin
a1ff7b38f4 redraw the parent item when the animation updates
to be backported

BUG: 166347
CCMAIL:panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831975
2008-07-13 18:38:56 +00:00
Marco Martin
6e22253b97 fade out the applet handle on mouse release when it has left its
containment
CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831848
2008-07-13 12:52:09 +00:00
Sebastian Sauer
4b0afa6fa7 fix crash cause of a rather interesting design-decision in KConfig;
configgroup = KDesktopFile().desktopGroup()
means that configgroup has now a dangling pointer to it's master :-/

CC_MAIL:panel-devel@kde.org


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831832
2008-07-13 12:06:53 +00:00
Laurent Montel
4d8374080d Fix potential mem leak
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831364
2008-07-12 14:32:54 +00:00
Aaron J. Seigo
008dacd0db yeah, translating is a good idea
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831162
2008-07-12 00:10:02 +00:00
Aaron J. Seigo
3fceec2f20 --4.2 TODO
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831075
2008-07-11 19:38:47 +00:00
Loic Marteau
17e88ccf66 minor code claryfication
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=830656
2008-07-10 22:11:18 +00:00
Aaron J. Seigo
f81134ff97 correct save point for applets; now they don't get saved with a 0,0,0,0,0,1 matrix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=830604
2008-07-10 20:20:37 +00:00
Aaron J. Seigo
2c7369030d header too, that helps
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=830601
2008-07-10 20:16:10 +00:00
Aaron J. Seigo
0a5a98a968 use a gradient on larger handles, from the colour to transparent and back again.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=830580
2008-07-10 19:48:55 +00:00
Aaron J. Seigo
960705d5bc fix zOrder persistence regression
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=830266
2008-07-10 01:39:18 +00:00
Aaron J. Seigo
6d5e0b18f5 fix various handle regressions, including:
* move applet or resize it then move with handle and it pops to a new location
* handles unhover too soon
* handles don't show on the correct side always
* handles are not visually associated well enough with the target applet
* icons are hard to see
BUG:166149

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=830264
2008-07-10 01:35:51 +00:00
Script Kiddy
c89d4239d7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=829587
2008-07-08 17:29:47 +00:00
Loic Marteau
4b36ec4560 - some code rewriting in calculate size to become more readable
- use m_applet->contentsRect().top() for positionning the top of applet handle
- increase a little the leave interval timer to let the user reach the applet handle a little more easily


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=829263
2008-07-07 22:59:03 +00:00
Aaron J. Seigo
0e5f15dc50 * add Corona::addContainmentDelayed for more control on the Corona subclass side during default layout loading
* accept bad config objectsin Applet::save and Containment::save
* move some initialization code around to be more robust with external use (will make more sense in next commit to workspace/plasma/plasma)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828940
2008-07-07 02:16:08 +00:00
Andrew Lake
31c7b8d064 Use transform-scale instead of transform-move icon for resize. Not a fan of the current
oxygen icon but that's an artwork issue.

Approved by Marco Martin.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828921
2008-07-06 23:23:52 +00:00
Aaron J. Seigo
9ccc9336a5 * prevent removing active containments (brute force mechanism: just ignore the request totally)
* select the correct containment for removal when zoomed out (will have isses on multi-screen; see FIXME)
* move containment destruction logic out of Corona; it really doesn't belong there
* remove the hack to not set focus on a containment when clicked as that doesn't seem to reliably trigger it for me here and it doesn't address the issue of a new containment still messing things up, so we really ought to have a generic solution instead of a slightly ugly hack

BUG:id=165670

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828906
2008-07-06 22:43:53 +00:00
Marco Martin
02203edad2 check if the applet pointer has been resetted to 0 by switchContainment
BUG: 165850

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828716
2008-07-06 13:01:02 +00:00
Aaron J. Seigo
6425a5a4d9 no wonder people on suse were missing the toolbox; it's pretty much invisible with aya. still need something more visible, i think, but this is better (as in: moderately visible) and we can visit it again in 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828645
2008-07-06 10:22:40 +00:00
Aaron J. Seigo
762be363ec rework the toolbox creation, containment type setting and isContainment setting code to make it resilient against when and where those properties are set
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828636
2008-07-06 10:03:10 +00:00
Aaron J. Seigo
6230340508 allow for customized panels; we only touch them for geometry management and nothing else
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828634
2008-07-06 09:49:23 +00:00
Aaron J. Seigo
e675d65da3 --compiler_warning;
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828631
2008-07-06 09:45:31 +00:00
Script Kiddy
4ac3957747 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828584
2008-07-06 05:35:58 +00:00
Loic Marteau
2689994448 Replace the frame in the applet handle with something more tiny.
Thanks to Marco Martin for his help on the shape zone stuff. 

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828484
2008-07-06 00:18:43 +00:00
Aaron J. Seigo
87cdc14398 fix test
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828245
2008-07-05 05:22:46 +00:00
Aaron J. Seigo
6a912784f2 separate concept of Category from Type and get it right in the file written out!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828243
2008-07-05 05:21:07 +00:00
Aaron J. Seigo
1e35b37d5c SVN_SILENT: ws tightening
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828242
2008-07-05 05:20:40 +00:00
Aaron J. Seigo
0d9ab9ab38 it's *always* Type=Service
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828239
2008-07-05 05:13:00 +00:00
Aaron J. Seigo
a404763830 don't check the view for regular applets; the problem only affect containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828205
2008-07-04 21:48:25 +00:00
Marco Martin
f203f0ffff don't setFocus on applets or containments when the view is zoomed out,
that would drive to an automatic scrolling of the view when clicking on
it, hiding other containments

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828193
2008-07-04 21:13:48 +00:00
Aaron J. Seigo
b6393ba5a2 a bit of code detangling.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828176
2008-07-04 20:39:45 +00:00
Aaron J. Seigo
be453f062b type and version setting so qstyleoption_cast works
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828146
2008-07-04 19:24:45 +00:00
Aaron J. Seigo
b9419d74bb don't fade out when we're toggled until we closed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828087
2008-07-04 16:47:01 +00:00
Aaron J. Seigo
6f06fd2590 take care of our own connecting, thank you very much
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828086
2008-07-04 16:46:30 +00:00
Aaron J. Seigo
9e8629645a always connect the toolbox toggle signal to the containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828085
2008-07-04 16:45:34 +00:00
Aaron J. Seigo
55db8b640a update the hearder guard
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827964
2008-07-04 09:32:46 +00:00
Andrew Lake
5fd5e739d2 painter translation in drawTextLayout causes text to be draw slightly lower than shadow.
Adjusted shadow offset to compensate.  Result is closer pixel-wise to folderview text.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827897
2008-07-04 05:06:57 +00:00
Andrew Lake
c6897f66ae Correct text and shadow composition to accomodate negative offsets.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827890
2008-07-04 03:55:14 +00:00
Aaron J. Seigo
922c85c705 it makes no sense to have the blur stuff in one header/namespace and the roundedRectangle stuff in another: it's all painting related. putting them together, however, makes "ImageEffects" really not accurate. ImageEffects will also clash, concept-wise, with a real effects lib.
therefore, introducing Plasma::PaintUtils.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827859
2008-07-03 23:50:13 +00:00
Aaron J. Seigo
1c0edaceb7 you can't include CamelCase includes from files in kdebase: the CamelCase includes aren't available until kdebase is installed.
CCMAIL:notmart@gmail.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827810
2008-07-03 20:43:00 +00:00
Marco Martin
c6d8e7e8c1 blur radius and displacement same as folderview, and when the shadow is
light it becomes an halo (displacement 0)
this could even be decided by the theme?

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827783
2008-07-03 19:22:49 +00:00
Marco Martin
4c7e3d1d0b drop shadow behind the icon text,
so now the icon background is gone and appears only on mouse over

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827715
2008-07-03 17:04:56 +00:00
Sebastian Sauer
6d5bd4b176 We extend QStyleOptionGraphicsItem and need to increment the version else we run into a crash on qstyleoption_cast<const Containment::StyleOption *>(option)->view if we got a QStyleOptionGraphicsItem rather then a Containment::StyleOption.
And now "plasmoidviewer panel" does work too :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827678
2008-07-03 15:58:37 +00:00
Aaron J. Seigo
92ee66d578 be extra sure that the applet has an entry in the config on being added so when we config sync we're guaranteed they are in there
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827479
2008-07-03 05:46:25 +00:00
Aaron J. Seigo
355df19374 SVN_SILENT: ocd much?
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827478
2008-07-03 05:45:32 +00:00
Aaron J. Seigo
8e9e1e1478 allow the main script to be overriden
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827477
2008-07-03 05:45:07 +00:00