Aaron J. Seigo
c7fe098480
avoid flicker
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773744
2008-02-11 17:35:21 +00:00
Aaron J. Seigo
a438b53373
die, setSize, die, and all the problems you represent. silly duplicated, not-like-qwidget API anyways. ;)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773505
2008-02-11 08:24:09 +00:00
Aaron J. Seigo
e83f329de0
the proper fix for stupid compilers *sigh* setSize(int, int) isn't virtual in Widget, but that doesn't matter in this case at all.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773493
2008-02-11 07:56:53 +00:00
Aaron J. Seigo
eed0410c56
* make setSize virtual as well since it sets d->size internally, so Applet needs to intercept that call
...
* remove some dead code in widgets.cpp
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773475
2008-02-11 06:11:13 +00:00
Aaron J. Seigo
eb5e0658df
SVN_SILENT: silly "make it seem faster" obfuscatory code like this just sets my teeth on edge =) clarity is next to goddessliness
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773474
2008-02-11 06:07:14 +00:00
Aaron J. Seigo
123623d675
We make a thread-local copy of the SearchContext for each Runner. As such, there is no need to do locking on the thread-local copy. This patch also adds assertions on the non-thread safe methods (e.g. addExactMatch) which are used from thread-local copies, but which should never be used in the shared version.
...
Also adds a addMatchesTo(SearchContext) which encapsulates this code and makes it safe to delete matches on object deletion, preventing possible memory leaks on SearchContext destruction.
Finally, don't copy all the SearchMatches already registered for each thread-local copy as that's just unused and unecessary overhead.
BIC, though SC.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773473
2008-02-11 06:04:20 +00:00
Chani Armitage
1c4bdb9408
don't set d->size directly; this fixes the weird issues with setting minimum size before contentsize and makes sure the svg is updated
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773472
2008-02-11 05:53:19 +00:00
Aaron J. Seigo
9335a50776
Ensure that LayoutItem::setParent resets the parents layout if we are currently its layout and release managed items.
...
RB:89
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773471
2008-02-11 05:50:47 +00:00
Bill Egert
a7ccf41c3e
- fix displaying at min height.
...
- fix displaying odd number items on 1 row.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773456
2008-02-11 03:22:41 +00:00
Bill Egert
77412f9c5b
Fill unused space on bottom row.
...
Thanks Marco Martin
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773435
2008-02-11 01:32:00 +00:00
Bill Egert
783872cc77
Fixed what I think are the last of the bugs with laying items out properly within their rect.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773059
2008-02-10 01:59:56 +00:00
Bill Egert
8917da5723
-clean up some coding standards
...
-const up some variables
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772901
2008-02-09 17:40:07 +00:00
Bill Egert
f6be272915
-convert some commented out debug to kDebug()
...
-const up some variables
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772887
2008-02-09 17:10:40 +00:00
Aaron J. Seigo
4ebb5fcaeb
automatic rate limiting of runners: mark ill performing runners as slow, but let speed runners marked as slow back into the main thread pool.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772741
2008-02-09 14:59:43 +00:00
Bill Egert
9906e6746d
Top Align...let items be as large as they can be.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772740
2008-02-09 14:56:04 +00:00
Bill Egert
cc8024c991
Re-work of the relayout() function so that it actually works.
...
screenshot of using flowlayout with tasks applet: http://matt.rogers.name/r/96/s/6/
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772729
2008-02-09 14:29:03 +00:00
Aaron J. Seigo
d99543abb8
lower the default relevance to .7, giving some headroom
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772586
2008-02-09 04:55:43 +00:00
Aaron J. Seigo
cf6a9e6cb9
add support for locolor support in themes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772585
2008-02-09 04:54:43 +00:00
Chani Armitage
75c4518154
SVN_SILENT:
...
less noise.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772576
2008-02-09 03:41:57 +00:00
Marco Martin
2f6a8de658
recalculate all the margin sizes when the plasma theme changes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772465
2008-02-08 20:50:55 +00:00
Aaron J. Seigo
5f0afdd61c
* prevent potential crash introduced with scripting support (non-init'd AbstractRunner*)
...
* get the args right
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772449
2008-02-08 19:21:25 +00:00
Aaron J. Seigo
293a4dc07d
save a write lock and return false (as we don't actually add anything) on addMatches with null items
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772448
2008-02-08 19:10:20 +00:00
Marco Martin
253f892b99
Now tooltips are svg-themed, the svg background for tooltips can be found on desktoptheme/widgets/tooltip.svg and when compositing is disabled desktoptheme/opaque/widgets/tooltip.svg is used
...
at the moment the svgs are the usual ones from the applet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772132
2008-02-07 21:24:20 +00:00
Aaron J. Seigo
2a051a9315
make Theme react to compositing changes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771968
2008-02-07 10:54:38 +00:00
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