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
Aaron J. Seigo
7a46df7066
adapt to Animation API cleanup
...
svn path=/trunk/KDE/kdelibs/; revision=1069731
2010-01-04 09:19:08 +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
Chani Armitage
a2e7f090a1
give wallpaper priority over containmentactions in all events
...
CCMAIL: plasma-devel@kde.org
note that the wallpaper is only getting wheel events and move events
when itemAt != this, which is different from the "if there's no applet
there" logic that's used for containmentactions stuff. this could
have... odd... effects for containments that use graphicsitems, like
folderview.
in general it seems like this code's gotten crufty and could do with
some cleanup, once someone decides what the 'proper' behaviour actually
is.
svn path=/trunk/KDE/kdelibs/; revision=1067596
2009-12-29 23:23:25 +00:00
Marco Martin
83d671bf2f
SVN_SILENT: style
...
svn path=/trunk/KDE/kdelibs/; revision=1065550
2009-12-23 16:36:16 +00:00
Marco Martin
d16be0c15a
if we are switching two containments in Containment::setScreen()
...
let's before emit a screenchanged with -1 as the new screen for both.
this will make the views forget about them and they won't try to swao them again
makes possible to switch containments on multimonitor or pervirtualdesktopviews=true
svn path=/trunk/KDE/kdelibs/; revision=1063989
2009-12-19 18:48:56 +00:00
Adenilson Cavalcanti Da Silva
32121a4bdf
Migrating Plasma::Containment appear animation to ZoomAnimation (it works
...
smoother and the code is simpler).
svn path=/trunk/KDE/kdelibs/; revision=1063088
2009-12-16 22:33:30 +00:00
Marco Martin
77928c0141
create a mimetype job instead of a generic transfer job, that is confised to death if the url is a directory instead of a file
...
BUG:218097
svn path=/trunk/KDE/kdelibs/; revision=1061657
2009-12-12 16:07:25 +00:00
Trever Fischer
1377d35138
Fixes a bug for when no event is passed.
...
In ContainmentPrivate::dropData, some bits assumed there was a dropEvent passed.
This doesn't always happen, for instance with ContainmentActions::paste(). The
points needed are instead taken from the scenePos and screenPos.
BUG: 196416
svn path=/trunk/KDE/kdelibs/; revision=1060831
2009-12-10 02:16:49 +00:00
Aaron J. Seigo
bf404da15e
double check the clipboard object
...
BUG:217098
svn path=/trunk/KDE/kdelibs/; revision=1057509
2009-12-02 17:16:18 +00:00
Marco Martin
08ae083579
now the toolbox can be accessed by subclasses, so funny things can happen, bury it under a QWeakPointer so
...
svn path=/trunk/KDE/kdelibs/; revision=1054267
2009-11-25 19:46:33 +00:00
Aaron J. Seigo
75e482fae2
only insert a delay before moving the drop zone the first time its shown; be sure to also reset the drop point
...
svn path=/trunk/KDE/kdelibs/; revision=1045332
2009-11-05 20:27:08 +00:00
Aaron J. Seigo
7751044026
move connecting the update() signal to right after we actually initialize the wallpaper; prevents the possibility of double paints we may not want
...
svn path=/trunk/KDE/kdelibs/; revision=1044507
2009-11-03 22:27:05 +00:00
Marco Martin
06d2502d2a
check the cast success: crash--
...
svn path=/trunk/KDE/kdelibs/; revision=1044329
2009-11-03 13:09:41 +00:00
Sebastian Kügler
fbcf0e484e
Add capability for Applets to specify X-Plasma-DropUrlPatterns, a QStringList of globs to match a URL dropped onto Plasma. This is orthogonal to the mimetype checking.
...
http://reviewboard.kde.org/r/2005/#review2848
svn path=/trunk/KDE/kdelibs/; revision=1042124
2009-10-29 09:09:01 +00:00
Marco Martin
432fd2f610
InternalToolBox, not PanelToolBox
...
BUG:211689
svn path=/trunk/KDE/kdelibs/; revision=1039834
2009-10-24 18:16:05 +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
c765e808a7
* the drop position is always relative to the containment; don't need to do store the scene pos. this fixes drops on panels
...
* allow drops on the toolbox, this gives is a place to drop things on the panel at all times, similar to the context menu on toolbox
* small delay on showing the drop zone indicator so that when dragging into the tasks widget, for example, we don't end up flickering as it crosses the panel containment edge
svn path=/trunk/KDE/kdelibs/; revision=1039186
2009-10-22 22:14:22 +00:00
Marco Martin
fbae18a177
not a static cast since it can fail
...
svn path=/trunk/KDE/kdelibs/; revision=1038049
2009-10-20 14:53:49 +00:00
Marco Martin
6b0a4590d2
Export a really simple AbstractToolBox
...
add a setToolBox function
svn path=/trunk/KDE/kdelibs/; revision=1038024
2009-10-20 14:14:53 +00:00
Chani Armitage
386a38052e
make rightclick work properly in folderview containments
...
svn path=/trunk/KDE/kdelibs/; revision=1037430
2009-10-19 04:11:05 +00:00
Aaron J. Seigo
d7915a8dff
don't crash if the containment config dialog is open
...
BUG:210653
svn path=/trunk/KDE/kdelibs/; revision=1035776
2009-10-15 20:43:12 +00:00
Aaron J. Seigo
c5833d1939
handles are now children of the applet, so we don't need to destroy them ourselves; we do need to clear the applet pointer in the handle before it is destroyed, however.
...
BUG:209058
svn path=/trunk/KDE/kdelibs/; revision=1035446
2009-10-15 03:25:07 +00:00
Aaron J. Seigo
ee461e739e
activity naming consistency, take 2
...
svn path=/trunk/KDE/kdelibs/; revision=1034920
2009-10-13 23:07:35 +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
82a8ee68dd
we care about our immutablity, not scene immutability alone
...
svn path=/trunk/KDE/kdelibs/; revision=1029909
2009-10-01 01:21:52 +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
Aaron J. Seigo
44c763a752
once we process the job, ignore any further results from it
...
svn path=/trunk/KDE/kdelibs/; revision=1029848
2009-09-30 21:45:19 +00:00
Aaron J. Seigo
4cd5189513
in case of job failure, be sure we don't leave the context menu just hanging around there
...
svn path=/trunk/KDE/kdelibs/; revision=1029846
2009-09-30 21:42:05 +00:00
Chani Armitage
ba3b1b753b
merge-squash of first containment-removal branch
...
svn path=/trunk/KDE/kdelibs/; revision=1027320
2009-09-23 20:37:17 +00:00
Rob Scheepmaker
5b56a34dfa
Support drag & drop of plasma:// and plasma+zeroconf:// urls onto plasma containments.
...
svn path=/trunk/KDE/kdelibs/; revision=1026777
2009-09-22 15:29:08 +00:00
Marco Martin
08d49e6fd0
introducing the concept of associated application:
...
an an application and/or an url list can be associated with an aplet
and a context menu entry and an applet handle button will be added to
launch that application.
the applet will be considered a preview of something, where the
application its full view, for example the picture frame can open
gwenview
svn path=/trunk/KDE/kdelibs/; revision=1024487
2009-09-16 17:08:45 +00:00
Aaron J. Seigo
7d23823095
label the widgets section with a title as well
...
svn path=/trunk/KDE/kdelibs/; revision=1022572
2009-09-12 03:48:56 +00:00
Aaron J. Seigo
432ad10dbe
clean up after a drop
...
svn path=/trunk/KDE/kdelibs/; revision=1022560
2009-09-12 02:38:10 +00:00
Sebastian Kügler
36b30b8751
Don't special-case local files for dropped content
...
Now all (local and remote) file drops use KIO to retrieve the mimetype.
svn path=/trunk/KDE/kdelibs/; revision=1022557
2009-09-12 01:44:01 +00:00
Aaron J. Seigo
860e54d92c
support wallpaper drops
...
svn path=/trunk/KDE/kdelibs/; revision=1019584
2009-09-03 23:22:48 +00:00
Aaron J. Seigo
e41352c6ec
move our data files into a common place with some decent organization
...
svn path=/trunk/KDE/kdelibs/; revision=1019549
2009-09-03 20:40:22 +00:00
Chani Armitage
bf8eb6de86
Revert "give contextmenuevent a chance to run"
...
ooops. that patch relies on 4.6, didn't mean to commit it yet
svn path=/trunk/KDE/kdelibs/; revision=1018488
2009-09-01 18:46:28 +00:00
Chani Armitage
0afd8efd8c
give contextmenuevent a chance to run
...
this is icky and depends on scene()->sendEvent
but we need it to know whether the containment plugin has child items
expecting a contextmenuevent, before we eat the event.
by the time contextmenuevent runs normally it's too late.
svn path=/trunk/KDE/kdelibs/; revision=1018486
2009-09-01 18:42:26 +00:00
Chani Armitage
eab10293a8
consider the handle part of the applet for mouseevents
...
svn path=/trunk/KDE/kdelibs/; revision=1017591
2009-08-30 23:41:23 +00:00
Chani Armitage
024d23a07f
for contextmenu events triggered by the mouse on the containment, fall
...
through to the mouse events. it's easier to handle that way
svn path=/trunk/KDE/kdelibs/; revision=1017492
2009-08-30 18:52:10 +00:00
Chani Armitage
93aead97a1
allow click-throughs for the containment's graphicsitems
...
this makes folderview happier, yay
svn path=/trunk/KDE/kdelibs/; revision=1017491
2009-08-30 18:52:05 +00:00
Chani Armitage
f725121a2a
don't use qgraphicsitem_cast, + some cleanup
...
svn path=/trunk/KDE/kdelibs/; revision=1017490
2009-08-30 18:51:58 +00:00
Chani Armitage
22506da412
make rightclick-on-folderview work
...
svn path=/trunk/KDE/kdelibs/; revision=1017489
2009-08-30 18:51:51 +00:00
Chani Armitage
af4925f777
SVN_SILENT: less negative
...
svn path=/trunk/KDE/kdelibs/; revision=1017488
2009-08-30 18:51:32 +00:00
Aaron J. Seigo
87b743188e
update the toolbox when the activity changes as it may be showing the name of it
...
svn path=/trunk/KDE/kdelibs/; revision=1016743
2009-08-28 19:07:56 +00:00
Aaron J. Seigo
1f57b0c726
send in both press and release events
...
svn path=/trunk/KDE/kdelibs/; revision=1015482
2009-08-25 16:14:05 +00:00
Aaron J. Seigo
de4e6d5bf1
remove the handle from the scene before deleting it; this prevents full screen repaints whenever a widget has the mouse passed over it. will backport.
...
svn path=/trunk/KDE/kdelibs/; revision=1012691
2009-08-17 23:40:07 +00:00
Chani Armitage
0ecafe8131
use trigger for config group
...
svn path=/trunk/KDE/kdelibs/; revision=1012648
2009-08-17 22:31:37 +00:00
Chani Armitage
2ab601f945
various bits of cleanup:
...
load requires a containment
fix @since (I could've sworn I did this already..)
rename ContextAction->ContainmentActions
misc. improvements from aaron
no more warnings
qDeleteAll
don't iterate with keys()
svn path=/trunk/KDE/kdelibs/; revision=1012647
2009-08-17 22:31:32 +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
Chani Armitage
5070e300f5
API changes needed for configurable contextmenu.
...
-setContainment, so that we don't have to try and use the parent any
more.
-hasConfigurationInterface; this should've already been there.
-default values for a couple of functions that I think make sense
svn path=/trunk/KDE/kdelibs/; revision=1012644
2009-08-17 22:31:08 +00:00
Chani Armitage
69365ddada
paste is triggered by a plugin now.
...
also, clean up the drop/paste handling a bit
svn path=/trunk/KDE/kdelibs/; revision=1012643
2009-08-17 22:31:03 +00:00
Chani Armitage
464df207d1
API review stuff
...
-have one virtual QEvent function
-move eventToString to ContextAction
-remove needsConfig reason
-remove configurationAction
-remove dataengine stuff
svn path=/trunk/KDE/kdelibs/; revision=1012642
2009-08-17 22:30:58 +00:00
Chani Armitage
d82fe71821
stuff needed for configuration of plugins
...
svn path=/trunk/KDE/kdelibs/; revision=1012641
2009-08-17 22:30:54 +00:00
Chani Armitage
9d2a2e40ba
api review part 1
...
removed some dead signals and an unnecessary const
svn path=/trunk/KDE/kdelibs/; revision=1012640
2009-08-17 22:30:50 +00:00
Chani Armitage
f0a68d537c
make rightclick plugins possible
...
this makes rightclicks use the plugin configured for rightclick
and adds a new method to the plugin for when an applet is rightclicked
(we need a list of actions then that we can insert into the menu)
this also adds a signal for immutability and improves handling of
needs-configuring plugins
svn path=/trunk/KDE/kdelibs/; revision=1012639
2009-08-17 22:30:46 +00:00
Chani Armitage
a848e4fdcf
make config restore work.
...
svn path=/trunk/KDE/kdelibs/; revision=1012638
2009-08-17 22:30:42 +00:00
Chani Armitage
7da00b4c7c
API needed for the config dialog
...
I factored out eventToString into a static function
and also added @since tags to all my functions
svn path=/trunk/KDE/kdelibs/; revision=1012637
2009-08-17 22:30:38 +00:00
Chani Armitage
493196dff3
use contextaction plugins.
...
there are a few defaults, only one real plugin exists so far
rightclicks are still overridden by the contextmenu event.
the user is warned about plugins that need configuring.
svn path=/trunk/KDE/kdelibs/; revision=1012636
2009-08-17 22:30:34 +00:00
Sebastian Kügler
5ea600487a
Make dropping remote content onto Plasma work
...
The idea is that you drop a file from a webpage, or basically a URL onto Plasma and Plasma creates a suitable applet to display this URL. For example an image frame for picture, or a previewer for pdf files. Downloading the data itself (and possibly saving it) is left to the applets. The mimetype needs to be retrieved as it cannot be determined from the URL.
The code pathes I've changed or added are, roughly:
- "something" is dropped onto Plasma
- if it's a remote URL, we don't know the mimetype of the object behind the URL yet
- a KIO::TransferJob is used to retrieve the mimetype asynchronously, and will call back
- we open a QMenu that says "Fetching file type..."
- If the user closes the menu while the mimetype is being retrieved, we will open a new one
- When the TransferJob calls back, and we have our mimetype, we offer a list of applets suitable for this kind of content
- If the user chooses to create an applet, we put the transfer job on hold to make it available for recycling by the applet
- If the user dismisses the offering, we kill the job
Thanks to marco for reviewing and everybody else for the input :)
Next steps are making some more applets work with this.
CCMAIL:plasma-devel@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1009004
2009-08-08 22:01:16 +00:00
Aaron J. Seigo
0de5d23864
let the applet do the thinking about wether or not the config action is enabled
...
CCBUG:201663
svn path=/trunk/KDE/kdelibs/; revision=1003317
2009-07-28 01:09:17 +00:00
Aaron J. Seigo
18959b552a
in RTL, the geometries are reversed; compare them with that taken into consideration
...
BUG:187406
svn path=/trunk/KDE/kdelibs/; revision=992935
2009-07-08 00:37:40 +00:00
Laurent Montel
22a3d92cdc
const'ify
...
svn path=/trunk/KDE/kdelibs/; revision=992163
2009-07-06 11:49:01 +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
Aaron J. Seigo
c63f672d49
cean this up a little bit
...
svn path=/trunk/KDE/kdelibs/; revision=982722
2009-06-16 17:46:32 +00:00
Marco Martin
06c17a9583
emit activate when the screen changes and is actually an used screen
...
svn path=/trunk/KDE/kdelibs/; revision=982318
2009-06-15 13:58:23 +00:00
Marco Martin
b3c9d74f0a
correctly restore the toolbox whaen a different config file is used (for
...
the first load)
svn path=/trunk/KDE/kdelibs/; revision=982317
2009-06-15 13:57:46 +00:00
Aaron J. Seigo
8907a1306b
more careful with the actions
...
svn path=/trunk/KDE/kdelibs/; revision=979529
2009-06-10 04:51:24 +00:00
Marco Martin
299d00c193
reverting this bit committed by mistake
...
svn path=/trunk/KDE/kdelibs/; revision=977600
2009-06-04 19:49:36 +00:00
Marco Martin
ed608afc54
don't mess with size policies applets have chosen, at least with
...
ignoreaspectRatio applets
(aspectratio and sizepolicy sounds really colliding concepts ah, 4.0
leftovers i love you)
svn path=/trunk/KDE/kdelibs/; revision=977593
2009-06-04 19:00:16 +00:00
Aaron J. Seigo
d5ce775e22
save the desktop setting when it changes in setScreen just as we do for the screen
...
CCBUG:192245
svn path=/trunk/KDE/kdelibs/; revision=976441
2009-06-01 17:30:52 +00:00
Eduard Vladislavovich Sukharev
bca2659a0e
fixing crash on Win and (possibly) Mac when middle mouse clicked on plasma Containment
...
svn path=/trunk/KDE/kdelibs/; revision=971575
2009-05-22 19:22:57 +00:00
Marco Martin
87d8831b2e
set the geometry and then add the offscreen containment to corona->no
...
more colliding calendars
svn path=/trunk/KDE/kdelibs/; revision=970798
2009-05-20 20:27:01 +00:00
Darío Andrés Rodríguez
479203d54f
Call setParent() after the m_wallpaper pointer check
...
BUG: 192912
svn path=/trunk/KDE/kdelibs/; revision=969230
2009-05-17 18:23:31 +00:00
Aaron J. Seigo
4ea997a9f1
don't crash when moving the focused applet from one containment to another
...
BUG:192589
svn path=/trunk/KDE/kdelibs/; revision=967669
2009-05-13 18:11:08 +00:00
Aaron J. Seigo
5f7fb0c500
prevent getting called twice (fixes crash on removing panels)
...
svn path=/trunk/KDE/kdelibs/; revision=964500
2009-05-06 19:08:29 +00:00
Aaron J. Seigo
6ca62962e2
do a sweep for kapplication usage
...
svn path=/trunk/KDE/kdelibs/; revision=963961
2009-05-05 18:11:50 +00:00
Chani Armitage
571367cec2
middle-click pastes data onto containments now :)
...
svn path=/trunk/KDE/kdelibs/; revision=963659
2009-05-05 05:19:35 +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
c756fd29c4
configurable keyboard shortcuts
...
svn path=/trunk/KDE/kdelibs/; revision=963051
2009-05-03 20:22:14 +00:00
Aaron J. Seigo
9339d4e96a
go back to the plugin info categories
...
svn path=/trunk/KDE/kdelibs/; revision=962195
2009-05-01 18:01:26 +00:00
Aaron J. Seigo
0b5c4e1947
use Keywords instead of X-KDE-PluginInfo-Category so we can be translated and even support multiple categories!
...
svn path=/trunk/KDE/kdelibs/; revision=961933
2009-05-01 05:36:50 +00:00
Aaron J. Seigo
7d8a4272cd
put containment options last, make accidental removal of widgets a bit harder
...
BUG:188880
svn path=/trunk/KDE/kdelibs/; revision=960594
2009-04-28 17:30:46 +00:00
Aaron J. Seigo
6d7622271c
* Toolbox -> ToolBox
...
* emit the signals only when things change
svn path=/trunk/KDE/kdelibs/; revision=958822
2009-04-24 19:27:58 +00:00
Aaron J. Seigo
718c24af43
correct connect statements
...
svn path=/trunk/KDE/kdelibs/; revision=958270
2009-04-23 16:38:16 +00:00
Marco Martin
43af4a45b4
signal void toolBoxVisibilityChanged(bool); that notifies when the
...
toolbox gets open/closed
svn path=/trunk/KDE/kdelibs/; revision=953372
2009-04-13 20:26:17 +00:00
Aaron J. Seigo
8952d159aa
straighten out this bit of nonesense a bit :)
...
svn path=/trunk/KDE/kdelibs/; revision=952746
2009-04-12 13:21:49 +00:00
Marco Martin
baf9e2bffe
set the screens to -1 for both containments before switching them, it
...
avoids a screenownerchanged infinite loop
svn path=/trunk/KDE/kdelibs/; revision=952429
2009-04-11 21:12:03 +00:00
Marco Martin
05828b7b81
a bit more debug or i will become totally mad about that
...
svn path=/trunk/KDE/kdelibs/; revision=952360
2009-04-11 16:23:38 +00:00
Marco Martin
c4e76cdc54
restore as offscreen widgets containments that was offscreen widgets
...
svn path=/trunk/KDE/kdelibs/; revision=951274
2009-04-08 20:37:45 +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
Aaron J. Seigo
deb92dbdf5
parent the wallpaper so it gets deleted when we get deleted
...
svn path=/trunk/KDE/kdelibs/; revision=950829
2009-04-07 21:00:26 +00:00
Aaron J. Seigo
339c9cbf9a
oops, straggler in the query
...
svn path=/trunk/KDE/kdelibs/; revision=948431
2009-04-03 00:34:53 +00:00
Aaron J. Seigo
5ef5f88b7e
listing methods for all installed types of containments and for all containments of a given type
...
svn path=/trunk/KDE/kdelibs/; revision=948427
2009-04-03 00:29:54 +00:00
Aaron J. Seigo
04f8e295b7
make the wallpaper stuff a bit more robust and integrated around configuration issues
...
svn path=/trunk/KDE/kdelibs/; revision=948052
2009-04-02 04:15:50 +00:00
Aaron J. Seigo
7dd4f42869
the wallpaper is always a (0, 0) of the containment; don't rely on the boundingRect to give us that
...
svn path=/trunk/KDE/kdelibs/; revision=945044
2009-03-26 19:14:58 +00:00
Aaron J. Seigo
f2ba0859cb
SVN_SILENT: i'm sure one pair of parens is enough. this isn't lisp.
...
svn path=/trunk/KDE/kdelibs/; revision=943975
2009-03-24 18:51:29 +00:00
Chani Armitage
111e6a60c3
zoomout is moving to desktop/plasmaapp
...
svn path=/trunk/KDE/kdelibs/; revision=941581
2009-03-20 00:36:04 +00:00
Aaron J. Seigo
9024aa28bb
don't automatically add a remove action to custom containments
...
svn path=/trunk/KDE/kdelibs/; revision=939041
2009-03-13 17:07:58 +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
Rob Scheepmaker
e1730c4704
Move the showing of the dropzone from panelview to containment. Leads to less code duplication and makes showing dropzones when dragging extenderitems to the panel work. Also don't hide the extenderapplet and panel when detaching the last item from an extenderapplet, and move extenderitems off screen before creating the pixmap to avoid other items appearing in the pixmap.
...
svn path=/trunk/KDE/kdelibs/; revision=938242
2009-03-11 14:41:37 +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
Chani Armitage
d1fa9d361b
(hopefully) temporary fix for shortcuts.
...
this could interfere with plasma-mid, because it assumes one view per window
but it's the best we can get until we can use real QGraphicsWidget action stuff
svn path=/trunk/KDE/kdelibs/; revision=935758
2009-03-06 05:22:08 +00:00
Aaron J. Seigo
655f63d1fb
allow custom containment types to utilize the toolboxes if they wish
...
svn path=/trunk/KDE/kdelibs/; revision=935732
2009-03-06 01:41:01 +00:00
Marco Martin
8fd655c54b
desktop toolbox is more tiny and shows the activity name if any is set
...
an experiment, let's see how it goes
svn path=/trunk/KDE/kdelibs/; revision=935674
2009-03-05 22:15:06 +00:00
Aaron J. Seigo
04824f48c7
streamlining made while hunting for the panel changing bug. at least i have something to show for my pain.
...
svn path=/trunk/KDE/kdelibs/; revision=930729
2009-02-24 04:54:57 +00:00
Aaron J. Seigo
9f40f63081
prevent panels from encroaching into positive space and screwing things up: constraintsEvent is delayed, and that event loop is entered between. this is something that needs to be done synchronously, however. SizeConstraint is triggered by Applet::resizeEvent, so putting this code in resizeEvent is no more or less immune to applets/containments reimplementing resizeEvent and not calling the base implementation.
...
BUG:176280
svn path=/trunk/KDE/kdelibs/; revision=928671
2009-02-19 19:50:19 +00:00
Aaron J. Seigo
1f6e98c957
revert r#176280 as it's just a work around for the real problem
...
svn path=/trunk/KDE/kdelibs/; revision=928670
2009-02-19 19:47:24 +00:00
Marco Martin
d2446a59fc
make the applet appear in the direction nearest to the mouse instead of
...
the entry position, more hanle-follows-mind
svn path=/trunk/KDE/kdelibs/; revision=928669
2009-02-19 19:43:52 +00:00
Joshua Levesque
fcb0f36d7f
Prevent horizontal panels from bleeding over into positive coordinates by creating a positioning offset, much like that given to vertical panels.
...
CCBUG: 176280
svn path=/trunk/KDE/kdelibs/; revision=927169
2009-02-16 22:55:24 +00:00
Marco Martin
f4514950f4
reverting the last change, the panel height is still the old one at that
...
point :)
CCBUG:176280
svn path=/trunk/KDE/kdelibs/; revision=927158
2009-02-16 22:11:24 +00:00
Marco Martin
59a0e9f0e8
theory: the desktop breakage could happen because the panel overlaps the
...
desktop for a while, making containment()->view() or
corona::containmentfordesktop() fails, leaving the desktop view without
a containment
try to reposition the panel before a vertical movement, it should
prevent the panel to go into the desktop for an instant
CCBUG:176280
svn path=/trunk/KDE/kdelibs/; revision=927141
2009-02-16 21:45:18 +00:00
Artur Duque de Souza
cae61ee4ca
Use enums from KIconLoader
...
Instead of using hardcore numbers, it would be great to use the enums provided by
KIconLoader whenever we use sizes for icons.
Made the change for the obvious ones replacing "16" by KIconLoader::SizeSmall,
"22" by KIconLoader::SizeSmallMedium and "32" by KIconLoader::SizeMedium.
svn path=/trunk/KDE/kdelibs/; revision=926544
2009-02-15 16:35:52 +00:00
Rob Scheepmaker
fe805eb338
Massive refactoring of extender drag&drop handling. This should avoid bugs with the old way of doing things (toplevel view on an offscreen widget can lose
...
mouse events while dragging), and is generally shorter and cleaner. There are still some regressions I'll be working on fixing, but it basically works, avoids
crashes and is even faster.
svn path=/trunk/KDE/kdelibs/; revision=923915
2009-02-09 18:10:45 +00:00
Alexis Ménard
ef4b6c7187
Add an appletDestroyed signal instead of catching the destruction in containments with qobject destroyed signal.
...
THis fix errors because we give an invalid pointer to public appletRemoved signal.
svn path=/trunk/KDE/kdelibs/; revision=917619
2009-01-28 07:58:17 +00:00
Christophe Giboudeaux
ae301b3718
kaction.h is already included. Just remove the extra ones
...
svn path=/trunk/KDE/kdelibs/; revision=917529
2009-01-28 00:12:02 +00:00