TechDrawGui::QGISVGTemplate Class Reference

#include <QGISVGTemplate.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 153 }
 
- Public Types inherited from TechDrawGui::QGITemplate
enum  { Type = QGraphicsItem::UserType + 150 }
 

Public Member Functions

void draw ()
 
TechDraw::DrawSVGTemplategetSVGTemplate ()
 
 QGISVGTemplate (QGSPage *scene)
 
int type () const
 
virtual void updateView (bool update=false)
 
virtual ~QGISVGTemplate ()
 
- Public Member Functions inherited from TechDrawGui::QGITemplate
void clearContents ()
 
virtual void draw ()=0
 
TechDraw::DrawTemplategetTemplate ()
 
std::vector< TemplateTextField * > getTextFields (void)
 
qreal getY ()
 
 QGITemplate (QGSPage *)
 
void setTemplate (TechDraw::DrawTemplate *obj)
 
int type () const
 
virtual void updateView (bool update=false)
 
 ~QGITemplate ()
 

Protected Member Functions

void createClickHandles (void)
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value)
 
void load (const QString &fileName)
 
void openFile (const QFile &file)
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value)
 

Protected Attributes

bool firstTime
 
QGraphicsSvgItemm_svgItem
 
QSvgRenderer * m_svgRender
 
- Protected Attributes inherited from TechDrawGui::QGITemplate
TechDraw::DrawTemplatepageTemplate
 
std::vector< TemplateTextField * > textFields
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGISVGTemplate()

QGISVGTemplate::QGISVGTemplate ( QGSPage scene)

◆ ~QGISVGTemplate()

QGISVGTemplate::~QGISVGTemplate ( )
virtual

References m_svgRender.

Member Function Documentation

◆ createClickHandles()

◆ draw()

void QGISVGTemplate::draw ( void  )
virtual

◆ getSVGTemplate()

◆ itemChange()

QVariant QGISVGTemplate::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
protectedvirtual

Reimplemented from TechDrawGui::QGITemplate.

◆ load()

◆ openFile()

void QGISVGTemplate::openFile ( const QFile &  file)
protected

◆ type()

int TechDrawGui::QGISVGTemplate::type ( void  ) const

◆ updateView()

void QGISVGTemplate::updateView ( bool  update = false)
virtual

Member Data Documentation

◆ firstTime

bool TechDrawGui::QGISVGTemplate::firstTime
protected

Referenced by load().

◆ m_svgItem

QGraphicsSvgItem* TechDrawGui::QGISVGTemplate::m_svgItem
protected

Referenced by load(), and QGISVGTemplate().

◆ m_svgRender

QSvgRenderer* TechDrawGui::QGISVGTemplate::m_svgRender
protected

The documentation for this class was generated from the following files: