Commit Graph

132 Commits

Author SHA1 Message Date
Marco Martin
698b513868 the dialog private is in its seprarate file ecause it gets accessed by popupapplet to set an applet pointer
in this way we can use the corona to actually find out the real desktop geometry, that doesn't fail for extended monitors like QDesktopWidget does.

BUG:257955

svn path=/trunk/KDE/kdelibs/; revision=1207416
2010-12-17 22:37:09 +00:00
Marco Martin
e04e91e9ad disable borders near to the edge of the screen for extenders too
svn path=/trunk/KDE/kdelibs/; revision=1206154
2010-12-13 16:15:49 +00:00
Luboš Luňák
5de8d333bf QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible
svn path=/trunk/KDE/kdelibs/; revision=1166625
2010-08-22 09:06:37 +00:00
Marco Martin
2d190922f6 call addOffscreenWidget(widget) before actually embedding the widget in setGraphicsWidget(widget)
svn path=/trunk/KDE/kdelibs/; revision=1158454
2010-08-02 19:29:45 +00:00
Marco Martin
b8893a8044 too much classes clobbers with the Extender's private, protect d->applet behind a QWeakPointer
BUG:195369
BUG:232408
CCBUG:233563
BUG:239022

svn path=/trunk/KDE/kdelibs/; revision=1131248
2010-05-27 19:59:15 +00:00
Marco Martin
891594a433 remove dead code
svn path=/trunk/KDE/kdelibs/; revision=1129281
2010-05-21 20:59:33 +00:00
Marco Martin
7a8169685d don't resize then move, use a single setGeometry: the window will jump around way less
also keep the proper edge "fixed" depending on the applet location

svn path=/trunk/KDE/kdelibs/; revision=1129214
2010-05-21 16:47:23 +00:00
Marco Martin
208d362a25 make possible to set a maximum size actually less than the deskop
svn path=/trunk/KDE/kdelibs/; revision=1129183
2010-05-21 14:43:28 +00:00
Marco Martin
d19118b818 limit the size of the graphicswidget to the size of the desktop
svn path=/trunk/KDE/kdelibs/; revision=1129153
2010-05-21 12:24:59 +00:00
Marco Martin
72931328b8 some positioning fixes that were sitting here since a while
svn path=/trunk/KDE/kdelibs/; revision=1126590
2010-05-14 12:44:46 +00:00
Aaron J. Seigo
e96539da54 don't ignore the window flags passed in to the ctor
svn path=/trunk/KDE/kdelibs/; revision=1125895
2010-05-12 16:17:51 +00:00
Aaron J. Seigo
79d8b41bda adjustSize is not a slot, so create a private slot and use that as a relay
svn path=/trunk/KDE/kdelibs/; revision=1125281
2010-05-11 07:20:46 +00:00
Aaron J. Seigo
59409bc888 SVN_SILENT: make this easier to find when we grep for things to fix in KDE5
svn path=/trunk/KDE/kdelibs/; revision=1124322
2010-05-08 20:46:56 +00:00
Marco Martin
62f2eb46f1 delay syze sync a bit
fixes things when two operations are done subsequent, like removing a normal widget and set a qgraphicswidget

svn path=/trunk/KDE/kdelibs/; revision=1122864
2010-05-04 21:30:52 +00:00
Alessandro Diaferia
d6d1c812c0 restore cursor when entering the view
this addresses bug 234386
BUG:234386
CCMAIL:bjoern@ruberg-wegener.de

svn path=/trunk/KDE/kdelibs/; revision=1115117
2010-04-15 09:49:44 +00:00
Marco Martin
ea1e8d4b93 move the dialog on resize only it it waasn't the user resizing it manually
svn path=/trunk/KDE/kdelibs/; revision=1112886
2010-04-09 12:26:01 +00:00
Marco Martin
861c4c18c3 when one of the size hints changes, sync again the graphicswidget and the view
svn path=/trunk/KDE/kdelibs/; revision=1112684
2010-04-08 20:31:29 +00:00
Marco Martin
2cecd31fe2 move the dialog in relation to the delta of the size change when the applet localtion is bottom or right, instead of calling popupposition each time
svn path=/trunk/KDE/kdelibs/; revision=1111730
2010-04-06 15:04:33 +00:00
Marco Martin
6fc15a4687 move the popup before adjusting borders, makes it a bit less jumpy
svn path=/trunk/KDE/kdelibs/; revision=1109701
2010-03-31 19:48:22 +00:00
Marco Martin
422a8bc297 reposition wen adjusting borders: size could have changed
svn path=/trunk/KDE/kdelibs/; revision=1106721
2010-03-23 18:52:08 +00:00
Aaron J. Seigo
3e6f6ab670 This patch splits themeUpdated() into a set of methods that do the border checking and mask updating so that only the necessary work is actually done. The resize and move events now also cooperate in the scheduling of calls to checkBorders (reducing them by 50% or more during resizing). Calls to update(), which trigger full repaints, are also minimized.
svn path=/trunk/KDE/kdelibs/; revision=1104141
2010-03-16 20:40:59 +00:00
Fredrik Höglund
48c6fcbe8e Set the blur region for tooltips and dialogs.
svn path=/trunk/KDE/kdelibs/; revision=1100074
2010-03-06 18:25:24 +00:00
Marco Martin
270ffa55d5 unset the masks when they should and set overrideshadow on each window show
svn path=/trunk/KDE/kdelibs/; revision=1099654
2010-03-05 22:31:04 +00:00
Marco Martin
885b1271f4 WA_NoSystemBackground causes huge graphical glitches combined with the slidingpopups kwin effect
svn path=/trunk/KDE/kdelibs/; revision=1099566
2010-03-05 19:04:09 +00:00
Aaron J. Seigo
3dff1d2d99 don't set the cursor if alt is held
BUG:228959

