Aaron J. Seigo
507a6f02a0
rearrange the initialization code of the engines a bit, moving more out of the manager class, and calling init immediately. applets shouldn't be connecting to them in their ctor, so this should have minimal (or even zero) effect on start up while ensuring that init gets called first no matter what
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779042
2008-02-25 11:24:37 +00:00
Zack Rusin
bc5accafd2
Fix a crash on loading of not existing engines.
...
r=aseigo (r/207/)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778956
2008-02-25 01:19:07 +00:00
Petri Damstén
0fb0b0f613
remove const to match AbstractRunner
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778873
2008-02-24 19:57:50 +00:00
Aaron J. Seigo
bfbea8235d
this isn't an AbstractRunner subclass
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778836
2008-02-24 18:23:21 +00:00
Riccardo Iaconelli
8680797130
Make the desktop toolbox ignore zoom-ins and zoom-outs,
...
and therefore always remain visible and clickable.
Fix celeste's "bug". :-)
Shall it always remain on the top-right corner? I'll let
the panel-devel folks decide.
Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>
CCMAIL: panel-devel@kde.org
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778736
2008-02-24 13:35:30 +00:00
Aaron J. Seigo
4b193edf0e
don't make a submenu if there are no items in the top menu
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778473
2008-02-23 18:02:42 +00:00
Aaron J. Seigo
2b68bb49ee
This lets the View have a desktop set to it and when drawing a Containment we pass in the effective desktop # being currently painted. The Containment is free to ignore this information, or it can try and cast the passed in options to a Containment::StyleOption to retrieve this information. This should be used for any per-desktop painting that happens (e.g. separate background per desktop) and opens the way to having View-per-Desktop for better composite manager support (think: desktop grid or cube where more than one desktop is simultaneously visible)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778239
2008-02-22 23:41:44 +00:00
Aaron J. Seigo
ee26284ec3
fix maximum size in lieu of the WoC porting
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778192
2008-02-22 19:40:46 +00:00
Aaron J. Seigo
ac2b7ba7a5
colourization support for svgs. patch by Andrew Lake.
...
CCMAIL:jamboarder@yahoo.com
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777967
2008-02-22 01:05:11 +00:00
Marco Martin
b1a362b67f
transplant of sceneEventFilter and mouseMoveEvent from the icon applet to the applet class, this will cause a lot less duplication.
...
if you want to make a widget draggable around just call the new function
void watchForMouseMove(QGraphicsItem * watched, bool watch)
also, some style fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777705
2008-02-21 10:26:40 +00:00
Bill Egert
74e2ce31ff
Make some better decisions.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777237
2008-02-20 03:00:26 +00:00
Aaron J. Seigo
ee91508f3c
* add subtext() so we can do some fancier painting of the results a bit easier
...
* remove some API that seemed well intentioned at the time, but has proven itself not useful
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777009
2008-02-19 11:24:42 +00:00
Aaron J. Seigo
756041badd
const ref fixes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776990
2008-02-19 09:19:02 +00:00
Aaron J. Seigo
b19eb3eaff
handful more of krazy fixes and i'm done for the night
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776988
2008-02-19 09:12:34 +00:00
Aaron J. Seigo
f1b334f9a3
explicit
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776979
2008-02-19 08:32:32 +00:00
Aaron J. Seigo
2aa51ef338
well that was an easy fix: make scripts work in apps !plasma, e.g. plasmoidviewer
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776978
2008-02-19 08:31:49 +00:00
Aaron J. Seigo
b6767e1e39
we need a non-const object to lock, may as well make it a pointer as well since that's the common usage
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776952
2008-02-19 06:27:31 +00:00
Aaron J. Seigo
2e07ca5f64
remove all the cached pixmaps when the cache is cleared.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776939
2008-02-19 04:28:17 +00:00
Aaron J. Seigo
2954087e8d
* eliminate the three search lists and have just one
...
* remove add*Match since they broke the pattern of usage (who owns the match? do you have to add it again? etc..)
* add addMatch to compliment addMatches for those runners that just ever have one match
* make the default SearchMatch type Possible rather than Exact (making Exact and Informational the exceptions, which matches usage patterns)
* const'ify the API a bit better
generally more performant, lower memory usage and clearer API having seen what is beign done in the runners. also makes it a bit easier to turn the Matches into a qt model
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776931
2008-02-19 03:59:21 +00:00
Rafael Fernández López
2eae59175c
Make the applet browser be faster when resizing. Still being slower than normal dialogs, we will have to do more insight into this issue.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776807
2008-02-18 20:55:50 +00:00
Aaron J. Seigo
777b8083f8
* moves the idea of margins up to LayoutItem, allowing any LayoutItem to have a margin
...
* moves the idea of the size of the item up to LayoutItem, as both Widget and Layout implemented it separately
* provides a way in LayoutItem to adjust a rect within an item to its margins (that is what LayoutItem::topLeft() is there for)
* fix several bugs, both painting and sizing, in LineEdit
* Applet sets margins now based on the existence of setDrawBackground
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776380
2008-02-17 23:02:46 +00:00
Aaron J. Seigo
b01fa6947c
don't add items when we're immutable, unless delayInit is called (e.g. startup or loading)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776378
2008-02-17 23:02:09 +00:00
Aaron J. Seigo
d604a06e6b
this doesn't smooth scroll so much as it scrolls one pixel at a time... smooth scroll would be nice, though. what was the intention here, Rafael?
...
CCMAIL:ereslibre@kde.org
BUG:157912
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776051
2008-02-17 09:23:19 +00:00
Benjamin K. Stuhl
f78ab80d19
Call QWidget::resizeEvent() so that we get our layout recalculated. This
...
fixes the previews showing up in the wrong place.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776041
2008-02-17 07:47:52 +00:00
Marco Martin
0cfd49fb26
ok, not painterMask, maskPainter, woops :)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775827
2008-02-16 18:47:46 +00:00
Marco Martin
1403f2d007
painter => painterMask: more descriptive name
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775826
2008-02-16 18:43:25 +00:00
Marco Martin
bd80f41ae2
fixing a rendering problem with Qt>=4.4
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775816
2008-02-16 18:07:28 +00:00
Marco Martin
3f937278e1
Fix IconAction animation
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775286
2008-02-15 11:39:10 +00:00
Aaron J. Seigo
c1d3f89a8b
if our name changes, then save it.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775276
2008-02-15 10:47:56 +00:00
Aaron J. Seigo
cf89bd58d1
make it possible to get at the package structures using Theme::packageStructure() and Applet::packageStructure() without having to export the package definitions from the library itself.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775272
2008-02-15 10:35:00 +00:00
Andre Duffeck
322faacbe7
Make the SvgPanel position-aware
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775234
2008-02-15 09:04:12 +00:00
Andreas Aardal Hanssen
7516d7ea30
Introduce QGraphicsItem::CacheMode in place of Widget::CachePaintMode.
...
This move was planned from the beginning; Widget::CachePaintMode was a
backport of the same feature in Qt 4.4. OK'ed by aseigo after post on
panel-devel. I've left CachePaintMode in there (it simply redirects to
CacheMode); I don't know if it's OK to remove these APIs or not (and
it's not monday anyway).
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775198
2008-02-15 06:51:37 +00:00
Aaron J. Seigo
022875b1d5
let the world know our matches have changed when they, well, change. always.
...
(neat when optimizations reveal bugs: previously when we were always setting the match lists even when we got empty lists, this was masking the fact that we were never updating the matches when the search context was reset ... so there was always a period of time when there were stale matches pointing off into outerspace in the UI. and of course, if no engines returned anything .. booM! but once we were not responding to empty match lists this problem became very visible.)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775180
2008-02-15 03:57:54 +00:00
Aaron J. Seigo
78b83142ad
consistent signals at the end of all animations and ties QObject lifespan (when available) to all the animations including elementAnimation. Also prevents multiple connections to the destroyed slots (harmless, just cycle wasting) and mutes some remaining debug statements.
...
RB:131
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775010
2008-02-14 17:09:00 +00:00
Script Kiddy
87018e9b9e
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774936
2008-02-14 13:04:07 +00:00
Laurent Montel
69a2c09baf
Add missing camelcase include
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774849
2008-02-14 08:23:13 +00:00
Aaron J. Seigo
041128e63f
install svgpanel header
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774802
2008-02-14 01:35:50 +00:00
Script Kiddy
a0b4250715
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774640
2008-02-13 18:39:24 +00:00
Aaron J. Seigo
1e11418a8d
code improvements, ala chani
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774434
2008-02-13 09:33:29 +00:00
Aaron J. Seigo
fa490e10a8
watch for object destruction. right now we only do this if the QGrahpicsItem itself is a QObject. however, the structs now hold onto a QObject* so this opens the door to attaching an animation to the lifespan of an arbitrary QObject. could be quite useful in future.
...
BUG:157647
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774360
2008-02-13 04:06:41 +00:00
Aaron J. Seigo
713ef55b25
don't hold onto applet pointers in a meaningful way, it's just too dangerous
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774358
2008-02-13 04:03:17 +00:00
Aaron J. Seigo
7bce16a810
don't show the rubber band: it doesn't do anything these days. if/when we get multiple selection, turn it back on.
...
BUG:156740,157498
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774352
2008-02-13 02:45:45 +00:00
Aaron J. Seigo
1b96f05721
allow reseting the containment
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774348
2008-02-13 02:30:07 +00:00
Aaron J. Seigo
134ccdec7c
* allow 2 actions from the containment before creating a separate menu
...
* let the applet know when all things are up and running, just as with containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774347
2008-02-13 02:29:45 +00:00
Aaron J. Seigo
8472ef7233
raise the applet on clicking of the handle
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774339
2008-02-13 01:53:27 +00:00
Aaron J. Seigo
1637053a9b
let the applet restore itself
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774338
2008-02-13 01:52:45 +00:00
Aaron J. Seigo
1f5e98edec
* allow restoring from applet itself (something i've wanted to to do for a while, have it all in corona isn't a good idea)
...
* restore lock status
* save/restore zorder
* allow "raising" and applet (increase zorder above all others)
* some layout fixes for next monday's big layout fix patch
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774337
2008-02-13 01:52:02 +00:00
Aaron J. Seigo
d03a381595
various geometry fixes (though somewhat depends on monday's big layout fix commit)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774336
2008-02-13 01:48:18 +00:00
Aaron J. Seigo
a2c89abc03
put this unreasonably high up so that we really limit the possibility of applets running into it
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774333
2008-02-13 01:40:02 +00:00
Aaron J. Seigo
90c26ae4ad
update package definition for svg themes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774332
2008-02-13 01:39:06 +00:00