Commit Graph

173 Commits

Author SHA1 Message Date
Ivan Čukić
533799963e Added bool PopupApplet::isIconified() const method
See: http://reviewboard.kde.org/r/5666/


svn path=/trunk/KDE/kdelibs/; revision=1187560
2010-10-19 20:02:51 +00:00
Aaron J. Seigo
2f9828b966 allow popup applets to define the alignment of their popup
svn path=/trunk/KDE/kdelibs/; revision=1174612
2010-09-12 23:54:30 +00:00
Aaron J. Seigo
23ebeb3bf6 * appletActions -> addAppletActions
* containmentActions -> addContainmentActions
* make both take an event for positioning purposes
* make prepareContainmentActions a more generic so that one code path for handling setting up a ContainmentActions plugin is used everywhere; this also shrinks addContainmentActions down to just being a permissions checker
* make PopupApplet use ContainmentPrive::addAppletActions directly; fewer code paths to track, as it allows removal of ContainmentPrivate::showApplContextMenu

svn path=/trunk/KDE/kdelibs/; revision=1173567
2010-09-09 18:37:28 +00:00
Marco Martin
12a3da4aa4 if the applet parent of this popupapplet is -not- a containment, always collapse the popup
svn path=/trunk/KDE/kdelibs/; revision=1148414
2010-07-10 15:10:08 +00:00
Marco Martin
4d593f353c delay popup showin in the event queue after activation
fixes focus issues on popups
BUG:242173

svn path=/trunk/KDE/kdelibs/; revision=1140471
2010-06-20 19:45:29 +00:00
Marco Martin
fac1870bc2 is the dialog that we are sure i doesn't exist when the popupapplet is expanded, not the icon.
this unscrews size hints (and therefore unscrews the newspaper containment too)

svn path=/trunk/KDE/kdelibs/; revision=1132102
2010-05-29 18:20:01 +00:00
Aaron J. Seigo
b927523850 should only be for preferred size
svn path=/trunk/KDE/kdelibs/; revision=1130680
2010-05-26 01:15:35 +00:00
Aaron J. Seigo
376b6cbb88 PopupApplet now respects the configured size
svn path=/trunk/KDE/kdelibs/; revision=1130581
2010-05-25 18:21:04 +00:00
Marco Martin
df3259842c fallback here too if the element doesn't exist
svn path=/trunk/KDE/kdelibs/; revision=1129432
2010-05-22 11:40:22 +00:00
Marco Martin
1307855db1 this status hack is not needed anymore
svn path=/trunk/KDE/kdelibs/; revision=1128778
2010-05-20 08:45:05 +00:00
Marco Martin
f46ac96bb1 set the accepting input status only if it's unknown
svn path=/trunk/KDE/kdelibs/; revision=1126385
2010-05-13 21:28:55 +00:00
Marco Martin
e1c03d3ef8 by default, set expanded popupapplets to accept input, this covers most of the "panel must have focus" needs
BUG:177674

svn path=/trunk/KDE/kdelibs/; revision=1126373
2010-05-13 21:10:59 +00:00
Aaron J. Seigo
0b5d39a0db tidy-ups
svn path=/trunk/KDE/kdelibs/; revision=1124323
2010-05-08 20:47:42 +00:00
Aaron J. Seigo
3c80abf735 check to see which applet is under the event, defaulting to the host applet.
CCBUG:235252

svn path=/trunk/KDE/kdelibs/; revision=1124305
2010-05-08 19:10:07 +00:00
Marco Martin
d54fd38d3b hardcoded setMinimumSize is evil, evil, evil
now the actual sizehints are used, since qgraphicslayouts got slightly better we have more up to date hints

svn path=/trunk/KDE/kdelibs/; revision=1117260
2010-04-21 17:47:38 +00:00
Marco Martin
b6f75d6e46 if an svg is set for the icon switch to the full view on the desktop as well
svn path=/trunk/KDE/kdelibs/; revision=1115279
2010-04-15 20:30:14 +00:00
Marco Martin
fbe946ca4c don't toggle the popup on activate, but actually show it
also set the state on needsattention.

if the view of the applet is not the same for its containment, call popupposition with the parent of the applet rather than the applet itself.
this fixes the popup appearing at funny places for applets in systemtray, like devicenotifier

svn path=/trunk/KDE/kdelibs/; revision=1115260
2010-04-15 19:25:30 +00:00
Marco Martin
ec3d3774bc try to load a monocrome icon as popupicon, fallback to KIcon
svn path=/trunk/KDE/kdelibs/; revision=1115209
2010-04-15 16:14:37 +00:00
Aaron J. Seigo
434be1bfca save dialog sizes "immediately"
svn path=/trunk/KDE/kdelibs/; revision=1111109
2010-04-04 21:08:54 +00:00
Aaron J. Seigo
8b23c1a4ab only do the resizing when we actually need to
svn path=/trunk/KDE/kdelibs/; revision=1110789
2010-04-04 01:55:56 +00:00
Marco Martin
60d5462c3f don't hide the popup if it lost focus but ithe icon is pressed.
not too pretty solution to
BUG:230157

svn path=/trunk/KDE/kdelibs/; revision=1101663
2010-03-10 14:20:20 +00:00
Aaron J. Seigo
bb75767105 don't remove an item that isn't in the layout
svn path=/trunk/KDE/kdelibs/; revision=1100924
2010-03-09 00:12:31 +00:00
Aaron J. Seigo
b640c67b67 pass on popupEvent signals to the scriptengine
svn path=/trunk/KDE/kdelibs/; revision=1097159
2010-02-28 15:10:30 +00:00
Aaron J. Seigo
b335bdb1b6 we should only muck with the minimum sizes of the popup applet when iconified if it is actually using an icon; otherwise we leave it up to the applet itself to do this properly as it normally would have to
BUG:226391

