SHAPER
9.13.0
|
Implementation of widget for selection. More...
Public Types | |
enum | ValueState { Stored , ModifiedInPP , ModifiedInViewer , Reset } |
State of the widget. More... | |
enum | EnableState { On , Off , DefinedInPreferences } |
the value is reset More... | |
Signals | |
void | beforeValuesChanged () |
The signal about widget values are to be changed. More... | |
void | valuesChanged () |
The signal about widget values changed. More... | |
void | valuesModified () |
The signal about widget values modified. More... | |
void | afterValuesChanged () |
The signal about widget values are to be changed. More... | |
void | beforeValuesRestored () |
The signal about widget values are to be restored. More... | |
void | afterValuesRestored () |
The signal about widget values are to be restored. More... | |
void | keyReleased (QObject *theObject, QKeyEvent *theEvent) |
The signal about key release on the control, that corresponds to the attribute. More... | |
void | enterClicked (QObject *theObject) |
The signal is emitted if the enter is clicked in the control of the widget. More... | |
void | focusInWidget (ModuleBase_ModelWidget *theWidget) |
The signal about the widget is get focus. More... | |
void | focusOutWidget (ModuleBase_ModelWidget *theWidget) |
The signal about the widget is lost focus. More... | |
void | valueStateChanged (int theState) |
The signal about value state modification. More... | |
void | objectUpdated () |
The signal is emitted after flush of updates singal for the widget. More... | |
Public Member Functions | |
ModuleBase_WidgetSelector (QWidget *theParent, ModuleBase_IWorkshop *theWorkshop, const Config_WidgetAPI *theData) | |
Constructor. More... | |
virtual void | selectionModes (int &theModuleSelectionModes, QIntList &theModes) |
Fills given container with selection modes if the widget has it. More... | |
virtual bool | isViewerSelector () |
Defines if it is supposed that the widget should interact with the viewer. More... | |
virtual void | updateSelectionModesAndFilters (bool toActivate) |
Activate or deactivate selection and selection filters. More... | |
virtual bool | isValidSelectionCustom (const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs) |
Checks the widget validity. More... | |
virtual bool | setSelectionCustom (const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs) |
Fills the attribute with the value of the selected owner. More... | |
virtual void | deactivate () |
The methiod called when widget is deactivated. More... | |
virtual QList< std::shared_ptr< ModuleBase_ViewerPrs > > | getAttributeSelection () const |
Return the attribute values wrapped in a list of viewer presentations. More... | |
virtual bool | isWholeResultAllowed () const |
virtual bool | isValidSelection (const std::shared_ptr< ModuleBase_ViewerPrs > &theValue) |
Checks all widget validator if the owner is valid. More... | |
ObjectPtr | findPresentedObject (const AISObjectPtr &theAIS) const |
Returns data object by AIS. More... | |
void | clearValidatedCash () |
Clear all validated cash in the widget. More... | |
bool | isFilterActivated () const |
Returns true if the workshop validator filter has been already activated. More... | |
virtual void | selectionFilters (QIntList &theModuleSelectionFilters, SelectMgr_ListOfFilter &theSelectionFilters) |
Appends into container of workshop selection filters. More... | |
bool | reset () |
Fills the widget with default values. More... | |
bool | isInitialized (ObjectPtr theObject) const |
Returns the state whether the attribute of the feature is initialized. More... | |
bool | isComputedDefault () const |
Returns true, if default value of the widget should be computed on operation's execute, like radius for circle's constraint (can not be zero) More... | |
std::string | getDefaultValue () const |
Returns true, if default value of the widget is defined in the XML and it is not the computed value. More... | |
bool | isInternal () const |
Returns true, if widget is internal. More... | |
bool | isObligatory () const |
Returns true, if the obligatory value of the widget is not defined in the XML or has true value. More... | |
virtual bool | isValueEnabled () const |
Returns true, if the widget value is enabled and might be modified manualy. More... | |
bool | isUseReset () const |
Returns this parameter value in the xml file. More... | |
std::string | isModifiedInEdit () const |
Returns this parameter value in the xml file. More... | |
ValueState | getValueState () const |
Returns this widget value state. More... | |
void | processValueState () |
Stores the widget value if it is modified. More... | |
Events_InfoMessage | getValueStateError () const |
Returns an attribute error according to the value state It exists in all cases excepring the "Store" case. More... | |
virtual bool | canAcceptFocus () const |
Defines if it is supported to set the value in this widget By default it returns true. More... | |
virtual QString | getError (const bool theValueStateChecked=true) const |
Returns the widget error, get it from the attribute validator and state of the widget If the feature is correct, it returns an empty value. More... | |
virtual bool | setSelection (QList< std::shared_ptr< ModuleBase_ViewerPrs >> &theValues, const bool theToValidate) |
Set the given wrapped value to the current widget This value should be processed in the widget according to the needs. More... | |
virtual void | getHighlighted (QList< std::shared_ptr< ModuleBase_ViewerPrs >> &theValues) |
Returns values which should be highlighted when the whidget is active. More... | |
ModuleBase_WidgetValidator * | widgetValidator () |
Returns widget validator, by default it is NULL. To be created in a child if necessary. More... | |
bool | restoreValue () |
Restore value from attribute data to the widget's control. More... | |
bool | storeValue () |
Saves the internal parameters to the given feature. More... | |
virtual bool | focusTo () |
Set focus to the first control of the current widget. More... | |
virtual void | selectContent () |
Select the internal content if it can be selected. It is empty in the default realization. More... | |
void | activate () |
The method called when widget is activated. More... | |
virtual void | updateAfterDeactivation () |
Opportunity to do something after the active widget of the property panel changed. More... | |
virtual void | updateAfterActivation () |
Opportunity to do something after the active widget of the property panel changed. More... | |
virtual bool | needToBeActivated () |
The method called if widget should be activated always. More... | |
virtual QList< QWidget * > | getControls () const =0 |
Returns list of widget controls. More... | |
QWidget * | getControlAcceptingFocus (const bool isFirst) |
Returns the first or the last control that can accept the focus. More... | |
virtual bool | eventFilter (QObject *theObject, QEvent *theEvent) |
FocusIn events processing. More... | |
virtual void | enableFocusProcessing () |
Enables processing of focus event on all controls by the widget if this widget is not obligatory and set no-focus policy otherwise. More... | |
virtual void | setHighlighted (bool isHighlighted) |
Switch On/Off highlighting of the widget. More... | |
std::string | attributeID () const |
Returns the attribute name. More... | |
FeaturePtr | feature () const |
virtual std::string | context () const |
virtual void | setFeature (const FeaturePtr &theFeature, const bool theToStoreValue=false, const bool isUpdateFlushed=true) |
Set feature which is processing by active operation. More... | |
virtual void | setEditingMode (bool isEditing) |
Editing mode depends on mode of current operation. This value is defined by it. More... | |
bool | isEditingMode () const |
virtual bool | canProcessAction (ModuleBase_ActionType theActionType, bool &isActionEnabled) |
Returns true if the action can be processed. More... | |
virtual bool | processAction (ModuleBase_ActionType theActionType, const ActionParamPtr &theParam=ActionParamPtr()) |
Returns true if the event is processed. The default implementation is empty, returns false. More... | |
virtual QList< ActionInfo > | actionsList (ModuleBase_ActionType theActionType) const |
Returns list of accessible actions for Undo/Redo commands. More... | |
void | updateObject (ObjectPtr theObj) |
Sends Update and Redisplay for the given object. More... | |
virtual QString | translate (const std::string &theStr) const |
Translate passed string with widget context() More... | |
void | emitFocusInWidget () |
Emit focus in widget to set this control as active in propety panel. More... | |
virtual bool | usesAttribute () const |
Returns True if the widget uses feature attribute. More... | |
virtual void | onFeatureAccepted () |
It is called when user press Ok or OkPlus buttons in the parent property panel By default this slot does nothing. More... | |
virtual bool | isInformative () const |
Returns True in case if the widget contains useful information for inspection tool. More... | |
virtual void | showInformativePage () |
If widgets has several panels then this method has to show a page which contains information for current feature. More... | |
virtual bool | isModified () const |
Returns True if data of its attribute was modified. More... | |
virtual void | setReadOnly (bool isReadOnly) |
virtual bool | isReadOnly () const |
bool | canUseExternalParts () const |
Returns true if the widget should have access to external parts. More... | |
Static Public Member Functions | |
static void | blockFeatureAttribute (const AttributePtr &theAttribute, const FeaturePtr &theFeature, const bool &theToBlock, bool &isFlushesActived, bool &isAttributeSetInitializedBlocked, bool &isAttributeSendUpdatedBlocked) |
Block the model flush of update and intialization of attribute. More... | |
static bool | isValidAttribute (const AttributePtr &theAttribute) |
Checks the current attibute in all attribute validators. More... | |
static ModuleBase_ModelWidget * | findModelWidget (ModuleBase_IPropertyPanel *theProp, QWidget *theWidget) |
Finds model widget parent of the given sub widget. More... | |
Protected Slots | |
void | onWidgetValuesChanged () |
Processing of values changed in model widget by store the current value to the feature. More... | |
void | onWidgetValuesModified () |
Changes widget state. More... | |
Protected Member Functions | |
virtual bool | processSelection () |
Returns true if envent is processed. The default implementation is empty, returns false. More... | |
virtual void | updateOnSelectionChanged (const bool theDone) |
Emits model changed info, updates the current control by selection change. More... | |
virtual void | updateFocus () |
Update focus after the attribute value change. More... | |
QIntList | getShapeTypes () const |
Retunrs a list of possible shape types. More... | |
virtual QIntList | shapeTypes () const =0 |
Retunrs a list of possible shape types. More... | |
virtual void | updateSelectionName () |
Computes and updates name of selected object in the widget. More... | |
virtual void | activateCustom () |
The methiod called when widget is activated. More... | |
bool | acceptSubShape (const GeomShapePtr &theShape, const std::shared_ptr< ModelAPI_Result > &theResult) const |
Returns true if selected shape corresponds to requested shape types. More... | |
virtual void | getGeomSelection (const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs, ObjectPtr &theObject, GeomShapePtr &theShape) |
Return an object and geom shape by the viewer presentation. More... | |
virtual bool | isValidInFilters (const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs) |
Checks whether all active viewer filters validate the presentation. More... | |
bool | isValidSelectionForAttribute (const std::shared_ptr< ModuleBase_ViewerPrs > &theValue, const AttributePtr &theAttribute) |
Checks all attribute validators returns valid. More... | |
virtual AttributePtr | attribute () const |
Retunrs attribute, which should be validated. More... | |
virtual void | storeAttributeValue (const AttributePtr &theAttribute) |
Creates a backup of the current values of the attribute It should be realized in the specific widget because of different parameters of the current attribute. More... | |
virtual void | restoreAttributeValue (const AttributePtr &theAttribute, const bool theValid) |
Creates a backup of the current values of the attribute It should be realized in the specific widget because of different parameters of the current attribute. More... | |
QList< std::shared_ptr< ModuleBase_ViewerPrs > > | getFilteredSelected () |
Returns a list of selected presentations in the viewer and object browser The presentations from the object browser are filtered by the AIS context filters. More... | |
virtual void | blockAttribute (const AttributePtr &theAttribute, const bool &theToBlock, bool &isFlushesActived, bool &isAttributeSetInitializedBlocked, bool &isAttributeSendUpdatedBlocked) |
Block the model flush of update and intialization of attribute. More... | |
bool | getValidState (const std::shared_ptr< ModuleBase_ViewerPrs > &theValue, bool &theValid) |
Gets the validity state of the presentation in an internal map. More... | |
void | storeValidState (const std::shared_ptr< ModuleBase_ViewerPrs > &theValue, const bool theValid) |
Store the validity state of the presentation in an internal map. More... | |
void | setDefaultValue (const std::string &theValue) |
Sets default value of widget. More... | |
void | setAttributeID (const std::string &theAttribute) |
Set the attribute name. More... | |
ValueState | setValueState (const ValueState &theState) |
Sets the current value state. More... | |
bool | blockValueState (const bool theBlocked) |
Blocks the value state change. More... | |
virtual void | initializeValueByActivate () |
Compute the feature default value and fill the controls with it or store the control value to the feature. More... | |
virtual bool | storeValueCustom ()=0 |
Saves the internal parameters to the given feature. More... | |
virtual bool | restoreValueCustom ()=0 |
Restore value from attribute data to the widget's control. More... | |
virtual bool | resetCustom () |
Fills the widget with default values. More... | |
virtual bool | processEnter () |
virtual bool | processEscape () |
virtual bool | processDelete () |
Protected Attributes | |
bool | myIsPointsFiltering |
ModuleBase_IWorkshop * | myWorkshop |
Reference to workshop. More... | |
bool | myIsInValidate |
The widget is in validation mode: store is performed, restore is not. More... | |
ModuleBase_WidgetValidator * | myWidgetValidator |
own validator, by default it is zero More... | |
std::string | myAttributeID |
The attribute name of the model feature. More... | |
FeaturePtr | myFeature |
A feature which is processing by active operation. More... | |
std::string | myFeatureId |
A feature ID. More... | |
bool | myIsObligatory |
Flag which shows whether current widget is obligatory The non-obligatory widgets should not accept the focus in the property panel. More... | |
EnableState | myIsValueEnabled |
Flag about value of the control is enabled (can be modified) More... | |
ValueState | myState |
The widget value state. More... | |
Implementation of widget for selection.
This abstract interface is designed to be used for shape/multi shape selector widgets.
|
inherited |
|
inherited |
ModuleBase_WidgetSelector::ModuleBase_WidgetSelector | ( | QWidget * | theParent, |
ModuleBase_IWorkshop * | theWorkshop, | ||
const Config_WidgetAPI * | theData | ||
) |
Constructor.
theParent | the parent object |
theWorkshop | instance of workshop interface |
theData | the widget configuation. The attribute of the model widget is obtained from |
|
virtual |
Fills given container with selection modes if the widget has it.
[out] | theModuleSelectionModes | module additional modes, -1 means all default modes |
[out] | theModes | a container of modes |
Reimplemented from ModuleBase_ModelWidget.
Reimplemented in ModuleBase_WidgetPointInput.
|
inlinevirtual |
Defines if it is supposed that the widget should interact with the viewer.
Reimplemented from ModuleBase_ModelWidget.
Reimplemented in PartSet_WidgetMultiSelector, and ModuleBase_WidgetPointInput.
|
virtual |
Activate or deactivate selection and selection filters.
|
virtual |
Checks the widget validity.
By default, it returns true.
thePrs | a selected presentation in the view |
Reimplemented from ModuleBase_WidgetValidated.
Reimplemented in PartSet_WidgetSketchCreator, CollectionPlugin_WidgetField, PartSet_WidgetShapeSelector, PartSet_WidgetMultiSelector, and ModuleBase_WidgetMultiSelector.
|
virtual |
Fills the attribute with the value of the selected owner.
thePrs | a selected owner |
Implements ModuleBase_WidgetValidated.
Reimplemented in PartSet_WidgetFeaturePointSelector.
|
virtual |
The methiod called when widget is deactivated.
clear temporary cash
Reimplemented from ModuleBase_WidgetValidated.
Reimplemented in PartSet_WidgetSketchCreator, PartSet_WidgetFeaturePointSelector, ModuleBase_WidgetMultiSelector, and CollectionPlugin_WidgetField.
|
virtual |
Return the attribute values wrapped in a list of viewer presentations.
Reimplemented in PartSet_WidgetFeaturePointSelector, ModuleBase_WidgetShapeSelector, ModuleBase_WidgetMultiSelector, and CollectionPlugin_WidgetField.
|
protectedvirtual |
Returns true if envent is processed. The default implementation is empty, returns false.
Reimplemented from ModuleBase_ModelWidget.
Reimplemented in PartSet_WidgetSketchCreator, and ModuleBase_WidgetMultiSelector.
|
protectedvirtual |
Emits model changed info, updates the current control by selection change.
theDone | a state whether the selection is set |
Reimplemented in PartSet_WidgetSketchCreator, and ModuleBase_WidgetMultiSelector.
|
inlineprotectedvirtual |
Update focus after the attribute value change.
Reimplemented in ModuleBase_WidgetShapeSelector, and ModuleBase_WidgetMultiSelector.
|
protected |
Retunrs a list of possible shape types.
|
protectedpure virtual |
Retunrs a list of possible shape types.
Implemented in PartSet_WidgetSketchCreator, ModuleBase_WidgetShapeSelector, ModuleBase_WidgetPointInput, ModuleBase_WidgetMultiSelector, and CollectionPlugin_WidgetField.
|
inlineprotectedvirtual |
Computes and updates name of selected object in the widget.
Reimplemented in ModuleBase_WidgetShapeSelector, and ModuleBase_WidgetMultiSelector.
|
protectedvirtual |
The methiod called when widget is activated.
Reimplemented from ModuleBase_ModelWidget.
Reimplemented in PartSet_WidgetFeaturePointSelector, and ModuleBase_WidgetMultiSelector.
|
protected |
Returns true if selected shape corresponds to requested shape types.
If the widget type of shapes contains the faces item, the result is converted to construction result and the method returns true if there is at least one face in the construction.
theShape | a shape |
theResult | a selected result |
|
protectedvirtual |
Return an object and geom shape by the viewer presentation.
thePrs | a selection |
theObject | an output object |
theShape | a shape of the selection |
Reimplemented in PartSet_WidgetShapeSelector, PartSet_WidgetMultiSelector, and PartSet_WidgetFeaturePointSelector.
|
virtualinherited |
Checks all widget validator if the owner is valid.
Firstly it checks custom widget validating, next, the attribute's validating. It trying on the give selection to current attribute by setting the value inside and calling validators. After this, the previous attribute value is restored.The valid/invalid value is cashed.
theValue | a selected presentation in the view |
Reimplemented in PartSet_WidgetSketchCreator, and PartSet_WidgetFeaturePointSelector.
|
inherited |
Returns data object by AIS.
|
inherited |
Clear all validated cash in the widget.
|
inherited |
Returns true if the workshop validator filter has been already activated.
|
virtualinherited |
Appends into container of workshop selection filters.
[out] | theModuleSelectionFilters | module additional modes, -1 means all default modes |
[out] | selection | filters |
Reimplemented from ModuleBase_ModelWidget.
Reimplemented in PartSet_WidgetSketchLabel, and PartSet_WidgetShapeSelector.
|
staticinherited |
Block the model flush of update and intialization of attribute.
theAttribute | an attribute of blocking |
theFeature | a feature |
theToBlock | flag whether the model is blocked or unblocked |
isFlushesActived | out value if model is blocked, in value if model is unblocked to be used to restore flush state when unblocked |
isAttributeSetInitializedBlocked | out value if model is blocked in value if model is unblocked to be used to restore previous state when unblocked |
isAttributeSendUpdatedBlocked | out value if model signal is blocked |
|
staticinherited |
Checks the current attibute in all attribute validators.
theAttribute | an attribute to be validated |
|
protectedvirtualinherited |
Checks whether all active viewer filters validate the presentation.
thePrs | a selected presentation in the view |
after validation, the selection filters should be restored
Reimplemented in ModuleBase_WidgetFeatureSelector.
|
protectedinherited |
Checks all attribute validators returns valid.
It tries on the given selection to current attribute by setting the value inside and calling validators. After this, the previous attribute value is restored.The valid/invalid value is cashed.
theValue | a selected presentation in the view |
theAttribute | the attribute |
NDS: The following rows are commented for issue #1452 (to be removed after debug) This is not correct to perform it here because it might cause update selection and the selection mechanizm will be circled: use the scenario of the bug with preselected point.
|
protectedvirtualinherited |
Retunrs attribute, which should be validated.
In default implementation, this is an attribute of ID
Reimplemented in PartSet_WidgetSketchCreator.
|
protectedvirtualinherited |
Creates a backup of the current values of the attribute It should be realized in the specific widget because of different parameters of the current attribute.
theAttribute | an attribute to be stored |
Reimplemented in PartSet_WidgetSketchLabel.
|
protectedvirtualinherited |
Creates a backup of the current values of the attribute It should be realized in the specific widget because of different parameters of the current attribute.
theAttribute | an attribute to be restored |
theValid | a boolean flag, if restore happens for valid parameters |
Reimplemented in PartSet_WidgetSketchLabel, PartSet_WidgetShapeSelector, PartSet_WidgetMultiSelector, and PartSet_WidgetFeaturePointSelector.
|
protectedinherited |
Returns a list of selected presentations in the viewer and object browser The presentations from the object browser are filtered by the AIS context filters.
|
protectedvirtualinherited |
Block the model flush of update and intialization of attribute.
theAttribute | an attribute of blocking |
theToBlock | flag whether the model is blocked or unblocked |
isFlushesActived | out value if model is blocked, in value if model is unblocked to be used to restore flush state when unblocked |
isAttributeSetInitializedBlocked | out value if model is blocked in value if model is unblocked to be used to restore previous state when unblocked |
isAttributeSendUpdatedBlocked | out value if model signal is blocked |
Reimplemented in PartSet_WidgetSketchLabel.
|
protectedinherited |
Gets the validity state of the presentation in an internal map.
Returns true if the valid state of value is stored
theValue | a viewer presentation |
theValid | a valid state |
|
protectedinherited |
Store the validity state of the presentation in an internal map.
theValue | a viewer presentation |
theValid | a valid state |
|
inherited |
Fills the widget with default values.
It calls the resetCustom method and change the widget state to Reset if the reset is performed.
|
inherited |
Returns the state whether the attribute of the feature is initialized.
theObject | a model feature to be checked |
|
inlineinherited |
Returns true, if default value of the widget should be computed on operation's execute, like radius for circle's constraint (can not be zero)
|
inlineinherited |
Returns true, if default value of the widget is defined in the XML and it is not the computed value.
|
inlineinherited |
Returns true, if widget is internal.
|
inlineinherited |
Returns true, if the obligatory value of the widget is not defined in the XML or has true value.
|
virtualinherited |
Returns true, if the widget value is enabled and might be modified manualy.
It returns false if the application preferences allow having disabled value and the internal state tells to disable
|
inlineinherited |
Returns this parameter value in the xml file.
|
inlineinherited |
Returns this parameter value in the xml file.
|
inlineinherited |
Returns this widget value state.
|
inherited |
Stores the widget value if it is modified.
|
inherited |
Returns an attribute error according to the value state It exists in all cases excepring the "Store" case.
|
inlinevirtualinherited |
Defines if it is supported to set the value in this widget By default it returns true.
Reimplemented in ModuleBase_WidgetToolbox, ModuleBase_WidgetSwitch, ModuleBase_WidgetOptionalBox, ModuleBase_WidgetLabel, ModuleBase_WidgetConcealedObjects, ModuleBase_WidgetChoice, and ModuleBase_WidgetBoolValue.
|
virtualinherited |
Returns the widget error, get it from the attribute validator and state of the widget If the feature is correct, it returns an empty value.
theValueStateChecked | the boolean flag if the state of the widget should be checked |
Reimplemented in ModuleBase_WidgetSelectionFilter.
|
inlinevirtualinherited |
Set the given wrapped value to the current widget This value should be processed in the widget according to the needs.
theValues | the wrapped selection values |
theToValidate | the boolean value whether the value should be checked by filters |
Reimplemented in PartSet_WidgetSketchLabel, PartSet_WidgetSketchCreator, PartSet_WidgetPoint2DFlyout, PartSet_WidgetPoint2D, ModuleBase_WidgetShapeSelector, ModuleBase_WidgetPointInput, ModuleBase_WidgetMultiSelector, ModuleBase_WidgetFeatureSelector, and CollectionPlugin_WidgetField.
|
inlinevirtualinherited |
Returns values which should be highlighted when the whidget is active.
theValues | a list of presentations |
Reimplemented in ModuleBase_WidgetMultiSelector.
|
inlineinherited |
Returns widget validator, by default it is NULL. To be created in a child if necessary.
|
inherited |
Restore value from attribute data to the widget's control.
Emits signals before and after store
|
inherited |
Saves the internal parameters to the given feature.
Emits signals before and after store
store value in an alternative attribute if possible(attribute has the same type)
|
virtualinherited |
Set focus to the first control of the current widget.
The focus policy of the control is checked. If the widget has the NonFocus focus policy, it is skipped.
Reimplemented in PartSet_WidgetSketchLabel, PartSet_WidgetSketchCreator, PartSet_WidgetPoint2DFlyout, PartSet_WidgetEditor, ModuleBase_WidgetNameEdit, ModuleBase_WidgetLabel, ModuleBase_WidgetEditor, ModuleBase_WidgetChoice, ModuleBase_WidgetAction, and ModuleBase_PagedContainer.
|
inlinevirtualinherited |
Select the internal content if it can be selected. It is empty in the default realization.
Reimplemented in ModuleBase_WidgetIntValue, and ModuleBase_WidgetDoubleValue.
|
inherited |
The method called when widget is activated.
|
inlinevirtualinherited |
Opportunity to do something after the active widget of the property panel changed.
Reimplemented in ModuleBase_WidgetMultiSelector.
|
inlinevirtualinherited |
Opportunity to do something after the active widget of the property panel changed.
Reimplemented in ModuleBase_WidgetMultiSelector.
|
inlinevirtualinherited |
The method called if widget should be activated always.
Reimplemented in PartSet_WidgetSketchLabel.
|
pure virtualinherited |
Returns list of widget controls.
Implemented in SamplePanelPlugin_ModelWidget, PartSet_WidgetSketchLabel, PartSet_WidgetSketchCreator, PartSet_WidgetPoint2D, PartSet_WidgetBSplinePoints, PartSet_BSplineWidget, ParametersPlugin_WidgetParamsMgr, ModuleBase_WidgetShapeSelector, ModuleBase_WidgetSelectionFilter, ModuleBase_WidgetPointInput, ModuleBase_WidgetOptionalBox, ModuleBase_WidgetMultiSelector, ModuleBase_WidgetLineEdit, ModuleBase_WidgetLabelValue, ModuleBase_WidgetLabel, ModuleBase_WidgetIntValue, ModuleBase_WidgetFileSelector, ModuleBase_WidgetFeatureSelector, ModuleBase_WidgetExprEditor, ModuleBase_WidgetDoubleValue, ModuleBase_WidgetConcealedObjects, ModuleBase_WidgetChoice, ModuleBase_WidgetBoolValue, ModuleBase_WidgetAction, ModuleBase_PagedContainer, and CollectionPlugin_WidgetField.
|
inherited |
Returns the first or the last control that can accept the focus.
isFirst | if true, the first controls is returned or the last one |
|
virtualinherited |
FocusIn events processing.
Reimplemented in CollectionPlugin_WidgetField, and PartSet_WidgetSketchLabel.
|
virtualinherited |
Enables processing of focus event on all controls by the widget if this widget is not obligatory and set no-focus policy otherwise.
Reimplemented in PartSet_WidgetSketchLabel, and ModuleBase_PagedContainer.
|
virtualinherited |
Switch On/Off highlighting of the widget.
Reimplemented in PartSet_WidgetSketchLabel, PartSet_WidgetPoint2D, ModuleBase_WidgetLabelValue, ModuleBase_WidgetBoolValue, and ModuleBase_PagedContainer.
|
inlineinherited |
Returns the attribute name.
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in ModuleBase_WidgetAction.
|
virtualinherited |
Set feature which is processing by active operation.
theFeature | a feature object |
theToStoreValue | a value about necessity to store the widget value to the feature |
isUpdateFlushed | a flag if update should be flushed on store value |
it is possible to give this flag as parameter in storeValue/storeCustomValue after debug, it may be corrected
it is possible that the attribute is filled before the operation is started, e.g. by reentrant operation case some attributes are filled by values of feature of previous operation, we should not lost them here
Reimplemented in PartSet_BSplineWidget.
|
inlinevirtualinherited |
Editing mode depends on mode of current operation. This value is defined by it.
Reimplemented in PartSet_WidgetSketchCreator.
|
inlineinherited |
|
virtualinherited |
Returns true if the action can be processed.
By default it is empty and returns false.
theActionType | an action type |
isActionEnabled | if true, the enable state of the action |
Reimplemented in ModuleBase_WidgetMultiSelector.
|
virtualinherited |
Returns true if the event is processed. The default implementation is empty, returns false.
Reimplemented in ModuleBase_WidgetMultiSelector.
|
inlinevirtualinherited |
Returns list of accessible actions for Undo/Redo commands.
By default it returns empty list.
theActionType | type of action. It can be ActionUndo or ActionRedo. |
Reimplemented in ModuleBase_WidgetMultiSelector.
|
inherited |
Sends Update and Redisplay for the given object.
theObj | is updating object |
|
virtualinherited |
Translate passed string with widget context()
|
inlineinherited |
Emit focus in widget to set this control as active in propety panel.
|
staticinherited |
Finds model widget parent of the given sub widget.
theWidget | a candidate to be a child of the model widget |
theProp | a property panel instance |
|
inlinevirtualinherited |
Returns True if the widget uses feature attribute.
If not then it means that the widget do not need attribute at all.
Reimplemented in ModuleBase_WidgetNameEdit.
|
inlinevirtualinherited |
It is called when user press Ok or OkPlus buttons in the parent property panel By default this slot does nothing.
Reimplemented in ModuleBase_WidgetSelectionFilter, ModuleBase_WidgetMultiSelector, ModuleBase_WidgetChoice, and ModuleBase_PagedContainer.
|
inlinevirtualinherited |
Returns True in case if the widget contains useful information for inspection tool.
Reimplemented in PartSet_WidgetSketchCreator.
|
inlinevirtualinherited |
If widgets has several panels then this method has to show a page which contains information for current feature.
By default does nothing
Reimplemented in PartSet_WidgetSketchLabel.
|
inlinevirtualinherited |
Returns True if data of its attribute was modified.
Reimplemented in ModuleBase_WidgetShapeSelector, ModuleBase_WidgetMultiSelector, ModuleBase_WidgetLineEdit, ModuleBase_WidgetIntValue, and ModuleBase_WidgetDoubleValue.
|
inlineinherited |
Returns true if the widget should have access to external parts.
|
signalinherited |
The signal about widget values are to be changed.
|
signalinherited |
The signal about widget values changed.
|
signalinherited |
The signal about widget values modified.
|
signalinherited |
The signal about widget values are to be changed.
|
signalinherited |
The signal about widget values are to be restored.
|
signalinherited |
The signal about widget values are to be restored.
|
signalinherited |
The signal about key release on the control, that corresponds to the attribute.
theObject | a sender of the event |
theEvent | key release event |
|
signalinherited |
The signal is emitted if the enter is clicked in the control of the widget.
theObject | a sender of the event |
|
signalinherited |
The signal about the widget is get focus.
theWidget | the model base widget |
|
signalinherited |
The signal about the widget is lost focus.
theWidget | the model base widget |
|
signalinherited |
The signal about value state modification.
|
signalinherited |
The signal is emitted after flush of updates singal for the widget.
|
protectedinherited |
Sets default value of widget.
Normally, widget should fetch this value from the xml. However, some widgets derived widgets could define it
|
inlineprotectedinherited |
Set the attribute name.
theAttribute | the string value with attribute name |
|
protectedinherited |
Sets the current value state.
If the value is changed, the signal is emitted If the current value state is Blocked, this method do nothing
theState | a new state |
|
protectedinherited |
Blocks the value state change.
theBlocked | a block state |
|
protectedvirtualinherited |
Compute the feature default value and fill the controls with it or store the control value to the feature.
Reimplemented in PartSet_WidgetPoint2D, and ModuleBase_WidgetExprEditor.
|
protectedpure virtualinherited |
Saves the internal parameters to the given feature.
Implemented in SamplePanelPlugin_ModelWidget, PartSet_WidgetSketchLabel, PartSet_WidgetSketchCreator, PartSet_WidgetPoint2D, PartSet_WidgetFileSelector, PartSet_WidgetBSplinePoints, PartSet_BSplineWidget, ParametersPlugin_WidgetParamsMgr, ModuleBase_WidgetShapeSelector, ModuleBase_WidgetSelectionFilter, ModuleBase_WidgetPointInput, ModuleBase_WidgetOptionalBox, ModuleBase_WidgetNameEdit, ModuleBase_WidgetMultiSelector, ModuleBase_WidgetLineEdit, ModuleBase_WidgetLabelValue, ModuleBase_WidgetLabel, ModuleBase_WidgetIntValue, ModuleBase_WidgetFileSelector, ModuleBase_WidgetFeatureSelector, ModuleBase_WidgetExprEditor, ModuleBase_WidgetDoubleValue, ModuleBase_WidgetConcealedObjects, ModuleBase_WidgetChoice, ModuleBase_WidgetBoolValue, ModuleBase_WidgetAction, ModuleBase_PagedContainer, and CollectionPlugin_WidgetField.
|
protectedpure virtualinherited |
Restore value from attribute data to the widget's control.
Implemented in SamplePanelPlugin_ModelWidget, PartSet_WidgetSketchLabel, PartSet_WidgetSketchCreator, PartSet_WidgetPoint2D, PartSet_WidgetFileSelector, PartSet_WidgetBSplinePoints, PartSet_BSplineWidget, ParametersPlugin_WidgetParamsMgr, ModuleBase_WidgetUndoLabel, ModuleBase_WidgetShapeSelector, ModuleBase_WidgetSelectionFilter, ModuleBase_WidgetPointInput, ModuleBase_WidgetOptionalBox, ModuleBase_WidgetNameEdit, ModuleBase_WidgetMultiSelector, ModuleBase_WidgetLineEdit, ModuleBase_WidgetLabelValue, ModuleBase_WidgetLabel, ModuleBase_WidgetIntValue, ModuleBase_WidgetFileSelector, ModuleBase_WidgetFeatureSelector, ModuleBase_WidgetExprEditor, ModuleBase_WidgetDoubleValue, ModuleBase_WidgetConcealedObjects, ModuleBase_WidgetChoice, ModuleBase_WidgetBoolValue, ModuleBase_WidgetAction, ModuleBase_PagedContainer, and CollectionPlugin_WidgetField.
|
inlineprotectedvirtualinherited |
Fills the widget with default values.
Reimplemented in PartSet_WidgetPoint2D, PartSet_WidgetBSplinePoints, ModuleBase_WidgetIntValue, and ModuleBase_WidgetDoubleValue.
|
protectedslotinherited |
Processing of values changed in model widget by store the current value to the feature.
|
protectedslotinherited |
Changes widget state.
|
protectedinherited |
Reference to workshop.
|
protectedinherited |
The widget is in validation mode: store is performed, restore is not.
|
protectedinherited |
own validator, by default it is zero
|
protectedinherited |
The attribute name of the model feature.
|
protectedinherited |
A feature which is processing by active operation.
|
protectedinherited |
A feature ID.
|
protectedinherited |
Flag which shows whether current widget is obligatory The non-obligatory widgets should not accept the focus in the property panel.
|
protectedinherited |
Flag about value of the control is enabled (can be modified)
|
protectedinherited |
The widget value state.