Commit Graph

1555 Commits

Author SHA1 Message Date
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
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