svn path=/trunk/KDE/kdelibs/; revision=1088928
2010-02-11 22:52:16 +00:00
Aaron J. Seigo
45280bdda6 toggle the popup when activated
BUG:222418

svn path=/trunk/KDE/kdelibs/; revision=1073718
2010-01-12 18:35:03 +00:00
Aaron J. Seigo
9685752853 debug no longer needed, problem solved.
svn path=/trunk/KDE/kdelibs/; revision=1071845
2010-01-08 22:12:35 +00:00
Aaron J. Seigo
ae239eed3f it is possible to not be on the scene yet
svn path=/trunk/KDE/kdelibs/; revision=1071841
2010-01-08 21:58:04 +00:00
Aaron J. Seigo
e23b884920 some diagnostic debug for Jon
svn path=/trunk/KDE/kdelibs/; revision=1071451
2010-01-08 05:07:00 +00:00
Marco Martin
a0162ccdef even tough extender is private in Applet, applet has too many friends, so to be sure it's properly guarded, use a weak pointer
BUG:220482

svn path=/trunk/KDE/kdelibs/; revision=1067549
2009-12-29 19:38:37 +00:00
Aaron J. Seigo
9e73f45160 support setting the icon from the package
svn path=/trunk/KDE/kdelibs/; revision=1063021
2009-12-16 18:35:04 +00:00
Giulio Camuffo
d1a3aef87a the aspect ratio mode is already set in popupConstraintsEvent, avoid override of right aspect ratio mode
svn path=/trunk/KDE/kdelibs/; revision=1059508
2009-12-06 20:30:23 +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
Giulio Camuffo
997d6efed4 emit appletTransformedByUser() when the dialog is resized by the user
svn path=/trunk/KDE/kdelibs/; revision=1049811
2009-11-15 21:53:10 +00:00
Aaron J. Seigo
27a02128a5 * consolidate the popup config group name by putting a convenience method in PopupAppletPrivate to fetch it
* move the check for the view lower in updateDialogPosition so that even if we don't have a view, we at least do the sizing, if not the positioning (which is all the view is needed for)

svn path=/trunk/KDE/kdelibs/; revision=1047715
2009-11-11 21:47:56 +00:00
Aaron J. Seigo
b0c24dd7a2 a bit more readable
svn path=/trunk/KDE/kdelibs/; revision=1047696
2009-11-11 20:51:59 +00:00
Marco Martin
10a5e3e90c show, not toggle the popup when activate() is emitted
svn path=/trunk/KDE/kdelibs/; revision=1039702
2009-10-24 11:58:52 +00:00
Petri Damstén
042ed56b39 * Add support to load PopupApplet and Containment from path
* AppletScript::addStandardConfigurationPages adds also publish page
* AppletScript::standardConfigurationDialog does not add standard pages (there is addStandardConfigurationPages)

svn path=/trunk/KDE/kdelibs/; revision=1039471
2009-10-23 13:48:29 +00:00
Aaron J. Seigo
a84cf857e6 simplify this a bit for readability's sake
svn path=/trunk/KDE/kdelibs/; revision=1038116
2009-10-20 16:47:18 +00:00
Marco Martin
7fb7eefa8b use weakpointer, hopefully a crash less
svn path=/trunk/KDE/kdelibs/; revision=1035683
2009-10-15 16:42:41 +00:00
Aaron J. Seigo
c27ddab67e QPointer -> QWeakPointer
svn path=/trunk/KDE/kdelibs/; revision=1034904
2009-10-13 21:43:35 +00:00
Aaron J. Seigo
2b762d0581 fix the "figure out which layout to use" codepath
svn path=/trunk/KDE/kdelibs/; revision=1034850
2009-10-13 17:42:32 +00:00
Darío Andrés Rodríguez
59296fb520 - Fix several minor issues reported by Krazy2
(http://reviewboard.kde.org/r/1837/)


svn path=/trunk/KDE/kdelibs/; revision=1034756
2009-10-13 12:40:13 +00:00
Chani Armitage
cd65144478 rightclick on popupapplet's dialog behaves like
rightclick on the applet itself

svn path=/trunk/KDE/kdelibs/; revision=1029866
2009-09-30 23:07:42 +00:00
Marco Martin
9936c19eae when setting a new widget or graphicswidget, update the main layout or the
dialog, depending the status of the applet was collapsed or not

svn path=/trunk/KDE/kdelibs/; revision=1027670
2009-09-24 13:28:56 +00:00
Aaron J. Seigo
6297027cba harmonize this code a bit
svn path=/trunk/KDE/kdelibs/; revision=1022541
2009-09-12 00:18:57 +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
72df46a81d no view->no popup
BUG:194570

svn path=/trunk/KDE/kdelibs/; revision=1019493
2009-09-03 18:37:27 +00:00
Marco Martin
acfd2a83fa Add PopupConstraintEvent, tells popupapplets (and applets with popups)
that the position has to be changed

svn path=/trunk/KDE/kdelibs/; revision=1019486
2009-09-03 18:11:49 +00:00
Aaron J. Seigo
cbf532055d ensure popups are on all desktops
svn path=/trunk/KDE/kdelibs/; revision=1016274
2009-08-27 11:50:56 +00:00
Marco Martin
e2e97757ca check the parentlayoutitem too
svn path=/trunk/KDE/kdelibs/; revision=1013416
2009-08-19 20:06:47 +00:00