[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/plugins/pictureshape
From: Carlos Licea <carlos_licea () hotmail ! com>
Date: 2010-05-05 4:42:54
Message-ID: 20100505044254.91C46AC8AB () svn ! kde ! org
[Download RAW message or body]
SVN commit 1122938 by clicea:
Add a PictureMode, it determines whether the image is to be painted
normally, in greyscale, monochromatic or watermark.
M +10 -0 PictureShape.cpp
M +12 -0 PictureShape.h
--- trunk/koffice/plugins/pictureshape/PictureShape.cpp #1122937:1122938
@@ -233,3 +233,13 @@
{
return m_imageCollection;
}
+
+PictureShape::PictureMode PictureShape::mode() const
+{
+ return m_mode;
+}
+
+void PictureShape::setMode(PictureShape::PictureMode mode)
+{
+ m_mode = mode;
+}
--- trunk/koffice/plugins/pictureshape/PictureShape.h #1122937:1122938
@@ -32,6 +32,13 @@
class PictureShape : public KoShape, public KoFrameShape
{
public:
+ enum PictureMode {
+ Standard,
+ Greyscale,
+ Mono,
+ Watermark
+ };
+
PictureShape();
virtual ~PictureShape();
@@ -51,13 +58,18 @@
void setImageCollection(KoImageCollection *collection) { m_imageCollection = collection; }
+ void setMode( PictureMode mode );
+ PictureMode mode() const;
+
protected:
virtual bool loadOdfFrameElement(const KoXmlElement &element, KoShapeLoadingContext &context);
private:
+
KoImageCollection *m_imageCollection;
RenderQueue *m_renderQueue;
mutable QImage m_printQualityImage;
+ PictureMode m_mode;
};
class RenderQueue : public QObject
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic