#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::DrawSVGTemplate * | getSVGTemplate () |
QGISVGTemplate (QGraphicsScene *scene) | |
int | type () const |
virtual void | updateView (bool update=false) |
virtual | ~QGISVGTemplate () |
Public Member Functions inherited from TechDrawGui::QGITemplate | |
void | clearContents () |
TechDraw::DrawTemplate * | getTemplate () |
std::vector< TemplateTextField * > | getTextFields (void) |
qreal | getY () |
QGITemplate (QGraphicsScene *) | |
void | setTemplate (TechDraw::DrawTemplate *obj) |
int | type () const |
~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) |
Protected Attributes | |
bool | firstTime |
QGraphicsSvgItem * | m_svgItem |
QSvgRenderer * | m_svgRender |
Protected Attributes inherited from TechDrawGui::QGITemplate | |
TechDraw::DrawTemplate * | pageTemplate |
std::vector< TemplateTextField * > | textFields |
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ QGISVGTemplate()
QGISVGTemplate::QGISVGTemplate | ( | QGraphicsScene * | scene | ) |
References m_svgItem, m_svgRender, and ZVALUE::SVGTEMPLATE.
◆ ~QGISVGTemplate()
|
virtual |
References m_svgRender.
Member Function Documentation
◆ createClickHandles()
|
protected |
References Base::Console(), Base::ConsoleSingleton::Error(), QDomNodeModel::fromDomNode(), App::GetApplication(), ParameterGrp::GetFloat(), ParameterGrp::GetGroup(), TechDraw::DrawSVGTemplate::getHeight(), getSVGTemplate(), App::Application::GetUserParameter(), App::PropertyFileIncluded::getValue(), TechDrawGui::Rez::guiX(), Base::ConsoleSingleton::Message(), TechDraw::DrawSVGTemplate::PageResult, ZVALUE::SVGTEMPLATE, TechDrawGui::QGITemplate::textFields, QDomNodeModel::toDomNode(), and Base::ConsoleSingleton::Warning().
Referenced by load().
◆ draw()
|
virtual |
Implements TechDrawGui::QGITemplate.
References getSVGTemplate(), App::PropertyFileIncluded::getValue(), load(), and TechDraw::DrawSVGTemplate::PageResult.
Referenced by updateView().
◆ getSVGTemplate()
TechDraw::DrawSVGTemplate * QGISVGTemplate::getSVGTemplate | ( | ) |
References Base::Persistence::getClassTypeId(), Base::BaseClass::isDerivedFrom(), and TechDrawGui::QGITemplate::pageTemplate.
Referenced by createClickHandles(), draw(), load(), and TechDrawGui::QGVPage::postProcessXml().
◆ itemChange()
|
protectedvirtual |
Reimplemented from TechDrawGui::QGITemplate.
◆ load()
|
protected |
References createClickHandles(), firstTime, TechDraw::DrawSVGTemplate::getHeight(), getSVGTemplate(), TechDraw::DrawSVGTemplate::getWidth(), TechDrawGui::Rez::guiX(), m_svgItem, and m_svgRender.
Referenced by draw().
◆ openFile()
|
protected |
◆ type()
int TechDrawGui::QGISVGTemplate::type | ( | ) | const |
◆ updateView()
|
virtual |
Reimplemented from TechDrawGui::QGITemplate.
References draw().
Referenced by TechDrawGui::ViewProviderTemplate::setMarkers().
Member Data Documentation
◆ firstTime
◆ m_svgItem
|
protected |
Referenced by load(), and QGISVGTemplate().
◆ m_svgRender
|
protected |
Referenced by load(), QGISVGTemplate(), and ~QGISVGTemplate().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGISVGTemplate.h
- src/Mod/TechDraw/Gui/QGISVGTemplate.cpp