|
|
@ -72,7 +72,7 @@ public:
|
|
|
|
KviCanvasPolygon(TQCanvas * c,int x,int y,TQPointArray &pnts,double dScaleFactor);
|
|
|
|
KviCanvasPolygon(TQCanvas * c,int x,int y,TQPointArray &pnts,double dScaleFactor);
|
|
|
|
virtual ~KviCanvasPolygon();
|
|
|
|
virtual ~KviCanvasPolygon();
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
TQMap<TQString,TQVariant> m_properties;
|
|
|
|
TQStringVariantMap m_properties;
|
|
|
|
double m_dScaleFactor;
|
|
|
|
double m_dScaleFactor;
|
|
|
|
TQPointArray m_points;
|
|
|
|
TQPointArray m_points;
|
|
|
|
public:
|
|
|
|
public:
|
|
|
@ -82,7 +82,7 @@ public:
|
|
|
|
void resetPoints();
|
|
|
|
void resetPoints();
|
|
|
|
const TQPointArray & internalPoints(){ return m_points; };
|
|
|
|
const TQPointArray & internalPoints(){ return m_points; };
|
|
|
|
void setInternalPoints(const TQPointArray &pnts);
|
|
|
|
void setInternalPoints(const TQPointArray &pnts);
|
|
|
|
TQMap<TQString,TQVariant> * properties(){ return &m_properties; };
|
|
|
|
TQStringVariantMap * properties(){ return &m_properties; };
|
|
|
|
virtual void setProperty(const TQString &property,const TQVariant &val);
|
|
|
|
virtual void setProperty(const TQString &property,const TQVariant &val);
|
|
|
|
virtual int rtti() const;
|
|
|
|
virtual int rtti() const;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -100,11 +100,11 @@ protected:
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
virtual ~KviCanvasRectangleItem();
|
|
|
|
virtual ~KviCanvasRectangleItem();
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
TQMap<TQString,TQVariant> m_properties;
|
|
|
|
TQStringVariantMap m_properties;
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
int right(){ return ((int)x()) + width(); };
|
|
|
|
int right(){ return ((int)x()) + width(); };
|
|
|
|
int bottom(){ return ((int)y()) + height(); };
|
|
|
|
int bottom(){ return ((int)y()) + height(); };
|
|
|
|
TQMap<TQString,TQVariant> * properties(){ return &m_properties; };
|
|
|
|
TQStringVariantMap * properties(){ return &m_properties; };
|
|
|
|
virtual void setProperty(const TQString &property,const TQVariant &val);
|
|
|
|
virtual void setProperty(const TQString &property,const TQVariant &val);
|
|
|
|
// TQVariant property(const TQString &name){ return m_properties[name]; };
|
|
|
|
// TQVariant property(const TQString &name){ return m_properties[name]; };
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
@ -167,9 +167,9 @@ public:
|
|
|
|
KviCanvasLine(TQCanvas * c,int x1,int y1,int x2,int y2);
|
|
|
|
KviCanvasLine(TQCanvas * c,int x1,int y1,int x2,int y2);
|
|
|
|
virtual ~KviCanvasLine();
|
|
|
|
virtual ~KviCanvasLine();
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
TQMap<TQString,TQVariant> m_properties;
|
|
|
|
TQStringVariantMap m_properties;
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
TQMap<TQString,TQVariant> * properties(){ return &m_properties; };
|
|
|
|
TQStringVariantMap * properties(){ return &m_properties; };
|
|
|
|
virtual void setProperty(const TQString &property,const TQVariant &val);
|
|
|
|
virtual void setProperty(const TQString &property,const TQVariant &val);
|
|
|
|
// TQVariant property(const TQString &name){ return m_properties[name]; };
|
|
|
|
// TQVariant property(const TQString &name){ return m_properties[name]; };
|
|
|
|
virtual void draw(TQPainter & p);
|
|
|
|
virtual void draw(TQPainter & p);
|
|
|
|