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
Aaron J. Seigo
0ebbab0cc1
track QGraphicsWidgets in the offscreen layout as they get deleted; prevents a crash in the layout. QGraphicsLayout really ought to track this on its own, but it doesn't (problem is known upstream), so we work around it here.
...
thanks to asraniel for tracking down the culprit..
BUG:174411
svn path=/trunk/KDE/kdelibs/; revision=880873
2008-11-06 18:21:10 +00:00
Aaron J. Seigo
4b08c03726
change KDE includes to use the .h style now that we're in libs
...
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054
ok, this time JUST the plasma dir ;)
...
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9
bum-de-dum! plasma to kdelibs.
...
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Aaron J. Seigo
c40e327130
make this work better for the default case
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878937
2008-11-02 07:21:13 +00:00
Guillaume Pothier
bd7e7b10c9
Added screen management methods to Corona and removed usage of QDesktopWidget in plasmalibs.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877451
2008-10-29 15:22:38 +00:00
Allen Winter
81d09742bb
fix spelling
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870322
2008-10-12 11:12:24 +00:00
Allen Winter
a7aebfa60a
a bunch more coding style fixes. still some lines longer than 100 chars.
...
this is definitely helping me find false positives in the Krazy style checker.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Aaron J. Seigo
a062bbc901
* prevent some possibe crash interactions between extenders and applets
...
* proper save of geometry, transform and position post startup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866823
2008-10-01 23:52:50 +00:00
Aaron J. Seigo
d9a206dc22
SVN_SILENT: ws
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864141
2008-09-24 02:49:21 +00:00
Aaron J. Seigo
56a9ad52ce
make it harder for people to fall into the temptation of nesting containments
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863619
2008-09-22 17:50:23 +00:00
Aaron J. Seigo
4ae5e8bdf7
respect "null" as a containment request: no wallpaper
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858909
2008-09-09 01:16:10 +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