Rob Scheepmaker
dcaf4a4b8a
And finally we can drag even the last ExtenderItem from PopupApplet without stuff
...
breaking all around, and some random crashes are avoided too, all by making the
Dialog in PopupApplet no longer of the type Qt::Popup and installing an event filter
to still hide the dialog when you click somewhere else on your screen.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857095
2008-09-04 17:09:34 +00:00
Alexis Ménard
91e63390b4
Now tooltip on kickoff works again, when hide/show it.
...
The popupApplet has now the capability to know if the dialog is displayed or not, then call popupEvent.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=855715
2008-09-01 10:45:33 +00:00
Rob Scheepmaker
1bae884531
Improved Extender support in popupApplet. Dialog resizes correctly, and even the last
...
item is removable. Implementation is still not perfect, but it's now a lot better then it
was.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853962
2008-08-28 14:32:48 +00:00
Rob Scheepmaker
56fc76d150
Detaching ExtenderItems from a Plasma::Dialog works now, but resizing the dialog isn't
...
always done correctly yet. I'm still looking into that.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852535
2008-08-25 23:16:18 +00:00
Marco Martin
b2fc5a95f2
filter also GraphicsSceneMove when synchronizing the view
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=843661
2008-08-07 14:17:55 +00:00
Marco Martin
a2d36c8844
sigh, with qgraphicswidgets we don't have the luxury of the
...
geometrychanged() signal... trying with an event filter
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=843566
2008-08-07 10:34:14 +00:00
Marco Martin
24398315e7
now Plasma::Dialog has setGraphicsWidget(QGraphicsWidget*)
...
it will be used by all applets that needs to display a graphics widget
in a popup window
at the moment used by popupapplet and clockapplet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=843265
2008-08-06 20:41:10 +00:00
Aaron J. Seigo
ad7a1256a9
these methods aren't used and were fairly ugly to begin with =)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842654
2008-08-05 18:04:31 +00:00
Marco Martin
aaab3a310a
API change:
...
changed paintPanel(QPainter* painter, const QRectF& rect, const
QPointF& pos = QPointF(0, 0));
into
void paintPanel(QPainter* painter, const QRectF& target, const QRectF&
source);
and
void paintPanel(QPainter* painter, const QPointF& pos = QPointF(0, 0));
to be more similat di QPainter::drawPixmap api
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838379
2008-07-27 17:20:27 +00:00
Marijn Kruisselbrink
21b148b963
change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Marco Martin
b8e211c2a4
SVN_SILENT: style fixes and death to the tabs
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=818737
2008-06-09 13:05:17 +00:00
Aaron J. Seigo
de3ab77f26
paint -> paintPanel. allows one to use the Svg api directly when you have a PanelSvg class and falls into line with the resize->resizePanel change as well.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801077
2008-04-25 16:18:51 +00:00
Aaron J. Seigo
c087260537
use resizePanel instead of resize
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800287
2008-04-23 20:42:10 +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
Pino Toscano
3d9a4ad7e1
fix signal/slot usage
...
CCMAIL: darktears31@gmail.com
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=798097
2008-04-17 13:12:25 +00:00
Alexis Ménard
cee1f3d1cb
API change as decided in tokamak
...
private slot is now in the pimpl
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=798090
2008-04-17 12:45:46 +00:00
Marco Martin
6024f48475
Api changes to PanelSvg finished:
...
-now it's a Plasma::Svg
-DrawTopBorder DrawLeftBorder etc -> TopBorder LeftBorder etc
-contentAtOrigin -> out of flags
-setFile() -> setImagePath()
-setBorderFlags() -> setEnabledBorders()
-added resize(qreal,qreal)
-setPrefix() -> setElementsPrefix()
-updateSizes() -> Q_PRIVATE_SLOT
-pos() setPos() removed, now pos is a parameter of paint
-setLocation() -> setElementPrefix(enum)
-location() removed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797736
2008-04-16 20:17:36 +00:00
Marco Martin
d07a60c581
Rename SvnPanel into PanelSvg and update accordingly who is using that,
...
as discussed in api reviews
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797663
2008-04-16 17:23:58 +00:00
Laurent Montel
2af508fefe
Remove private variable
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=787914
2008-03-20 07:44:02 +00:00
Marco Martin
afdb5e84a0
reworked how shaped windows with svg backgrounds are obtained:
...
there is a new function PanelSvg::mask() that returns a qbitmap of the areas of the svg with alpha=0 that can be used to create the mask of the window, at the moment used in tooltip and dialog (krunner still to come).
so now windows that uses svg backgrounds should always set PanelSvg::mask() as their own mask, regardless if composite is active or not.
In this commit there are also two (identical) svgs for opaque tooltips and dialogs with pixelated rounded borders that looks good without antialiasing (and unlike the previous version they are vector based now).
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782727
2008-03-05 21:03:27 +00:00
Marco Martin
2f6a8de658
recalculate all the margin sizes when the plasma theme changes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772465
2008-02-08 20:50:55 +00:00
Aaron J. Seigo
2c264def9d
use SvgPanel. nice way to get rid of 80+ lines of duplicate code
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771744
2008-02-06 21:07:16 +00:00
Aaron J. Seigo
7ea2da7eeb
proper offsets (krunnerdialog should really be Plasma::Dialog, but that means making Plasma::Dialog an actual .. well .. dialog =)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768976
2008-01-31 03:26:39 +00:00
Benjamin Reed
e94de707ee
do x11 stuff only on x11
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766344
2008-01-25 16:24:40 +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
Alexis Ménard
b7e978d04c
Add a method to position the dialog just with the QGV
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754467
2007-12-29 21:38:00 +00:00
Sebastian Kügler
9b112c42ae
Use QGraphicsSceneEvent instead of QGraphicsSceneMouseEvent to make it more flexible (actually needed for the devicenotifier)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=745315
2007-12-05 23:09:28 +00:00
Sebastian Kügler
d2514a373b
Plasma::Dialog, a widget-dialog thing that can be used by plasma
...
applets to show additional information, using QWidgets and the like.
It's factored out from devicenotifier, thanks to Alexis Menard.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=745298
2007-12-05 22:32:45 +00:00