Commit Graph

563 Commits

Author SHA1 Message Date
Aaron J. Seigo
b5b4ea581a allow setting a bogus desktop value on startup; prevents containments kept around due to desktops disappearing on us from becoming activity spawners
BUG:252264

svn path=/trunk/KDE/kdelibs/; revision=1179185
2010-09-24 19:03:45 +00:00
Aaron J. Seigo
f90ee4e28d add the separator in a slightly more appropriate moment
svn path=/trunk/KDE/kdelibs/; revision=1173978
2010-09-11 00:48:15 +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
Aaron J. Seigo
d436911241 simplify/clarify the handling of context menu events; ensure it _always_ goes via the context menu event, and clean up the helper methods in the private class
svn path=/trunk/KDE/kdelibs/; revision=1173182
2010-09-08 21:51:22 +00:00
Aaron J. Seigo
5ef4d99a6b always call the (virtual) contextMenuEvent
svn path=/trunk/KDE/kdelibs/; revision=1172750
2010-09-08 00:00:19 +00:00
Aaron J. Seigo
54e3837b10 now that handles are children of the applet, this shouldn't even be necessary
BUG:250137

svn path=/trunk/KDE/kdelibs/; revision=1171752
2010-09-05 00:33:35 +00:00
Aaron J. Seigo
f02786e31a SVN_SILENT: ease giulio's pain in generate diffs
svn path=/trunk/KDE/kdelibs/; revision=1171395
2010-09-03 18:09:18 +00:00
Jaime Torres Amate
57bbfe755c delete some uneeded if (pointer not null)
http://reviewboard.kde.org/r/5021/

svn path=/trunk/KDE/kdelibs/; revision=1167869
2010-08-25 14:48:41 +00:00
Marco Martin
72a06cdd14 The Desktop ToolBox and the Panel ToolBox becomes plugins, shipped with
Plasma-Desktop (so shells have to implement their own plugins or pick
one already installed)

Unfortunately, 3 virtuals were needed in AbstractToolBox
void restore(const KConfigGroup &group);
void save(const KConfigGroup &group);
void reposition();

since this is not possible for obvious BC reasons, they are "faked" with
slots, not really nice butthe most painless way.

There shouldn't be significant regressions, but wise to keep an eye on
it in the immediate future

CCMAIL:plasma-devel@kde.org


