Commit Graph

38 Commits

Author SHA1 Message Date
Marco Martin
d0ba4e77ec Api change:
Plasma::Svg(imagePath, parent) -> Plasma::Svg(parent)  and
Plasma::PanelSvg(imagePath, parent) -> Plasma::PanelSvg(parent)
updated as needed every class that was using Svg or PanelSvg

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800143
2008-04-23 13:07:41 +00:00
Marco Martin
419277a044 finished the Plasma::Svg api change
ContentType now is simply a bool and related methods now are
containsMultipleImages() and setContainsMultipleImages()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797998
2008-04-17 09:09:48 +00:00
Pino Toscano
b4bdfcd9ec extra ';'
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797870
2008-04-16 22:01:51 +00:00
Marco Martin
f522c38eeb file() and setFile() -> imagePath() and setImagePath()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797772
2008-04-16 20:48:53 +00:00
Marco Martin
b08e8ae782 themeChanged() and colorsChanged() now are Q_PRIVATE_SLOTS
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797745
2008-04-16 20:30:18 +00:00
Marco Martin
d07a60c581 Rename SvnPanel into PanelSvg and update accordingly who is using that,
as discussed in api reviews

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797663
2008-04-16 17:23:58 +00:00
Marco Martin
4a5df9c733 begin of api changes, as in
http://techbase.kde.org/index.php?title=Projects/Plasma/Tokamak1#Plasma::Svg
elementRect() returns a QRectF
elementExisits() became hasElement()
matrixForElement is only private


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797610
2008-04-16 14:31:43 +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
Shawn Starr
9038914bd6 Allow optional svg image since we can now set the svg file afterwards
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750671
2007-12-19 20:59:39 +00:00
Shawn Starr
5e77ba9e70 Add some convenience methods file(), to get the svg image path and setFile, to set the image path
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750651
2007-12-19 20:29:22 +00:00
Aaron J. Seigo
b7ef853123 stub in elementAtPoint; it doesn't actually do anything right now pending changes to QSvgRenderer, but the code is all there ready to go
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738069
2007-11-17 21:34:28 +00:00
Aaron J. Seigo
db4a7ebe61 copyright cleanups:
* Copyright (C) -> Copyright
* add "or later" clause to files that i have the sole copyright on
* add current year (2007) to my copyrights where it was missing

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696946
2007-08-06 11:20:02 +00:00
Leo Franchi
ce090faab8 add matrixForElement(const QString& elementId) const as discussed on panel-devel
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=695665
2007-08-02 16:14:35 +00:00
Aaron J. Seigo
e0616c8c5f elementRect() ... and hopefully i got the math right because i haven't tested it at all. for lfranchi, with love.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693068
2007-07-26 23:07:26 +00:00
Aaron J. Seigo
201afe2033 * debug output when an absolute path is provided and the file doesn't exist
* provide an isValid() method

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691142
2007-07-23 00:50:10 +00:00
Aaron J. Seigo
0314b60615 SVN_SILENT: --tabs
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691039
2007-07-22 20:00:13 +00:00
Richard J. Moore
1822d55bbb Make the paint methods invokable
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690995
2007-07-22 17:41:47 +00:00
Richard J. Moore
23c1f996d2 First steps towards scriptability
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690375
2007-07-20 21:00:11 +00:00
Aaron J. Seigo
13edb00b8e note which is the default in the apidox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=689292
2007-07-18 04:58:27 +00:00
Laurent Montel
65be58f69e Remove not necessary "class classname;"
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671233
2007-06-04 08:24:29 +00:00
Aaron J. Seigo
bbaebc6b1b move workspace/plasma/lib to workspace/lib/plasma so that we can do:
#include <plasma/foo.h>

in headers in libplasma. this is important so that they can be used post-install by third party plugins, apps, etc.

also, changed Applet::loadDataEngine to just Applet::dataEngine and make it actually return the data engine; move the applets to using it. safer and fewer LoC

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=670850
2007-06-02 17:29:39 +00:00
Aaron J. Seigo
8c8bf30c62 make it really clear what i was thinking, as apparently people can't see inside my head. ;)
"what do you mean you can't read my mind?"

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669648
2007-05-29 22:23:37 +00:00
Aaron J. Seigo
c321d2f03e introduce ContentType; this lets us have svgs which are a single image which may be made up of a number of elements (in which case, the elements need to be scaled from the size on the svg when painted to have the right size) or made up of a number of discreet images each of which is already the right size (think: a deck of cards)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669616
2007-05-29 20:27:51 +00:00
Aaron J. Seigo
3d51733018 * more api documentation
* changes to reflect api movement

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668671
2007-05-27 08:01:31 +00:00
Matt Williams
ad5351fa3f A few apidocs updates
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667159
2007-05-22 01:30:03 +00:00
Aaron J. Seigo
29bc7ed49e i'll take the red pill.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667153
2007-05-22 00:20:52 +00:00
Matt Williams
dfb58b44c1 EBN Fixes
* Include own header file first
* Make d-pointer const
* Use references-to-const

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667001
2007-05-21 14:28:03 +00:00
Matt Williams
cb00c95058 Small changes which were niggling at me :)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666833
2007-05-21 00:30:36 +00:00
David Faure
5f1db42cca should be const
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666821
2007-05-20 23:31:44 +00:00
Aaron J. Seigo
cb2e8721a5 * Plasma::Svg::resize() to use the default size of the SVG
* make the clock use that size

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666807
2007-05-20 22:56:38 +00:00
Aaron J. Seigo
f88f9ed076 add a missing bit of obvious api.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666798
2007-05-20 22:39:38 +00:00
Aaron J. Seigo
48db336a07 allow to pass in an alternative matrix to SVG::paint in case you don't want the painter's matrix to be used in rendering the svg; this happens when the Scene has matrix and then the painter is transformed further to adjust that specific painting event. for things like the clock, it also allows us to properly use the pixmapcache.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666794
2007-05-20 22:30:41 +00:00
Aaron J. Seigo
520553079a PLASMA_EXPORT
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666752
2007-05-20 20:13:46 +00:00
Aaron J. Seigo
a9ebfb6a14 * allow painting of given elements
* find the size of an element (given the current size of the Plasma::Svg)

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666140
2007-05-18 22:05:00 +00:00
Pino Toscano
7bed85b467 these forward declarations are needed as well
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=657021
2007-04-22 23:04:47 +00:00
Pino Toscano
d8c17250ce header cleanup
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=656747
2007-04-22 09:35:04 +00:00
Aaron J. Seigo
f66f973917 install the svg.h header so people can use it
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=644234
2007-03-19 15:54:54 +00:00
Aaron J. Seigo
5cfabdc869 Plasma::Svg debuts. it is an image centric wrapper around QSvgRenderer that takes care of things such as:
* caching rendered pixmaps
* looking up the images from the Plasma::Theme
* scheduling needed updates, e.g. when the plasma theme changes


svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=640418
2007-03-07 23:27:37 +00:00