Commit Graph

576 Commits

Author SHA1 Message Date
Aaron J. Seigo
7df3fb6228 don't bother making or destroying busy widgets/overlays if we're already in the right busy state
svn path=/trunk/KDE/kdelibs/; revision=954122
2009-04-15 07:29:23 +00:00
Aaron J. Seigo
8620a462f4 moc it up
svn path=/trunk/KDE/kdelibs/; revision=951385
2009-04-09 06:07:33 +00:00
Aaron J. Seigo
43e5ee5d15 correct slots
svn path=/trunk/KDE/kdelibs/; revision=951381
2009-04-09 05:57:57 +00:00
Aaron J. Seigo
89b70374c3 abstract the bit of data engine management code out into a small class that the private classes can then subclass, and add dataEngine(const QString &) to Wallpaper
svn path=/trunk/KDE/kdelibs/; revision=947636
2009-03-31 23:51:52 +00:00
Aaron J. Seigo
9c6bd76035 remove some old code from when creating the toolbox created the actions and custom containments never had toolbox; that was an implementation detail that no longer fits the definitions (e.g. custom containments can now have toolboxes if they so wish)
svn path=/trunk/KDE/kdelibs/; revision=943974
2009-03-24 18:50:18 +00:00
Aaron J. Seigo
6d98e6f2aa protect against crashing / interupted plasma exit with global shortcuts
BUG:184042

svn path=/trunk/KDE/kdelibs/; revision=943557
2009-03-24 02:07:20 +00:00
Marco Martin
71dfaf6ac8 draw on _own_ contents rect
svn path=/trunk/KDE/kdelibs/; revision=938463
2009-03-11 22:06:12 +00:00
Chani Armitage
9bc37a9cd1 oops! how'd that sneak in?
if you were getting ambiguous shortcuts trouble it'll go away again now.

svn path=/trunk/KDE/kdelibs/; revision=936506
2009-03-07 19:50:15 +00:00
Marco Martin
919796da14 0 opacity with the busywidget
busywidget always on the icon rather in the popup

svn path=/trunk/KDE/kdelibs/; revision=936025
2009-03-06 18:21:59 +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
Marco Martin
d43926b2ca add stretch factors again
svn path=/trunk/KDE/kdelibs/; revision=935558
2009-03-05 16:14:34 +00:00
Marco Martin
fff4b03ec1 set the pointer to 0
svn path=/trunk/KDE/kdelibs/; revision=935531
2009-03-05 14:07:24 +00:00
Marco Martin
754b8d34c3 paint the busy widget always square
use overlay widget to show the busy widget, duplication--

svn path=/trunk/KDE/kdelibs/; revision=935520
2009-03-05 13:05:12 +00:00
Chani Armitage
5332b1edc8 security constraints can be defined now, whee
svn path=/trunk/KDE/kdelibs/; revision=935220
2009-03-04 17:05:51 +00:00
Marco Martin
5a2a47f473 now message overlays are in popup of popupapplets :)
duplication with spinner code still has to be merged

svn path=/trunk/KDE/kdelibs/; revision=934846
2009-03-03 22:23:42 +00:00
Artur Duque de Souza
d0205d92b3 Changes inside Plasma::Applet to test if we have a popup
and if this is true, if we should use widget() or graphicsWidget()
to show the BusyWidget.


svn path=/trunk/KDE/kdelibs/; revision=933444
2009-02-28 22:52:17 +00:00
Aaron J. Seigo
6bae773c79 if the config dialog is still around, delete it when the applet goes down.
svn path=/trunk/KDE/kdelibs/; revision=930709
2009-02-24 02:34:57 +00:00
Aaron J. Seigo
830a1d19dd give access to the standard config dialog to script engines that care to use it
svn path=/trunk/KDE/kdelibs/; revision=930708
2009-02-24 02:32:48 +00:00
Marco Martin
d86a36efa1 little tweak to the overlay look
svn path=/trunk/KDE/kdelibs/; revision=930624
2009-02-23 22:10:30 +00:00
Marco Martin
4b8bebf239 permit locked containments to move, should fix a zui breakage
(ContainmentPrivate::positionContainments should always be permitted)

