#include <QGVPage.h>
Public Types | |
enum | RendererType { Native, OpenGL, Image } |
Public Slots | |
void | setHighQualityAntialiasing (bool highQualityAntialiasing) |
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 | |
QGITemplate * | pageTemplate |
Static Protected Attributes | |
static QColor | PreselectColor |
static QColor | SelectColor |
Member Enumeration Documentation
◆ RendererType
Constructor & Destructor Documentation
◆ QGVPage()
QGVPage::QGVPage | ( | ViewProviderPage * | vp, |
QGraphicsScene * | s, | ||
QWidget * | parent = 0 |
||
) |
References App::GetApplication(), getBackgroundColor(), ParameterGrp::GetBool(), TechDrawGui::ViewProviderPage::getDrawPage(), ParameterGrp::GetFloat(), ParameterGrp::GetGroup(), ParameterGrp::GetInt(), App::DocumentObject::getNameInDocument(), App::Application::GetUserParameter(), and TechDrawGui::ViewProviderPage::setGraphicsView().
◆ ~QGVPage()
|
virtual |
Member Function Documentation
◆ addBalloonToParent()
void QGVPage::addBalloonToParent | ( | QGIViewBalloon * | balloon, |
QGIView * | parent | ||
) |
References ZVALUE::DIMENSION.
Referenced by addViewBalloon(), and TechDrawGui::MDIViewPage::setBalloonGroups().
◆ addDimToParent()
void QGVPage::addDimToParent | ( | QGIViewDimension * | dim, |
QGIView * | parent | ||
) |
References ZVALUE::DIMENSION.
Referenced by addViewDimension(), and TechDrawGui::MDIViewPage::setDimensionGroups().
◆ addDrawView()
QGIView * QGVPage::addDrawView | ( | TechDraw::DrawView * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addDrawViewAnnotation()
QGIView * QGVPage::addDrawViewAnnotation | ( | TechDraw::DrawViewAnnotation * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addDrawViewClip()
QGIView * QGVPage::addDrawViewClip | ( | TechDraw::DrawViewClip * | view | ) |
References addQView(), and TechDrawGui::Rez::guiX().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addDrawViewCollection()
QGIView * QGVPage::addDrawViewCollection | ( | TechDraw::DrawViewCollection * | view | ) |
References addQView().
◆ addDrawViewImage()
QGIView * QGVPage::addDrawViewImage | ( | TechDraw::DrawViewImage * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addDrawViewSpreadsheet()
QGIView * QGVPage::addDrawViewSpreadsheet | ( | TechDraw::DrawViewSpreadsheet * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addDrawViewSymbol()
QGIView * QGVPage::addDrawViewSymbol | ( | TechDraw::DrawViewSymbol * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addLeaderToParent()
void QGVPage::addLeaderToParent | ( | QGILeaderLine * | lead, |
QGIView * | parent | ||
) |
References ZVALUE::DIMENSION.
Referenced by addViewLeader(), and TechDrawGui::MDIViewPage::setLeaderGroups().
◆ addProjectionGroup()
QGIView * QGVPage::addProjectionGroup | ( | TechDraw::DrawProjGroup * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addQView()
int QGVPage::addQView | ( | QGIView * | view | ) |
◆ addRichAnno()
QGIView * QGVPage::addRichAnno | ( | TechDraw::DrawRichAnno * | anno | ) |
◆ addViewBalloon()
QGIView * QGVPage::addViewBalloon | ( | TechDraw::DrawViewBalloon * | balloon | ) |
References addBalloonToParent(), findParent(), getDrawPage(), and TechDraw::DrawViewBalloon::origin.
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addViewDimension()
QGIView * QGVPage::addViewDimension | ( | TechDraw::DrawViewDimension * | dim | ) |
References addDimToParent(), and findParent().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addViewLeader()
QGIView * QGVPage::addViewLeader | ( | TechDraw::DrawLeaderLine * | view | ) |
◆ addViewPart()
QGIView * QGVPage::addViewPart | ( | TechDraw::DrawViewPart * | part | ) |
References addQView(), and findQViewForDocObj().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addViewSection()
QGIView * QGVPage::addViewSection | ( | TechDraw::DrawViewPart * | part | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ addWeldSymbol()
QGIView * QGVPage::addWeldSymbol | ( | TechDraw::DrawWeldSymbol * | weld | ) |
References Base::Console(), Base::ConsoleSingleton::Error(), findQViewForDocObj(), App::PropertyLink::getValue(), TechDraw::DrawWeldSymbol::Leader, TechDrawGui::QGIWeldSymbol::setFeature(), TechDrawGui::QGIView::setViewFeature(), and TechDrawGui::QGIWeldSymbol::updateView().
Referenced by TechDrawGui::MDIViewPage::attachView().
◆ drawBackground()
|
override |
◆ enterEvent()
|
overrideprotected |
References getDrawPage().
◆ findParent()
References App::DocumentObject::getNameInDocument(), App::PropertyLink::getValue(), App::PropertyListsT< T, ListT, ParentT >::getValues(), App::PropertyLinkSubList::getValues(), TechDrawGui::QGIView::getViewObject(), getViews(), TechDraw::DrawLeaderLine::LeaderParent, TechDraw::DrawViewDimension::References2D, TechDraw::DrawViewBalloon::SourceView, and TechDraw::DrawViewCollection::Views.
Referenced by addQView(), addViewBalloon(), addViewDimension(), addViewLeader(), TechDrawGui::MDIViewPage::setBalloonGroups(), TechDrawGui::MDIViewPage::setDimensionGroups(), and TechDrawGui::MDIViewPage::setLeaderGroups().
◆ findQViewForDocObj()
QGIView * QGVPage::findQViewForDocObj | ( | App::DocumentObject * | obj | ) | const |
find the graphic for a DocumentObject
References getViews().
Referenced by addRichAnno(), addViewPart(), addWeldSymbol(), TechDrawGui::MDIViewPage::fixOrphans(), TechDrawGui::TaskLeaderLine::onTrackerClicked(), TechDrawGui::MDIViewPage::selectQGIView(), TechDrawGui::TaskCosVertex::setEditCursor(), TechDrawGui::TaskLeaderLine::setEditCursor(), TechDrawGui::TaskLeaderLine::TaskLeaderLine(), and TechDrawGui::TaskRichAnno::TaskRichAnno().
◆ focusOutEvent()
|
overrideprotected |
◆ getBackgroundColor()
|
protected |
References App::Color::asValue(), App::GetApplication(), ParameterGrp::GetGroup(), ParameterGrp::GetUnsigned(), App::Application::GetUserParameter(), and App::Color::setPackedValue().
Referenced by QGVPage().
◆ getDrawPage()
TechDraw::DrawPage * QGVPage::getDrawPage | ( | ) |
References TechDrawGui::ViewProviderPage::getDrawPage().
Referenced by addViewBalloon(), enterEvent(), TechDrawGui::DrawGuiUtil::findPage(), leaveEvent(), and mouseReleaseEvent().
◆ getQGIVByName()
QGIView * QGVPage::getQGIVByName | ( | std::string | name | ) |
find the graphic for DocumentObject with name
References TechDrawGui::QGIView::getViewName().
Referenced by addQView().
◆ getTemplate()
QGITemplate * QGVPage::getTemplate | ( | ) | const |
References pageTemplate.
Referenced by TechDrawGui::ViewProviderTemplate::getQTemplate(), and TechDrawGui::MDIViewPage::updateTemplate().
◆ getViews()
std::vector< QGIView * > QGVPage::getViews | ( | ) | const |
retrieve the QGIView objects currently in the scene
Referenced by TechDrawGui::MDIViewPage::clearSceneSelection(), findParent(), findQViewForDocObj(), TechDrawGui::MDIViewPage::fixOrphans(), TechDrawGui::MDIViewPage::hasQView(), TechDrawGui::MDIViewPage::redraw1View(), TechDrawGui::MDIViewPage::redrawAllViews(), removeQViewByName(), TechDrawGui::MDIViewPage::setBalloonGroups(), TechDrawGui::MDIViewPage::setDimensionGroups(), and TechDrawGui::MDIViewPage::setLeaderGroups().
◆ kbPanScroll()
|
protected |
Referenced by keyPressEvent().
◆ keyPressEvent()
|
overrideprotected |
References kbPanScroll(), and DraftVecUtils::scale().
◆ leaveEvent()
|
overrideprotected |
References getDrawPage().
◆ mouseMoveEvent()
|
overrideprotected |
◆ mousePressEvent()
|
overrideprotected |
◆ mouseReleaseEvent()
|
overrideprotected |
References TechDraw::DrawPage::balloonParent, Gui::Command::commitCommand(), App::DocumentObject::getDocument(), getDrawPage(), App::DocumentObject::getNameInDocument(), App::Document::getObject(), App::Document::getUniqueObjectName(), App::PropertyQuantity::getValue(), Gui::Command::openCommand(), TechDraw::DrawViewBalloon::origin, App::DocumentObject::recomputeFeature(), App::PropertyQuantity::setValue(), App::PropertyLink::setValue(), TechDraw::DrawViewBalloon::SourceView, and TechDraw::DrawView::X.
◆ paintEvent()
|
overrideprotected |
References OfflineRenderingUtils::render().
◆ postProcessXml()
void QGVPage::postProcessXml | ( | QTemporaryFile & | tempFile, |
QString | filename, | ||
QString | pagename | ||
) |
References Base::Console(), Base::FileInfo::fileName(), QDomNodeModel::fromDomNode(), TechDrawGui::QGISVGTemplate::getSVGTemplate(), App::PropertyFileIncluded::getValue(), App::PropertyString::getValue(), TechDrawGui::Rez::guiX(), Base::ConsoleSingleton::Message(), TechDraw::DrawSVGTemplate::PageResult, pageTemplate, TechDraw::DrawSVGTemplate::Template, and QDomNodeModel::toDomNode().
Referenced by saveSvg().
◆ refreshViews()
|
virtual |
References TechDrawGui::QGIView::updateView().
Referenced by TechDrawGui::MDIViewPage::print(), and saveSvg().
◆ removeQView()
int QGVPage::removeQView | ( | QGIView * | view | ) |
References removeQViewFromScene().
Referenced by TechDrawGui::MDIViewPage::fixOrphans().
◆ removeQViewByName()
int QGVPage::removeQViewByName | ( | const char * | name | ) |
References getViews(), removeQViewFromScene(), and TechDrawGui::QGIView::type().
Referenced by TechDrawGui::MDIViewPage::onDeleteObject().
◆ removeQViewFromScene()
void QGVPage::removeQViewFromScene | ( | QGIView * | view | ) |
References TechDrawGui::QGIView::removeChild().
Referenced by removeQView(), and removeQViewByName().
◆ removeTemplate()
void QGVPage::removeTemplate | ( | ) |
References pageTemplate.
Referenced by setPageTemplate().
◆ saveSvg()
void QGVPage::saveSvg | ( | QString | filename | ) |
Renders the page to SVG with filename.
References Gui::SelectionSingleton::clearSelection(), App::DocumentObject::getDocument(), TechDrawGui::ViewProviderPage::getDrawPage(), TechDrawGui::ViewProviderPage::getFrameState(), App::Document::getName(), App::DocumentObject::getNameInDocument(), TechDraw::DrawPage::getPageHeight(), TechDraw::DrawPage::getPageWidth(), TechDrawGui::Rez::guiX(), pageTemplate, postProcessXml(), refreshViews(), Gui::Selection(), setExporting(), TechDrawGui::ViewProviderPage::setFrameState(), and TechDrawGui::ViewProviderPage::setTemplateMarkers().
Referenced by TechDrawGui::MDIViewPage::saveSVG().
◆ setExporting()
void QGVPage::setExporting | ( | bool | enable | ) |
References TechDrawGui::QGIRichAnno::setExporting(), and TechDrawGui::QGIViewPart::setExporting().
Referenced by TechDrawGui::MDIViewPage::printPdf(), and saveSvg().
◆ setHighQualityAntialiasing
|
slot |
◆ setPageTemplate()
void QGVPage::setPageTemplate | ( | TechDraw::DrawTemplate * | pageTemplate | ) |
◆ setRenderer()
void QGVPage::setRenderer | ( | RendererType | type = Native | ) |
References OpenGL.
◆ wheelEvent()
|
overrideprotected |
References DraftVecUtils::scale().
Member Data Documentation
◆ pageTemplate
|
protected |
Referenced by getTemplate(), postProcessXml(), removeTemplate(), saveSvg(), and setPageTemplate().
◆ PreselectColor
|
staticprotected |
◆ SelectColor
|
staticprotected |
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGVPage.h
- src/Mod/TechDraw/Gui/QGVPage.cpp