Commit Graph

536 Commits

Author SHA1 Message Date
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