Gui::ControlSingleton Class Reference

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::TaskDialogactiveDialog () const
 

Static Public Member Functions

static void destruct (void)
 
static ControlSingletoninstance (void)
 

task view handling

Gui::TaskView::TaskViewtaskPanel () 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

◆ activeDialog()

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().

◆ closeDialog

void ControlSingleton::closeDialog ( )
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().

◆ destruct()

void ControlSingleton::destruct ( void  )
static

◆ instance()

ControlSingleton & ControlSingleton::instance ( void  )
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

◆ showDialog()

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().

◆ showModelView()

void ControlSingleton::showModelView ( )

◆ showTaskView

◆ tabPanel()

QTabWidget * ControlSingleton::tabPanel ( ) const

◆ taskPanel()


The documentation for this class was generated from the following files: