X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IPropertyPanel.h;h=f463cefbed9bf7fd657e2eecc3d90455d9859da9;hb=397bec888031ab3d5d0578d3094e01f9a052222f;hp=6335c5b67437337d1b12a8be2a048a0d9cdf7a1c;hpb=a5746a7f8fd8bcd555fb16f98e312c86ca1210da;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IPropertyPanel.h b/src/ModuleBase/ModuleBase_IPropertyPanel.h index 6335c5b67..f463cefbe 100644 --- a/src/ModuleBase/ModuleBase_IPropertyPanel.h +++ b/src/ModuleBase/ModuleBase_IPropertyPanel.h @@ -64,10 +64,20 @@ public: /// Sets widget processed by preselection virtual void setPreselectionWidget(ModuleBase_ModelWidget* theWidget) = 0; + /// Returns the first widget, where canAcceptFocus returns true + /// \return a widget or null + ModuleBase_ModelWidget* findFirstAcceptingValueWidget(); + + /// Returns the first widget, where canAcceptFocus 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 @@ -94,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: