#include <QGSPage.h>
Protected Member Functions | |
QColor | getBackgroundColor () |
Protected Attributes | |
QGITemplate * | pageTemplate |
Static Protected Attributes | |
static QColor | PreselectColor |
static QColor | SelectColor |
QGSPage::QGSPage | ( | ViewProviderPage * | vp, |
QWidget * | parent = nullptr |
||
) |
|
virtual |
void QGSPage::addBalloonToParent | ( | QGIViewBalloon * | balloon, |
QGIView * | parent | ||
) |
References ZVALUE::DIMENSION.
Referenced by addViewBalloon(), and TechDrawGui::MDIViewPage::setBalloonGroups().
void QGSPage::addDimToParent | ( | QGIViewDimension * | dim, |
QGIView * | parent | ||
) |
References ZVALUE::DIMENSION.
Referenced by addViewDimension(), and TechDrawGui::MDIViewPage::setDimensionGroups().
QGIView * QGSPage::addDrawView | ( | TechDraw::DrawView * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addDrawViewAnnotation | ( | TechDraw::DrawViewAnnotation * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addDrawViewClip | ( | TechDraw::DrawViewClip * | view | ) |
References addQView(), and TechDrawGui::Rez::guiX().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addDrawViewCollection | ( | TechDraw::DrawViewCollection * | view | ) |
References addQView().
QGIView * QGSPage::addDrawViewImage | ( | TechDraw::DrawViewImage * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addDrawViewSpreadsheet | ( | TechDraw::DrawViewSpreadsheet * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addDrawViewSymbol | ( | TechDraw::DrawViewSymbol * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
void QGSPage::addLeaderToParent | ( | QGILeaderLine * | lead, |
QGIView * | parent | ||
) |
References ZVALUE::DIMENSION.
Referenced by addViewLeader(), and TechDrawGui::MDIViewPage::setLeaderGroups().
QGIView * QGSPage::addProjectionGroup | ( | TechDraw::DrawProjGroup * | view | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addRichAnno | ( | TechDraw::DrawRichAnno * | anno | ) |
QGIView * QGSPage::addViewBalloon | ( | TechDraw::DrawViewBalloon * | balloon | ) |
References addBalloonToParent(), and findParent().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addViewDimension | ( | TechDraw::DrawViewDimension * | dim | ) |
References addDimToParent(), and findParent().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addViewLeader | ( | TechDraw::DrawLeaderLine * | view | ) |
QGIView * QGSPage::addViewPart | ( | TechDraw::DrawViewPart * | part | ) |
References addQView(), and findQViewForDocObj().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::addViewSection | ( | TechDraw::DrawViewPart * | part | ) |
References addQView().
Referenced by TechDrawGui::MDIViewPage::attachView().
QGIView * QGSPage::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().
void QGSPage::createBalloon | ( | QPointF | origin, |
TechDraw::DrawViewPart * | parent | ||
) |
References TechDrawGui::Rez::appPt(), Gui::Command::commitCommand(), App::DocumentObject::getDocument(), getDrawPage(), App::DocumentObject::getNameInDocument(), TechDraw::DrawPage::getNextBalloonIndex(), App::Document::getObject(), getQGIVByName(), TechDraw::DrawView::getScale(), App::Document::getUniqueObjectName(), Gui::Command::openCommand(), TechDraw::DrawViewBalloon::OriginX, TechDraw::DrawViewBalloon::OriginY, draftutils.translate::QT_TRANSLATE_NOOP, TechDraw::DrawViewBalloon::setOrigin(), App::PropertyString::setValue(), App::PropertyQuantity::setValue(), TechDraw::DrawViewBalloon::Text, TechDraw::DrawView::X, and TechDraw::DrawView::Y.
Referenced by TechDrawGui::QGVNavStyle::placeBalloon().
References App::DocumentObject::getNameInDocument(), App::PropertyLink::getValue(), App::PropertyListsT< T, ListT, ParentT >::getValues(), App::PropertyLinkSubList::getValues(), 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().
QGIView * QGSPage::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().
|
protected |
TechDraw::DrawPage * QGSPage::getDrawPage | ( | ) |
References TechDrawGui::ViewProviderPage::getDrawPage().
Referenced by createBalloon(), and TechDrawGui::DrawGuiUtil::findPage().
QGIView * QGSPage::getQGIVByName | ( | std::string | name | ) |
find the graphic for DocumentObject with name
References TechDrawGui::QGIView::getViewName().
Referenced by addQView(), and createBalloon().
QGITemplate * QGSPage::getTemplate | ( | ) | const |
References pageTemplate.
Referenced by TechDrawGui::ViewProviderTemplate::getQTemplate(), and TechDrawGui::MDIViewPage::updateTemplate().
std::vector< QGIView * > QGSPage::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().
void QGSPage::postProcessXml | ( | QTemporaryFile & | tempFile, |
QString | filename, | ||
QString | pagename | ||
) |
References Base::Console(), Base::FileInfo::fileName(), TechDrawGui::QGISVGTemplate::getSVGTemplate(), App::PropertyFileIncluded::getValue(), App::PropertyString::getValue(), TechDrawGui::Rez::guiX(), Base::ConsoleSingleton::Message(), TechDraw::DrawSVGTemplate::PageResult, pageTemplate, and TechDraw::DrawSVGTemplate::Template.
Referenced by saveSvg().
|
virtual |
References TechDrawGui::QGIView::updateView().
Referenced by TechDrawGui::MDIViewPage::print(), saveSvg(), and TechDrawGui::ViewProviderPage::toggleFrameState().
References removeQViewFromScene().
Referenced by TechDrawGui::MDIViewPage::fixOrphans().
int QGSPage::removeQViewByName | ( | const char * | name | ) |
References getViews(), removeQViewFromScene(), and TechDrawGui::QGIView::type().
Referenced by TechDrawGui::MDIViewPage::onDeleteObject().
void QGSPage::removeQViewFromScene | ( | QGIView * | view | ) |
References TechDrawGui::QGIView::removeChild().
Referenced by removeQView(), and removeQViewByName().
void QGSPage::removeTemplate | ( | ) |
References pageTemplate.
Referenced by setPageTemplate().
void QGSPage::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(), OfflineRenderingUtils::render(), Gui::Selection(), setExporting(), TechDrawGui::ViewProviderPage::setFrameState(), and TechDrawGui::ViewProviderPage::setTemplateMarkers().
Referenced by TechDrawGui::MDIViewPage::saveSVG().
void QGSPage::setExporting | ( | bool | enable | ) |
References TechDrawGui::QGIRichAnno::setExporting(), and TechDrawGui::QGIViewPart::setExporting().
Referenced by saveSvg().
void QGSPage::setPageTemplate | ( | TechDraw::DrawTemplate * | pageTemplate | ) |
|
protected |
Referenced by getTemplate(), postProcessXml(), removeTemplate(), saveSvg(), and setPageTemplate().
|
staticprotected |
|
staticprotected |