Aaron J. Seigo
ce3e58d2b4
be a lot more careful with how we react to theme changes. makes it innexpensive enough to call a bit more randomly (e.g. when compositing changes)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771873
2008-02-07 04:33:57 +00:00
Aaron J. Seigo
76132227a5
delete the cached image in updateSizes, helps for when the Svg emits repaintNeeded; all calls to updateSizes were prefixed with deleting the cached image anyways
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771872
2008-02-07 04:33:02 +00:00
Aaron J. Seigo
72b7c6f393
more safety, allowing anyone delete a layout or call setParent and have the Right Things(tm) happen without anyone's toes getting blown off in the process.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771851
2008-02-07 02:24:19 +00:00
Chani Armitage
613d5ef850
it's not safe to delete the layout directly
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771845
2008-02-07 01:58:48 +00:00
Chani Armitage
ed47acc7a0
make setting a layout actually safe
...
(reviewed in #plasma)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771825
2008-02-07 00:18:22 +00:00
Aaron J. Seigo
2c264def9d
use SvgPanel. nice way to get rid of 80+ lines of duplicate code
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771744
2008-02-06 21:07:16 +00:00
Aaron J. Seigo
8cd7f80dea
* add the repaintNeeded signal to SvgPanel for those who need that (e.g. krunner)
...
* make non-ContentAtOrigin painting work
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771738
2008-02-06 20:53:14 +00:00
Aaron J. Seigo
c6e9b562e4
* paint non-ContentAtOrigin properly
...
* get stretching right (hint: we don't pre-stretch ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771712
2008-02-06 19:46:36 +00:00
Aaron J. Seigo
b2480a105a
* more readable flag names
...
* add a DrawAllBorders for brevity's sake
* add operators for the border flags
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771707
2008-02-06 19:24:48 +00:00
Aaron J. Seigo
7f3aea19ff
move MarginEdge to the Plasma namespace to avoid coupling to the layout stuff in innapropriate places
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771704
2008-02-06 19:12:21 +00:00
Aaron J. Seigo
070781d480
build svpanel into the lib, make applet use it
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771693
2008-02-06 18:50:25 +00:00
Aaron J. Seigo
82546c250b
dptr-ify
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771692
2008-02-06 18:49:14 +00:00
Aaron J. Seigo
3af4b66dca
tired of the "expect crashes" output all the time, i just fixed it properly by deleting the existing layout. since the layout makes itself the parent of the child layout and already deletes it in the dtor, this only makes sense. hello greater safety and goodbye scary console output ;)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771686
2008-02-06 18:16:11 +00:00
Aaron J. Seigo
fb7e6541ad
move this to libplasma for final integration work
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771665
2008-02-06 17:16:45 +00:00
Aaron J. Seigo
eed057c39a
move this over to where it will end up and is easier to test
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771659
2008-02-06 16:51:07 +00:00
Aaron J. Seigo
9244e126f2
seems that priority has taken over what tier was intended for; easy to add back if necessary / desired, but i think that the idea of chaining really needs more expresivity than that
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771458
2008-02-06 02:51:21 +00:00
Aaron J. Seigo
20c5ddf8e7
return the right path for file()
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771450
2008-02-06 01:26:18 +00:00
Aaron J. Seigo
462c52af51
be a little more paranoid about setting the info.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771449
2008-02-06 01:25:59 +00:00
Aaron J. Seigo
476eb885cb
return on emptying the tooltip
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771375
2008-02-05 20:10:53 +00:00
Aaron J. Seigo
c7779d983e
helps to make it an actual slot, no?
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771348
2008-02-05 19:17:50 +00:00
Aaron J. Seigo
0609ee5e38
Injects the containment's context menu into the widget's. This allows, e.g. "Configure Panel" to show up in the context menu.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771315
2008-02-05 18:27:01 +00:00
Aaron J. Seigo
9aa26c5e35
* set the palette on theme changes only
...
* don't grab the data until actually shown
* show the right size and position when we are showing the tip
* allow the tooltip to figure out it's size with the help of the widget (it knows when to do this, the widget only knows how)
* don't show the tip on every item's mouse over, respect the small timeout
* only create a ToolTipData struct for those items that actually use it (memory savings as well as makes the check for showing the tip a lot simpler)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771314
2008-02-05 18:26:17 +00:00
Bill Egert
9560513680
SVN_SILENT:
...
- Removed unused #includes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771050
2008-02-05 03:48:07 +00:00
Sebastian Kügler
886eb24647
Ooops. Didn't mean to sneak this in.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771018
2008-02-05 00:13:37 +00:00
Sebastian Kügler
576a655b05
Tooltip uses Plasma:Theme now ... and turns black here.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771014
2008-02-05 00:01:15 +00:00
Aaron J. Seigo
abd8d94daa
while getting the size wrong is bad, flickering like crazy is even worse =)
...
resize after the contents have been set to get a rational size out of the widget.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770966
2008-02-04 20:59:39 +00:00
Aaron J. Seigo
e3c3b847f6
provide a bigLock() for runners to use whenever accessing common but non-reentrant api (e.g. most everything in kdelibs ;)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770952
2008-02-04 20:28:09 +00:00
Aaron J. Seigo
92304b6d2c
* fix contentSizeHint for square applets when the maximum size is smaller than the resulting size of the widget (resulting in non-square applets)
...
* move the (broken) size constraining commit to flushUpdatedConstraints, not why it is broken and add a comment into constraintsUpdated() noting why code should never be added to that method directly (and what to do instead)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770949
2008-02-04 20:09:45 +00:00
Anne-Marie Mahfouf
782bcbce51
a few typos
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770891
2008-02-04 16:26:49 +00:00
Petri Damstén
8a15088888
Scripting update.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770587
2008-02-04 04:41:40 +00:00
Marco Martin
dfb3854a10
Sets on Applet::constraintsUpdated() the maximum content width for horizontal panels and the maximum content height for vertical panels as IconSize(KIconLoader::Panel)
...
this makes vertical larger panels actually usable.
Some notes:
-it works only for applets that aren't forced to square
-in horizontal panels only for applets that don't have expandingDirections()=Qt::Horizontal
-in vertical panels only for applets that don't have expandingDirections()=Qt::Vertical
On other news the kickoff applets are modified to use this new feature
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770423
2008-02-03 18:21:01 +00:00
Riccardo Iaconelli
2434a31f69
Reset tooltip's size when changing text.
...
BUG: 157059
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770405
2008-02-03 16:57:00 +00:00
Riccardo Iaconelli
08771bb763
Align to grid, and slightly smaller frame
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770404
2008-02-03 16:56:53 +00:00
Chani Armitage
be64c5939d
enable dragging from desktop to panel
...
note: there's no visual feedback before you release the mouse button, and there's no way to drag back to the desktop.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770333
2008-02-03 13:09:21 +00:00
Bill Egert
29215641ef
Reveiwed from http://matt.rogers.name/r/42/
...
Set windowSize only from readWindowSize()
It looks like that function has some logic to determine what windowSize should really be.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770330
2008-02-03 13:06:34 +00:00
Aaron J. Seigo
a6b4d53d83
fix applet detection, don't mistake a containment for an applet in the context menu code path
...
BUG:156596
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770208
2008-02-03 00:51:15 +00:00
Aaron J. Seigo
7ea2da7eeb
proper offsets (krunnerdialog should really be Plasma::Dialog, but that means making Plasma::Dialog an actual .. well .. dialog =)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768976
2008-01-31 03:26:39 +00:00
Aaron J. Seigo
fc8079a99e
++apidox;
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768975
2008-01-31 03:25:19 +00:00
Aaron J. Seigo
55eb91140b
some improvements as suggested by mattr via review-board. boy, what a neat tool
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768467
2008-01-30 06:17:13 +00:00
Aaron J. Seigo
099785fbdc
let's see if serializing (via a mutex) access to kservicetypetrader helps with those kservicetypetrader related crashes i'm seeing constantly go away
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768454
2008-01-30 03:41:36 +00:00
Aaron J. Seigo
9df86adbd2
* hide items that are disabled while they are shown
...
* enforce a 100ms delay between showing/hiding which helps reduce the jitters
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768453
2008-01-30 03:40:17 +00:00
Marco Martin
c395cc03bb
added the function setExpandingBoth(bool) that makes the layout to expand in both directions, useful for instance if you put an horizontal layout into a vertical layout
...
oh, and fixed a typo in a comment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=767568
2008-01-28 11:55:56 +00:00
Script Kiddy
e3bddd25de
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766695
2008-01-26 13:10:45 +00:00
Marco Martin
fb5ad56937
some tweaks in popupPosition()
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766629
2008-01-26 12:37:17 +00:00
Marco Martin
6b649e560c
operator precedence issue
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766361
2008-01-25 17:16:38 +00:00
Benjamin Reed
e2369b2e68
allow building libplasma by itself
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766358
2008-01-25 17:10:58 +00:00
Benjamin Reed
e94de707ee
do x11 stuff only on x11
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766344
2008-01-25 16:24:40 +00:00
Riccardo Iaconelli
c99bda9dde
Remove useless variable
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766292
2008-01-25 14:53:12 +00:00
Aaron J. Seigo
67aae7bf6e
don't produce errors if our content is empty
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766098
2008-01-25 08:31:32 +00:00
Aaron J. Seigo
74a5773d79
use the Theme::*Color methods. another place we really need Plasma::ThemeColor, apparently.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766075
2008-01-25 07:36:33 +00:00