svn path=/trunk/KDE/kdelibs/; revision=930442
2009-02-23 13:48:04 +00:00
Marco Martin
ae80ec1806 it's dangerous to access config() there, for now let's try to use just
the applet id as deterministic seed, let's see if it will have seemingly
random enough results

svn path=/trunk/KDE/kdelibs/; revision=928015
2009-02-18 19:47:32 +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
Marco Martin
699b688de7 don't try to access config here if we don't have a containment, one
cause less to have destroyed config files (we should find a better
solution for overlays)

svn path=/trunk/KDE/kdelibs/; revision=927611
2009-02-17 22:06:30 +00:00
Marco Martin
0ee39c6ac2 better paint of the overlay
svn path=/trunk/KDE/kdelibs/; revision=927520
2009-02-17 19:07:47 +00:00
Chani Armitage
499fd451b4 make it possible to exclude categories from the appletbrowser
svn path=/trunk/KDE/kdelibs/; revision=925892
2009-02-14 13:28:25 +00:00
Chani Armitage
b0e0bb161a I forgot to forwardport that security fix from 4.2 >.<
svn path=/trunk/KDE/kdelibs/; revision=923421
2009-02-08 18:31:43 +00:00
Marco Martin
05577817bf make a new constructor with arguments to make possible for non-plugin
scripted applet to have arguments and a new accessor to have the applet
arguments at any moment

svn path=/trunk/KDE/kdelibs/; revision=923308
2009-02-08 15:24:56 +00:00
Marco Martin
9a905cd11b appear and disappear animation for the message overlay
svn path=/trunk/KDE/kdelibs/; revision=921039
2009-02-04 11:39:22 +00:00
Marco Martin
2046c01a29 messagebox that displays as an overlay over the applet.
it has optional buttons  or can be shown/closed programmatically by the
applet implementation

