#include <TaskSectionView.h>
Public Member Functions | |
virtual bool accept () | |
virtual bool reject () | |
TaskSectionView (TechDraw::DrawViewPart *base) | |
TaskSectionView (TechDraw::DrawViewSection *section) | |
~TaskSectionView () | |
Protected Slots | |
void onDownClicked () | |
void onIdentifierChanged () | |
void onLeftClicked () | |
void onRightClicked () | |
void onScaleChanged () | |
void onUpClicked () | |
void onXChanged () | |
void onYChanged () | |
void onZChanged () | |
Protected Member Functions | |
bool apply (void) | |
void applyAligned (void) | |
void applyQuick (std::string dir) | |
void changeEvent (QEvent *e) | |
void checkAll (bool b) | |
void createSectionView (void) | |
void enableAll (bool b) | |
void failNoObject (std::string objName) | |
bool isBaseValid (void) | |
bool isSectionValid (void) | |
void restoreSectionState () | |
void saveSectionState () | |
void setUiEdit () | |
void setUiPrimary () | |
void updateSectionView (void) | |
Constructor & Destructor Documentation
◆ TaskSectionView() [1/2]
TaskSectionView::TaskSectionView | ( | TechDraw::DrawViewPart * | base | ) |
◆ TaskSectionView() [2/2]
TaskSectionView::TaskSectionView | ( | TechDraw::DrawViewSection * | section | ) |
References TechDraw::DrawViewSection::BaseView, Base::Console(), Base::ConsoleSingleton::Error(), TechDraw::DrawView::findParentPage(), App::DocumentObject::getDocument(), App::DocumentObject::getNameInDocument(), App::PropertyLink::getValue(), App::PropertyEnumeration::getValueAsString(), onDownClicked(), onLeftClicked(), onRightClicked(), onUpClicked(), saveSectionState(), TechDraw::DrawViewSection::SectionDirection, setUiEdit(), and Base::Tools::toStdString().
◆ ~TaskSectionView()
TaskSectionView::~TaskSectionView | ( | ) |
Member Function Documentation
◆ accept()
|
virtual |
References apply(), and Gui::Command::Gui.
Referenced by TechDrawGui::TaskDlgSectionView::accept().
◆ apply()
|
protected |
References applyQuick(), checkAll(), Base::Console(), Base::ConsoleSingleton::Error(), and Base::Tools::toStdString().
Referenced by accept(), onIdentifierChanged(), onScaleChanged(), onXChanged(), onYChanged(), and onZChanged().
◆ applyAligned()
|
protected |
◆ applyQuick()
|
protected |
References createSectionView(), enableAll(), failNoObject(), isBaseValid(), isSectionValid(), Gui::Command::openCommand(), App::DocumentObject::recomputeFeature(), TechDraw::DrawView::requestPaint(), and updateSectionView().
Referenced by apply(), onDownClicked(), onLeftClicked(), onRightClicked(), and onUpClicked().
◆ changeEvent()
|
protected |
◆ checkAll()
|
protected |
Referenced by apply(), onDownClicked(), onIdentifierChanged(), onLeftClicked(), onRightClicked(), onScaleChanged(), onUpClicked(), onXChanged(), onYChanged(), and onZChanged().
◆ createSectionView()
|
protected |
References Gui::Command::commitCommand(), failNoObject(), App::DocumentObject::getDocument(), App::DocumentObject::getNameInDocument(), App::Document::getObject(), TechDraw::DrawView::getScale(), App::Document::getUniqueObjectName(), isBaseValid(), Gui::Command::openCommand(), and Gui::Command::updateActive().
Referenced by applyQuick().
◆ enableAll()
|
protected |
Referenced by applyQuick(), and setUiPrimary().
◆ failNoObject()
|
protected |
References Gui::ControlSingleton::closeDialog(), Gui::Control(), Base::Tools::fromStdString(), and Gui::getMainWindow().
Referenced by applyQuick(), createSectionView(), and updateSectionView().
◆ isBaseValid()
|
protected |
References App::Document::getObject().
Referenced by applyQuick(), createSectionView(), and reject().
◆ isSectionValid()
|
protected |
References App::Document::getObject().
Referenced by applyQuick(), reject(), and updateSectionView().
◆ onDownClicked
|
protectedslot |
References applyQuick(), and checkAll().
Referenced by TaskSectionView().
◆ onIdentifierChanged
|
protectedslot |
References apply(), and checkAll().
Referenced by setUiEdit(), and setUiPrimary().
◆ onLeftClicked
|
protectedslot |
References applyQuick(), and checkAll().
Referenced by TaskSectionView().
◆ onRightClicked
|
protectedslot |
References applyQuick(), and checkAll().
Referenced by TaskSectionView().
◆ onScaleChanged
|
protectedslot |
References apply(), and checkAll().
Referenced by setUiEdit(), and setUiPrimary().
◆ onUpClicked
|
protectedslot |
References applyQuick(), and checkAll().
Referenced by TaskSectionView().
◆ onXChanged
|
protectedslot |
References apply(), and checkAll().
Referenced by setUiEdit(), and setUiPrimary().
◆ onYChanged
|
protectedslot |
References apply(), and checkAll().
Referenced by setUiEdit(), and setUiPrimary().
◆ onZChanged
|
protectedslot |
References apply(), and checkAll().
Referenced by setUiEdit(), and setUiPrimary().
◆ reject()
|
virtual |
◆ restoreSectionState()
|
protected |
References TechDraw::DrawViewPart::Direction, TechDraw::DrawView::Scale, TechDraw::DrawViewSection::SectionDirection, TechDraw::DrawViewSection::SectionNormal, TechDraw::DrawViewSection::SectionOrigin, TechDraw::DrawViewSection::SectionSymbol, App::PropertyVector::setValue(), App::PropertyEnumeration::setValue(), App::PropertyFloat::setValue(), and App::PropertyString::setValue().
Referenced by reject().
◆ saveSectionState()
|
protected |
References TechDraw::DrawViewPart::Direction, TechDraw::DrawView::getScale(), App::PropertyVector::getValue(), App::PropertyString::getValue(), App::PropertyEnumeration::getValueAsString(), TechDraw::DrawViewSection::SectionDirection, TechDraw::DrawViewSection::SectionNormal, TechDraw::DrawViewSection::SectionOrigin, and TechDraw::DrawViewSection::SectionSymbol.
Referenced by TaskSectionView().
◆ setUiEdit()
|
protected |
References Base::Tools::fromStdString(), App::DocumentObject::getNameInDocument(), TechDraw::DrawView::getScale(), App::PropertyVector::getValue(), App::PropertyString::getValue(), Base::Unit::Length, onIdentifierChanged(), onScaleChanged(), onXChanged(), onYChanged(), onZChanged(), TechDraw::DrawViewSection::SectionOrigin, TechDraw::DrawViewSection::SectionSymbol, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by TaskSectionView().
◆ setUiPrimary()
|
protected |
References enableAll(), Base::Tools::fromStdString(), App::DocumentObject::getNameInDocument(), TechDraw::DrawViewPart::getOriginalCentroid(), TechDraw::DrawView::getScale(), Base::Unit::Length, onIdentifierChanged(), onScaleChanged(), onXChanged(), onYChanged(), onZChanged(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by TaskSectionView().
◆ updateSectionView()
|
protected |
References failNoObject(), isSectionValid(), TechDraw::DrawViewSection::setCSFromBase(), and Base::Tools::toStdString().
Referenced by applyQuick().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/TaskSectionView.h
- src/Mod/TechDraw/Gui/TaskSectionView.cpp