Commit Graph

578 Commits

Author SHA1 Message Date
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
Simon Edwards
2b932160e6 Added a pluginName() method to DataEngine to match the one in Applet. (Useful for scripting.)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874609
2008-10-21 22:22:57 +00:00
Aaron J. Seigo
6fe3502be7 we have workspace/libs/ for a reason
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874257
2008-10-21 02:31:43 +00:00
Aaron J. Seigo
7abb5164a5 remove gratuitous "ToolTip"s
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874244
2008-10-21 01:33:32 +00:00
Aaron J. Seigo
b5df90348f don't load the wallpaper config until we paint. this means that if we have off-screen containments, even with complex wallpapers, they don't take up unecessary memory or delay start up because they won't render the wallpaper until the first paint event.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872755
2008-10-18 01:31:52 +00:00
Aaron J. Seigo
2118460d27 applet -> widget
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871125
2008-10-13 23:16:22 +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
8716f930ec use split('x') instead of split("x")
add single chars instead of single char strings

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870295
2008-10-12 10:57:42 +00:00
Allen Winter
214ac5f91f clean up some kDebugs and kWarnings.
shorten some extra long lines.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870290
2008-10-12 10:20:02 +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
Allen Winter
e88e2faa63 first batch of small coding style fixes.
these were found while testing the Krazy style checker, which I'm adapting
for the kdelibs style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870051
2008-10-11 16:19:04 +00:00
Aaron J. Seigo
f7f4a8e821 save/restore the painter before handing it to the wallpaper
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869679
2008-10-09 18:48:27 +00:00
Marco Martin
57d1f48145 when an applet fails to load only display an icon with a tooltip when
on anel, so it doesn't cause problems to the panel layout

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869266
2008-10-08 16:44:01 +00:00
Aaron J. Seigo
06e71be8c3 we no longer need to check for spontaneity; move the trick up to Applet as well to avoid repaints where possible
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868200
2008-10-05 17:48:44 +00:00
Aaron J. Seigo
70f1b85426 blarg. one button is *probably* enough
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867162
2008-10-02 23:10:55 +00:00
Aaron J. Seigo
165f387e45 be paranoid about it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867096
2008-10-02 19:38:41 +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
e1a0d5bb9c * save the size/rotation shortly after it's made .. should help preserve those changes in cases of crashes mor consistently
* delete the script before deleting the items it might rely on (e.g. the package!)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864835
2008-09-25 16:26:04 +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
c302aa3ff4 * try not to call view() if possible
* code clarifications, simplicity++

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862852
2008-09-20 06:08:28 +00:00
Aaron J. Seigo
ae3986568f make Applet::name Activity aware
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862758
2008-09-19 19:16:53 +00:00
Aaron J. Seigo
8d1e6cdf85 call a private constraints event on the PopupApplet so that subclasses don't have to think about it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862502
2008-09-19 03:26:24 +00:00
Aaron J. Seigo
6e2506d5cc * use d->extender instead of extender() to prevent accidently creating extenders
* make PopupApplet a friend (PopupAppletPrivate already is)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862089
2008-09-18 02:47:25 +00:00
Aaron J. Seigo
c5fe5cb285 automatically create a new extender if we don't have one and an extender is requested
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862085
2008-09-18 02:38:27 +00:00
Aaron J. Seigo
8db733b45a * forget the global shorcut on applet destruction; prevents issues with collisions in the future
* be more agressive with claiming global shortcuts
* add some debug output to track global shorcut registration

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862007
2008-09-17 19:16:36 +00:00
Aaron J. Seigo
874870aaee because KGlobalShorcuts is not exactly what i'd call symmetrical, we need to ensure the object name is constant at all costs. that design really needs to be rethough in KDE5 as it lacks.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=861708
2008-09-16 22:55:21 +00:00
Rob Scheepmaker
ca2a86dc2e Move the calls to destroy() from save() to Applets dtor. This fixes the crashes with the popup
applet patch on reviewboard (r182).
CCMAIL: notmart@gmail.com


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860301
2008-09-12 15:50:17 +00:00
Petri Damstén
11317e0d7e add configChanged to Applet and AppletScript
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860299
2008-09-12 15:21:58 +00:00
Sebastian Kügler
7335ef2e00 warnings--
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860267
2008-09-12 13:19:37 +00:00
Rob Scheepmaker
11a5a957d0 Renamed extender to internal:extender to avoid possible name clashes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860083
2008-09-11 22:51:43 +00:00
Rob Scheepmaker
7d9f3e29c1 The in libplasma embedded ExtenderApplet actually works now!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860069
2008-09-11 21:21:18 +00:00
Rob Scheepmaker
cb4d610219 Move ExtenderApplet to libplasma. This doesn't work just yet, but aseigo will take a look at
it, so it will soon. ;)


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860007
2008-09-11 19:26:05 +00:00
Aaron J. Seigo
c633c8ac57 hook up the containment configuration interface to the generic containment configuration mechanism; now it shows in the toolbox too! whee!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859593
2008-09-10 18:51:30 +00:00
Aaron J. Seigo
81ff908a3e * for ghost painting, used when dragging, we only need to know true or false .. we don't need to check the view
* cache the current view as this gets called on every mouse move event when dragging something by the handle.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858901
2008-09-09 00:23:02 +00:00
Aaron J. Seigo
d3280cee63 even simpler, and preserves the old contentsRect as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858253
2008-09-07 16:22:34 +00:00
Aaron J. Seigo
fa32b0f2b6 be a little more forgiving in trying to find the Best View
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857615
2008-09-05 20:37:15 +00:00
Aaron J. Seigo
d89ad4cba0 context API adjustments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857207
2008-09-05 00:22:42 +00:00
Aaron J. Seigo
35bfe20877 why yes, dani_l, i have looked into this issue. ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856686
2008-09-03 15:06:02 +00:00
Aaron J. Seigo
2963de33e6 just toRect will suffice
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856498
2008-09-03 04:25:24 +00:00
Aaron J. Seigo
3c7c59d9f8 don't repaint the entire item *every time* if the exposed area is just a small section. this saves huge numbers of whole screen repaints.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856476
2008-09-02 23:29:54 +00:00
Rob Scheepmaker
56fc76d150 Detaching ExtenderItems from a Plasma::Dialog works now, but resizing the dialog isn't
always done correctly yet. I'm still looking into that.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852535
2008-08-25 23:16:18 +00:00
Rob Scheepmaker
60a62db177 Make attached ExtenderItems non persistent, since that is more logical default behavior.
Fixed the screwed up positioning of the ExtenderItem toolbox.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852222
2008-08-25 15:17:54 +00:00
Alex Merry
6f4ccf03c9 Use parenting where appropriate.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851451
2008-08-23 17:21:55 +00:00
Aaron J. Seigo
2c341a5521 the wallpaper can't be mutually exclusive to the containment's painting, otherwise containments like the folderview don't paint their interface
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850223
2008-08-21 02:56:41 +00:00
Alex Merry
c8823d1900 Don't call constraintsUpdated() before init(), even if an event loop is created in an applet constructor.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849656
2008-08-19 21:36:52 +00:00
Marco Martin
abdb0debb5 needsconfigoverlay is way nicer painted to contentsrect when the
standardbackground is on

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849618
2008-08-19 20:00:40 +00:00
Aaron J. Seigo
03047048bc fixlette
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849502
2008-08-19 17:37:53 +00:00
Marco Martin
14bb079e79 this size policy seems to behave way better
icons aren't scaled down when taskbar fills up
will backport to 4.1

