A common base for sketch based, dressup and other solid parameters dialogs. More...
#include <TaskFeatureParameters.h>
Public Member Functions | |
virtual bool | accept () |
is called by the framework if the dialog is accepted (Ok) More... | |
virtual bool | reject () |
is called by the framework if the dialog is rejected (Cancel) More... | |
TaskDlgFeatureParameters (PartDesignGui::ViewProvider *vp) | |
PartDesignGui::ViewProvider * | viewProvider () const |
Returns the view provider dialog is runed for. More... | |
virtual | ~TaskDlgFeatureParameters () |
Public Member Functions inherited from Gui::TaskView::TaskDialog | |
ButtonPosition | buttonPosition () const |
bool | canClose () const |
virtual void | clicked (int) |
is called by the framework if a button is clicked which has no accept or reject role More... | |
void | emitDestructionSignal () |
const std::vector< QWidget * > & | getDialogContent (void) const |
const std::string & | getDocumentName () const |
virtual QDialogButtonBox::StandardButtons | getStandardButtons (void) const |
tells the framework which buttons are wished for the dialog More... | |
virtual void | helpRequested () |
is called by the framework if the user press the help button More... | |
virtual bool | isAllowedAlterDocument (void) const |
virtual bool | isAllowedAlterSelection (void) const |
virtual bool | isAllowedAlterView (void) const |
bool | isEscapeButtonEnabled () const |
virtual void | modifyStandardButtons (QDialogButtonBox *) |
virtual bool | needsFullSpace () const |
virtual void | open () |
is called by the framework when the dialog is opened More... | |
void | setButtonPosition (ButtonPosition p) |
void | setDocumentName (const std::string &doc) |
void | setEscapeButtonEnabled (bool on) |
Defines whether a task dialog can be rejected by pressing Esc. More... | |
TaskDialog () | |
~TaskDialog () | |
Protected Attributes | |
PartDesignGui::ViewProvider * | vp |
Protected Attributes inherited from Gui::TaskView::TaskDialog | |
std::vector< QWidget * > | Content |
List of TaskBoxes of that dialog. More... | |
ButtonPosition | pos |
Additional Inherited Members | |
Public Types inherited from Gui::TaskView::TaskDialog | |
enum | ButtonPosition { North, South } |
Signals inherited from Gui::TaskView::TaskDialog | |
void | aboutToBeDestroyed () |
Detailed Description
A common base for sketch based, dressup and other solid parameters dialogs.
Constructor & Destructor Documentation
◆ TaskDlgFeatureParameters()
TaskDlgFeatureParameters::TaskDlgFeatureParameters | ( | PartDesignGui::ViewProvider * | vp | ) |
References vp.
◆ ~TaskDlgFeatureParameters()
|
virtual |
Member Function Documentation
◆ accept()
|
virtual |
is called by the framework if the dialog is accepted (Ok)
Reimplemented from Gui::TaskView::TaskDialog.
Reimplemented in PartDesignGui::TaskDlgTransformedParameters, PartDesignGui::TaskDlgPipeParameters, PartDesignGui::TaskDlgMultiTransformParameters, PartDesignGui::TaskDlgDressUpParameters, PartDesignGui::TaskDlgMirroredParameters, PartDesignGui::TaskDlgLoftParameters, PartDesignGui::TaskDlgScaledParameters, PartDesignGui::TaskDlgChamferParameters, PartDesignGui::TaskDlgDraftParameters, PartDesignGui::TaskDlgThicknessParameters, PartDesignGui::TaskDlgSketchBasedParameters, and PartDesignGui::TaskDlgFilletParameters.
References Gui::Command::commitCommand(), Gui::TaskView::TaskDialog::Content, Gui::Command::Doc, Base::Persistence::getClassTypeId(), Gui::TaskView::TaskDialog::getDialogContent(), Gui::getMainWindow(), Base::Type::getName(), Gui::ViewProviderDocumentObject::getObject(), App::DocumentObject::getStatusString(), Base::Persistence::getTypeId(), Gui::Command::Gui, Base::Type::isDerivedFrom(), App::DocumentObject::isValid(), and vp.
Referenced by PartDesignGui::TaskDlgSketchBasedParameters::accept(), PartDesignGui::TaskDlgDressUpParameters::accept(), PartDesignGui::TaskDlgMultiTransformParameters::accept(), and PartDesignGui::TaskDlgTransformedParameters::accept().
◆ reject()
|
virtual |
is called by the framework if the dialog is rejected (Cancel)
Reimplemented from Gui::TaskView::TaskDialog.
Reimplemented in PartDesignGui::TaskDlgTransformedParameters, PartDesignGui::TaskDlgDressUpParameters, and PartDesignGui::TaskDlgSketchBasedParameters.
References Gui::Command::abortCommand(), PartDesign::Body::findBodyOf(), PartDesign::Feature::getBaseObject(), Gui::TaskView::TaskDialog::getDialogContent(), Gui::ViewProviderDocumentObject::getObject(), App::PropertyLink::getValue(), Gui::Application::getViewProvider(), Gui::Command::Gui, Gui::Application::Instance, Gui::ViewProvider::show(), Part::BodyBase::Tip, and vp.
Referenced by PartDesignGui::TaskDlgSketchBasedParameters::reject(), PartDesignGui::TaskDlgDressUpParameters::reject(), and PartDesignGui::TaskDlgTransformedParameters::reject().
◆ viewProvider()
PartDesignGui::ViewProvider* PartDesignGui::TaskDlgFeatureParameters::viewProvider | ( | ) | const |
Returns the view provider dialog is runed for.
Referenced by PartDesignGui::ViewProvider::setEdit().
Member Data Documentation
◆ vp
|
protected |
Referenced by PartDesignGui::TaskDlgSketchBasedParameters::accept(), PartDesignGui::TaskDlgDraftParameters::accept(), PartDesignGui::TaskDlgThicknessParameters::accept(), PartDesignGui::TaskDlgLoftParameters::accept(), PartDesignGui::TaskDlgMirroredParameters::accept(), accept(), PartDesignGui::TaskDlgDressUpParameters::accept(), PartDesignGui::TaskDlgMultiTransformParameters::accept(), PartDesignGui::TaskDlgPipeParameters::accept(), PartDesignGui::TaskDlgDressUpParameters::getDressUpView(), PartDesignGui::TaskDlgHoleParameters::getHoleView(), PartDesignGui::TaskDlgLoftParameters::getLoftView(), PartDesignGui::TaskDlgPadParameters::getPadView(), PartDesignGui::TaskDlgPipeParameters::getPipeView(), PartDesignGui::TaskDlgPocketParameters::getPocketView(), PartDesignGui::TaskDlgRevolutionParameters::getRevolutionView(), PartDesignGui::TaskDlgTransformedParameters::getTransformedView(), PartDesignGui::TaskDlgSketchBasedParameters::reject(), reject(), TaskDlgFeatureParameters(), PartDesignGui::TaskDlgHoleParameters::TaskDlgHoleParameters(), PartDesignGui::TaskDlgPadParameters::TaskDlgPadParameters(), PartDesignGui::TaskDlgPocketParameters::TaskDlgPocketParameters(), and PartDesignGui::TaskDlgTransformedParameters::TaskDlgTransformedParameters().
The documentation for this class was generated from the following files:
- src/Mod/PartDesign/Gui/TaskFeatureParameters.h
- src/Mod/PartDesign/Gui/TaskFeatureParameters.cpp