X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IPropertyPanel.h;h=c9f51e1224e2ba79976de4aab0f46f8c9facc9b1;hb=eef14b29d313b9dd16453d12f20aa02383ee139c;hp=ea5a6edf6f51234235d888ac4fa2be5eed6aa83e;hpb=eba31a1e57f60fe3b8822e6905f92f319003698f;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IPropertyPanel.h b/src/ModuleBase/ModuleBase_IPropertyPanel.h index ea5a6edf6..c9f51e122 100644 --- a/src/ModuleBase/ModuleBase_IPropertyPanel.h +++ b/src/ModuleBase/ModuleBase_IPropertyPanel.h @@ -68,10 +68,16 @@ public: /// \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 theObject a sender of the event /// \param theEvent key release event - void keyReleased(QKeyEvent* theEvent); + void keyReleased(QObject* theObject, QKeyEvent* theEvent); /// The signal about the widget activation /// \param theWidget the activated widget @@ -98,8 +104,10 @@ public slots: * highlighting from the previous active widget * emits widgetActivated(theWidget) signal * \param theWidget which has to be activated + * \param theEmitSignal a flag to prohibit signal emit */ - virtual void activateWidget(ModuleBase_ModelWidget* theWidget) = 0; + virtual void activateWidget(ModuleBase_ModelWidget* theWidget, + const bool theEmitSignal = true) = 0; protected: