Commit Graph

2040 Commits

Author SHA1 Message Date
Marco Martin
48f9257fb1 not hasElementPrefix(prefix) works also when prefix is empty
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805339
2008-05-08 09:12:04 +00:00
Chani Armitage
2a6a5fa6db :%s/NotImmutable/Mutable/g
because double negatives hurt my brain.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805296
2008-05-08 04:26:52 +00:00
Aaron J. Seigo
57cf4099c8 we will need a setId after all
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805235
2008-05-07 22:27:51 +00:00
Aaron J. Seigo
c85cac84df needed to resolve conflicts before committing =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805123
2008-05-07 16:33:10 +00:00
Script Kiddy
4339202638 SVN_SILENT made messages (.desktop file, second try)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804910
2008-05-07 04:35:50 +00:00
Aaron J. Seigo
276b012adf that one little change removes 90% of updates.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804801
2008-05-06 22:42:01 +00:00
André Wöbbeking
307e1bdb59 -pedantic
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804755
2008-05-06 21:25:51 +00:00
Aaron J. Seigo
498a59f479 * re-enable the scripting support
* pepper with (commented out) debug that was useful in figuring out what wasn't working with all these changes

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804740
2008-05-06 20:49:24 +00:00
Aaron J. Seigo
6ea602b848 make RunnerManager a friend so we can do the happy-scripting-dance again
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804739
2008-05-06 20:48:44 +00:00
Aaron J. Seigo
0d0fe7770d * get rid of the matchesCompleted signal for now; no one is actually using it.
* include the match list with the matchesUpdated signal
* fix some apidox

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804701
2008-05-06 19:52:50 +00:00
Aaron J. Seigo
39a98a8953 can't actually make these protected since subclasses need to get at it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804678
2008-05-06 18:57:46 +00:00
Aaron J. Seigo
e2ec9b03db * get rid of Plasma-RunnerName; use Name and KPluginInfo's pluginName instead
* add AbstractRunner::id()
* add QueryMatch::id()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804670
2008-05-06 18:43:55 +00:00
Gilles Chauvin
08217c3504 A data engine meant to test the Plasma data engine explorer.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804385
2008-05-05 20:45:42 +00:00
Aaron J. Seigo
a7fd1ce868 clean this up a bit
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804345
2008-05-05 18:37:18 +00:00
Script Kiddy
ad1376f069 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803885
2008-05-04 12:26:15 +00:00
Marco Martin
ee2468472c don't try to paint non existent elements
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803865
2008-05-04 11:19:11 +00:00
Marco Martin
e8ebd60879 SVN_SILENT: make it compile with DYNAMIC_SHADOWS on
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803838
2008-05-04 10:17:03 +00:00
Pino Toscano
5df3e2846b Qt includes in public headers needs the QtModule/QClass form
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803730
2008-05-04 06:13:17 +00:00
Chani Armitage
27e34b6579 correct a comment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803703
2008-05-03 23:37:55 +00:00
Marco Martin
899260cc23 use iterators to avoid two searches
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803659
2008-05-03 18:29:06 +00:00
Marco Martin
94517b3f87 a little more deterministic behaviour: Svg::elementSize(elementId)
returns 0,0 for not existing elements: this fixes also some of the panel
funny behaviour

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803651
2008-05-03 17:30:37 +00:00
Marco Martin
c3925a3496 * added new function panelSize() that returns the size of the panel (and
not of the svg)
* some valid pointers checks

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803637
2008-05-03 16:03:44 +00:00
Pino Toscano
b675b000cb include fixup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803625
2008-05-03 14:42:18 +00:00
Sebastian Kügler
f3cf6a2167 Make the digiclock paint into contentsRect, not into geometry()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803608
2008-05-03 13:21:16 +00:00
Jeff Mitchell
ee70465d89 Safety...if createRenderer was never called this will still be zero
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803406
2008-05-02 19:22:07 +00:00
Aaron J. Seigo
f3188fb672 SearchMatch -> QueryMatch
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803385
2008-05-02 18:46:05 +00:00
Aaron J. Seigo
a8647e4ecc SearchTerm -> Query
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803374
2008-05-02 18:17:09 +00:00
Aaron J. Seigo
a329771ad5 symmetry
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803323
2008-05-02 15:12:52 +00:00
Marco Martin
9c588df3bb Added the overloaded function
bool hasElementPrefix(Plasma::Location location) const;

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803268
2008-05-02 13:25:04 +00:00
Marco Martin
b4ee14d44f don't erase the entire cache when updating the sizes of a single panel,
so the cache for multiple items now actually works :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803217
2008-05-02 10:32:47 +00:00
Aaron J. Seigo
916938efae fix unlock mismatch due to detach happening
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803147
2008-05-02 05:31:24 +00:00
Fredrik Höglund
4b05a1b05f Subtract the margins from the contents rect passed to paintInterface().
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803098
2008-05-01 22:39:18 +00:00
Marco Martin
0f1809e9f4 new function bool hasElementPrefix(prefix) that checks if the given
element prefix exists for the loaded svg
and build fix woops

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803066
2008-05-01 20:09:24 +00:00
Marco Martin
5939dfc87c scale the svg elements at the right size in case of stretched borders
and/or
not tiled center element.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803061
2008-05-01 19:51:41 +00:00
Aaron J. Seigo
f3e1fd618f * actually delete the matches on removeAllMatches
* use macros for the locking exercises

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803058
2008-05-01 19:43:22 +00:00
Aaron J. Seigo
f55bbb73f9 SearchContext -> RunnerContext
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803041
2008-05-01 18:40:10 +00:00
Aaron J. Seigo
bbddbccd1b * reset on setSearchTerm
* explicitly init QSharedData in the ctor init list (g++ was warning about it)
* add some docu as to why we still need removeAllMatches

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803039
2008-05-01 18:26:38 +00:00
Aaron J. Seigo
03a452dda1 convenience flag for "all filesystem results"
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803036
2008-05-01 17:56:28 +00:00
Aaron J. Seigo
da4f6c6e72 ws, style fixes, use booleans rather than ints when returning a boolean
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803034
2008-05-01 17:42:34 +00:00
Marco Martin
4c1e5b8e9d New class called PanelController:
is a new QWidget shown when the user clicks on the panel toolbox, it's a
thing that will eventually replace the panel configuration dialog.
at the moment it has an add aplet and remove panel buttons.
it is possible to resize the panel by dragging the upper edge of the
panel controller and in the future will be provided a way to resize the
panel width and changing the position.
at the moment there is the known problem that the resize handle doesn't
work for vertical panel for now.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802932
2008-05-01 09:58:36 +00:00
Marco Martin
6c04d0c3e4 removed getBorderSize(), replaced by PanelSvg::getMargins()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802931
2008-05-01 09:53:09 +00:00
Marco Martin
703b6c2ffa * adds a new convenience method getMargins(&qreal,&qreal,&qreal,&qreal)
to fetch all the four margins at a time
* now applet uses it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802928
2008-05-01 09:49:30 +00:00
Jordi Polo
fa598a779a oops, wrong include file.
Deleted unused variable 


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802919
2008-05-01 09:01:49 +00:00
Jordi Polo
95157e20c4 Big patch with several internal changes to krunner:
-New RunnerManager class, it manages runners at high level 
and gives a simple API for interfaces to use. 
- AbstractRunners gains description, setIgnoredTypes, ignoredTypes methods. 
Now runners can specify what SearchContext::Types they are not going to process.
- SearchContext tries shared data between the original context and any local context.
It doesn't have its own completer no more.
- SearchMatch has a new type of match, CompleterMatch. Instead of using a hard coded 
completer in SearchContext
- Interface class on krunner has its own completer and other changes
done to accomodate the above changes in libplasma.
-A new configuration option blacklist for runnermanager and krunner 
instead of the whitelist of krunner. 


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802903
2008-05-01 07:51:59 +00:00
Aaron J. Seigo
207968b217 resetConfigurationObject()->pimpl
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802892
2008-05-01 03:24:20 +00:00
Aaron J. Seigo
43e6bac986 Plasma::AspectRatioMode, just like Qt::AspectRatioMode. the setter/getter in Applet even used Mode.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802866
2008-04-30 22:13:27 +00:00
Aaron J. Seigo
ef45e56b8c SVN_SILENT: build fix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802865
2008-04-30 22:10:22 +00:00
Aaron J. Seigo
b81b6ad8de split out the private applet classes into a _p.h
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802860
2008-04-30 21:50:43 +00:00
Aaron J. Seigo
212821f611 put ShadowItem in the Plasma namespace
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802858
2008-04-30 21:47:47 +00:00
Davide Bettio
0916889c58 API REVIEW:
* watchForMouseMove() -> registerAsDragHandle() / unregisterDragHandle()
* Added isRegisteredAsDragHandle() (I'm not really sure If it's a good idea to add this method).

ping me if you find better names for registerAsDragHandle() / unregisterDragHandle().

CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802774
2008-04-30 15:04:49 +00:00