Commit Graph

1557 Commits

Author SHA1 Message Date
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
Aaron J. Seigo
5e39408689 * don't flicker the handle when we leave before its started showing
* take the z value of the applet to preserve stacking order

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774328
2008-02-13 00:49:07 +00:00
Aaron J. Seigo
e27b0ca4d0 ok, second try based on tzander's response. i think this should work better and be a nice come back from lunch toy for him to play/test with.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773999
2008-02-12 10:07:45 +00:00
Aaron J. Seigo
5b394a752f make popup location calcs xinerama aware. i bet this even closes some BRs. i'm too tired to look for them though. =P
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773980
2008-02-12 09:41:49 +00:00
Andre Duffeck
70b12916b2 react to changes of Plasma::Theme
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773942
2008-02-12 07:33:07 +00:00
Andre Duffeck
c42f0593ba Fix broken usage of Plasma::Phase
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773933
2008-02-12 05:52:49 +00:00
Andre Duffeck
6961810f6a Fix crash on closing applets.
BUG:157617

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773932
2008-02-12 05:51:43 +00:00
Aaron J. Seigo
899202d2fb BIC Monday: slight change in the way we handle saving/loading of applets. it no longer sets the internal config name. makes importing/exporting snippets of applets easier, and it also prevents plasmoidviewer from clobbering plasma settings
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773847
2008-02-11 21:43:09 +00:00
Aaron J. Seigo
22c8b77b34 this is not a Plasma::Widget. now styling is back. looks as nasty as ever, though.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773813
2008-02-11 20:50:13 +00:00
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