Commit Graph

1196 Commits

Author SHA1 Message Date
Script Kiddy
45b18abe59 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752973
2007-12-26 08:12:05 +00:00
Jakob Petsovits
52881a5ac1 Icon renaming (code changes - KDE/):
history -> view-history
and other stuff I came across.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752809
2007-12-25 20:17:06 +00:00
Script Kiddy
402f59c6f2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752700
2007-12-25 08:10:15 +00:00
Craig Duquette
ddc888e9c4 moved setToolTip() and toolTip() to match the updated header which moved these functions to
public

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752612
2007-12-25 05:36:31 +00:00
Craig Duquette
cd216b2eb8 make setToolTip() and toolTip() public from protected
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752611
2007-12-25 05:34:43 +00:00
Jason Stubbs
4aa76d859b Add the pager to the panel by default, placing it next to kickoff's button
somewhat similar to kde3

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752438
2007-12-24 12:56:28 +00:00
Jason Stubbs
05458a5c40 Add the applet to the panel at the division (between applets or edge of
screen) closest to where the applet was dropped to.
BUG: 154127

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752356
2007-12-24 08:39:08 +00:00
Script Kiddy
2e77a7931f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752330
2007-12-24 08:00:37 +00:00
Jason Stubbs
efcc2c6128 Addition of applets to a panel require different geometry handling than
to a desktop. This patch just splits the handling into two branches so as
to make the upcoming changes easier to read.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752327
2007-12-24 07:49:33 +00:00
Jason Stubbs
45c7a63a1f If an applet doesn't have a minimum size hint, calculate a minimum size where
its content area is a minimum of 16x16

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752324
2007-12-24 07:30:17 +00:00
Jason Stubbs
c3c755f68b Setting the minimum size based on the border size is no good because the
borders can later be removed without the minimum size being updated causing a
minimum size that's way too big

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752322
2007-12-24 07:10:56 +00:00
Jason Stubbs
5e465d9f89 Give applets a default minimum content size of 16x16. This shouldn't be too
big for the panel and can still be overridden by applets.

BUG: 154565

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752292
2007-12-24 03:53:17 +00:00
Pino Toscano
0ec187a28e include fixup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752169
2007-12-23 19:20:22 +00:00
Marco Martin
5952e90351 White icon text on a semitransparent black background
BUG: 154108

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752098
2007-12-23 15:13:44 +00:00
Marco Martin
1f84d4c290 removing an experimental piece of junk in drawTextItems committed for mistake...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752044
2007-12-23 12:07:31 +00:00
Marco Martin
43574b0c3e Added the method QSizeF sizeFromIconSize(const qreal iconWidth) that returns an optimal size of the widget given a desidered size of the icon
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752018
2007-12-23 10:51:00 +00:00
Script Kiddy
de1f95b656 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751969
2007-12-23 08:31:34 +00:00
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