/// 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<ModuleBase_ModelWidget*>& 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
* 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: