The control class. More...
#include <Control.h>
Public Member Functions | |
dialog handling | |
These methods are used to control the TaskDialog stuff. | |
void | showDialog (Gui::TaskView::TaskDialog *dlg) |
This method starts a task dialog in the task view. More... | |
Gui::TaskView::TaskDialog * | activeDialog () const |
Static Public Member Functions | |
static void | destruct (void) |
static ControlSingleton & | instance (void) |
task view handling | |
Gui::TaskView::TaskView * | taskPanel () const |
void | showModelView () |
raising the model view More... | |
QTabWidget * | tabPanel () const |
get the tab panel More... | |
bool | isAllowedAlterDocument (void) const |
bool | isAllowedAlterView (void) const |
bool | isAllowedAlterSelection (void) const |
void | accept () |
void | reject () |
void | closeDialog () |
void | showTaskView () |
raises the task view panel More... | |
Detailed Description
The control class.
Member Function Documentation
◆ accept
|
slot |
References Gui::TaskView::TaskView::accept(), and taskPanel().
Referenced by ArchComponent.ComponentTaskPanel::editObject().
◆ activeDialog()
Gui::TaskView::TaskDialog * ControlSingleton::activeDialog | ( | ) | const |
Referenced by Gui::TaskView::ControlPy::activeDialog(), Gui::Document::canClose(), PartGui::goDimensionAngularRoot(), PartGui::goDimensionLinearRoot(), StdCmdEdit::isActive(), StdCmdTextureMapping::isActive(), PartGui::PropertyEnumAttacherItem::openTask(), SurfaceGui::ViewProviderGeomFillSurface::setEdit(), SurfaceGui::ViewProviderFilling::setEdit(), TechDrawGui::ViewProviderHatch::setEdit(), TechDrawGui::ViewProviderGeomHatch::setEdit(), FemGui::ViewProviderFemConstraintPressure::setEdit(), PartDesignGui::ViewProviderShapeBinder::setEdit(), PartDesignGui::ViewProviderHole::setEdit(), FemGui::ViewProviderFemConstraintBearing::setEdit(), FemGui::ViewProviderFemConstraintPulley::setEdit(), FemGui::ViewProviderFemConstraintFixed::setEdit(), FemGui::ViewProviderFemConstraintFluidBoundary::setEdit(), FemGui::ViewProviderFemConstraintForce::setEdit(), FemGui::ViewProviderFemConstraintGear::setEdit(), FemGui::ViewProviderFemConstraintHeatflux::setEdit(), FemGui::ViewProviderFemConstraintTemperature::setEdit(), FemGui::ViewProviderFemConstraintInitialTemperature::setEdit(), PartDesignGui::ViewProviderPrimitive::setEdit(), FemGui::ViewProviderFemConstraintContact::setEdit(), FemGui::ViewProviderFemConstraintDisplacement::setEdit(), FemGui::ViewProviderFemConstraintPlaneRotation::setEdit(), FemGui::ViewProviderFemConstraintTransform::setEdit(), FemGui::ViewProviderFemPostObject::setEdit(), PartDesignGui::ViewProvider::setEdit(), PartDesignGui::ViewProviderBoolean::setEdit(), TechDrawGui::ViewProviderProjGroup::setEdit(), PartDesignGui::ViewProviderDatum::setEdit(), FemGui::ViewProviderFemPostFunction::setEdit(), PartGui::ViewProviderPartExt::setEdit(), PartGui::ViewProviderOffset::setEdit(), PartGui::ViewProviderThickness::setEdit(), Gui::Document::setEdit(), SketcherGui::ViewProviderSketch::setEdit(), Gui::ViewProviderLink::setEdit(), and Gui::TaskView::ControlPy::showDialog().
◆ closeDialog
|
slot |
References Gui::DockWnd::ComboView::closeDialog(), and Gui::DockWindowManager::instance().
Referenced by Gui::TaskView::ControlPy::closeDialog(), TechDrawGui::TaskSectionView::failNoObject(), PartDesignGui::ViewProviderHole::setEdit(), PartDesignGui::ViewProviderPrimitive::setEdit(), PartDesignGui::ViewProviderBoolean::setEdit(), PartDesignGui::ViewProviderDatum::setEdit(), PartGui::ViewProviderOffset::setEdit(), PartGui::ViewProviderThickness::setEdit(), PartGui::FaceColors::slotDeleteDocument(), Gui::ElementColors::slotDeleteDocument(), PartGui::FaceColors::slotDeleteObject(), Gui::ElementColors::slotDeleteObject(), PartGui::FaceColors::slotUndoDocument(), TechDrawGui::ViewProviderHatch::unsetEdit(), TechDrawGui::ViewProviderGeomHatch::unsetEdit(), TechDrawGui::ViewProviderRichAnno::unsetEdit(), TechDrawGui::ViewProviderLeader::unsetEdit(), Gui::ViewProviderDragger::unsetEdit(), TechDrawGui::ViewProviderDrawingView::unsetEdit(), FemGui::ViewProviderFemConstraint::unsetEdit(), RobotGui::ViewProviderTrajectoryCompound::unsetEdit(), RobotGui::ViewProviderTrajectoryDressUp::unsetEdit(), PathGui::ViewProviderPathCompound::unsetEdit(), FemGui::ViewProviderFemPostObject::unsetEdit(), PartGui::ViewProviderFillet::unsetEdit(), PartDesignGui::ViewProvider::unsetEdit(), TechDrawGui::ViewProviderProjGroupItem::unsetEdit(), TechDrawGui::ViewProviderProjGroup::unsetEdit(), TechDrawGui::ViewProviderWeld::unsetEdit(), TechDrawGui::ViewProviderViewSection::unsetEdit(), TechDrawGui::ViewProviderBalloon::unsetEdit(), TechDrawGui::ViewProviderViewPart::unsetEdit(), PartDesignGui::ViewProviderDatum::unsetEdit(), PartGui::ViewProviderChamfer::unsetEdit(), FemGui::ViewProviderFemPostFunction::unsetEdit(), FemGui::ViewProviderFemAnalysis::unsetEdit(), PartGui::ViewProviderOffset::unsetEdit(), SketcherGui::ViewProviderSketch::unsetEdit(), and Gui::ViewProviderLink::unsetEditViewer().
◆ destruct()
|
static |
◆ instance()
|
static |
Referenced by Gui::Control().
◆ isAllowedAlterDocument()
bool ControlSingleton::isAllowedAlterDocument | ( | void | ) | const |
If a task dialog is open then it indicates whether this task dialog allows other commands to modify the document while it is open. If no task dialog is open true is returned.
References Gui::TaskView::TaskDialog::isAllowedAlterDocument().
Referenced by Gui::TaskView::ControlPy::isAllowedAlterDocument().
◆ isAllowedAlterSelection()
bool ControlSingleton::isAllowedAlterSelection | ( | void | ) | const |
If a task dialog is open then it indicates whether this task dialog allows other commands to modify the selection while it is open. If no task dialog is open true is returned.
References Gui::TaskView::TaskDialog::isAllowedAlterSelection().
Referenced by Gui::TaskView::ControlPy::isAllowedAlterSelection().
◆ isAllowedAlterView()
bool ControlSingleton::isAllowedAlterView | ( | void | ) | const |
If a task dialog is open then it indicates whether this task dialog allows other commands to modify the 3d view while it is open. If no task dialog is open true is returned.
References Gui::TaskView::TaskDialog::isAllowedAlterView().
Referenced by Gui::TaskView::ControlPy::isAllowedAlterView().
◆ reject
|
slot |
References Gui::TaskView::TaskView::reject(), and taskPanel().
Referenced by drafttaskpanels.task_shapestring.ShapeStringTaskPanel::action(), PartDesignGui::ViewProviderShapeBinder::setEdit(), FemGui::ViewProviderFemConstraintFluidBoundary::setEdit(), FemGui::ViewProviderFemConstraintPulley::setEdit(), FemGui::ViewProviderFemConstraintFixed::setEdit(), FemGui::ViewProviderFemConstraintBearing::setEdit(), FemGui::ViewProviderFemConstraintGear::setEdit(), FemGui::ViewProviderFemConstraintForce::setEdit(), FemGui::ViewProviderFemPostObject::setEdit(), PartDesignGui::ViewProvider::setEdit(), FemGui::ViewProviderFemPostFunction::setEdit(), and SketcherGui::ViewProviderSketch::setEdit().
◆ showDialog()
void ControlSingleton::showDialog | ( | Gui::TaskView::TaskDialog * | dlg | ) |
This method starts a task dialog in the task view.
References Gui::DockWindowManager::getDockWindow(), Gui::getMainWindow(), Gui::DockWindowManager::instance(), App::AutoTransaction::setEnable(), and Gui::DockWnd::ComboView::showDialog().
Referenced by StdCmdToggleClipPlane::activated(), StdCmdSetAppearance::activated(), StdCmdTransform::activated(), StdCmdPlacement::activated(), StdCmdTextureMapping::activated(), RobotGui::ViewProviderEdge2TracObject::doubleClicked(), FemGui::ViewProviderSetNodes::doubleClicked(), PartGui::goDimensionAngularRoot(), PartGui::goDimensionLinearRoot(), PartGui::PropertyEnumAttacherItem::openTask(), SurfaceGui::ViewProviderGeomFillSurface::setEdit(), SurfaceGui::ViewProviderFilling::setEdit(), TechDrawGui::ViewProviderHatch::setEdit(), TechDrawGui::ViewProviderGeomHatch::setEdit(), TechDrawGui::ViewProviderRichAnno::setEdit(), TechDrawGui::ViewProviderLeader::setEdit(), Gui::ViewProviderDragger::setEdit(), RobotGui::ViewProviderEdge2TracObject::setEdit(), FemGui::ViewProviderSetNodes::setEdit(), RobotGui::ViewProviderTrajectoryCompound::setEdit(), FemGui::ViewProviderFemConstraintPressure::setEdit(), RobotGui::ViewProviderTrajectoryDressUp::setEdit(), PartDesignGui::ViewProviderShapeBinder::setEdit(), PathGui::ViewProviderPathCompound::setEdit(), FemGui::ViewProviderFemConstraintForce::setEdit(), FemGui::ViewProviderFemConstraintGear::setEdit(), PartDesignGui::ViewProviderHole::setEdit(), FemGui::ViewProviderFemConstraintPulley::setEdit(), FemGui::ViewProviderFemConstraintBearing::setEdit(), FemGui::ViewProviderFemConstraintFixed::setEdit(), FemGui::ViewProviderFemConstraintFluidBoundary::setEdit(), FemGui::ViewProviderFemMeshShapeNetgen::setEdit(), FemGui::ViewProviderFemConstraintDisplacement::setEdit(), FemGui::ViewProviderFemConstraintHeatflux::setEdit(), FemGui::ViewProviderFemConstraintInitialTemperature::setEdit(), PartDesignGui::ViewProviderPrimitive::setEdit(), FemGui::ViewProviderFemConstraintTemperature::setEdit(), FemGui::ViewProviderFemConstraintContact::setEdit(), FemGui::ViewProviderFemConstraintPlaneRotation::setEdit(), FemGui::ViewProviderFemConstraintTransform::setEdit(), FemGui::ViewProviderFemPostObject::setEdit(), PartGui::ViewProviderFillet::setEdit(), PartDesignGui::ViewProvider::setEdit(), PartDesignGui::ViewProviderBoolean::setEdit(), TechDrawGui::ViewProviderWeld::setEdit(), TechDrawGui::ViewProviderViewSection::setEdit(), TechDrawGui::ViewProviderBalloon::setEdit(), TechDrawGui::ViewProviderProjGroup::setEdit(), TechDrawGui::ViewProviderViewPart::setEdit(), PartDesignGui::ViewProviderDatum::setEdit(), PartGui::ViewProviderChamfer::setEdit(), FemGui::ViewProviderFemPostFunction::setEdit(), PartGui::ViewProviderPartExt::setEdit(), PartGui::ViewProviderOffset::setEdit(), PartGui::ViewProviderThickness::setEdit(), SketcherGui::ViewProviderSketch::setEdit(), Gui::ViewProviderLink::setEdit(), Gui::ViewProviderLink::setEditViewer(), and Gui::TaskView::ControlPy::showDialog().
◆ showModelView()
void ControlSingleton::showModelView | ( | ) |
raising the model view
References Gui::DockWindowManager::instance(), and Gui::DockWnd::ComboView::showTreeView().
◆ showTaskView
|
slot |
raises the task view panel
References Gui::DockWindowManager::instance(), and Gui::DockWnd::ComboView::showTaskView().
Referenced by PartDesignGui::Workbench::activated(), RobotGui::Workbench::activated(), and Gui::TaskView::ControlPy::showTaskView().
◆ tabPanel()
QTabWidget * ControlSingleton::tabPanel | ( | ) | const |
get the tab panel
References Gui::DockWnd::ComboView::getTabPanel(), and Gui::DockWindowManager::instance().
◆ taskPanel()
Gui::TaskView::TaskView * ControlSingleton::taskPanel | ( | ) | const |
The documentation for this class was generated from the following files:
- src/Gui/Control.h
- src/Gui/Control.cpp