Commit Graph

73 Commits

Author SHA1 Message Date
Aaron J. Seigo
59b5ac3080 allow PackageStructures to provide their own online browsers
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871119
2008-10-13 22:40:00 +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
Rob Scheepmaker
51e03dc5e3 Add return to source icon the the plasma theme, and use this in extender items.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870089
2008-10-11 17:56:07 +00:00
Rob Scheepmaker
3824adb381 Allow theming the background of ExtenderItems, and react to theme changes. Capabilities still
have to be improved to make it look like the lovely pinheiro mockup.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868933
2008-10-07 16:15:33 +00:00
Marco Martin
0dc100928d style the tabbar scroll buttons with plasma colors
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868202
2008-10-05 17:53:37 +00:00
Fredrik Höglund
5da0fde1b3 Fix the crash on exit bug in PopupApplet.
The Plasma::Dialog is initially created without a parent, but can later be
reparented to the Plasma::View. The problem with this is that when plasma
quits, the view and its children are deleted before the scene and its children.
So when the PopupApplet destructor is invoked, it tries to delete what is now
a dangling pointer.

Solve this problem by wrapping the dialog pointer in a QPointer.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867830
2008-10-04 15:36:09 +00:00
Aaron J. Seigo
22919a4b27 * remove an unused member (d->layout)
* try harder to create a layout when we might need one
* remove the "setting a default icon" stuff in the ctor; it was misguided and really just covering up for a bug in popupConstraintsEvent
* fix said bug in popupConstraintsEvent (don't check for icon before laying things out in non-vert/horiz formfactors)
* don't put an event filter on the graphics item. i have no idea what the idea behind that was (hooray for no comments! =), perhaps Richard S. can enlighten us as it was one of his commits ..

CCMAIL:r.scheepmaker@student.utwente.nl

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867506
2008-10-03 17:20:01 +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
5f51803436 e PaintUtils::transition
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866417
2008-09-30 19:54:04 +00:00
Aaron J. Seigo
e1a0d5bb9c * save the size/rotation shortly after it's made .. should help preserve those changes in cases of crashes mor consistently
* delete the script before deleting the items it might rely on (e.g. the package!)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864835
2008-09-25 16:26:04 +00:00
Aaron J. Seigo
b28cd641ce more careful
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864514
2008-09-24 21:55:37 +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
56a9ad52ce make it harder for people to fall into the temptation of nesting containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863619
2008-09-22 17:50:23 +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
Aaron J. Seigo
8d1e6cdf85 call a private constraints event on the PopupApplet so that subclasses don't have to think about it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862502
2008-09-19 03:26:24 +00:00
Aaron J. Seigo
832782fa73 * proper invokeMethod call, now items actually get notified when the tip is hidden
* allow throttling of the show call to prevent multiple method invokations on create->show

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862467
2008-09-18 21:53:52 +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
Petri Damstén
e58d973b10 mainconfiggui -> mainconfigui
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860297
2008-09-12 15:14:05 +00:00
Rob Scheepmaker
cb4d610219 Move ExtenderApplet to libplasma. This doesn't work just yet, but aseigo will take a look at
it, so it will soon. ;)


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860007
2008-09-11 19:26:05 +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
33f7e1e3d6 Actually relicense the files this time. Last time, I managed to change the text from GPL to... GPL.
Again, plasma-devel@kde.org mail archives have the permissions.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858780
2008-09-08 17:32:25 +00:00
Alex Merry
90f5feb1a6 Relicense files. See plasma-devel@kde.org mailing list archives for permissions.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858364
2008-09-07 21:33:02 +00:00
Aaron J. Seigo
99e664d0c5 make is possible to ask for the containment's own context menu
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857605
2008-09-05 20:06:30 +00:00
Aaron J. Seigo
d89ad4cba0 context API adjustments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857207
2008-09-05 00:22:42 +00:00
Aaron J. Seigo
be440d788a * always set up a job to run when an operation call is made, even if it fails
* call emitResult() from setResult

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856872
2008-09-03 23:55:06 +00:00
Aaron J. Seigo
6774525044 preserve the target information with NullService
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856771
2008-09-03 18:51:41 +00:00
Marco Martin
e037260031 this patch removes the centering and makes the tabbar to take up all the
width when it's not like a tabwidget and there is some
sizepolicy/preferred sizes setting fixes that makes it behave better in
a panel (especially vertical ones)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854953
2008-08-30 18:14:45 +00:00
Alexis Ménard
384f31bf82 add an activate method to specify if the tooltip has to be displayed or not.
Use-case : Display it on demand, when hovering. ie Kickoff

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854098
2008-08-28 20:23:39 +00:00
Alexis Ménard
a32ca528f0 sometimes the tooltip is shown before it take his correct position
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854008
2008-08-28 17:02:42 +00:00
Marco Martin
0df88727ef allows the Desktop toolbox to be positioned in the four corners or four
edges, rendering the right bits of the arc.
this now is used by the containment to render a non cutted toolbox when
there is a panel on top or on right
and to put the toolbox on the left with RTL layouts

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853991
2008-08-28 15:59:03 +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
Aaron J. Seigo
16ee834701 set signal relays to be queued upon creation, so that if they are not immediately updated (e.g. the first relay) but then data becomes immediately available afterwards, an update still occurs. this addresses the connecting-using-a-relay-to-an-async-process issue; it's a bit of an odd case, but we've found at least one use case for it and there's no reason not to make it work in the code.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853470
2008-08-27 19:08:46 +00:00
Aaron J. Seigo
3d6b183011 try to keep updateSourcEvents to a minimum by only triggering an immediate update from the SignalRelay object if it is not the first visualization connected to the source
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852899
2008-08-26 20:37:53 +00:00
Alex Merry
9293cbaba6 memory leak--
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851461
2008-08-23 17:42:36 +00:00
Alex Merry
1aec75e5e6 SVN_SILENT:
whitespace fixes


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851432
2008-08-23 16:27:52 +00:00
Alex Merry
15b36b0bfe SVN_SILENT:
Source files shouldn't be executable


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851428
2008-08-23 16:23:09 +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
Alex Merry
1edb8aab86 Clean up tooltips a little, and fix some memory leaks.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851425
2008-08-23 16:17:04 +00:00
Marco Martin
150bf97172 mouseover and mousepressed effects by choosing different svg elements
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850598
2008-08-21 20:15:32 +00:00