Marco Martin
ab6124c2a6
use the new _KDE_SLIDE atom to make popups use a sliding animation
...
svn path=/trunk/KDE/kdelibs/; revision=1001605
2009-07-23 19:08:06 +00:00
Aaron J. Seigo
8a4dc5460d
avoid calling getMargins twice when not necessary
...
svn path=/trunk/KDE/kdelibs/; revision=979113
2009-06-08 23:33:10 +00:00
Aaron J. Seigo
25b34778ce
standard naming
...
svn path=/trunk/KDE/kdelibs/; revision=976575
2009-06-02 05:49:31 +00:00
Marco Martin
fd1a5a98fc
move the dialog to make it still look attached to the panel/screen edge
...
when its size is synced with the graphicswidget one
BUG:193100
svn path=/trunk/KDE/kdelibs/; revision=969468
2009-05-18 12:36:19 +00:00
Marco Martin
7b93ddbc4c
mess with borders only if the dialog is visible fixes the panel
...
controller options dialog appearance
svn path=/trunk/KDE/kdelibs/; revision=966571
2009-05-11 12:08:29 +00:00
Andreas Hartmetz
b3bdde3483
make the compiler happy on ARM: with qreal==float the compiler is not sure which qFuzzyCompare to use otherwise.
...
svn path=/trunk/KDE/kdelibs/; revision=964126
2009-05-06 02:54:47 +00:00
Aaron J. Seigo
3fd3c6bb37
--noise;
...
svn path=/trunk/KDE/kdelibs/; revision=959958
2009-04-27 16:33:15 +00:00
Aaron J. Seigo
f904ed3fac
some small tweaks during usage tonight
...
svn path=/trunk/KDE/kdelibs/; revision=954626
2009-04-16 05:29:16 +00:00
Aaron J. Seigo
81cc419de6
actually show when not animating; faster show when animating
...
svn path=/trunk/KDE/kdelibs/; revision=954620
2009-04-16 04:33:55 +00:00
Aaron J. Seigo
406a0fac5f
animated shows as well
...
svn path=/trunk/KDE/kdelibs/; revision=954617
2009-04-16 04:19:03 +00:00
Aaron J. Seigo
3919fe141a
support animated hiding
...
svn path=/trunk/KDE/kdelibs/; revision=954610
2009-04-16 03:19:02 +00:00
Aaron J. Seigo
fe02bd3735
"widget" is a QGraphicsWidget, and since we have other widgets around, refer to it as something more obvious
...
svn path=/trunk/KDE/kdelibs/; revision=951375
2009-04-09 04:51:51 +00:00
Aaron J. Seigo
b5c6c9c817
* update the borders before adjusting the view in the move event so that we have the right borders (fixes misplaced contents in taskbar popups on first show)
...
* sceneBoundingRect fixes
svn path=/trunk/KDE/kdelibs/; revision=951362
2009-04-09 03:18:24 +00:00
Marco Martin
ce6ac2d4d3
fix extenders appearance broken in the last commit
...
svn path=/trunk/KDE/kdelibs/; revision=939772
2009-03-15 17:31:19 +00:00
Marco Martin
9b4cc44046
set the margins correctly
...
svn path=/trunk/KDE/kdelibs/; revision=939760
2009-03-15 16:51:05 +00:00
Marco Martin
2878bb98e5
remove useless debug output
...
svn path=/trunk/KDE/kdelibs/; revision=935822
2009-03-06 10:56:38 +00:00
Marco Martin
0b69364e0c
unbreak on multi monitor
...
svn path=/trunk/KDE/kdelibs/; revision=935821
2009-03-06 10:55:33 +00:00
Marco Martin
a409afab79
better syncing between dialog graphicswidget and the dialog
...
(popups shows up at a sane size now)
svn path=/trunk/KDE/kdelibs/; revision=935167
2009-03-04 15:47:59 +00:00
Marco Martin
3f50ffd7ce
deactivate the dialog borders that are at the edge of the working
...
desktop, makes kickoff more fitts law friendly and gives for free an
extender-like appearance to all dialogs
svn path=/trunk/KDE/kdelibs/; revision=934351
2009-03-02 20:32:01 +00:00
Ivan Čukić
bb3ebe644f
Sets the focus for widget in Plasma::Dialog on show
...
svn path=/trunk/KDE/kdelibs/; revision=930557
2009-02-23 20:15:11 +00:00
Marco Martin
f9ab759b8e
set WA_TranslucentBackground to top level windows
...
svn path=/trunk/KDE/kdelibs/; revision=927085
2009-02-16 19:24:05 +00:00
Aaron J. Seigo
14ac4a4271
a lot less popup flickering and repainting. if there are no sideeffects to this discovered, this needs to be backported to the 4.2 branch.
...
CCMAIL:plasma-devel@kde.org
svn path=/trunk/KDE/kdelibs/; revision=915488
2009-01-23 07:33:30 +00:00
Aaron J. Seigo
2b8a8ceec4
escape == hide
...
svn path=/trunk/KDE/kdelibs/; revision=905313
2009-01-04 07:59:55 +00:00
Marco Martin
996a1277bc
better manage save and restore of popup size of popupapplets when the
...
content is a qgraphicswidget (i.e it works now), also ensure the default
size when it first pops up is the gwidget's preferred size
svn path=/trunk/KDE/kdelibs/; revision=902439
2008-12-28 12:54:48 +00:00
Marco Martin
19e5467675
resize the graphicswidget when the dialog resizes, now it's done in a
...
waay cleaner way sonce the thing is no more in a layout :)
svn path=/trunk/KDE/kdelibs/; revision=896336
2008-12-13 11:23:42 +00:00
Rob Scheepmaker
1b3d372062
(re)Add some kDebug lines temporarily to help me debug a bug I can't reproduce myself.
...
svn path=/trunk/KDE/kdelibs/; revision=896123
2008-12-12 15:03:18 +00:00
Aaron J. Seigo
b69d0722d8
clear with transparency; a little better but not perfect yet
...
svn path=/trunk/KDE/kdelibs/; revision=895441
2008-12-10 18:52:26 +00:00
Marco Martin
1a4565f740
unset the cursor only on mouse release
...
BUG: 170347
svn path=/trunk/KDE/kdelibs/; revision=894074
2008-12-07 20:47:58 +00:00
Fredrik Höglund
cc50a63ef6
flicker--
...
svn path=/trunk/KDE/kdelibs/; revision=892582
2008-12-04 17:03:00 +00:00
Marco Martin
6743e12499
never set big minimum sizes in panels
...
and don't use scrollbars in the popup views
svn path=/trunk/KDE/kdelibs/; revision=888095
2008-11-23 19:24:49 +00:00
Marco Martin
c0d430de74
force a valid rect in adjustview, otherwise the view will get the whole
...
scene O.o
(this fixes the tooltips not moving issue)
svn path=/trunk/KDE/kdelibs/; revision=888074
2008-11-23 17:55:01 +00:00
Marco Martin
ff6030e4f4
sanitize sizing of widgets displayed in popupapplet
...
svn path=/trunk/KDE/kdelibs/; revision=887767
2008-11-22 20:22:22 +00:00
Ambroz Bizjak
7529d778a8
Fix resize limits.
...
If the widget would be resized more than it's allowed, don't
leave it as is, but use the limit size. Noticable if you move
the mouse quickly.
svn path=/trunk/KDE/kdelibs/; revision=884179
2008-11-14 12:31:49 +00:00
Aaron J. Seigo
beaa49aeb2
++compile
...
svn path=/trunk/KDE/kdelibs/; revision=879800
2008-11-04 02:39:56 +00:00
Aaron J. Seigo
4b08c03726
change KDE includes to use the .h style now that we're in libs
...
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054
ok, this time JUST the plasma dir ;)
...
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9
bum-de-dum! plasma to kdelibs.
...
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Sebastian Kügler
25dfab1702
sssshhhhhht.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879284
2008-11-02 22:02:41 +00:00
Kevin Ottens
f66b4d819b
API changes as announced:
...
* ConfigXml becomes ConfigLoader
* Containment::(add|remove)ToolBoxTool(QAction *action) becomes
Containment::(add|remove)ToolBoxAction(QAction *action)
* Flash becomes FlashingLabel
* Icon becomes IconWidget
* PanelSvg becomes FrameSvg
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877504
2008-10-29 17:46:33 +00:00
Rob Scheepmaker
eb62f23c04
setting the size hints before changing the views sceneRect fixes the bug where reordering items within an extender resizes the dialog to a size that is too small.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876611
2008-10-27 17:02:43 +00:00
Rob Scheepmaker
a26b73b6bb
Give extenders the 'stacked' look from Pinheiro's mockup. It still needs some minor tweaks, but it allready looks quite sexy.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873867
2008-10-20 10:58:37 +00:00
Allen Winter
a7aebfa60a
a bunch more coding style fixes. still some lines longer than 100 chars.
...
this is definitely helping me find false positives in the Krazy style checker.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Allen Winter
e88e2faa63
first batch of small coding style fixes.
...
these were found while testing the Krazy style checker, which I'm adapting
for the kdelibs style.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870051
2008-10-11 16:19:04 +00:00
Marco Martin
d96cc1d739
actually resize the dialog in adjustView
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869904
2008-10-11 12:01:37 +00:00
Aaron J. Seigo
eff56fa372
this dialog is meant to always be borderless
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869680
2008-10-09 18:48:53 +00:00
Marco Martin
1a196323d2
correctly resize the graphicswidget when the dialog corners are dragged
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869267
2008-10-08 16:47:29 +00:00
Marco Martin
8a1d5fc216
resize the graphicswidget when the dialog has been manually resized,
...
still some problems to track down (for some applets some other code somewhere resizes
back to the original size)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868204
2008-10-05 17:58:14 +00:00
Fredrik Höglund
a3c564c129
Fix a valgrind warning:
...
Conditional jump or move depends on uninitialised value(s)
at 0x4137DA3: Plasma::Dialog::mouseMoveEvent(QMouseEvent*) (dialog.cpp:201)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867837
2008-10-04 15:56:56 +00:00
Alessandro Diaferia
fbc68c415f
convenience method inControlArea()
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866786
2008-10-01 21:53:38 +00:00
Aaron J. Seigo
9d616e85b8
SVN_SILENT: more wsocd
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866690
2008-10-01 17:23:51 +00:00
Alex Merry
057ad8b01a
Fix the calendar dialog popping up in the wrong place the first time.
...
The issue is that we are using a QProxyWidget, and it seems that QWidgets don't have a sensible size() until they're shown for the first time. So we use sizeHint() (or effectiveSizeHint() in this case) instead.
The only issue I can see is that if the widget passed to the dialog is in a layout, its size() and effectiveSizeHint(Qt::PreferredSize) might not match. Is this something we need to deal with? If so, how?
CCMAIL: plasma-devel@kde.org
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859660
2008-09-10 21:28:16 +00:00
Alex Merry
33f7e1e3d6
Actually relicense the files this time. Last time, I managed to change the text from GPL to... GPL.
...
Again, plasma-devel@kde.org mail archives have the permissions.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858780
2008-09-08 17:32:25 +00:00
Alessandro Diaferia
49211892df
we need to inform about resize happened
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858684
2008-09-08 12:33:46 +00:00
Alex Merry
90f5feb1a6
Relicense files. See plasma-devel@kde.org mailing list archives for permissions.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858364
2008-09-07 21:33:02 +00:00
Alessandro Diaferia
ca0a7d962f
added support for resizing
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858269
2008-09-07 16:55:37 +00:00
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