Gui::SelectionGate Class Referenceabstract

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 Gui::SelectionGate::~SelectionGate ( )
virtual

Member Function Documentation

◆ allow()

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::CarbonCopySelection::allow(), SketcherGui::ExternalSelection::allow(), PartDesignGui::NoDependentsSelection::allow(), and Gui::SelectionSingleton::setPreselect().


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