Commit Graph

2909 Commits

Author SHA1 Message Date
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
4647b01da4 coding style fixes.
that's enough for now.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870214
2008-10-12 01:46:21 +00:00
Allen Winter
e2c26f0a90 coding style fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870212
2008-10-12 01:39:10 +00:00
Allen Winter
eae853582b coding style fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870205
2008-10-12 01:31:54 +00:00
Allen Winter
a320742114 coding style fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870188
2008-10-12 00:18:08 +00:00
Aaron J. Seigo
fbd8bc850e change when we call setName when loaded as a plugin
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870187
2008-10-12 00:05:39 +00:00
Aaron J. Seigo
f0b3371d1a in the plugin case, setName will trigger the ops registration
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870178
2008-10-11 23:54:51 +00:00
Aaron J. Seigo
c9937807b4 * always check the config object before accessing it
* don't bother trying to register the ops in the default ctor as it will always fail

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870177
2008-10-11 23:53:52 +00:00
Allen Winter
3674a94a99 more coding style fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870169
2008-10-11 23:28:20 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Aaron J. Seigo
254d4c7107 update dox to reflext api changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870159
2008-10-11 22:36:32 +00:00
Chani Armitage
0d99586a04 removed a function that shouldn't be there. we must *never* call setParent on that dialog.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870095
2008-10-11 18:14:45 +00:00
Rob Scheepmaker
51e03dc5e3 Add return to source icon the the plasma theme, and use this in extender items.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870089
2008-10-11 17:56:07 +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
Marco Martin
d96cc1d739 actually resize the dialog in adjustView
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869904
2008-10-11 12:01:37 +00:00
Aaron J. Seigo
4a63440530 when manually adding sources ... connect them to the engine!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869754
2008-10-09 23:23:30 +00:00
Aaron J. Seigo
eff56fa372 this dialog is meant to always be borderless
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869680
2008-10-09 18:48:53 +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
1a196323d2 correctly resize the graphicswidget when the dialog corners are dragged
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869267
2008-10-08 16:47:29 +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
Script Kiddy
7cb8380ff4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869163
2008-10-08 11:42:38 +00:00
Rob Scheepmaker
3824adb381 Allow theming the background of ExtenderItems, and react to theme changes. Capabilities still
have to be improved to make it look like the lovely pinheiro mockup.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868933
2008-10-07 16:15:33 +00:00
Alexis Ménard
f49d5e8b14 make the tooltip popup with the same delay than Qt
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868859
2008-10-07 11:06:15 +00:00
Script Kiddy
748a2b24c7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868492
2008-10-06 11:01:23 +00:00
Aaron J. Seigo
1f95d86db4 * add DesktopFont
* provide button colors

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868328
2008-10-06 04:10:34 +00:00
Marco Martin
8a1d5fc216 resize the graphicswidget when the dialog has been manually resized,
still some problems to track down (for some applets some other code somewhere resizes
back to the original size)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868204
2008-10-05 17:58:14 +00:00
Marco Martin
0dc100928d style the tabbar scroll buttons with plasma colors
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868202
2008-10-05 17:53:37 +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
Script Kiddy
f7b31b3372 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868040
2008-10-05 10:49:46 +00:00
Andrew Lake
9b312459be renderers hash table keys created with path but erased with themePath.
Corrects memory leak on theme change.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867965
2008-10-05 04:47:25 +00:00
Konstantin Heil
a99aee5e8d Scrolling on desktop travels the virtual desktop in reverge direction than scrolling on the pager. Because scolling on desktop was a little bit confusing: changed scoll direction.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867906
2008-10-04 22:09:15 +00:00
Fredrik Höglund
a3c564c129 Fix a valgrind warning:
Conditional jump or move depends on uninitialised value(s)
   at 0x4137DA3: Plasma::Dialog::mouseMoveEvent(QMouseEvent*) (dialog.cpp:201)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867837
2008-10-04 15:56:56 +00:00
Fredrik Höglund
5da0fde1b3 Fix the crash on exit bug in PopupApplet.
The Plasma::Dialog is initially created without a parent, but can later be
reparented to the Plasma::View. The problem with this is that when plasma
quits, the view and its children are deleted before the scene and its children.
So when the PopupApplet destructor is invoked, it tries to delete what is now
a dangling pointer.

Solve this problem by wrapping the dialog pointer in a QPointer.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867830
2008-10-04 15:36:09 +00:00
André Wöbbeking
78e744ca5d it's mainconfigui not mainconfiggui
I don't know, why mainconfiggui is right in read()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867723
2008-10-04 11:00:13 +00:00
Marco Martin
b765b0c711 always be a popup when the icon is null
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867521
2008-10-03 18:01:55 +00:00
Fredrik Höglund
48b41f3a85 Creating a KColorScheme is expensive, so let's not do that every time
someone calls Theme::color().

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867517
2008-10-03 17:44:04 +00:00
Aaron J. Seigo
22919a4b27 * remove an unused member (d->layout)
* try harder to create a layout when we might need one
* remove the "setting a default icon" stuff in the ctor; it was misguided and really just covering up for a bug in popupConstraintsEvent
* fix said bug in popupConstraintsEvent (don't check for icon before laying things out in non-vert/horiz formfactors)
* don't put an event filter on the graphics item. i have no idea what the idea behind that was (hooray for no comments! =), perhaps Richard S. can enlighten us as it was one of his commits ..

CCMAIL:r.scheepmaker@student.utwente.nl

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867506
2008-10-03 17:20:01 +00:00
Aaron J. Seigo
4bc96a8763 applet can never be null
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867467
2008-10-03 15:14:11 +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
162fc57e8a don't bother the service plugin if the operation doesn't exist; no different in practice, but moves error handling more central
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867109
2008-10-02 20:12:32 +00:00
Marco Martin
5c45bf09e8 implement a sizehint that permits to use the frame just as a simple
header (i.e when empty return the height of the title font+margins)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867107
2008-10-02 20:07:49 +00:00
Marco Martin
1f7a0f7560 combobox uses PaintUtils::transition
some cleanups in PushButton

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867098
2008-10-02 19:39:00 +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
3365bc1d94 make it clear why you SHOULDN'T be using this method
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866863
2008-10-02 06:08:31 +00:00
Aaron J. Seigo
7f134e04fe update when the theme does
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866855
2008-10-02 03:55:01 +00:00
Sebastian Kügler
5c7e5ab2e3 Respect Plasma's colour scheme
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866848
2008-10-02 03:36:11 +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
2f87c469f7 the contents rect check is a cheap cop out mostly, but it works a lot. when it doesn't, also make sure we aren't dealing with an applets whose shape is the bounding rect
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866793
2008-10-01 22:26:43 +00:00
Alessandro Diaferia
fbc68c415f convenience method inControlArea()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866786
2008-10-01 21:53:38 +00:00
Marco Martin
e0bd985045 use PaintUtils::transition
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866781
2008-10-01 21:40:38 +00:00