Commit Graph

417 Commits

Author SHA1 Message Date
Riccardo Iaconelli
2434a31f69 Reset tooltip's size when changing text.
BUG: 157059

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770405
2008-02-03 16:57:00 +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
Bill Egert
29215641ef Reveiwed from http://matt.rogers.name/r/42/
Set windowSize only from readWindowSize()  
It looks like that function has some logic to determine what windowSize should really be.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770330
2008-02-03 13:06:34 +00:00
Marco Martin
fb5ad56937 some tweaks in popupPosition()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766629
2008-01-26 12:37:17 +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
Marco Martin
92ecb186df in popupPosition() calculating if we are out of screen with the actual screen size instead of graphicsview size
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765724
2008-01-24 15:44:11 +00:00
Aaron J. Seigo
11f9ad3064 BINARY INCOMPATIBLE CHANGE
make it possible to use the context menu event hack with non-Plasma::Widgets.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765005
2008-01-22 23:39:15 +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
e8b62a6ceb move popupleft when there is not enough room (it looks like the windowmanager doesn't always do it automatically)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764755
2008-01-22 14:06:37 +00:00
Aaron J. Seigo
08812eeb00 setFont is not on the agenda; Plasma::Theme is there for that now
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764402
2008-01-21 17:35:01 +00:00
Marco Martin
6d362861e0 SVN_SILENT: micro cosmetic style fix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764302
2008-01-21 11:51:04 +00:00
Marco Martin
ee37d19811 better positioning of tooltips in case of panels not in bottom position and a new function in widget called popupPosition(const QSize s) this will be used every time a tooltip or popup menu has to be positioned
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764299
2008-01-21 11:42:08 +00:00
Marco Martin
d3b203777c use a text color from plasma color scheme when the lineedit is not styled
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764029
2008-01-20 20:59:34 +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
Shane King
2d697cbfa9 Plasma compile fixes for non-X11 platforms. Not sure if the X11 stuff even needs an implementation on other platforms or whether this is sufficient.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=763632
2008-01-19 23:30:14 +00:00
Volker Krause
6f89539ced compile with -pedantic
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=762324
2008-01-16 20:21:47 +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
Aaron J. Seigo
8801af70e5 in case a tooltip becomes permanent, allow clicking it away
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=760180
2008-01-12 05:32:07 +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
Aurélien Gâteau
0d4a6be225 Nicer tooltips:
- No more big font
- Use full width for text label
- Removed gap between main and sub texts

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759530
2008-01-10 20:25:37 +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
Ryan P. Bitanga
6e46fe97ff Use colors from palette instead of hard coded Qt::Black, keep mask functionality in resizeEvent()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758301
2008-01-07 15:03:14 +00:00
Ryan P. Bitanga
9bace0db16 Fix style
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758298
2008-01-07 14:58:50 +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
Aaron J. Seigo
7b5c62982d commit ryan's black border on tooltip patch so i can merge to the branch soon
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758187
2008-01-07 04:41:30 +00:00
Aaron J. Seigo
402cfc7d26 self(), not instance(), in line with all other singletons in plasma
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758186
2008-01-07 04:39:36 +00:00
Percy Leonhardt
84f2fad73e The signalplotter needs to know when it is resized. Otherwise the plots are too short for the current width.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757903
2008-01-06 12:49:32 +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
Aaron J. Seigo
c00b3a9b4a * drop the "to be hidden timer"
* don't immediately reset isShown, that's why we have the timer in the first place (really, it just looks like left-over code from before the hide timer)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757828
2008-01-06 00:50:56 +00:00
Aaron J. Seigo
658f0c4bb3 * 150ms delay for already shown tooltips, just as we did with kicker, to prevent overwhelming lower end cpus (or network connections, for that matter)
* 500ms delay for new tooltips up from 300ms which worked rather nicely in kicker as well

(trying to learn from kicker, not forget it ;)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757827
2008-01-06 00:43:49 +00:00
Riccardo Iaconelli
5ad643f313 Show tooltip after a shorter delay, for discoverability issues.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757769
2008-01-05 21:16:30 +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
Aaron J. Seigo
dc4981ec41 include a slight mod of ryan's curved corner patch; committing directly to ensure we make the deadline
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756856
2008-01-03 21:02:32 +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
Aaron J. Seigo
9aaedf4ddc SVN_SILENT: fix the style.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756757
2008-01-03 18:20:35 +00:00
Luboš Luňák
1ce57b1d7b Fix last commit.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756632
2008-01-03 13:59:03 +00:00
Luboš Luňák
89ab030a89 Use KWin's TaskbarThumbnail effect to show window previews in tooltips.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756513
2008-01-03 11:35:42 +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
b6030dd8b3 added the method
void invertLayout(bool invert);
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=755564
2008-01-01 21:00:37 +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