#include <TaskProjGroup.h>
Public Member Functions | |
virtual bool | accept () |
virtual bool | apply () |
bool | getCreateMode () |
void | modifyStandardButtons (QDialogButtonBox *box) |
std::pair< int, int > | nearestFraction (const double val, const long int maxDenom=999) const |
virtual bool | reject () |
void | saveButtons (QPushButton *btnOK, QPushButton *btnCancel, QPushButton *btnApply) |
void | setCreateMode (bool b) |
void | setFractionalScale (double newScale) |
TaskProjGroup (TechDraw::DrawProjGroup *featView, bool mode) | |
void | updateTask () |
~TaskProjGroup () | |
Protected Slots | |
void | projectionTypeChanged (QString qText) |
void | rotateButtonClicked (void) |
Requests appropriate rotation of our DrawProjGroup. More... | |
void | scaleManuallyChanged (int i) |
void | scaleTypeChanged (int index) |
void | viewToggled (bool toggle) |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
QString | formatVector (Base::Vector3d v) |
void | restoreGroupState () |
void | saveGroupState () |
void | setUiPrimary (void) |
void | setupViewCheckboxes (bool addConnections=false) |
Connects and updates state of view checkboxes to match the state of multiView. More... | |
Protected Attributes | |
MDIViewPage * | m_mdi |
TechDraw::DrawPage * | m_page |
Constructor & Destructor Documentation
◆ TaskProjGroup()
TaskProjGroup::TaskProjGroup | ( | TechDraw::DrawProjGroup * | featView, |
bool | mode | ||
) |
References TechDraw::DrawView::findParentPage(), App::DocumentObject::getDocument(), Gui::Application::getDocument(), TechDrawGui::ViewProviderPage::getMDIViewPage(), TechDraw::DrawView::getScale(), App::PropertyEnumeration::getValue(), Gui::Document::getViewProvider(), Gui::Application::Instance, App::PropertyEnumeration::isValue(), m_mdi, m_page, TechDraw::DrawProjGroup::ProjectionType, projectionTypeChanged(), rotateButtonClicked(), saveGroupState(), scaleManuallyChanged(), TechDraw::DrawView::ScaleType, scaleTypeChanged(), setFractionalScale(), setUiPrimary(), and setupViewCheckboxes().
◆ ~TaskProjGroup()
TaskProjGroup::~TaskProjGroup | ( | ) |
Member Function Documentation
◆ accept()
|
virtual |
◆ apply()
|
virtual |
References TechDraw::DrawProjGroup::recomputeChildren(), and App::DocumentObject::recomputeFeature().
Referenced by TechDrawGui::TaskDlgProjGroup::clicked().
◆ changeEvent()
|
protected |
◆ formatVector()
|
protected |
References DraftVecUtils::toString().
Referenced by setUiPrimary().
◆ getCreateMode()
bool TechDrawGui::TaskProjGroup::getCreateMode | ( | ) |
Referenced by TechDrawGui::TaskDlgProjGroup::open(), and reject().
◆ modifyStandardButtons()
void TechDrawGui::TaskProjGroup::modifyStandardButtons | ( | QDialogButtonBox * | box | ) |
◆ nearestFraction()
std::pair< int, int > TaskProjGroup::nearestFraction | ( | const double | val, |
const long int | maxDenom = 999 |
||
) | const |
Referenced by setFractionalScale().
◆ projectionTypeChanged
|
protectedslot |
References TechDraw::DrawProjGroup::ProjectionType, App::DocumentObject::recomputeFeature(), setupViewCheckboxes(), and App::PropertyEnumeration::setValue().
Referenced by TaskProjGroup().
◆ reject()
|
virtual |
References Gui::Command::abortCommand(), Base::Console(), TechDraw::DrawView::findParentPage(), getCreateMode(), App::DocumentObject::getDocument(), Gui::Application::getDocument(), App::DocumentObject::getNameInDocument(), Gui::Command::Gui, Gui::Command::hasPendingCommand(), Gui::Application::Instance, and Base::ConsoleSingleton::Log().
Referenced by TechDrawGui::TaskDlgProjGroup::reject().
◆ restoreGroupState()
|
protected |
References TechDraw::DrawProjGroup::addProjection(), Base::Console(), Base::ConsoleSingleton::Message(), TechDraw::DrawProjGroup::ProjectionType, TechDraw::DrawProjGroup::purgeProjections(), TechDraw::DrawView::Scale, TechDraw::DrawView::ScaleType, App::PropertyEnumeration::setValue(), and App::PropertyFloat::setValue().
◆ rotateButtonClicked
|
protectedslot |
Requests appropriate rotation of our DrawProjGroup.
References TechDraw::DrawProjGroup::rotateDown(), TechDraw::DrawProjGroup::rotateLeft(), TechDraw::DrawProjGroup::rotateRight(), TechDraw::DrawProjGroup::rotateUp(), setUiPrimary(), TechDraw::DrawProjGroup::spinCCW(), and TechDraw::DrawProjGroup::spinCW().
Referenced by TaskProjGroup().
◆ saveButtons()
void TaskProjGroup::saveButtons | ( | QPushButton * | btnOK, |
QPushButton * | btnCancel, | ||
QPushButton * | btnApply | ||
) |
Referenced by TechDrawGui::TaskDlgProjGroup::modifyStandardButtons().
◆ saveGroupState()
|
protected |
References TechDraw::DrawViewPart::Direction, TechDraw::DrawProjGroup::getAnchor(), App::PropertyVector::getValue(), App::PropertyFloat::getValue(), App::PropertyEnumeration::getValueAsString(), App::PropertyListsT< T, ListT, ParentT >::getValues(), TechDraw::DrawProjGroup::ProjectionType, TechDraw::DrawView::Scale, TechDraw::DrawView::ScaleType, TechDraw::DrawProjGroup::Source, and TechDraw::DrawViewCollection::Views.
Referenced by TaskProjGroup().
◆ scaleManuallyChanged
|
protectedslot |
◆ scaleTypeChanged
|
protectedslot |
◆ setCreateMode()
void TechDrawGui::TaskProjGroup::setCreateMode | ( | bool | b | ) |
Referenced by TechDrawGui::TaskDlgProjGroup::setCreateMode().
◆ setFractionalScale()
void TaskProjGroup::setFractionalScale | ( | double | newScale | ) |
References nearestFraction().
Referenced by TaskProjGroup(), updateTask(), and viewToggled().
◆ setUiPrimary()
|
protected |
References formatVector(), and TechDraw::DrawProjGroup::getAnchorDirection().
Referenced by rotateButtonClicked(), and TaskProjGroup().
◆ setupViewCheckboxes()
|
protected |
Connects and updates state of view checkboxes to match the state of multiView.
If addConnections is true, then also sets up Qt connections between checkboxes and viewToggled()
References TechDraw::DrawProjGroup::hasProjection(), and viewToggled().
Referenced by projectionTypeChanged(), and TaskProjGroup().
◆ updateTask()
void TaskProjGroup::updateTask | ( | ) |
◆ viewToggled
|
protectedslot |
References Gui::Command::Doc, App::DocumentObject::getNameInDocument(), TechDraw::DrawView::getScale(), TechDraw::DrawProjGroup::hasProjection(), App::PropertyEnumeration::isValue(), TechDraw::DrawProjGroup::removeProjection(), Gui::WaitCursor::restoreCursor(), TechDraw::DrawView::ScaleType, and setFractionalScale().
Referenced by setupViewCheckboxes().
Member Data Documentation
◆ m_mdi
|
protected |
Referenced by TaskProjGroup().
◆ m_page
|
protected |
Referenced by TaskProjGroup().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/TaskProjGroup.h
- src/Mod/TechDraw/Gui/TaskProjGroup.cpp