svn path=/trunk/KDE/kdelibs/; revision=920367
2009-02-02 19:39:41 +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
Cédric Borgese
1b12af86cc Fix compilation : camel case includes of kdelibs headers are not accessible while building kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=917525
2009-01-28 00:01:15 +00:00
Chani Armitage
958cc6e953 -fix settings shortcut
-QAction->KAction
IMPORTANT: if you need to do things to the keyboard shortcuts of kactions (which means all of plasma's standard actions from now on), make sure you're using a KAction* and not a QAction*

svn path=/trunk/KDE/kdelibs/; revision=917435
2009-01-27 20:50:34 +00:00
Aaron J. Seigo
948215e476 unecessary
svn path=/trunk/KDE/kdelibs/; revision=916811
2009-01-26 03:15:09 +00:00
Marco Martin
bb8c603060 moved the activate() signal chaining from applet to containment
svn path=/trunk/KDE/kdelibs/; revision=915940
2009-01-24 10:47:35 +00:00
Marco Martin
b743c9fa35 applets Z orders can be negative too
svn path=/trunk/KDE/kdelibs/; revision=915762
2009-01-23 18:07:20 +00:00
Marco Martin
02d5bb8025 when an applet emits activate() the containment emits it too
svn path=/trunk/KDE/kdelibs/; revision=915759
2009-01-23 18:06:04 +00:00
Aaron J. Seigo
3b547e427b inversion of logic
svn path=/trunk/KDE/kdelibs/; revision=915490
2009-01-23 07:38:04 +00:00
Marcos David Dione
9eab58a6b2 make plasma applets yield space for greedy applets.
svn path=/trunk/KDE/kdelibs/; revision=915261
2009-01-22 16:49:45 +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
Chani Armitage
0f3f06f024 all plasma shortcuts are emacs-style now, starting with alt-d, to avoid conflicts.
svn path=/trunk/KDE/kdelibs/; revision=914295
2009-01-20 19:38:45 +00:00
Aaron J. Seigo
ce8a3e3ed7 the true default to setHasConfigurationInterface actually needs to call the setter method as that sets up the action
svn path=/trunk/KDE/kdelibs/; revision=913908
2009-01-20 03:12:08 +00:00
Aaron J. Seigo
65268e77d4 by default, applet scripts get the generic config dialog
svn path=/trunk/KDE/kdelibs/; revision=913900
2009-01-20 02:11:01 +00:00
Aaron J. Seigo
e5d42d17b7 move the default value of setHasConfigurationInterface to the ctor now that i have time to comb through all our widgets
svn path=/trunk/KDE/kdelibs/; revision=913792
2009-01-19 21:24:55 +00:00
Rob Scheepmaker
bfb771ddd8 Make all items persistent by default, even if still attached. This allows us to restore their position and their collapsed state.
svn path=/trunk/KDE/kdelibs/; revision=912127
2009-01-16 18:49:54 +00:00
Aaron J. Seigo
4bc508411a neat bug: changing Activity type while widgets are locked caused Appearances settings to be permahidden. chased out a few other ways to trigger this once that one was fixed, works nicely now.
BUG:180887

svn path=/trunk/KDE/kdelibs/; revision=911727
2009-01-16 00:39:07 +00:00
Marco Martin
831f2564d8 quite mega-patch:
add a new function FrameSvg::alphaMask() that lets define an alpha-layer
for the frame, that can be the frame itself or a mask- prefix
allow for overlay elements on frames that can do a nice
filigrane-effect, they can either be:
-fixed position at 0,0
-random position consistent across plasma runs (only supported for applet
backgrounds)
-tiled
-scaled

svn path=/trunk/KDE/kdelibs/; revision=910655
2009-01-13 21:46:07 +00:00
Aaron J. Seigo
fbd38ee3d9 some hopefully useful debug output
svn path=/trunk/KDE/kdelibs/; revision=909629
2009-01-11 22:35:51 +00:00
Chani Armitage
c11707b2ce apparently it's bad to compare to QSize()
svn path=/trunk/KDE/kdelibs/; revision=908661
2009-01-10 04:16:26 +00:00
Chani Armitage
ebfc550c11 a default size for scripted applets, because they aren't allowed to do anything themselves before init (and this is the one thing that *must* be done before init)
svn path=/trunk/KDE/kdelibs/; revision=908612
2009-01-10 00:33:38 +00:00
Aaron J. Seigo
6156b46110 tell the config loader to write its config as well during calls to save()
svn path=/trunk/KDE/kdelibs/; revision=907296
2009-01-07 20:34:34 +00:00
Aaron J. Seigo
be4c8c2c5e if an applet overrode configChanged (it is virtual), the keyboard shortcuts wouldn't get picked up; so move that all to a private slot and now configChangedcan be safely used instead of connecting up to the dialog signals yourself as an added bonus
svn path=/trunk/KDE/kdelibs/; revision=906175
2009-01-05 18:08:14 +00:00
Aaron J. Seigo
d4bb3c790a no need to focus an applet twice
svn path=/trunk/KDE/kdelibs/; revision=905312
2009-01-04 07:59:10 +00:00
Aaron J. Seigo
c7b36c7959 allow changing the reason the applet failed
svn path=/trunk/KDE/kdelibs/; revision=903146
2008-12-30 01:00:13 +00:00
Aaron J. Seigo
52ad594971 allow checking if the applet has a popup showing associated with it. not BC, but we haven't released 4.2.0 yet and this is the least ucky way of doig it ;)
svn path=/trunk/KDE/kdelibs/; revision=902770
2008-12-29 06:03:43 +00:00
Marco Martin
e3f1b2fda8 in horizontal and vertical form factors let the applets move even if
locked, otherwise the containment layout would be broken
(perhaps would be better to check for a qgraphicslinearlayout or
gridlayout parent? both solutions seems not too good)
BUG:178211

svn path=/trunk/KDE/kdelibs/; revision=901826
2008-12-26 18:37:57 +00:00
Marco Martin
acc4171b16 don't crash when the view is not a plasma one (hello plasmoidviewer:)
svn path=/trunk/KDE/kdelibs/; revision=899877
2008-12-21 18:59:46 +00:00
Aaron J. Seigo
0b9f1db281 * immediate sync on destroy(), prevents applets from being unremovable in perpetuity
* less of use of containment()->corona() internally since while that makes sense for external code, it's unecessarily slow for code in the lib
* some dyanmic_ -> qobject_ casts

svn path=/trunk/KDE/kdelibs/; revision=898746
2008-12-18 22:14:06 +00:00
Marco Martin
3cab60d833 make sure to reposition all the toolboxes on all screens when the zoom
level changes

svn path=/trunk/KDE/kdelibs/; revision=898482
2008-12-18 11:03:35 +00:00
Aaron J. Seigo
b4eecd7650 set the config interface to true later in the start cycle so we don't turn it on for containments
svn path=/trunk/KDE/kdelibs/; revision=897899
2008-12-17 03:55:26 +00:00
Aaron J. Seigo
5333fb5bfa allow any applet to have their keyboard shortcut set
svn path=/trunk/KDE/kdelibs/; revision=897890
2008-12-17 03:16:30 +00:00
Aaron J. Seigo
97869ca7c7 z value related cleanups, including one fixme
svn path=/trunk/KDE/kdelibs/; revision=897861
2008-12-17 00:51:30 +00:00
Aaron J. Seigo
69364bc42e reject position and matrix changes when locked
BUG:177596

svn path=/trunk/KDE/kdelibs/; revision=897433
2008-12-16 03:33:09 +00:00
Aaron J. Seigo
fab0de787f consolidate the code paths in flushUpdatedConstraintsEvent, document it a bit better, and call layout()->updateGeometry() less often; sadly it's still needed otherwise the panel containment doesn't come up properly =/ hopefully Qt 4.5 will alleviate that issue
svn path=/trunk/KDE/kdelibs/; revision=897317
2008-12-15 18:29:45 +00:00
Aaron J. Seigo
a029c8396f put the common code (repeated in two places) into a shared method in the private class and document it a bit; also, move the change triggering on startup compmlete to the end of the constraints event
svn path=/trunk/KDE/kdelibs/; revision=897304
2008-12-15 17:41:37 +00:00
Aaron J. Seigo
29b2776ee4 carefully save applets on creation, prevents losing new applets right after adding them
svn path=/trunk/KDE/kdelibs/; revision=895934
2008-12-12 01:05:00 +00:00
Aaron J. Seigo
47866f417b List->Set, and try and make the even filter a little more efficient
svn path=/trunk/KDE/kdelibs/; revision=895578
2008-12-11 03:10:36 +00:00
Aaron J. Seigo
40041fe655 always delete the config group on destruction, even if it hasn't been access yet
svn path=/trunk/KDE/kdelibs/; revision=891073
2008-12-01 06:27:07 +00:00
Aaron J. Seigo
6f3d2bc0ea allow applets to know when they are destroyed
svn path=/trunk/KDE/kdelibs/; revision=891035
2008-12-01 01:04:58 +00:00
Aaron J. Seigo
4a7699ce82 since it leads to confusion for users, breaks occassionally in svn due to its complexity, incurs overhead on every applet paint but especially when dragging, doesn't look nice at all without composite ... just kill the top level view thing and when you drag something it just "pops" into the right containment.
BUG:176298

svn path=/trunk/KDE/kdelibs/; revision=890331
2008-11-28 22:39:29 +00:00
Aaron J. Seigo
766dc8ab60 patch by Andrew Lake to free-resize applets from the corner rather than the center; need to do some work on applet handle right now and i don't want this patch going sideways and he's not online right now, so ...
svn path=/trunk/KDE/kdelibs/; revision=890316
2008-11-28 22:01:39 +00:00
Marco Martin
827876bab0 when the view is zoomed out show all desktop toolboxes as toolbars,
makes the thing way more usable
prettier background
and disable the text on maximum zoom out level

svn path=/trunk/KDE/kdelibs/; revision=890259
2008-11-28 17:32:21 +00:00
Aaron J. Seigo
509632ff64 a couple of related fixes to make destroying containments work a lot better
svn path=/trunk/KDE/kdelibs/; revision=889816
2008-11-27 18:55:32 +00:00
Aaron J. Seigo
4659724790 don't create an unused button
svn path=/trunk/KDE/kdelibs/; revision=889542
2008-11-27 06:03:53 +00:00
Alexis Ménard
c11105d5af Remove this stuff, it is not needed anymore. Come with my previous commit.
It doesn't break the BC, we can add afterwards an overload it doesn't matter.

svn path=/trunk/KDE/kdelibs/; revision=889392
2008-11-26 17:40:46 +00:00
Alexis Ménard
1cbd228901 Let the QGraphicsView manage the focus
Rev By aseigo

svn path=/trunk/KDE/kdelibs/; revision=889379
2008-11-26 16:38:42 +00:00
Aaron J. Seigo
ad6d7b11e4 SVN_SILENT: add a fixme, remove a todo
svn path=/trunk/KDE/kdelibs/; revision=888630
2008-11-25 00:06:00 +00:00
Marco Martin
e06cb3cda0 display an icon instead of a button as config overlay in panels, due to
constrained size

svn path=/trunk/KDE/kdelibs/; revision=888026
2008-11-23 14:09:45 +00:00
Aaron J. Seigo
23a7c83164 clear the shortcuts editor pointer only when the dialog is actually dead and gone
BUG:175722

svn path=/trunk/KDE/kdelibs/; revision=887090
2008-11-21 03:43:45 +00:00
Marco Martin
db92ebb2c0 call configChanged() on every config dialog finish to reset the global
shortcuts pointer.
maybe another slot that does the same thing is needed? 

svn path=/trunk/KDE/kdelibs/; revision=886681
2008-11-19 20:29:57 +00:00
Aaron J. Seigo
48545153e4 don't show the keyboard shortcut page if we're a containment
svn path=/trunk/KDE/kdelibs/; revision=885755
2008-11-17 21:06:09 +00:00
Aaron J. Seigo
ac6a69d29a don't bother painting until we've set up
svn path=/trunk/KDE/kdelibs/; revision=885308
2008-11-17 01:27:14 +00:00
Aaron J. Seigo
34ab711509 global shortcut configuration for all applets =)
svn path=/trunk/KDE/kdelibs/; revision=884810
2008-11-15 21:23:56 +00:00
Aaron J. Seigo
2de1e10c67 try and avoid, really hard, to allow constraintsUpdatedEvents before we get the StartupCompelted constraint through
svn path=/trunk/KDE/kdelibs/; revision=884053
2008-11-14 04:34:52 +00:00
Michel Hermier
5d76960d4d Don't transform the icon in pixmap. Make ToolTipContent handle this.
svn path=/trunk/KDE/kdelibs/; revision=883009
2008-11-11 21:36:28 +00:00
Aaron J. Seigo
aca23afb4a a bit of a clean up on the overlay stuff; makes it easy to add overlay messages in the future (planned for 4.3)
svn path=/trunk/KDE/kdelibs/; revision=880833
2008-11-06 15:52:13 +00:00
Marco Martin
d3f1778eac crash--
svn path=/trunk/KDE/kdelibs/; revision=880160
2008-11-04 21:16:48 +00:00
Marco Martin
236cb1aa17 set the pointer at 0, ooops :)
svn path=/trunk/KDE/kdelibs/; revision=880104
2008-11-04 19:23:44 +00:00
Marco Martin
d9a77cf958 add functions setBusy(bool) and isBusy()
used to easily display a busy indicator as an overlay of the applet when
is loading stuff

