2 * ModuleBase_IPropertyPanel.h
4 * Created on: Oct 01, 2014
8 #ifndef ModuleBase_PROPERTYPANEL_H_
9 #define ModuleBase_PROPERTYPANEL_H_
11 #include "ModuleBase.h"
13 #include <QDockWidget>
16 class ModuleBase_ModelWidget;
18 class MODULEBASE_EXPORT ModuleBase_IPropertyPanel : public QDockWidget
22 ModuleBase_IPropertyPanel(QWidget* theParent) : QDockWidget(theParent) {}
24 /// Returns currently active widget
25 virtual ModuleBase_ModelWidget* activeWidget() const = 0;
27 /// Returns all property panel's widget created by WidgetFactory
28 virtual const QList<ModuleBase_ModelWidget*>& modelWidgets() const = 0;
31 /// The signal about key release on the control, that corresponds to the attribute
32 /// \param theEvent key release event
33 void keyReleased(QKeyEvent* theEvent);
34 /// The signal about the widget activation
35 /// \param theWidget the activated widget
36 void widgetActivated(ModuleBase_ModelWidget* theWidget);
39 /// Activate the next widget in the property panel
40 /// \param theWidget a widget. The next widget should be activated
41 virtual void activateNextWidget(ModuleBase_ModelWidget* theWidget) = 0;
43 /// Activate the next from current widget in the property panel
44 virtual void activateNextWidget() = 0;