svn path=/trunk/KDE/kdelibs/; revision=1157537
2010-07-31 13:02:07 +00:00
Aaron J. Seigo
6dfeeb5fe9 uncessary to call it here; restore takes care of this
svn path=/trunk/KDE/kdelibs/; revision=1152622
2010-07-21 15:58:25 +00:00
Aaron J. Seigo
836e012dd4 set the target widget, and reverse the flow of the animation (temporary workaround for 4.5 release)
svn path=/trunk/KDE/kdelibs/; revision=1148348
2010-07-10 10:49:34 +00:00
Aaron J. Seigo
bf60c264ac restore; usually not needed as this path is usually for new applets (and so the values won't do anything) but can also be used for applets created elsewhere; will be useful for the kpart work
svn path=/trunk/KDE/kdelibs/; revision=1141866
2010-06-23 17:50:16 +00:00
Aaron J. Seigo
4c3f1104b3 when initializing the applets, restore from config, then init, then flush the containment's constraints, then flush the applet's constraints. ensures that constraint events always happen after both restoration and initialization of the applet
BUG:241298

svn path=/trunk/KDE/kdelibs/; revision=1136767
2010-06-10 17:07:50 +00:00
Aaron J. Seigo
fd535c68e1 pass on the screen constraint to applets when changing the screen of a containment. thanks to Sebas for figuring out what was triggering it (lack of constraints events being passed on)
BUGS:201247,233054

svn path=/trunk/KDE/kdelibs/; revision=1136747
2010-06-10 16:30:54 +00:00
Marco Martin
85d9343669 add a toolBoxOpen getter to complete the property
svn path=/trunk/KDE/kdelibs/; revision=1136303
2010-06-09 13:18:04 +00:00
Aaron J. Seigo
1f0ecedca3 put all the applet restore/init code in one place so that the order of ops is more obvious when debugging
svn path=/trunk/KDE/kdelibs/; revision=1134668
2010-06-04 21:36:28 +00:00
Chani Armitage
fcd713f149 don't emit nonsense :)
svn path=/trunk/KDE/kdelibs/; revision=1128641
2010-05-19 20:11:37 +00:00
Aaron J. Seigo
7c64c65251 ensure we don't multiply connect
svn path=/trunk/KDE/kdelibs/; revision=1128635
2010-05-19 20:02:10 +00:00
Chani Armitage
3a10a5c507 added lastScreen and lastDesktop, to remember where things belong
svn path=/trunk/KDE/kdelibs/; revision=1128358
2010-05-19 02:43:07 +00:00
Aaron J. Seigo
5247459859 SVN_SILENT: ws
svn path=/trunk/KDE/kdelibs/; revision=1126401
2010-05-13 21:48:13 +00:00
Chani Armitage
5d68a5bc56 don't save containment stuff if you're not a containment
svn path=/trunk/KDE/kdelibs/; revision=1126393
2010-05-13 21:40:02 +00:00
Chani Armitage
67180894e9 write the activity ID on save.
svn path=/trunk/KDE/kdelibs/; revision=1126391
2010-05-13 21:39:45 +00:00
Chani Armitage
ffc6ae289e API change: instead of Containment having activityId functions, it just
exposes the whole Context*.
The activity functions have to be left in for BC, and they still work as
they did before.

svn path=/trunk/KDE/kdelibs/; revision=1125570
2010-05-11 19:02:24 +00:00
Aaron J. Seigo
cd1cb881b9 SVN_SILENT: tidy ups
svn path=/trunk/KDE/kdelibs/; revision=1125280
2010-05-11 07:14:54 +00:00
Chani Armitage
a18d89b4d2 add activity ID to containment & context
svn path=/trunk/KDE/kdelibs/; revision=1124740
2010-05-10 01:43:06 +00:00
Stephan Binner
5ddac55dcc SVN_SILENT i18n style guide fixes
svn path=/trunk/KDE/kdelibs/; revision=1124547
2010-05-09 11:03:13 +00:00
Aaron J. Seigo
19a9d2f4f6 put menus nearer the menu if they are positioned awkwardly
svn path=/trunk/KDE/kdelibs/; revision=1124355
2010-05-08 23:17:17 +00:00
Aaron J. Seigo
32fd43651d SVN_SILENT: a note for later
svn path=/trunk/KDE/kdelibs/; revision=1124304
2010-05-08 19:08:00 +00:00
Aaron J. Seigo
dcba3a27a6 aggregate applet status in the containment
CCBUG:236461

svn path=/trunk/KDE/kdelibs/; revision=1123366
2010-05-05 22:33:52 +00:00
Aaron J. Seigo
80bc92740f move context menus on applets according to their popup position when we're a panel containment
svn path=/trunk/KDE/kdelibs/; revision=1123209
2010-05-05 15:49:37 +00:00
Aaron J. Seigo
b77e461a0b Applet::init() is always ok. patch by Vincenzo Di Massa
svn path=/trunk/KDE/kdelibs/; revision=1122515
2010-05-04 03:50:11 +00:00
Aaron J. Seigo
839204b6ea this works better when the size of the containment is 0 or some other nonesense
svn path=/trunk/KDE/kdelibs/; revision=1120900
2010-04-30 02:10:55 +00:00
Aaron J. Seigo
1b7f06d209 explicitly set the applet as movable; this is because the containment isn't and this gets propagated when setting the containment as the parent.
svn path=/trunk/KDE/kdelibs/; revision=1120801
2010-04-30 01:05:52 +00:00
Aaron J. Seigo
1834648ded SVN_SILENT: code style
svn path=/trunk/KDE/kdelibs/; revision=1120769
2010-04-29 22:29:07 +00:00
Aaron J. Seigo
dbd43adad7 use appear/disappear anims, not hardcoded stuff
svn path=/trunk/KDE/kdelibs/; revision=1120243
2010-04-28 17:42:12 +00:00
Chani Armitage
40cff6825c plasma-desktop changed actions
anyone know a better way of making the keyboard shortcut work?

svn path=/trunk/KDE/kdelibs/; revision=1118489
2010-04-24 20:36:43 +00:00
Aaron J. Seigo
9278caf4a0 don't do the Containment resizeEvent dance unless it is actually being used as a containment
svn path=/trunk/KDE/kdelibs/; revision=1118056
2010-04-23 19:06:55 +00:00
Aaron J. Seigo
644859eec4 a sensible default position for non-panel containments
svn path=/trunk/KDE/kdelibs/; revision=1118043
2010-04-23 18:23:53 +00:00
Aaron J. Seigo
548ca104e2 use ContainmentPrivate::isPanelContainment() for more readable code
svn path=/trunk/KDE/kdelibs/; revision=1114542
2010-04-13 21:10:28 +00:00
Aaron J. Seigo
42d4fe3edf * provide a way to check that the standard items for a containment are around; allows earlier setting of containment type
* provide means to get preferred positions of containments


svn path=/trunk/KDE/kdelibs/; revision=1114488
2010-04-13 18:36:38 +00:00
Marco Martin
8a9603eec6 propagate immutability of a containment to the applets (not backporting, still to see if it's really correct and the only use case has a different partial fix in branch)
svn path=/trunk/KDE/kdelibs/; revision=1111042
2010-04-04 17:59:12 +00:00
Aaron J. Seigo
9554b17ce8 * don't remove items from our scene if they aren't part of our scene (avoid a warning from inside qt)
* always reset the borders of dragged extender items when needed
* minor cleanup in appletActions

svn path=/trunk/KDE/kdelibs/; revision=1099725
2010-03-06 01:41:18 +00:00
Artur Duque de Souza
6934ba2672 Repeat after me: it's not a virtual method :)
Should use QMetaObject::invokeMethod for the trick.

svn path=/trunk/KDE/kdelibs/; revision=1095696
2010-02-24 21:11:02 +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
Richard Dale
2025c72039 * Add an Applet::init() call in Containment::init() so that scripting
containment instances are initialized correctly

svn path=/trunk/KDE/kdelibs/; revision=1095288
2010-02-23 22:51:30 +00:00
Aaron J. Seigo
acc4b9ce1f it's ok if the X-KDE-ParentApp line exists but is empty
svn path=/trunk/KDE/kdelibs/; revision=1094363
2010-02-22 16:32:05 +00:00
Aaron J. Seigo
5eb78f23ea zooming is gone; activity switching can be done for now using the activity switcher or the keyboard shortcuts. a new activity manager will be built up from here
svn path=/trunk/KDE/kdelibs/; revision=1080793
2010-01-26 23:35:32 +00:00
Aaron J. Seigo
321c298a96 standarize the authorization restrictions with other ones found in KDE; one of these is new in 4.4 and neither of the other two were ever documented anywhere
svn path=/trunk/KDE/kdelibs/; revision=1070582
2010-01-06 04:16:28 +00:00
Aaron J. Seigo
c4ed36ca0e zoom anim doesn't need to be a member, and this way it doesn't mess up when lots of applets are added at the same time
svn path=/trunk/KDE/kdelibs/; revision=1070142
2010-01-04 23:45:38 +00:00
Adenilson Cavalcanti Da Silva
368f6e5896 Adding pulse animation when a new plasmoid is inserted in the desktop.
I'm looking for feedback to know if it is worthwhile to have it as default.


svn path=/trunk/KDE/kdelibs/; revision=1070133
2010-01-04 23:34:05 +00:00