X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_IPropertyPanel.h;h=afafce7a756ce91ae5cf7506d52d0b16f3b3691b;hb=0d9a107853208317a6352bb7f8c77eb54d5efbe1;hp=3a18c858b3b0c7d5031ca2daf8cacd9bcb080844;hpb=9d5fd45a38bb038e90ece0fc599024420c8e909a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IPropertyPanel.h b/src/ModuleBase/ModuleBase_IPropertyPanel.h index 3a18c858b..afafce7a7 100644 --- a/src/ModuleBase/ModuleBase_IPropertyPanel.h +++ b/src/ModuleBase/ModuleBase_IPropertyPanel.h @@ -27,7 +27,10 @@ Q_OBJECT public: /// Constructor /// \param theParent is a parent of the property panel - ModuleBase_IPropertyPanel(QWidget* theParent) : QDockWidget(theParent), myIsEditing(false) {} + ModuleBase_IPropertyPanel(QWidget* theParent); + + /// Returns header widget + virtual QWidget* headerWidget() const = 0; /// Returns currently active widget virtual ModuleBase_ModelWidget* activeWidget() const = 0; @@ -45,6 +48,9 @@ public: /// \return State of editing mode flag bool isEditingMode() const { return myIsEditing; } + /// Set focus on the Ok button + virtual void setFocusOnOkButton() = 0; + /// Set Enable/Disable state of Cancel button /// \param theEnabled Enable/Disable state of Cancel button virtual void setCancelEnabled(bool theEnabled) = 0; @@ -52,6 +58,21 @@ public: /// \return Enable/Disable state of Cancel button virtual bool isCancelEnabled() const = 0; + /// Returns widget processed by preselection + virtual ModuleBase_ModelWidget* preselectionWidget() const = 0; + + /// Sets widget processed by preselection + virtual void setPreselectionWidget(ModuleBase_ModelWidget* theWidget) = 0; + + /// Returns the first widget, where canSetValue returns true + /// \return a widget or null + ModuleBase_ModelWidget* findFirstAcceptingValueWidget(); + + /// Returns the first widget, where canSetValue returns true + /// \return a widget or null + static ModuleBase_ModelWidget* findFirstAcceptingValueWidget( + const QList& theWidgets); + signals: /// The signal about key release on the control, that corresponds to the attribute /// \param theEvent key release event @@ -66,7 +87,8 @@ signals: void widgetActivated(ModuleBase_ModelWidget* theWidget); /// Emited when there is no next widget - void noMoreWidgets(); + /// \param thePreviousAttributeID an attribute key of the previous active widget + void noMoreWidgets(const std::string& thePreviousAttributeID); public slots: /// Activate the next widget in the property panel