Aaron J. Seigo
a8008999c6
allow mapping of animations by the app corona; useful for mapping things like the appear/disappear animations
...
svn path=/trunk/KDE/kdelibs/; revision=1120239
2010-04-28 17:39:44 +00:00
Marco Martin
db8dd9bf0a
proper configure shortcuts icon
...
svn path=/trunk/KDE/kdelibs/; revision=1118642
2010-04-25 14:53:38 +00:00
Aaron J. Seigo
59505c7f07
we already have an applet version of the pointer; no need to go casting about
...
svn path=/trunk/KDE/kdelibs/; revision=1118045
2010-04-23 18:27:05 +00:00
Aaron J. Seigo
08c94cc3de
put the containment in the position that best suits it as soon as possible
...
svn path=/trunk/KDE/kdelibs/; revision=1114490
2010-04-13 18:37:14 +00:00
Marco Martin
067df57ed7
use a weakpointer
...
svn path=/trunk/KDE/kdelibs/; revision=1110975
2010-04-04 14:34:04 +00:00
Marco Martin
2466bbd960
AbstractDialogManager: will needed for shells to radically change the applets config dialogs (and possibly other dialogs) look and feel
...
svn path=/trunk/KDE/kdelibs/; revision=1110584
2010-04-03 19:10:32 +00:00
Artur Duque de Souza
060bf4148f
Let corona layout the containments
...
Now corona will layout it's containments instead of letting
them do this task. This was created as a slot so we could preserve
BC. Subclasses of Plasma::Corona must be sure to skip containments
of Panel type during layouting if they wish to reimplement it to
have their own layout.
If subclasses doesn't care about it, just leave it alone and
everything will work just as before. :)
Reviewed-by: aseigo, notmart
svn path=/trunk/KDE/kdelibs/; revision=1095549
2010-02-24 14:24:52 +00:00
Beat Wolf
cc7c0a3359
added debug output to measure kde startup time
...
svn path=/trunk/KDE/kdelibs/; revision=1083186
2010-01-31 19:45:48 +00:00
Aaron J. Seigo
1181a53e3c
tag the actions; now the desktop toolbox is sanely ordered
...
svn path=/trunk/KDE/kdelibs/; revision=1069705
2010-01-04 06:37:41 +00:00
Giulio Camuffo
ac5c3b4996
should not return CustomPanelContainment
...
svn path=/trunk/KDE/kdelibs/; revision=1065557
2009-12-23 17:23:35 +00:00
Aaron J. Seigo
84c7463c53
don't call values() and optimize the ordering of operations for items not already on the scene
...
svn path=/trunk/KDE/kdelibs/; revision=1044950
2009-11-05 01:12:22 +00:00
Marco Martin
df6032f5ef
ask for the screen of the view, even if it doesn't have a containment
...
svn path=/trunk/KDE/kdelibs/; revision=1042437
2009-10-29 19:53:03 +00:00
Aaron J. Seigo
895d230262
just ask the view for its screen directly
...
svn path=/trunk/KDE/kdelibs/; revision=1042421
2009-10-29 19:20:19 +00:00
Aaron J. Seigo
8bf21cc7d7
add 1 px so that the popup appears below the item, not overlapping it by 1px
...
BUG:210838
svn path=/trunk/KDE/kdelibs/; revision=1036298
2009-10-16 23:00:24 +00:00
Aaron J. Seigo
1a34a05a9d
applet (and therefore containment) id's are uints
...
svn path=/trunk/KDE/kdelibs/; revision=1035451
2009-10-15 04:05:50 +00:00
Aaron J. Seigo
4c7f155484
play tricks on the failed-to-be-a-containment applet to make dtors a bit safer
...
BUG:208769
svn path=/trunk/KDE/kdelibs/; revision=1035450
2009-10-15 04:05:14 +00:00
Marco Martin
54202fc885
try to respect the ids in the extra config file, if it's taken, use the
...
autogenerated one. this way we have a more faitful reproduction of the
default config file
svn path=/trunk/KDE/kdelibs/; revision=1033961
2009-10-11 17:06:26 +00:00
Marco Martin
14dd33ec4a
restore lock action on immutability change
...
svn path=/trunk/KDE/kdelibs/; revision=1033910
2009-10-11 14:48:03 +00:00
Marco Martin
e67e058087
remove the parentitem, so the widgets will stay still.
...
give it a parent, so they will be deleted
svn path=/trunk/KDE/kdelibs/; revision=1033105
2009-10-09 13:39:41 +00:00
Marco Martin
155bfdc62a
reparenting them to zero means they won't get destroyed when the parent
...
widget/applet will be destroyed
svn path=/trunk/KDE/kdelibs/; revision=1032271
2009-10-07 12:59:43 +00:00
Chani Armitage
cfd8409432
make a class to hold a map of default containmentactions plugins
...
svn path=/trunk/KDE/kdelibs/; revision=1031735
2009-10-05 20:50:57 +00:00
Aaron J. Seigo
c61ec3e94e
assign, not compare :)
...
svn path=/trunk/KDE/kdelibs/; revision=1031675
2009-10-05 18:26:25 +00:00
Aaron J. Seigo
e9dd015ebf
copy the applet configs over when merging one config into another
...
svn path=/trunk/KDE/kdelibs/; revision=1031674
2009-10-05 18:25:52 +00:00
Michał Dutkiewicz
4d051d8f86
Added possibility to set pop up (menu, dialog or other widgets) alignment to left, center or right
...
Translate left and right alignment for vertical form factors
Swap right and left alignment in case of RTL layout
Use center alignment for tool tips
svn path=/trunk/KDE/kdelibs/; revision=1028983
2009-09-28 17:28:17 +00:00
Ana CecÃlia Martins
7830d10905
now calling addItem when adding an offscreen widget,
...
otherwise it would need to be called outside the function,
which is not very intuitive
svn path=/trunk/KDE/kdelibs/; revision=1017869
2009-08-31 19:06:06 +00:00
Chani Armitage
ae2378a8da
some code cleanup
...
fix copyright
always init a contextaction before trying to use it
no more unexpected click-throughs
contextAction() returns the plugin name instead of a pointer
svn path=/trunk/KDE/kdelibs/; revision=1012645
2009-08-17 22:31:18 +00:00
Aaron J. Seigo
a179a16a9e
only close the desktop toolbox if the action is non-repeatable, which implies it's a fire-and-forget type of action such as something that triggers a dialog
...
BUG:198229
svn path=/trunk/KDE/kdelibs/; revision=988884
2009-06-29 01:22:58 +00:00
Marco Martin
8d646f2376
make the configname parameter not useless
...
svn path=/trunk/KDE/kdelibs/; revision=975848
2009-05-31 13:05:28 +00:00
Chani Armitage
233e220ad9
safer way of creating actions, according to mjansen
...
svn path=/trunk/KDE/kdelibs/; revision=963095
2009-05-03 22:13:05 +00:00
Chani Armitage
0768ea626d
make the text more consistent with other plasma config stuff
...
svn path=/trunk/KDE/kdelibs/; revision=963070
2009-05-03 21:00:06 +00:00
Chani Armitage
c756fd29c4
configurable keyboard shortcuts
...
svn path=/trunk/KDE/kdelibs/; revision=963051
2009-05-03 20:22:14 +00:00
Marco Martin
875688e040
make corona's offscreenwidgets list accessible, don't reposition
...
containments that are in offscreen widgets
svn path=/trunk/KDE/kdelibs/; revision=950841
2009-04-07 21:22:18 +00:00
Marco Martin
4f9f85cee9
don't let the popups escape from their containment
...
resolves part of 184983
CCBUG:184983
svn path=/trunk/KDE/kdelibs/; revision=942063
2009-03-20 22:17:44 +00:00
Marco Martin
47a6a491d7
popups aligned with the exact pixel of the panel
...
svn path=/trunk/KDE/kdelibs/; revision=941938
2009-03-20 18:45:21 +00:00
Chani Armitage
f406ed1d77
stuff that lets me move "add activity" to plasmaapp:
...
-added enableAction function to corona for convenience
-added immutabilityChanged signal so that plasmaapp can respond to lock/unlock
-removed "add activity" action from containment because it's on its way to plasmaapp
-stopped adding corona actions to the containment toolbox, plasmaapp can do a better job of it
-made lock action actually disable on SystemImmutable; sure it wouldn't have worked, but now there's no worries about it showing up in the UI
svn path=/trunk/KDE/kdelibs/; revision=938383
2009-03-11 18:37:12 +00:00
Chani Armitage
9af884bad7
update the lock action once, instead of having every containment do it
...
svn path=/trunk/KDE/kdelibs/; revision=938042
2009-03-11 04:46:13 +00:00
Chani Armitage
aa34398a80
give corona its own action collection.
...
this is a place for things which shouldn't be duplicated over every single containment, like "lock" and "new activity".
for now we still add the lock action to every containment, so that none of the code lower down notices the change - but we only have one action behind it all :)
svn path=/trunk/KDE/kdelibs/; revision=937923
2009-03-10 19:52:50 +00:00
Ambroz Bizjak
a27a09fefc
Fix regressions introduced by 914887.
...
On the other hand, Corona::addItem indirectly calls Containment::itemChange,
which ends up calling AppletPrivate::mainConfigGroup, which then creates a config
group in the wrong file (plasmarc) because isContainment was not set.
This also caused a regression where removed applets reappeared on next plasma run.
Fix:
Manually set isContainment before adding the item to the corona, then
call setIsContainment with a new argument to force the initialization.
svn path=/trunk/KDE/kdelibs/; revision=927886
2009-02-18 13:55:18 +00:00
Aaron J. Seigo
72d632a234
this started out as a self contained patch just to merge two actions, but rapidly got out of hand ;)
...
* default to no config interface for containments
* merge the Appearance Settings and Configure actions for containments
* be even more careful with about-to-be-deleted widget (d->transient) including giving them a fake-but-valid scratchpad of a KConfigGroup if requested after deletd
* replace some method calls with direct access to the private members
svn path=/trunk/KDE/kdelibs/; revision=914890
2009-01-22 00:00:16 +00:00
Aaron J. Seigo
c2aeb35b54
setIsContainment creates the toolbox, which now reads from the config, which requires Corona to be around or else we use the wrong config file.
...
svn path=/trunk/KDE/kdelibs/; revision=914887
2009-01-21 23:50:57 +00:00
Alessandro Diaferia
3716f6713a
a useful method to retrieve free edges on the screen
...
svn path=/trunk/KDE/kdelibs/; revision=899574
2008-12-21 10:23:45 +00:00
Aaron J. Seigo
c8621101c1
allow for immediate syncs to be required
...
svn path=/trunk/KDE/kdelibs/; revision=898745
2008-12-18 22:12:49 +00:00
Aaron J. Seigo
32846f0e75
save immutability when it changes rather than on exit; prevents crashes from getting in the way
...
BUG:177756
svn path=/trunk/KDE/kdelibs/; revision=897281
2008-12-15 16:27:52 +00:00
Marco Martin
be2ae212ed
don't cover the applet when the popup if from a top panel
...
BUG: 177621
svn path=/trunk/KDE/kdelibs/; revision=896197
2008-12-12 20:14:01 +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
Marco Martin
43a7784230
take into account rotations when deciding the popup position
...
BUG: 177580
svn path=/trunk/KDE/kdelibs/; revision=896110
2008-12-12 14:41:15 +00:00
Rob Scheepmaker
72eaf8c5f7
No longer use a QGraphicsGridLayout to manage offscreen widgets in corona. Instead position them manually and give each one a spot where they can grow up to QWIDGETSIZEMAX. This has the advantage of not requiring hacks to work around QGL problems, and it avoids having to move all views when one item resizes. It feels snappier and the code looks cleaner.
...
svn path=/trunk/KDE/kdelibs/; revision=895118
2008-12-10 00:57:42 +00:00
Marco Martin
b2d528c0d3
flush pending constraint events after adding a containment, this makes
...
the close buttons appear and relayout when resized
svn path=/trunk/KDE/kdelibs/; revision=892097
2008-12-03 14:31:59 +00:00
Aaron J. Seigo
160e70ccd0
add proper support for virtual desktops, which really requires more than just the View being aware of it; given the default parameters, it's a detail most plasma based apps can ignore (just like screens in general, actually =)
...
svn path=/trunk/KDE/kdelibs/; revision=885330
2008-11-17 04:34:55 +00:00
Aaron J. Seigo
5bbb0685bb
add containments to the collection sooner so that they can be positioned properly
...
svn path=/trunk/KDE/kdelibs/; revision=882247
2008-11-10 07:49:20 +00:00