1
/***************************************************************************
5
copyright : (C) 2005 The University of Toronto
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef KSTVIEWELLIPSE_H
19
#define KSTVIEWELLIPSE_H
21
#include "kstviewobject.h"
24
typedef KstSharedPtr<KstViewEllipse> KstViewEllipsePtr;
26
class KstViewEllipse : public KstViewObject {
28
Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor)
29
Q_PROPERTY(int borderWidth READ borderWidth WRITE setBorderWidth)
30
Q_PROPERTY(QColor fillColor READ foregroundColor WRITE setForegroundColor)
31
Q_PROPERTY(bool transparentFill READ transparentFill WRITE setTransparentFill)
34
KstViewEllipse(const QDomElement& e);
35
virtual ~KstViewEllipse();
37
virtual void setBorderColor(const QColor& to);
38
virtual QColor borderColor() const;
39
virtual void setBorderWidth(int width);
40
virtual int borderWidth() const;
42
// can't have Q_PROPERTY in KstViewObject?
43
virtual void setForegroundColor(const QColor& color);
44
virtual QColor foregroundColor() const;
46
bool transparentFill() const;
47
void setTransparentFill(bool yes);
50
virtual void drawShadow(KstPainter& p, const QPoint& pos);
52
virtual void paintSelf(KstPainter& p, const QRegion& bounds);
55
virtual void save(QTextStream& ts, const QString& indent = QString::null);
57
virtual QMap<QString, QVariant> widgetHints(const QString& propertyName) const;
59
virtual signed int directionFor(const QPoint& pos);
64
bool _transparentFill;
67
typedef KstObjectList<KstViewEllipsePtr> KstViewEllipseList;