BUG:164857

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=848940
2008-08-18 18:49:04 +00:00
Aaron J. Seigo
46ef63168e allow applets to query for their context, update the context via a constraint (we're running out of them!)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=848820
2008-08-18 14:04:30 +00:00
Petri Damstén
0183db7d30 Base for Plasma::Wallpaper plugins.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842590
2008-08-05 15:27:48 +00:00
Aaron J. Seigo
684a1b4e4e SVN_SILENT: some ws fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841831
2008-08-04 08:00:07 +00:00
Rob Scheepmaker
3bfb1bf662 Fixed a type, making destroy() function again. Move the destruction of temporary extender
items to applet, since in extender's dtor, applet's config isn't accessible anymore. Only 
fire itemDetached when an item is really moved, not only when being dragged away.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841509
2008-08-03 12:16:41 +00:00
Aaron J. Seigo
577a64f563 extender is not a Plasma Widget (it doesn't follow the API pattern, isn't a button/menu/etc, isn't meant to be used as a general widget in a random layout...)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841164
2008-08-02 17:46:32 +00:00
Rob Scheepmaker
a6293d363f Extenders enter trunk! The implementation still has some rough edges and fixmes, but the api
is in quite nice shape and basides a couple of bugs, it basically works. So what are you 
still doing reading this? Port your favourite applet to extenders today! ;)


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=840978
2008-08-02 11:48:56 +00:00
Chani Armitage
db8bb180e8 let's not have overzealous shorcuts.
(will this need to be changed back when we have proper qgraphicswidget shortcuts?)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=840837
2008-08-01 23:25:24 +00:00
Aaron J. Seigo
63bce9d1b4 move all the prive code into private/; makes it much clearer with the division lines are
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839792
2008-07-30 20:35:42 +00:00
Aaron J. Seigo
f0c70f7c41 cut some fat; we don't actually use the shadow item, and haven't since before 4.0
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839264
2008-07-29 16:52:44 +00:00
Marco Martin
aaab3a310a API change:
changed paintPanel(QPainter* painter, const QRectF& rect, const
QPointF& pos = QPointF(0, 0));
into
 void paintPanel(QPainter* painter, const QRectF& target, const QRectF&
source);   
and
 void paintPanel(QPainter* painter, const QPointF& pos = QPointF(0, 0));

to be more similat di QPainter::drawPixmap api

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838379
2008-07-27 17:20:27 +00:00
Aaron J. Seigo
538272d133 make Theme::currentThemeHasImage check for compressedsvg files
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=836139
2008-07-21 19:36:47 +00:00
Chani Armitage
d7bc9f3898 add security check in showConfigurationInterface too
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834476
2008-07-19 03:22:41 +00:00
Chani Armitage
bbcc79fc0e only allow configuration while widgets are unlocked
something went wrong, very wrong, when pulling from gitorious. I don't know what or why. but this is a copy of the last commit I made on my laptop...

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834472
2008-07-19 03:00:36 +00:00
Aaron J. Seigo
bfd552b776 add the word Activity now that we've essentially committed to using it
BUG:166875

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834030
2008-07-17 20:52:04 +00:00
Pino Toscano
bec3fc7541 fix i18n() usage
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833977
2008-07-17 18:40:11 +00:00
Aaron J. Seigo
9fce6a940f one less string freeze todo
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833969
2008-07-17 18:25:50 +00:00
Dirk Mueller
5a2b46c73e - coding style
- more plugins to version

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833560
2008-07-17 01:27:43 +00:00
Dirk Mueller
02a008da35 introduce plugin versioning for plasma and ensure
that only applets with a matching major.minor version
are loaded. needs porting to plugins other than applets.

CCMAIL: aseigo@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833550
2008-07-17 01:11:25 +00:00
Aaron J. Seigo
19b3401af9 * get rid of ToolTipManager::getItemItsApplet
* introduce Plasma::viewFor and Plasma::popupPosition

generally nicer code all around.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833534
2008-07-16 23:48:41 +00:00
Alexis Ménard
24d494fd5a Install event filter is better than reimplement sceneEvent.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833521
2008-07-16 23:11:51 +00:00
Alexis Ménard
f4ec3034df Add api doc comments + delete old stuff in applet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833277
2008-07-16 15:18:08 +00:00
Alexis Ménard
6a9bf59888 lot of API changes for more clarity, fix some bugs
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833276
2008-07-16 15:18:02 +00:00
Alexis Ménard
0628f7dcb3 New ToolTip manager that create tool tips easier than before
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833272
2008-07-16 15:17:44 +00:00
Aaron J. Seigo
0e5f15dc50 * add Corona::addContainmentDelayed for more control on the Corona subclass side during default layout loading
* accept bad config objectsin Applet::save and Containment::save
* move some initialization code around to be more robust with external use (will make more sense in next commit to workspace/plasma/plasma)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828940
2008-07-07 02:16:08 +00:00
Aaron J. Seigo
9ccc9336a5 * prevent removing active containments (brute force mechanism: just ignore the request totally)
* select the correct containment for removal when zoomed out (will have isses on multi-screen; see FIXME)
* move containment destruction logic out of Corona; it really doesn't belong there
* remove the hack to not set focus on a containment when clicked as that doesn't seem to reliably trigger it for me here and it doesn't address the issue of a new containment still messing things up, so we really ought to have a generic solution instead of a slightly ugly hack

BUG:id=165670

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828906
2008-07-06 22:43:53 +00:00
Aaron J. Seigo
762be363ec rework the toolbox creation, containment type setting and isContainment setting code to make it resilient against when and where those properties are set
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828636
2008-07-06 10:03:10 +00:00
Aaron J. Seigo
a404763830 don't check the view for regular applets; the problem only affect containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828205
2008-07-04 21:48:25 +00:00
Marco Martin
f203f0ffff don't setFocus on applets or containments when the view is zoomed out,
that would drive to an automatic scrolling of the view when clicking on
it, hiding other containments

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828193
2008-07-04 21:13:48 +00:00
Aaron J. Seigo
92ee66d578 be extra sure that the applet has an entry in the config on being added so when we config sync we're guaranteed they are in there
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827479
2008-07-03 05:46:25 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Marco Martin
878966df21 immutability() doesn't always return d->immutability()
it cause the clock to be moved also in locked mode


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826501
2008-06-30 21:05:16 +00:00
Aaron J. Seigo
07613b5b41 SVN_SILENT: ssh.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826347
2008-06-30 14:39:25 +00:00
Aaron J. Seigo
350bb8c48e AppletScript::shape()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=824153
2008-06-25 00:33:46 +00:00
Aaron J. Seigo
2fc9fca715 make setConfigurationRequired match setFailedToLaunch by adding a reason string. this allows more than just a mysterious "Configure" button. thanks to Chani for spotting the API irregularity.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823770
2008-06-24 03:17:38 +00:00
Marco Martin
f359a0f551 removes the modifications of the maximum and minimum size hints made in
flushPendingConstraintsEvents, now it changes only the sizepolicy
and the enforcing is done by returning the proper values in sizeHint.
ConstrainedSquare behaves like square with sizes less than
Liconloader::sizeLarge, otherwise the size is not much controllable and
would be hard to have the right (not blurry) icon sizes when the panel
is not so big

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823640
2008-06-23 18:49:10 +00:00
Richard Dale
eb2b4126ae * Fix typo in warning message, and make the english scan a bit better
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823161
2008-06-22 17:29:59 +00:00
Marijn Kruisselbrink
b10a0bcbe3 fix qMax calls on platforms where qreal is not double
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821243
2008-06-16 22:20:49 +00:00
Aaron J. Seigo
659844e273 use the caching (!), don't crash if we get a 0 widget parameter
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821186
2008-06-16 19:10:38 +00:00
Marco Martin
b5855d7b20 set a minimum size of 0,0 when an applet is moved in the panel, it still
can happen that it exits from top of the screen but at least it won't
totally destroy the panel layout anymore

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=820917
2008-06-15 19:10:50 +00:00
Davide Bettio
d489ddc1ea BUGFIX: Applet::setConfigurationRequired(bool needsConfig) now destroys also the button when needsConfig is false.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=820338
2008-06-13 22:12:23 +00:00
Aaron J. Seigo
681ddb5cdc prepare ourselves for upstream fixes ;-P
CCBUG:163459

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=818610
2008-06-09 00:03:25 +00:00
Jason Stubbs
21367769e7 Fix systray icon positioning on initial layouts and take svg margins
into account. When the size is too small to allow the svg and a single
icon, disable the svg.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=818155
2008-06-07 22:51:51 +00:00
Aaron J. Seigo
d222baf2f2 emit geom changed signal on size changes as well as a SizeConstraint. one should one or the other but not both, i suppose.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=817989
2008-06-07 10:52:34 +00:00
Aaron J. Seigo
f1ce0ee124 safety in removing panels, aka "work around the inane requirement to first remove items from the scene before deleting them if they are a QGraphicsWidget and have a layout"
BUG:163205

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816760
2008-06-04 19:04:34 +00:00
Marco Martin
1cb044332c new aspect ratio mode ConstrainedSquare
it makes applets in panel to not
be wider than tall in horizontal panels and not taller than wider in
vertical panels, but can be for instance less wide than tall in
horizontal panels, as opposed to square applets.
it makes poossible to have icons with a reasonable size in very big
panels as vertical panels usually are for instance

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816757
2008-06-04 18:58:38 +00:00
Aaron J. Seigo
3d45aae7fb more code clean ups
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816745
2008-06-04 18:20:58 +00:00
Marco Martin
5ddceb467b add Theme::currentThemeHasImage() that checks if the current theme has a
certain svg or if it would fallback to the default theme if loaded.
this makes possible an alternative fallback mechanism between images of
the same theme, used now for the TransparentBackground background hint

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816734
2008-06-04 17:44:37 +00:00
Chani Armitage
8e9bd0ff09 revert my last commit; this does work after all, sorry.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=815996
2008-06-03 00:24:51 +00:00
Marco Martin
dedc5eac8f deactivate translucent background when the containment becomes the
panel, prevents weird margins

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=815657
2008-06-02 13:27:20 +00:00
Chani Armitage
62a32a22a7 don't try to associate with widgets.
it's not needed for global shortcuts, and it wouldn't work that way for local shortcuts anyways.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=815532
2008-06-02 05:43:05 +00:00
Aaron J. Seigo
b228fb7c49 save shortcut settings
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=815055
2008-06-01 03:03:43 +00:00