Commit Graph

263 Commits

Author SHA1 Message Date
Aaron J. Seigo
c21986f62d provide a containmentForScreen implementation that allows adding containments for screens / desktop affinities even in spite of immutabilities
svn path=/trunk/KDE/kdelibs/; revision=1198498
2010-11-18 17:17:56 +00:00
Aaron J. Seigo
0e5e5b7c9d * be sure to set kiosk-based immutability
* don't allow external creation of containments if the corona is immutable; they won't get saved to disk anyways

svn path=/trunk/KDE/kdelibs/; revision=1196287
2010-11-12 22:51:31 +00:00
Kevin Ottens
c09422cc8c Remove deprecated symbols from the build (if KDE_NO_DEPRECATED is defined).
svn path=/trunk/KDE/kdelibs/; revision=1192863
2010-11-04 08:06:43 +00:00
Chani Armitage
25d9f45583 exportLayout function to go with importLayout
also, deprecated the old importLayout in favour of one that only accepts
kconfiggroup.
CCBUG: 248386

svn path=/trunk/KDE/kdelibs/; revision=1180338
2010-09-27 18:16:43 +00:00
Aaron J. Seigo
d071b6e301 remove any stale config data to avoid accidentally merging old and existing containment configs
svn path=/trunk/KDE/kdelibs/; revision=1167946
2010-08-25 18:54:22 +00:00
Marco Martin
02faf90355 new property:
preferredToolBoxPlugin(Containment::Type)
used to decide what toolbox plugin dynamically load, only corona
implementations can decide this.

api review anyone? ;)

CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1157190
2010-07-30 12:46:22 +00:00
Marco Martin
6b864f6b96 if you map to global the position of the view, you'll get coordinates dpubled
map 0,0 instead

svn path=/trunk/KDE/kdelibs/; revision=1156165
2010-07-28 16:57:41 +00:00
Aaron J. Seigo
3a2ffb1238 call restore on new containments too
svn path=/trunk/KDE/kdelibs/; revision=1152621
2010-07-21 15:57:36 +00:00
Aaron J. Seigo
e07a9c88bb if we don't have a PlasmaView, then ask QDesktopWidget which screen it thinks we are tipping on
BUG:241278

svn path=/trunk/KDE/kdelibs/; revision=1137109
2010-06-11 17:20:29 +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
f7c28b7ebb differentiate loadLayout from importLayout by making loadLayout set what the configuration file to use is while import simply brings the data from the config file in without changing the target config file to save to for the corona. open vs import, iow.
svn path=/trunk/KDE/kdelibs/; revision=1136734
2010-06-10 15:59:53 +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
Aaron J. Seigo
235172e42e some more data points for asraniel's charts
svn path=/trunk/KDE/kdelibs/; revision=1129278
2010-05-21 20:52:27 +00:00
Aaron J. Seigo
bdf9ddee65 split out the loadLayout into a load and an import. works well for importing the default layout, next to test it out against exported layouts to ensure the merging does indeed work
svn path=/trunk/KDE/kdelibs/; revision=1126706
2010-05-14 17:00:54 +00:00
Aaron J. Seigo
af942eaf1d this is a repeatable action
svn path=/trunk/KDE/kdelibs/; revision=1124339
2010-05-08 22:13:42 +00:00
Aaron J. Seigo
2c1d53204d SVN_SILENT: tidying
svn path=/trunk/KDE/kdelibs/; revision=1123295
2010-05-05 20:00:36 +00:00
Aaron J. Seigo
97e82393ea cleanup
svn path=/trunk/KDE/kdelibs/; revision=1120901
2010-04-30 02:11:11 +00:00
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