- void onActivateNextWidget(ModuleBase_ModelWidget* theWidget);
-
-signals:
- /// The signal about key release on the control, that corresponds to the attribute
- /// \param theAttributeName a name of the attribute
- /// \param theEvent key release event
- void keyReleased(const std::string& theAttributeName, QKeyEvent* theEvent);
- /// The signal about the widget activation
- /// \param theWidget the activated widget
- void widgetActivated(ModuleBase_ModelWidget* theWidget);
-
-protected:
- /// Activate the widget, which means the focus on the widget.
- /// The signal about the widget activation is emitted
- /// \param theWidget
- void activateWidget(ModuleBase_ModelWidget* theWidget);
-
-private:
- QWidget* myCustomWidget;
+ virtual void activateNextWidget(ModuleBase_ModelWidget* theWidget);
+
+ /// Activate the next from current widget in the property panel
+ virtual void activateNextWidget();
+
+ /// Set Enable/Disable state of Cancel button
+ /// \param theEnabled Enable/Disable state of Cancel button
+ virtual void setCancelEnabled(bool theEnabled);
+
+ /// \return Enable/Disable state of Cancel button
+ virtual bool isCancelEnabled() const;
+
+ /// Editing mode depends on mode of current operation. This value is defined by it.
+ /// \param isEditing state of editing mode flag
+ virtual void setEditingMode(bool isEditing);
+
+ //! Allows to set predefined actions for the property panel fetched from the ActionsMgr
+ void setupActions(XGUI_ActionsMgr* theMgr);
+
+ /// Returns widget processed by preselection
+ virtual ModuleBase_ModelWidget* preselectionWidget() const;
+
+ /// Sets widget processed by preselection
+ virtual void setPreselectionWidget(ModuleBase_ModelWidget* theWidget);
+
+ public slots:
+
+ /// \brief Update all widgets in property panel with values from the given feature
+ /// \param theFeature a Feature to update values in widgets
+ void updateContentWidget(FeaturePtr theFeature);
+
+ /**
+ * Makes the given widget active, highlights it and removes
+ * highlighting from the previous active widget
+ * emits widgetActivated(theWidget) signal
+ * \param theWidget which has to be activated
+ */
+ virtual void activateWidget(ModuleBase_ModelWidget* theWidget);
+
+ protected:
+ QWidget* myHeaderWidget;