Commit Graph

122 Commits

Author SHA1 Message Date
Sebastian Kügler
f9c49d0488 Cache the result of graphicsWidget(), it gets called quite
often and might not be really fast for applets that do all
the setting up of the widget in this function.

Also fix the indenting, in some places it was 3 instead
of 4 spaces.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858350
2008-09-07 20:49:10 +00:00
Marco Martin
37b09554ce if d->dialog is child of view when the formfactor changes the dialog is
done on the canvas, in the panel, so mostly invisible
so delete it by hand

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857881
2008-09-06 20:04:59 +00:00
Aaron J. Seigo
9907d96b11 parent popups to the view, change the parenting when the parent changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857619
2008-09-05 20:44:43 +00:00
Marco Martin
cd4565ce3d cleared a bit of useless lines for the layouting, some wrong that made
the icon to not resize with the panel and set as constrainedsquare, as
applet icons should be

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857535
2008-09-05 16:24:32 +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
Rob Scheepmaker
d93456515d Cancel the popup timer when the user manually opens or closes the popup.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856281
2008-09-02 14:54:58 +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
c066ea7027 PopupApplet monitors the size of the applet now. And fixed scenePosFromScreenPos so you can now
reorder extenderitems within a Dialog. Stuff still breaks when detaching the last item, I'm still 
working on that.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854547
2008-08-29 19:00:10 +00:00
Davide Bettio
5f1f8a5d1f added missing call to popupMe and a TODO.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854073
2008-08-28 19:43:36 +00:00
Davide Bettio
2a8024d4a1 Added popupEvent.
CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854047
2008-08-28 18:30:50 +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
Alessandro Diaferia
813647bdbd reverting to previous revision since aaron dislikes the patch as it is.. hoping for a better new one =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853143
2008-08-27 10:45:43 +00:00
Alessandro Diaferia
f58ae0fbc4 * added setAlwaysIconified(bool) to allow using the
applet iconified even on the desktop (useful for Kickoff)
* added bool alwaysIconified()


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853100
2008-08-27 07:41:29 +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
Rob Scheepmaker
27cdeadb03 Some changes to PopupApplet to make it a useful base class for extender using applets,
and some changes to libplasmaclock to make it's dialog get the correct size.
Works quite well, but for some reason dragging extender items from the dialog doesn't 
work correctly right now, I'm working on that.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852189
2008-08-25 13:55:26 +00:00
Marco Martin
3e3b1450f9 hide the icon when we are in the desktop
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845463
2008-08-11 18:15:37 +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
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
Oswald Buddenhagen
c2ef8b2c6c "the usual daily unbreak compilation" EOQ
ha! dashstars! :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838549
2008-07-28 06:59:20 +00:00
Loic Marteau
88b7a7022e some stuff in Plasma::PopupApplet
- add QGraphicsWidget support
- add a timer so we can show a popup during a specified time and hide it again
- let applet Notifier does a last Swan song by convert it in a PopupApplet before dying and 
reborn sooner like a phoenix

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838490
2008-07-27 23:23:57 +00:00
Marco Martin
41ab1a27c1 take margins into account
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838051
2008-07-26 15:05:16 +00:00
Aaron J. Seigo
d6e7628cb6 move PlasmaAppletDialog into libplasma as PopupApplet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833658
2008-07-17 09:30:57 +00:00