Commit Graph

88 Commits

Author SHA1 Message Date
Aaron J. Seigo
d4818afd6e use KIconLoader::global
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833354
2008-07-16 17:54:46 +00:00
Loic Marteau
7cb619cf68 use SmallIcon() to load icon and be sure that the proper size setting is used
IconSize() seems to not work when doubled icon size is checked in user settings
use a workaround instead

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833344
2008-07-16 17:23:35 +00:00
Loic Marteau
568ad346d5 use the system size icons instead of an harcoded one
BUG:166646
CCMAIL:panel-devel@kde.org
if it should be backported to 4.1 branche can someone do this ? Thanks !

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833032
2008-07-16 03:53:07 +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
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
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
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
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
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
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
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
1de24334c8 copy/paste error, caught by the ChaniReview
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=825692
2008-06-29 00:27:04 +00:00
Aaron J. Seigo
07d6548471 simplify this code, remove a bunch of duplication, re-order the calls in what should be the safest ordering and, most importantly for the bug report, remove the scene event filter from the handle immediately
CCBUG:164849

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=824875
2008-06-26 19:23:07 +00:00
Marco Martin
ccd106ac36 let's try to fix this just another time.
don't remove the scene event filter on start fading otherwise the
previous fix will work a single time.
(really need to kill this file some day:)

BUG: 164628

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823868
2008-06-24 12:11:17 +00:00
Marco Martin
303f63d45f control the disappear of the handle with another timer
since moving the mouse too fast over the handle could lead to a lost
hover leave event start a singleshot, when it ticks check if the mouse
is still on the handle

BUG: 152797

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823054
2008-06-22 13:47:04 +00:00
Rob Scheepmaker
eb33472c79 Only switch to a toplevel window when mouse hovers over a panel.
BUG: 162608


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812885
2008-05-26 15:09:06 +00:00
Kevin Ottens
8edc0b399f Remove the "ghost view" from public API. It's completely internal and
used nowhere.

"ervin, fighting feature creep in APIs since 1980."

(BTW, at this rate I'm less and less convinced that it'd be wise to not
have a second round of API review post 4.1)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812172
2008-05-24 18:33:40 +00:00
Riccardo Iaconelli
a2fb80dd0e Safety++
Just to be sure, dear Bernhard, please double check that this does really fix the crash for you. =)

BUG: 162436

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812085
2008-05-24 15:24:30 +00:00
Rob Scheepmaker
8b20aab3fb Couple of improvements to applet drag&drop:
* Only move applet to toplevel window when overlapping other plasma views, ignoring other windows and such.
* Drag & drop now works reasonably well when using multiple desktop containments ('activities'), both when
  zoomed in as when zoomed out. Only a couple of issues remaining.
* Containment's addApplet function now cleans up the pointer to the applethandle in the preview containment,
  Avoiding some nasty crashes when moving applets between containments.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809841
2008-05-19 16:20:27 +00:00
Rob Scheepmaker
8fd94a9931 Make sure the topview is deleted in the applethandle's dtor, and make goTopLevel always have a return value.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809157
2008-05-18 12:54:20 +00:00
Rob Scheepmaker
3bce3a18b8 Applet drag & drop works again on a dashboard.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=808449
2008-05-16 16:40:12 +00:00
Rob Scheepmaker
9f6d033578 Couple of improvements to applet drag & drop:
* when dropping on another containment, the center of the applet is used to determine where 
to drop the applet, instead of the position of the mousepointer.
* movement now works correctly if multiple drag&drops are performed while not removing the 
mouse away from the applet handle.
* now works correctly on rotated applets.
* various code style fixes.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=808379
2008-05-16 13:28:33 +00:00
Rob Scheepmaker
8d75ba14c2 Improved drag&drop: the top level window now gets masked :)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806660
2008-05-11 23:56:32 +00:00
Rob Scheepmaker
143b126bca Improved drag&drop: when an applet gets dragged, it now only moves to a toplevel
window when necesarry (when the applet moves over another view or window).


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806641
2008-05-11 22:02:35 +00:00
Rob Scheepmaker
df22556806 Improved drag&drop: now the toplevel window appears correctly when zoomed out.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806544
2008-05-11 17:21:55 +00:00
Rob Scheepmaker
1172ef79e9 Start of improved applet drag & drop. What works now is:
* dragging an applet creates a top level window so the applet won't appear behind the panel 
when dragging, as is the case now.
* dragging leaves a semi transparent version of the applet at the original location, so it's
clear to the user where the applet came from and where it will go when the drag is cancelled.

