#include <QGVPage.h>

Public Types

enum  RendererType { Native , OpenGL , Image }
 

Public Slots

void setHighQualityAntialiasing (bool highQualityAntialiasing)
 

Public Member Functions

void addBalloonToParent (QGIViewBalloon *balloon, QGIView *parent)
 
void addDimToParent (QGIViewDimension *dim, QGIView *parent)
 
QGIViewaddDrawView (TechDraw::DrawView *view)
 
QGIViewaddDrawViewAnnotation (TechDraw::DrawViewAnnotation *view)
 
QGIViewaddDrawViewClip (TechDraw::DrawViewClip *view)
 
QGIViewaddDrawViewCollection (TechDraw::DrawViewCollection *view)
 
QGIViewaddDrawViewImage (TechDraw::DrawViewImage *view)
 
QGIViewaddDrawViewSpreadsheet (TechDraw::DrawViewSpreadsheet *view)
 
QGIViewaddDrawViewSymbol (TechDraw::DrawViewSymbol *view)
 
void addLeaderToParent (QGILeaderLine *lead, QGIView *parent)
 
QGIViewaddProjectionGroup (TechDraw::DrawProjGroup *view)
 
int addQView (QGIView *view)
 
QGIViewaddRichAnno (TechDraw::DrawRichAnno *anno)
 
QGIViewaddViewBalloon (TechDraw::DrawViewBalloon *balloon)
 
QGIViewaddViewDimension (TechDraw::DrawViewDimension *dim)
 
QGIViewaddViewLeader (TechDraw::DrawLeaderLine *view)
 
QGIViewaddViewPart (TechDraw::DrawViewPart *part)
 
QGIViewaddViewSection (TechDraw::DrawViewPart *part)
 
QGIViewaddWeldSymbol (TechDraw::DrawWeldSymbol *weld)
 
void drawBackground (QPainter *p, const QRectF &rect) override
 
QGIViewfindParent (QGIView *) const
 
QGIViewfindQViewForDocObj (App::DocumentObject *obj) const
 find the graphic for a DocumentObject More...
 
TechDraw::DrawPagegetDrawPage ()
 
QGIViewgetQGIVByName (std::string name)
 find the graphic for DocumentObject with name More...
 
QGITemplategetTemplate () const
 
std::vector< QGIView * > getViews () const
 retrieve the QGIView objects currently in the scene More...
 
void postProcessXml (QTemporaryFile &tempFile, QString filename, QString pagename)
 
 QGVPage (ViewProviderPage *vp, QGraphicsScene *s, QWidget *parent=0)
 
virtual void refreshViews (void)
 
int removeQView (QGIView *view)
 
int removeQViewByName (const char *name)
 
void removeQViewFromScene (QGIView *view)
 
void removeTemplate ()
 
void saveSvg (QString filename)
 Renders the page to SVG with filename. More...
 
void setExporting (bool enable)
 
void setPageTemplate (TechDraw::DrawTemplate *pageTemplate)
 
void setRenderer (RendererType type=Native)
 
virtual ~QGVPage ()
 

Protected Member Functions

void enterEvent (QEvent *event) override
 
void focusOutEvent (QFocusEvent *event) override
 
QColor getBackgroundColor ()
 
void kbPanScroll (int xMove=1, int yMove=1)
 
void keyPressEvent (QKeyEvent *event) override
 
