Aaron J. Seigo
d28a4c277a
consolidate color and font methods into one method for each with a role enumeration
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800334
2008-04-23 22:36:00 +00:00
Anne-Marie Mahfouf
970e72245c
API review
...
more SIGNAL changed() -> themeChanged()
thanks Alexis for your vigilance!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800244
2008-04-23 18:35:03 +00:00
Marco Martin
d0ba4e77ec
Api change:
...
Plasma::Svg(imagePath, parent) -> Plasma::Svg(parent) and
Plasma::PanelSvg(imagePath, parent) -> Plasma::PanelSvg(parent)
updated as needed every class that was using Svg or PanelSvg
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800143
2008-04-23 13:07:41 +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
Marco Martin
f522c38eeb
file() and setFile() -> imagePath() and setImagePath()
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797772
2008-04-16 20:48:53 +00:00
Alexis Ménard
1b15d951a9
API clean : bye bye opacity, wich is bas implemented in all cases
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796900
2008-04-14 14:09:13 +00:00
Alexis Ménard
67758e04a6
fix future compile issues
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796777
2008-04-14 09:50:39 +00:00
Alexis Ménard
2cc5870dd6
port ++
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796617
2008-04-13 21:47:47 +00:00
Aaron J. Seigo
c1e480f20c
numerous horizontal icon layout issues fixed
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781876
2008-03-03 19:35:24 +00:00
Marco Martin
2d34c6777c
Initialize d->numDisplayLines
...
(and i wondered why sizeFromIconSize() seemed to have a non deterministic behaviour :P)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781244
2008-03-02 12:30:29 +00:00
Dan Meltzer
7f624f85d9
Revert one large git mess
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780657
2008-02-29 17:50:57 +00:00
Dan Meltzer
a081559257
Commit initial progress of work to port to qt4.4
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780654
2008-02-29 17:43:31 +00:00
Sebastian Kügler
ae0510db05
Icons now fade in the background animation. They also learnt to react on color theme
...
changes. Some codingstyle changes as the icing on the cake.
The fade-in effect can be switched off with Rafaels new feature, btw.
RB:195
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779804
2008-02-27 00:50:07 +00:00
Marco Martin
3f937278e1
Fix IconAction animation
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775286
2008-02-15 11:39:10 +00:00
Riccardo Iaconelli
08771bb763
Align to grid, and slightly smaller frame
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770404
2008-02-03 16:56:53 +00:00
Aaron J. Seigo
74a5773d79
use the Theme::*Color methods. another place we really need Plasma::ThemeColor, apparently.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766075
2008-01-25 07:36:33 +00:00
Marco Martin
b39fa0c7db
white semitransparent border of icon background for better contrast
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765805
2008-01-24 18:35:22 +00:00
Aaron J. Seigo
76747db2d9
--compiler.warningsCount();
...
--compiler.warningsCount();
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765001
2008-01-22 23:31:57 +00:00
Marco Martin
4b8a510837
-less magic numbers on calculation of the position of IconAction
...
-don't paint IconAction when the icon is too tiny and there is not enough room
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764014
2008-01-20 20:07:22 +00:00
Marco Martin
9cc8eabf9b
SVN_SILENT: don't pass click also on action icons when the mouse was moved
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=761954
2008-01-15 18:56:23 +00:00
Marco Martin
67844a4190
SVN_SILENT: don't pass click on main icon when clicking on an action icon
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=761952
2008-01-15 18:51:43 +00:00
Aaron J. Seigo
6329570f8f
icons moving doesn't trigger a click action
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=760630
2008-01-13 05:33:05 +00:00
Jason Stubbs
c4399a67cb
Have the icon applet explicitly tell the icon widget that a clicked() signal
...
isn't wanted after a mouse move rather than the widget assuming so. This means
that icon applets that can't be dragged act like regular buttons again.
Ok to commit this to 4.0 as well?
BUG: 155531
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=760441
2008-01-12 17:07:19 +00:00
Marco Martin
834ce37f54
implement activated() slot for Plasma::Icon
...
and use it in IconApplet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=760054
2008-01-11 20:30:25 +00:00
Aaron J. Seigo
3d6c1c5527
give some shape to the icon
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=760002
2008-01-11 18:17:24 +00:00
Christopher Blauvelt
f46a6a269c
Use mouseDoubleClickEvent instead of a custom implementation.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759629
2008-01-10 23:29:05 +00:00
Aaron J. Seigo
d2a5c1a7af
implement a doubleClicked signal.
...
i must admit that using signals that don't exist to implement needed features in applets is an inventive way to force me to implement stuff in libplasma ;)
BUG:155413
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759525
2008-01-10 20:18:11 +00:00
Aaron J. Seigo
ee32d3c996
remove the use of 1209 explicitly now that i have Winter's Magic Formula for default debug space. makes backporting way easier; sorry for the noise of the earlier commit. suppose i should read planetkde.org more closely ;)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758498
2008-01-08 01:25:09 +00:00
Aaron J. Seigo
12ef6308cb
use the plasma debug area (1209); i considered wrapping this in Plasma::debug() but that seems overkill ;)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758415
2008-01-07 20:50:31 +00:00
Aaron J. Seigo
483851b361
trigger a re-calc of the icon size when text is set. fixes icon presentation on reload at startup
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758190
2008-01-07 05:09:09 +00:00
Marco Martin
454d824d4f
removing sizeHint() since it's identical to Widget::sizeHint()
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757897
2008-01-06 11:41:15 +00:00
Marco Martin
eff9536215
Make icon applets to work in panel:
...
sizehint of icon widget returns size() instead of the stored one to preventing returning (-1,-1) for the first time
and initialize a size in the icon applet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757756
2008-01-05 20:25:18 +00:00
Aaron J. Seigo
f07d73ff53
allow setting the background of icon on/off ... a little sad about this, but no time to do something else atm
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756868
2008-01-03 21:22:24 +00:00
Christopher Blauvelt
ac040130bf
Enable dragging of icons by clicking in the middle of the IconApplet.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756862
2008-01-03 21:10:07 +00:00
Marco Martin
9a0dcafb8d
Substitutes the background svg with a Plasma::roundedRectangle()
...
this makes the radius of the rounded borders of the background of the icon to look right
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756763
2008-01-03 18:38:11 +00:00
Marco Martin
bef6adb720
added
...
bool invertedLayout() const;
returns if the layout of the icons should appear inverted or not
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755891
2008-01-02 10:39:29 +00:00
Marco Martin
1ca970c48e
added the method
...
void invertLayout(bool invert);
it inverts the layout of the icons if the orientation is horizontal,
normally we get icon on the left with left-to-right languages,
this inverts the behaviour
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755562
2008-01-01 20:58:36 +00:00
Aaron J. Seigo
d5c9ab0cf6
style fix and remove the extra assignment.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755558
2008-01-01 20:53:46 +00:00
Aaron J. Seigo
627cb88ccf
all members belong in the dptr.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755512
2008-01-01 19:21:33 +00:00
Marco Martin
a87dcb6b19
draws iconSvg correctly
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754836
2007-12-30 21:00:38 +00:00
Marco Martin
1743b3d9ef
support for text beside icons depending of the layout direction, can be set with
...
void setOrientation(Qt::Orientation orientation);
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753744
2007-12-28 11:29:56 +00:00
Christopher Blauvelt
06295ace02
Piggyback on mart's patch. Add the ability to set the number of lines in the display, fixes
...
Icon::Private::elidedText so the display won't be truncated to one line if the whole text doesn't
fit, and fixes some crashes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753049
2007-12-26 13:44:57 +00:00
Marco Martin
27ce118c91
removed the following methods:
...
calculateSize()
Private::displaySizeHint(const QStyleOptionGraphicsItem *option)
setIconSize(QSizeF)
added layoutIcons(), similar to calculateSize() but it resizes the icon instead of the widget around the icon
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753033
2007-12-26 12:37:54 +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
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
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
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
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