svn path=/trunk/KDE/kdelibs/; revision=1098440
2010-03-03 18:12:33 +00:00
Marco Martin
fd7b4fa730 a bit smarter policy to enable/disable borders:
-if the dialog is far from the panel, don't disable the corresponding border
-if the panel is smaller then the dialog, don't disable the corresponding border


svn path=/trunk/KDE/kdelibs/; revision=1083523
2010-02-01 12:02:20 +00:00
Marco Martin
26b361824d apply the proper mask when composite is off
svn path=/trunk/KDE/kdelibs/; revision=1074120
2010-01-13 13:43:18 +00:00
Aaron J. Seigo
e7b129bea3 since the QGrahicsWidget we're given originates from the outside, don't assume it'll stay around nicely; use a QWeakPointer to track it
svn path=/trunk/KDE/kdelibs/; revision=1073410
2010-01-12 08:11:27 +00:00
Aaron J. Seigo
40b3e0bed5 allow users of Dialog to sync to the widget immediately
svn path=/trunk/KDE/kdelibs/; revision=1073291
2010-01-11 22:52:08 +00:00
Marco Martin
d6dd4ae24a use the overrideMask window effect
svn path=/trunk/KDE/kdelibs/; revision=1070728
2010-01-06 16:00:53 +00:00
Marco Martin
429b000af3 use windowTranslucencyEnabled() instead of caching the value frm kwindowsystem
svn path=/trunk/KDE/kdelibs/; revision=1069170
2010-01-02 20:48:44 +00:00
Marco Martin
6d3387453d set a rectangular mask when composite is enabled, much faster
svn path=/trunk/KDE/kdelibs/; revision=1069040
2010-01-02 16:11:32 +00:00
Marco Martin
edc2fccdf4 don't get bigger than the desktop area, makes the notifications problem slightly less worse
svn path=/trunk/KDE/kdelibs/; revision=1067535
2009-12-29 18:58:10 +00:00
Marco Martin
8e967abc2d avoid view sync more than every 150 msecs, avoids cpu hogging and displaying garbage
BUG:206946

svn path=/trunk/KDE/kdelibs/; revision=1062972
2009-12-16 14:19:10 +00:00
Giulio Camuffo
a35e7394c3 adds aspect ratio modes to Dialog; PopupApplet sets the right one for its dialog
svn path=/trunk/KDE/kdelibs/; revision=1051074
2009-11-18 20:11:03 +00:00
Aaron J. Seigo
def1a43dc1 always resize the graphics widget when the dialog does, unless we're resizing the dialog because the graphics widget did
svn path=/trunk/KDE/kdelibs/; revision=1047713
2009-11-11 21:45:45 +00:00
Aaron J. Seigo
2f02f25bda set complimentary expand corners when we run out of space on one edge
BUG:214052

svn path=/trunk/KDE/kdelibs/; revision=1047679
2009-11-11 19:43:43 +00:00
Aaron J. Seigo
f9b2ad74fc api docs and note an API wart that should be fixed in the next BIC release
svn path=/trunk/KDE/kdelibs/; revision=1038110
2009-10-20 16:37:25 +00:00
Marco Martin
189618d2e4 look up in the parent hyerarchy rather than parentItem
svn path=/trunk/KDE/kdelibs/; revision=1033106
2009-10-09 13:40:33 +00:00
Marco Martin
d8e084c77e be based also on the widget parent applet location for removing the proper borders
svn path=/trunk/KDE/kdelibs/; revision=1032273
2009-10-07 13:04:09 +00:00
Aaron J. Seigo
b5d5a9a924 remove a bunch of dead code and some dptr member vars thanks to reliance on the kwin effects
svn path=/trunk/KDE/kdelibs/; revision=1022539
2009-09-12 00:18:26 +00:00
Aaron J. Seigo
1e6aaec27f extenders into a subdir
svn path=/trunk/KDE/kdelibs/; revision=1019570
2009-09-03 21:53:56 +00:00
Marco Martin
b95b9cfd6d add an overloaded member that uses a qwidget and animates always from ad
edge of the widget: saves tons of code

svn path=/trunk/KDE/kdelibs/; revision=1003631
2009-07-28 13:50:48 +00:00
Aaron J. Seigo
4dd1cc887b it's not really setting the window to slide, but saying "slide this window"
svn path=/trunk/KDE/kdelibs/; revision=1003321
2009-07-28 01:33:31 +00:00
Marco Martin
8ecfc801de pass the offset in the api, rather that trying to do magic with
qdesktopwidget

svn path=/trunk/KDE/kdelibs/; revision=1003244
2009-07-27 21:53:36 +00:00
Marco Martin
6a60d6cf75 WindowEffects namespace: here will go functions used to set atoms on
windows to trigger kwin effects, without having t use xlibs directly
from the rest of the code

svn path=/trunk/KDE/kdelibs/; revision=1002670
2009-07-26 18:58:27 +00:00
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