void leaveEvent (QEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 

Protected Attributes

QGITemplatepageTemplate
 

Static Protected Attributes

static QColor PreselectColor
 
static QColor SelectColor
 

Member Enumeration Documentation

◆ RendererType

Enumerator
Native 
OpenGL 
Image 

Constructor & Destructor Documentation

◆ QGVPage()

◆ ~QGVPage()

QGVPage::~QGVPage ( )
virtual

Member Function Documentation

◆ addBalloonToParent()

void QGVPage::addBalloonToParent ( QGIViewBalloon balloon,
QGIView parent 
)

◆ addDimToParent()

void QGVPage::addDimToParent ( QGIViewDimension dim,
QGIView parent 
)

◆ addDrawView()

QGIView * QGVPage::addDrawView ( TechDraw::DrawView view)

◆ addDrawViewAnnotation()

QGIView * QGVPage::addDrawViewAnnotation ( TechDraw::DrawViewAnnotation view)

◆ addDrawViewClip()

QGIView * QGVPage::addDrawViewClip ( TechDraw::DrawViewClip view)

◆ addDrawViewCollection()

QGIView * QGVPage::addDrawViewCollection ( TechDraw::DrawViewCollection view)

References addQView().

◆ addDrawViewImage()

QGIView * QGVPage::addDrawViewImage ( TechDraw::DrawViewImage view)

◆ addDrawViewSpreadsheet()

QGIView * QGVPage::addDrawViewSpreadsheet ( TechDraw::DrawViewSpreadsheet view)

◆ addDrawViewSymbol()

QGIView * QGVPage::addDrawViewSymbol ( TechDraw::DrawViewSymbol view)

◆ addLeaderToParent()

void QGVPage::addLeaderToParent ( QGILeaderLine lead,
QGIView parent 
)

◆ addProjectionGroup()

QGIView * QGVPage::addProjectionGroup ( TechDraw::DrawProjGroup view)

◆ addQView()

◆ addRichAnno()

◆ addViewBalloon()

◆ addViewDimension()

QGIView * QGVPage::addViewDimension ( TechDraw::DrawViewDimension dim)

◆ addViewLeader()

◆ addViewPart()

QGIView * QGVPage::addViewPart ( TechDraw::DrawViewPart part)

◆ addViewSection()

QGIView * QGVPage::addViewSection ( TechDraw::DrawViewPart part)

◆ addWeldSymbol()

◆ drawBackground()

◆ enterEvent()

void QGVPage::enterEvent ( QEvent event)
overrideprotected

References getDrawPage().

◆ findParent()

◆ findQViewForDocObj()

◆ focusOutEvent()

void QGVPage::focusOutEvent ( QFocusEvent *  event)
overrideprotected

◆ getBackgroundColor()

◆ getDrawPage()

◆ getQGIVByName()

QGIView * QGVPage::getQGIVByName ( std::string  name)

find the graphic for DocumentObject with name

References TechDrawGui::QGIView::getViewName().

Referenced by addQView().

◆ getTemplate()

◆ getViews()

◆ kbPanScroll()

void QGVPage::kbPanScroll ( int  xMove = 1,
int  yMove = 1 
)
protected

Referenced by keyPressEvent().

◆ keyPressEvent()

void QGVPage::keyPressEvent ( QKeyEvent *  event)
overrideprotected

◆ leaveEvent()

void QGVPage::leaveEvent ( QEvent event)
overrideprotected

References getDrawPage().

◆ mouseMoveEvent()

void QGVPage::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

◆ mousePressEvent()

void QGVPage::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

◆ paintEvent()

void QGVPage::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ postProcessXml()

◆ refreshViews()

void QGVPage::refreshViews ( void  )
virtual

◆ removeQView()

int QGVPage::removeQView ( QGIView view)

◆ removeQViewByName()

int QGVPage::removeQViewByName ( const char *  name)

◆ removeQViewFromScene()

void QGVPage::removeQViewFromScene ( QGIView view)

◆ removeTemplate()

void QGVPage::removeTemplate ( )

References pageTemplate.

Referenced by setPageTemplate().

◆ saveSvg()

◆ setExporting()

void QGVPage::setExporting ( bool  enable)

◆ setHighQualityAntialiasing

void QGVPage::setHighQualityAntialiasing ( bool  highQualityAntialiasing)
slot

◆ setPageTemplate()

◆ setRenderer()

void QGVPage::setRenderer ( RendererType  type = Native)

References OpenGL.

◆ wheelEvent()

void QGVPage::wheelEvent ( QWheelEvent *  event)
overrideprotected

Member Data Documentation

◆ pageTemplate

QGITemplate* TechDrawGui::QGVPage::pageTemplate
protected

◆ PreselectColor

QColor TechDrawGui::QGVPage::PreselectColor
staticprotected

◆ SelectColor

QColor TechDrawGui::QGVPage::SelectColor
staticprotected

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Mod/TechDraw/Gui/QGVPage.h
  • Sources/FreeCAD/src/Mod/TechDraw/Gui/QGVPage.cpp