SelectionGate The selection gate allows or disallows selection of certain types. More...
#include <Selection.h>
Public Member Functions | |
virtual bool | allow (App::Document *, App::DocumentObject *, const char *)=0 |
virtual | ~SelectionGate () |
Public Attributes | |
std::string | notAllowedReason |
notAllowedReason is a string that sets the message to be displayed in statusbar for cluing the user on why is the selection not allowed. More... | |
Detailed Description
SelectionGate The selection gate allows or disallows selection of certain types.
It has to be registered to the selection.
Constructor & Destructor Documentation
◆ ~SelectionGate()
|
virtual |
Member Function Documentation
◆ allow()
|
pure virtual |
Implemented in PartDesignGui::CombineSelectionFilterGates, PartDesignGui::NoDependentsSelection, SketcherGui::CarbonCopySelection, SketcherGui::ExternalSelection, SurfaceGui::GeomFillSurface::EdgeSelection, PartDesignGui::ReferenceSelection, FemGui::FemSelectionGate, Gui::ElementColors::Private, SketcherGui::ExtendSelection, SketcherGui::TrimmingSelection, SketcherGui::FilletSelection, SketcherGui::GenericConstraintSelection, SurfaceGui::FillingPanel::ShapeSelection, PartGui::EdgeFaceSelection, PartGui::SweepWidget::Private::EdgeSelection, PartGui::FaceSelection, PartGui::ThicknessWidget::Private::FaceSelection, PartGui::DlgExtrusion::EdgeSelection, PartGui::DlgRevolution::EdgeSelection, SurfaceGui::FillingUnboundPanel::ShapeSelection, SurfaceGui::FillingVertexPanel::VertexSelection, PartGui::ShapeSelection, PartGui::DlgProjectionOnSurface::FaceSelection, PartGui::DlgProjectionOnSurface::EdgeSelection, PartGui::BoxSelection::FaceSelectionGate, Gui::SelectionGateFilterExternal, Gui::SelectionFilterGatePython, Gui::SelectionGatePython, and Gui::SelectionFilterGate.
Referenced by Gui::SelectionSingleton::addSelection(), and Gui::SelectionSingleton::setPreselect().
Member Data Documentation
◆ notAllowedReason
std::string Gui::SelectionGate::notAllowedReason |
notAllowedReason is a string that sets the message to be displayed in statusbar for cluing the user on why is the selection not allowed.
Set this variable in allow() implementation. Enclose the literal into QT_TR_NOOP() for translatability.
Referenced by Gui::SelectionSingleton::addSelection(), Gui::SelectionGateFilterExternal::allow(), SketcherGui::ExternalSelection::allow(), SketcherGui::CarbonCopySelection::allow(), and Gui::SelectionSingleton::setPreselect().
The documentation for this class was generated from the following file:
- src/Gui/Selection.h