Commit Graph

1179 Commits

Author SHA1 Message Date
Jason Stubbs
03ae8a076b Make the placement algorithm slightly more intelligent
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751696
2007-12-22 16:42:09 +00:00
Jason Stubbs
d4e9929555 Fix the centring calculation
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751610
2007-12-22 12:49:44 +00:00
Jason Stubbs
fa69a979c9 Try to place unpositioned applets in areas that aren't occupied using a very
simple placement policy.

BUG: 154122

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751607
2007-12-22 12:32:55 +00:00
Script Kiddy
25f506b157 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751546
2007-12-22 08:07:52 +00:00
Jason Stubbs
55437fafb6 Notify applets when their LocationConstraint has changed. Also, don't bother
emitting geometryChanged() and doing an update() if the geometry hasn't
actually changed.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751543
2007-12-22 07:35:42 +00:00
Jason Stubbs
c0bba16e87 Fix crash when adding widgets to the panel
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751539
2007-12-22 06:43:05 +00:00
Shawn Starr
8d9aa19d83 Allow rendering of a specific svg element id. You can still render them all if you don't specify a element name but now you can also use a specific element. Doesn't handle resizing.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751533
2007-12-22 05:31:57 +00:00
Jason Stubbs
4d641580fa Temporarily hide the tooltip when moving it to fix painting corruption
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751523
2007-12-22 03:44:25 +00:00
Marco Martin
792e8dfba8 icon actions works again (still not drawn correctly)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751445
2007-12-21 21:35:07 +00:00
Richard J. Moore
3537033b91 - Partial fix to prevent tooltips being displayed over the top of
popup menus. There's still a problem however as the 1 second timer
  can be started before the menu is triggered. The tooltip code needs
  to detect when this is occuring somehow and suppress the tip in such
  cases.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751298
2007-12-21 15:59:04 +00:00
Jason Stubbs
f0fb9b3022 The position shouldn't change when fading out just as it doesn't when fading in
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751238
2007-12-21 13:15:36 +00:00
Richard J. Moore
94170b9e65 Fix breakage
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751220
2007-12-21 12:34:40 +00:00
Riccardo Iaconelli
e4665a938a Implement Applet::shouldConserveResources(), a method to help plasmoid developers to know whether they should conserve resources.
Peer reviewed by Chani and Richmoore.

CCMAIL:aseigo@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751216
2007-12-21 12:27:29 +00:00
Script Kiddy
2442ef8da9 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751145
2007-12-21 07:55:50 +00:00
Dan Meltzer
357656f660 Add a generic tooltip widget to Plasma::Widget and implement it in the tasks applet.
Applets wishing to use this tooltip should Create a Plasma::ToolTipData struct 
(defined in widget.h) and pass it to Widget::setToolTip().  Showing and hiding
the tooltip is all handled automatically.