svn path=/trunk/KDE/kdelibs/; revision=880089
2008-11-04 18:22:55 +00:00
Beat Wolf
daf80c7f17 Fixes a timing issue when starting up plasma (could crash the whole plasma)
svn path=/trunk/KDE/kdelibs/; revision=880077
2008-11-04 17:51:11 +00:00
Allen Winter
25b6627ce8 give context the the i18n string "Miscellaneous"
svn path=/trunk/KDE/kdelibs/; revision=879986
2008-11-04 12:54:19 +00:00
Allen Winter
2c6bab358f fix i18n() calls
svn path=/trunk/KDE/kdelibs/; revision=879982
2008-11-04 12:49:28 +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
Albert Astals Cid
45edd84dfc add context
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879206
2008-11-02 17:38:52 +00:00
Aaron J. Seigo
1c75cca9e2 break out Plasma::ToolTipManager::Content to Plasma::ToolTipContent and prep it for BC
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878923
2008-11-02 05:58:42 +00:00
Aaron J. Seigo
416090f5da help out the translators a bit
CCMAIL:aacid@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878807
2008-11-01 20:37:59 +00:00
Kevin Ottens
f66b4d819b API changes as announced:
* ConfigXml becomes ConfigLoader
  * Containment::(add|remove)ToolBoxTool(QAction *action) becomes
    Containment::(add|remove)ToolBoxAction(QAction *action)
  * Flash becomes FlashingLabel
  * Icon becomes IconWidget
  * PanelSvg becomes FrameSvg

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877504
2008-10-29 17:46:33 +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