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... | |
The control class.
|
slot |
Gui::TaskView::TaskDialog * ControlSingleton::activeDialog | ( | ) | const |
Referenced by Gui::TaskView::ControlPy::activeDialog(), Gui::Document::canClose(), PartGui::ViewProviderPartExt::changeFaceColors(), PartGui::goDimensionAngularRoot(), PartGui::goDimensionLinearRoot(), StdCmdEdit::isActive(), StdCmdTextureMapping::isActive(), PartGui::PropertyEnumAttacherItem::openTask(), Gui::Document::setEdit(), FemGui::ViewProviderFemConstraintBearing::setEdit(), FemGui::ViewProviderFemConstraintContact::setEdit(), FemGui::ViewProviderFemConstraintDisplacement::setEdit(), FemGui::ViewProviderFemConstraintFixed::setEdit(), FemGui::ViewProviderFemConstraintFluidBoundary::setEdit(), FemGui::ViewProviderFemConstraintForce::setEdit(), FemGui::ViewProviderFemConstraintGear::setEdit(), FemGui::ViewProviderFemConstraintHeatflux::setEdit(), FemGui::ViewProviderFemConstraintInitialTemperature::setEdit(), FemGui::ViewProviderFemConstraintPlaneRotation::setEdit(), FemGui::ViewProviderFemConstraintPressure::setEdit(), FemGui::ViewProviderFemConstraintPulley::setEdit(), FemGui::ViewProviderFemConstraintSpring::setEdit(), FemGui::ViewProviderFemConstraintTemperature::setEdit(), FemGui::ViewProviderFemConstraintTransform::setEdit(), FemGui::ViewProviderFemPostFunction::setEdit(), FemGui::ViewProviderFemPostObject::setEdit(), PartGui::ViewProviderOffset::setEdit(), PartGui::ViewProviderThickness::setEdit(), PartDesignGui::ViewProviderHole::setEdit(), PartDesignGui::ViewProviderPrimitive::setEdit(), SurfaceGui::ViewProviderFilling::setEdit(), SurfaceGui::ViewProviderGeomFillSurface::setEdit(), SurfaceGui::ViewProviderSections::setEdit(), TechDrawGui::ViewProviderProjGroup::setEdit(), Gui::ViewProviderLink::setEdit(), PartDesignGui::ViewProvider::setEdit(), PartDesignGui::ViewProviderBoolean::setEdit(), PartDesignGui::ViewProviderDatum::setEdit(), PartDesignGui::ViewProviderShapeBinder::setEdit(), SketcherGui::ViewProviderSketch::setEdit(), TechDrawGui::ViewProviderGeomHatch::setEdit(), and Gui::TaskView::ControlPy::showDialog().
|
slot |
References Gui::DockWnd::ComboView::closeDialog(), and Gui::DockWindowManager::instance().
Referenced by Gui::TaskView::ControlPy::closeDialog(), TechDrawGui::TaskSectionView::failNoObject(), PartGui::ViewProviderOffset::setEdit(), PartGui::ViewProviderThickness::setEdit(), PartDesignGui::ViewProviderHole::setEdit(), PartDesignGui::ViewProviderPrimitive::setEdit(), PartDesignGui::ViewProviderBoolean::setEdit(), PartDesignGui::ViewProviderDatum::setEdit(), Gui::ElementColors::slotDeleteDocument(), PartGui::FaceColors::slotDeleteDocument(), PartGui::FaceColors::slotDeleteObject(), Gui::ElementColors::slotDeleteObject(), PartGui::FaceColors::slotUndoDocument(), FemGui::ViewProviderFemAnalysis::unsetEdit(), FemGui::ViewProviderFemConstraint::unsetEdit(), FemGui::ViewProviderFemPostFunction::unsetEdit(), FemGui::ViewProviderFemPostObject::unsetEdit(), PartGui::ViewProviderFillet::unsetEdit(), PartGui::ViewProviderChamfer::unsetEdit(), PartGui::ViewProviderOffset::unsetEdit(), PartGui::ViewProviderPrimitive::unsetEdit(), PathGui::ViewProviderPathCompound::unsetEdit(), RobotGui::ViewProviderTrajectoryCompound::unsetEdit(), RobotGui::ViewProviderTrajectoryDressUp::unsetEdit(), TechDrawGui::ViewProviderBalloon::unsetEdit(), TechDrawGui::ViewProviderDimension::unsetEdit(), TechDrawGui::ViewProviderLeader::unsetEdit(), TechDrawGui::ViewProviderProjGroup::unsetEdit(), TechDrawGui::ViewProviderProjGroupItem::unsetEdit(), TechDrawGui::ViewProviderRichAnno::unsetEdit(), TechDrawGui::ViewProviderViewPart::unsetEdit(), TechDrawGui::ViewProviderViewSection::unsetEdit(), TechDrawGui::ViewProviderWeld::unsetEdit(), Gui::ViewProviderDragger::unsetEdit(), PartDesignGui::ViewProvider::unsetEdit(), PartDesignGui::ViewProviderDatum::unsetEdit(), SketcherGui::ViewProviderSketch::unsetEdit(), TechDrawGui::ViewProviderDrawingView::unsetEdit(), TechDrawGui::ViewProviderGeomHatch::unsetEdit(), TechDrawGui::ViewProviderHatch::unsetEdit(), and Gui::ViewProviderLink::unsetEditViewer().
|
static |
|
static |
Referenced by Gui::Control().
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().
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().
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().
|
slot |
References Gui::TaskView::TaskView::reject(), and taskPanel().
Referenced by draftguitools.gui_hatch.Draft_Hatch_TaskPanel::accept(), draftguitools.gui_setstyle.Draft_SetStyle_TaskPanel::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelCmd::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelEdit::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanel::action(), femexamples.examplesgui.FemExamples::clicked(), FemGui::ViewProviderFemConstraintBearing::setEdit(), FemGui::ViewProviderFemConstraintFixed::setEdit(), FemGui::ViewProviderFemConstraintFluidBoundary::setEdit(), FemGui::ViewProviderFemConstraintForce::setEdit(), FemGui::ViewProviderFemConstraintGear::setEdit(), FemGui::ViewProviderFemConstraintPulley::setEdit(), FemGui::ViewProviderFemPostFunction::setEdit(), FemGui::ViewProviderFemPostObject::setEdit(), PartDesignGui::ViewProvider::setEdit(), PartDesignGui::ViewProviderShapeBinder::setEdit(), SketcherGui::ViewProviderSketch::setEdit(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
void ControlSingleton::showDialog | ( | Gui::TaskView::TaskDialog * | dlg | ) |
This method starts a task dialog in the task view.
References draftgeoutils.intersections::connect(), Gui::DockWindowManager::getDockWindow(), Gui::getMainWindow(), Gui::DockWindowManager::instance(), App::AutoTransaction::setEnable(), and Gui::DockWnd::ComboView::showDialog().
Referenced by StdCmdTransform::activated(), StdCmdPlacement::activated(), StdCmdSetAppearance::activated(), StdCmdTextureMapping::activated(), PartGui::ViewProviderPartExt::changeFaceColors(), FemGui::ViewProviderSetNodes::doubleClicked(), RobotGui::ViewProviderEdge2TracObject::doubleClicked(), PartGui::goDimensionAngularRoot(), PartGui::goDimensionLinearRoot(), PartGui::PropertyEnumAttacherItem::openTask(), FemGui::ViewProviderFemConstraintBearing::setEdit(), FemGui::ViewProviderFemConstraintContact::setEdit(), FemGui::ViewProviderFemConstraintDisplacement::setEdit(), FemGui::ViewProviderFemConstraintFixed::setEdit(), FemGui::ViewProviderFemConstraintFluidBoundary::setEdit(), FemGui::ViewProviderFemConstraintForce::setEdit(), FemGui::ViewProviderFemConstraintGear::setEdit(), FemGui::ViewProviderFemConstraintHeatflux::setEdit(), FemGui::ViewProviderFemConstraintInitialTemperature::setEdit(), FemGui::ViewProviderFemConstraintPlaneRotation::setEdit(), FemGui::ViewProviderFemConstraintPressure::setEdit(), FemGui::ViewProviderFemConstraintPulley::setEdit(), FemGui::ViewProviderFemConstraintSpring::setEdit(), FemGui::ViewProviderFemConstraintTemperature::setEdit(), FemGui::ViewProviderFemConstraintTransform::setEdit(), FemGui::ViewProviderFemMeshShapeNetgen::setEdit(), FemGui::ViewProviderFemPostFunction::setEdit(), FemGui::ViewProviderFemPostObject::setEdit(), FemGui::ViewProviderSetNodes::setEdit(), PartGui::ViewProviderFillet::setEdit(), PartGui::ViewProviderChamfer::setEdit(), PartGui::ViewProviderOffset::setEdit(), PartGui::ViewProviderThickness::setEdit(), PartGui::ViewProviderPrimitive::setEdit(), PartDesignGui::ViewProviderHole::setEdit(), PartDesignGui::ViewProviderPrimitive::setEdit(), PathGui::ViewProviderPathCompound::setEdit(), RobotGui::ViewProviderEdge2TracObject::setEdit(), RobotGui::ViewProviderTrajectoryCompound::setEdit(), RobotGui::ViewProviderTrajectoryDressUp::setEdit(), SurfaceGui::ViewProviderFilling::setEdit(), SurfaceGui::ViewProviderGeomFillSurface::setEdit(), SurfaceGui::ViewProviderSections::setEdit(), TechDrawGui::ViewProviderBalloon::setEdit(), TechDrawGui::ViewProviderDimension::setEdit(), TechDrawGui::ViewProviderLeader::setEdit(), TechDrawGui::ViewProviderProjGroup::setEdit(), TechDrawGui::ViewProviderRichAnno::setEdit(), TechDrawGui::ViewProviderViewPart::setEdit(), TechDrawGui::ViewProviderViewSection::setEdit(), TechDrawGui::ViewProviderWeld::setEdit(), Gui::ViewProviderDragger::setEdit(), Gui::ViewProviderLink::setEdit(), PartDesignGui::ViewProvider::setEdit(), PartDesignGui::ViewProviderBoolean::setEdit(), PartDesignGui::ViewProviderDatum::setEdit(), PartDesignGui::ViewProviderShapeBinder::setEdit(), SketcherGui::ViewProviderSketch::setEdit(), TechDrawGui::ViewProviderGeomHatch::setEdit(), TechDrawGui::ViewProviderHatch::setEdit(), Gui::ViewProviderLink::setEditViewer(), and Gui::TaskView::ControlPy::showDialog().
void ControlSingleton::showModelView | ( | ) |
raising the model view
References Gui::DockWindowManager::instance(), and Gui::DockWnd::ComboView::showTreeView().
Referenced by Gui::TaskView::ControlPy::showModelView().
|
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().
QTabWidget * ControlSingleton::tabPanel | ( | ) | const |
get the tab panel
References Gui::DockWnd::ComboView::getTabPanel(), and Gui::DockWindowManager::instance().
Gui::TaskView::TaskView * ControlSingleton::taskPanel | ( | ) | const |
References Gui::DockWnd::ComboView::getTaskPanel(), and Gui::DockWindowManager::instance().
Referenced by accept(), Gui::TaskView::ControlPy::addTaskWatcher(), Gui::Workbench::addTaskWatcher(), PathScripts.PathJobGui.ViewProvider::attach(), Gui::TaskView::ControlPy::clearTaskWatcher(), PathScripts.PathJobGui.ViewProvider::openTaskPanel(), reject(), Gui::Workbench::removeTaskWatcher(), PathScripts.PathJobGui.ViewProvider::resetTaskPanel(), and PathScripts.PathJobGui.ViewProvider::unsetEdit().