There are still some open issues, I'm working on those...


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806484
2008-05-11 13:56:35 +00:00
Chani Armitage
61ae3df3fc *Applet::destroy() now handles everything needed for removing an applet prettily and safely.
*removed Containment::Private::destroyApplet in favour of just calling Applet::destroy() directly.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805666
2008-05-09 04:43:21 +00:00
Marco Martin
43066e49ce API review:
remainSquare(), aspectRatioMode() and their setters are merged in
aspectRatioMode() + setAspectRatioMode(Plasma::AspectRatio)
Plasma::AspectRatio has IgnoreAspectRatio, KeepAspectRatio and Square

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802561
2008-04-29 20:31:18 +00:00
Davide Bettio
ff16201431 API REVIEW: constraintsUpdated() -> constraintsEvent()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801656
2008-04-27 11:04:43 +00:00
Aaron J. Seigo
a3ad7dca00 launch activation sanity: added it back to Corona since it is PUI relevant (and not just desktop specific), move the signal to Applet and chain them so that Applet -> Containment -> Corona
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801102
2008-04-25 17:21:24 +00:00
Aaron J. Seigo
6e80fe4354 Phase becomes Animator
Animator becomes AnimationDriver

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800870
2008-04-25 03:11:59 +00:00
Davide Bettio
aa5f747305 API REVIEW: Phase -> AnimatorDriver
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800840
2008-04-24 23:21:17 +00:00
Davide Bettio
3bfaf57014 API REVIEW: Animation merges with ElementAnimation.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800825
2008-04-24 22:30:53 +00:00
Anne-Marie Mahfouf
36bc2c4e97 Plasma::Theme::self() -> Plasma::Theme::defaultTheme() as planned during the sprint
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=799919
2008-04-22 21:10:14 +00:00
Dmitry Suzdalev
b237019d4f Plasma API adjustements:
Theme::colors() => Theme::colorScheme()
Theme::image() => Theme::imagePath()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797634
2008-04-16 15:53:16 +00:00
Alexis Ménard
4467261c95 Merge woc branch to trunk, say good bye to old plasma, there is a lot of stuff to port
applets, 
please update to another revision to use the version that works

green flag from aaron


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796368
2008-04-13 13:23:39 +00:00
Aaron J. Seigo
b19eb3eaff handful more of krazy fixes and i'm done for the night
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776988
2008-02-19 09:12:34 +00:00
Aaron J. Seigo
8472ef7233 raise the applet on clicking of the handle
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774339
2008-02-13 01:53:27 +00:00
Aaron J. Seigo
5e39408689 * don't flicker the handle when we leave before its started showing
* take the z value of the applet to preserve stacking order

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774328
2008-02-13 00:49:07 +00:00
Chani Armitage
be64c5939d enable dragging from desktop to panel
note: there's no visual feedback before you release the mouse button, and there's no way to drag back to the desktop.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770333
2008-02-03 13:09:21 +00:00
Chani Armitage
a083df39d5 clean up after a mouse release even if we had passed over some other window
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765268
2008-01-23 18:07:42 +00:00
Chani Armitage
9580b6a463 improve code readability and fix a tiny misalignment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765189
2008-01-23 12:12:57 +00:00
Aaron J. Seigo
d53ccc3b00 * another, perhaps slightly paranoiac, removeSceneEventFilter
* don't paint the handle behind the applet, based on its shape(). this prevents it from interfering with translucency, etc of the applet itself

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=760188
2008-01-12 06:03:54 +00:00
Alex Merry
0cac630a79 Get rid of those jagged lines straight away.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759888
2008-01-11 12:11:16 +00:00
Aaron J. Seigo
e8eca7eb2a stop the timer when we start the anim to prevent timer/hide/shows anyways ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759692
2008-01-11 05:11:08 +00:00
Aaron J. Seigo
12c0a9ae7e resize now listens to Applet::aspectRatioMode(), reversable with Ctrl
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759499
2008-01-10 19:03:31 +00:00
Aaron J. Seigo
8c7a064bf8 remove the event filter on both re-show (just in case) and on dtor (prevents a crash)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759161
2008-01-10 07:28:33 +00:00
Aaron J. Seigo
67bbd72c67 allow actions to continue even when moving over another window via some even filtering trickery
BUG:155353

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759112
2008-01-10 01:21:45 +00:00