SHAPER
9.12.0
|
Realization of Property panel object. More...
Public Slots | |
void | updateContentWidget (FeaturePtr theFeature) |
Update all widgets in property panel with values from the given feature. More... | |
void | createContentPanel (FeaturePtr theFeature) |
If the XML definition of the feature contains information about specific content of the property panel, it creates the panel and allow filling it by the given feature. More... | |
virtual void | activateWidget (ModuleBase_ModelWidget *theWidget, const bool theEmitSignal=true) |
Makes the given widget active, highlights it and removes highlighting from the previous active widget. More... | |
void | onFocusInWidget (ModuleBase_ModelWidget *theWidget) |
Activates the parameter widget if it can accept focus. More... | |
void | onActivateNextWidget (ModuleBase_ModelWidget *theWidget) |
Activate next widget. More... | |
Signals | |
void | enterClicked (QObject *theObject) |
The signal is emitted if the enter is clicked in the control of the widget. More... | |
void | propertyPanelDeactivated () |
Emits on deactivating property panel (e.g. by clearContent) More... | |
void | propertyPanelActivated () |
Emits on widget activating. More... | |
void | keyReleased (QObject *theObject, QKeyEvent *theEvent) |
The signal about key release on the control, that corresponds to the attribute. More... | |
void | beforeWidgetActivated (ModuleBase_ModelWidget *theWidget) |
The signal about the widget activation. More... | |
void | noMoreWidgets (const std::string &thePreviousAttributeID) |
The signal about the widget activation. More... | |
Public Member Functions | |
XGUI_PropertyPanel (QWidget *theParent, XGUI_OperationMgr *theMgr) | |
Constructor. More... | |
virtual QWidget * | headerWidget () const |
Returns header widget. More... | |
ModuleBase_PageBase * | contentWidget () |
Returns main widget of the property panel, which children will be created by WidgetFactory using the XML definition. More... | |
void | setModelWidgets (const QList< ModuleBase_ModelWidget * > &theWidgets) |
Brings back all widget created by widget factory for signal/slot connections and further processing. More... | |
virtual const QList< ModuleBase_ModelWidget * > & | modelWidgets () const |
Returns all property panel's widget created by WidgetFactory. More... | |
virtual void | cleanContent () |
Removes all widgets in the widget area of the property panel. More... | |
virtual ModuleBase_ModelWidget * | activeWidget (const bool isUseCustomWidget=false) const |
Returns currently active widget. More... | |
virtual void | activateNextWidget (ModuleBase_ModelWidget *theWidget) |
Activate the next widget in the property panel. More... | |
virtual void | activateNextWidget () |
Activate the next from current widget in the property panel. More... | |
virtual void | setFocusOnOkButton () |
Set focus on the Ok button. More... | |
virtual void | setCancelEnabled (bool theEnabled) |
Set Enable/Disable state of Cancel button. More... | |
virtual bool | isCancelEnabled () const |
virtual void | setEditingMode (bool isEditing) |
Editing mode depends on mode of current operation. More... | |
void | setupActions (XGUI_ActionsMgr *theMgr) |
Allows to set predefined actions for the property panel fetched from the ActionsMgr. More... | |
virtual ModuleBase_ModelWidget * | preselectionWidget () const |
Returns widget processed by preselection. More... | |
virtual void | setPreselectionWidget (ModuleBase_ModelWidget *theWidget) |
Sets widget processed by preselection. More... | |
XGUI_OperationMgr * | operationMgr () const |
Returns operation manager. More... | |
QToolButton * | findButton (const char *theInternalName) const |
Find under the panel a child button with the parameter name. More... | |
bool | setFocusNextPrevChild (bool theIsNext) |
Possibility to process focus by method, for example when Tab or SHIF+Tab is pressed but property panel is not active widget. More... | |
virtual void | onAcceptData () |
The method is called on accepting of operation. More... | |
void | setInternalActiveWidget (ModuleBase_ModelWidget *theWidget) |
Set internal active widget, that can be returned as active widget and participate in active selection filters/modes in application. More... | |
void | updateApplyPlusButton (FeaturePtr theFeature) |
virtual ModuleBase_ModelWidget * | modelWidget (const std::string &theAttributeId) const |
Returns widget, that has the given attribute index. More... | |
bool | isEditingMode () const |
ModuleBase_ModelWidget * | findFirstAcceptingValueWidget () |
Returns the first widget, where canAcceptFocus returns true. More... | |
virtual bool | isModified () const |
Returns True if data of its feature was modified during operation. More... | |
Static Public Member Functions | |
static ModuleBase_ModelWidget * | findFirstAcceptingValueWidget (const QList< ModuleBase_ModelWidget * > &theWidgets) |
Returns the first widget, where canAcceptFocus returns true. More... | |
Protected Member Functions | |
bool | setActiveWidget (ModuleBase_ModelWidget *theWidget, const bool isEmitSignal) |
Makes the widget active, deactivate the previous, activate and hightlight the given one. More... | |
virtual bool | focusNextPrevChild (bool theIsNext) |
The parent method that processes the "Tab"/"SHIF + Tab" keyboard events Emits a signal about focus change If theIsNext is true, this function searches forward, if next is false, it searches backward. More... | |
void | activateNextWidget (ModuleBase_ModelWidget *theWidget, const bool isCheckVisibility) |
Activate the next widget in the property panel. More... | |
void | closeEvent (QCloseEvent *theEvent) |
A method called on the property panel closed. More... | |
Protected Attributes | |
bool | myIsEditing |
Flag which shows that current operation is in editing mode. More... | |
Realization of Property panel object.
XGUI_PropertyPanel::XGUI_PropertyPanel | ( | QWidget * | theParent, |
XGUI_OperationMgr * | theMgr | ||
) |
Constructor.
theParent | is a parent of the property panel |
theMgr | operation manager |
|
inlinevirtual |
Returns header widget.
Implements ModuleBase_IPropertyPanel.
ModuleBase_PageBase * XGUI_PropertyPanel::contentWidget | ( | ) |
Returns main widget of the property panel, which children will be created by WidgetFactory using the XML definition.
void XGUI_PropertyPanel::setModelWidgets | ( | const QList< ModuleBase_ModelWidget * > & | theWidgets | ) |
Brings back all widget created by widget factory for signal/slot connections and further processing.
|
virtual |
Returns all property panel's widget created by WidgetFactory.
Implements ModuleBase_IPropertyPanel.
|
virtual |
Removes all widgets in the widget area of the property panel.
as the widgets are deleted later, it is important that the signals of these widgets are not processed. An example of the error is issue 986. In the given case, the property panel is firstly filled by new widgets of restarted operation and after that the mouse release signal come from the widget of the previous operation (Point2d widget about mouse is released and focus is out of this widget)
by default it is hidden
Implements ModuleBase_IPropertyPanel.
|
virtual |
Returns currently active widget.
This is a widget from internal container of widgets (myWidgets) activated/deactivated by focus in property panel. If parameter is true, the method finds firstly the custom widget, after the direct active widget.
isUseCustomWidget | boolean state if the custom widget might be a result |
Implements ModuleBase_IPropertyPanel.
|
virtual |
Activate the next widget in the property panel.
theWidget | a widget. The next widget should be activated |
Implements ModuleBase_IPropertyPanel.
|
virtual |
Activate the next from current widget in the property panel.
Implements ModuleBase_IPropertyPanel.
|
virtual |
Set focus on the Ok button.
Implements ModuleBase_IPropertyPanel.
|
virtual |
Set Enable/Disable state of Cancel button.
theEnabled | Enable/Disable state of Cancel button |
Implements ModuleBase_IPropertyPanel.
|
virtual |
Implements ModuleBase_IPropertyPanel.
|
virtual |
Editing mode depends on mode of current operation.
This value is defined by it.
isEditing | state of editing mode flag |
Reimplemented from ModuleBase_IPropertyPanel.
void XGUI_PropertyPanel::setupActions | ( | XGUI_ActionsMgr * | theMgr | ) |
Allows to set predefined actions for the property panel fetched from the ActionsMgr.
|
virtual |
Returns widget processed by preselection.
Implements ModuleBase_IPropertyPanel.
|
virtual |
Sets widget processed by preselection.
Implements ModuleBase_IPropertyPanel.
|
inline |
Returns operation manager.
QToolButton * XGUI_PropertyPanel::findButton | ( | const char * | theInternalName | ) | const |
Find under the panel a child button with the parameter name.
theInternalName | a button object name |
bool XGUI_PropertyPanel::setFocusNextPrevChild | ( | bool | theIsNext | ) |
Possibility to process focus by method, for example when Tab or SHIF+Tab is pressed but property panel is not active widget.
theIsNext | true, if Tab(to the next widget) or false(moving to the previous) |
|
virtual |
The method is called on accepting of operation.
Implements ModuleBase_IPropertyPanel.
void XGUI_PropertyPanel::setInternalActiveWidget | ( | ModuleBase_ModelWidget * | theWidget | ) |
Set internal active widget, that can be returned as active widget and participate in active selection filters/modes in application.
It emits signal about property panel activation or deactivation and updates selection filters/modes accordingly.
theWidget | a widget control to store as internal active widget |
|
slot |
Update all widgets in property panel with values from the given feature.
theFeature | a Feature to update values in widgets |
|
slot |
If the XML definition of the feature contains information about specific content of the property panel, it creates the panel and allow filling it by the given feature.
theFeature | a Feature to fill property panel |
|
virtualslot |
Makes the given widget active, highlights it and removes highlighting from the previous active widget.
theWidget | which has to be activated |
theEmitSignal | a flag to prohibit signal emit |
|
slot |
Activates the parameter widget if it can accept focus.
theWidget | a widget where focus in event happened |
|
slot |
Activate next widget.
theWidget | the current widget |
|
signal |
The signal is emitted if the enter is clicked in the control of the widget.
theObject | a sender of the event |
|
signal |
Emits on deactivating property panel (e.g. by clearContent)
|
signal |
Emits on widget activating.
|
protected |
Makes the widget active, deactivate the previous, activate and hightlight the given one.
theWidget | a widget |
isEmitSignal | flag whether panel signals should be emitted |
|
protectedvirtual |
The parent method that processes the "Tab"/"SHIF + Tab" keyboard events Emits a signal about focus change If theIsNext is true, this function searches forward, if next is false, it searches backward.
|
protected |
Activate the next widget in the property panel.
theWidget | a widget. The next widget should be activated |
isCheckVisibility | flag whether the next widget visibility is checked |
|
protected |
A method called on the property panel closed.
theEvent | a close event |
|
virtualinherited |
Returns widget, that has the given attribute index.
theAttributeId | an attribute from XML |
|
inlineinherited |
|
inherited |
Returns the first widget, where canAcceptFocus returns true.
|
staticinherited |
Returns the first widget, where canAcceptFocus returns true.
workaround for the same attributes used in different stacked widgets(attribute types)
|
virtualinherited |
Returns True if data of its feature was modified during operation.
|
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 about the widget activation.
theWidget | the activated widget |
|
signalinherited |
The signal about the widget activation.
theWidget | the activated widget Emited when there is no next widget |
thePreviousAttributeID | an attribute key of the previous active widget |
|
protectedinherited |
Flag which shows that current operation is in editing mode.