While the basic idea is found in this patch, the look still definatly needs some
work.  Still a definate work in progress.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751113
2007-12-21 05:33:17 +00:00
Aaron J. Seigo
420c0a1996 resize the applet and set rotation matrix on mouse release, not destruction. makes resize->move work properly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751097
2007-12-21 03:10:35 +00:00
Aaron Eisenberg
610945f0fc Rename the toolbox files to be desktop specific.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751080
2007-12-21 01:14:32 +00:00
Aaron J. Seigo
4a23298a2c update()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751052
2007-12-20 23:50:11 +00:00
Aaron J. Seigo
7be6e23d58 add ability to set the general font to something else at runtime
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751049
2007-12-20 23:44:08 +00:00
Aaron J. Seigo
0946029d25 very basic svg icon painting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750938
2007-12-20 16:28:47 +00:00
Aaron J. Seigo
50bd42b0e9 * initialize kioskImmutable so if loadApplets isn't used, we still get a sane value here
* remove addApplet, as it breaks the corona->containment->applet concept and leads to easily to subtle bugs (c.f. r750746)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750747
2007-12-19 23:59:59 +00:00
Aaron J. Seigo
25d2977510 don't bother with a corona only option
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750746
2007-12-19 23:58:13 +00:00
Shawn Starr
9038914bd6 Allow optional svg image since we can now set the svg file afterwards
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750671
2007-12-19 20:59:39 +00:00
Shawn Starr
853710deca call setFile() when changing the svg image for Icon
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750670
2007-12-19 20:58:45 +00:00
Shawn Starr
60769c4c6f Add convenience method setSvg() to set the Icon's Svg file instead of the default widget/iconbutton svg. Useful for custom svg button behavour
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750654
2007-12-19 20:32:31 +00:00
Shawn Starr
5e77ba9e70 Add some convenience methods file(), to get the svg image path and setFile, to set the image path
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750651
2007-12-19 20:29:22 +00:00
Aaron J. Seigo
34bd2b87b2 font accessors for the theme
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750643
2007-12-19 19:56:39 +00:00
Script Kiddy
378abc9a38 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750401
2007-12-19 08:07:43 +00:00
Aaron J. Seigo
809d20b17a remove some ancient cruft
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750317
2007-12-19 07:02:14 +00:00
Aaron J. Seigo
86ccea46b6 do tilde expansion
BUG:153326

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750316
2007-12-19 07:01:16 +00:00
Aaron J. Seigo
f0637a2e9a restore the painter
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750290
2007-12-19 02:52:41 +00:00
Aaron J. Seigo
e8e3b503e2 allow querying if a tool is enabled or not
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750286
2007-12-19 02:41:45 +00:00
Aaron J. Seigo
65af194560 convenience methods for content size access
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750257
2007-12-19 00:45:29 +00:00
Marco Martin
d7f413742a Now icons can be resized
BUG: 152695

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750084
2007-12-18 16:56:34 +00:00
Script Kiddy
8f05e1b7b0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749901
2007-12-18 08:17:42 +00:00
Aaron J. Seigo
291e3afae4 respond to xrandr changes for *all* containments on the affected screen
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749729
2007-12-17 18:26:38 +00:00
Tobias Koenig
92e6a35a80 Reset the d->failureText to 0 at that point, as the qDeleteAll below
will first delete the d->failureText object and than trigger a relayout
which will access the invalid d->failureText in Applet::contentSize().

=> No crash anymore

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749708
2007-12-17 17:21:34 +00:00
Urs Wolfer
5510140da1 cleanup header
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749677
2007-12-17 15:57:54 +00:00
Script Kiddy
2ed5d7fcc5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749502
2007-12-17 09:08:13 +00:00
Jason Stubbs
689bc02935 Add reference to Qt's bug number that the workaronud works around.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749089
2007-12-16 13:51:27 +00:00
André Wöbbeking
fc63b0fb29 -pedantic
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749088
2007-12-16 13:50:18 +00:00
Jason Stubbs
1dc5cc58fc Move the "call the parent's contextMenuEvent()" hack from Applet into
Widget so that applets with embedded widgets also get the containment's
context menu.

BUG: 152698

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749078
2007-12-16 13:21:16 +00:00
Jason Stubbs
4fb7cbc2d6 Fix handling of click/hover events and add methods to allow callers to
make the icon appear clicked. Getting it in now so that it doesn't
block other work. I believe all discussed issues have been fixed with
this patch, but I'll stay around to fix any issues that remain. ;)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749016
2007-12-16 10:09:07 +00:00
Script Kiddy
419f8db838 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=749000
2007-12-16 07:57:44 +00:00
Jason Stubbs
933932ddb4 LayoutAnimator indirectly calls relayout() so calling startAnimation() in
relayout() is almost an infinite loop. Instead, only call startAnimation()
when an item has actually been added or removed.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748736
2007-12-15 09:08:09 +00:00
Script Kiddy
ec76079031 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748723
2007-12-15 08:25:51 +00:00
Jason Stubbs
82eae90414 Take translations into account when moving an applet.
Patch derived from work done by Thomas Coopman.
BUG: 153927

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748642
2007-12-15 05:48:13 +00:00
Script Kiddy
c7bdfb5a1c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748324
2007-12-14 07:53:43 +00:00
Aaron J. Seigo
bdcec3bee6 allow outsiders (e.g. subclasses) to enable/disable tools
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748312
2007-12-14 06:34:26 +00:00
Marijn Kruisselbrink
a7dcbb5456 fixes for platforms where qreal is not a double
btw, wouldn't it be cleaner if all those qMin(0.0, qMax(1.0, foo)) calls are calls to qBound instead?

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748283
2007-12-14 01:38:32 +00:00