4 * Created on: Apr 29, 2014
8 #ifndef XGUI_PROPERTYPANEL_H_
9 #define XGUI_PROPERTYPANEL_H_
13 #include <ModuleBase_ModelWidget.h>
15 #include <QDockWidget>
20 class XGUI_EXPORT XGUI_PropertyPanel: public QDockWidget
24 XGUI_PropertyPanel(QWidget* theParent);
25 virtual ~XGUI_PropertyPanel();
27 QWidget* contentWidget();
28 void setModelWidgets(const QList<ModuleBase_ModelWidget*>& theWidgets);
30 virtual bool eventFilter(QObject *theObject, QEvent *theEvent);
33 void updateContentWidget(boost::shared_ptr<ModelAPI_Feature> theFeature);
34 /// slot to set the focus to the widget visualized an attribute with the given name
35 /// \param theAttributteName
36 void onFocusActivated(const std::string& theAttributeName);
39 /// The signal about key release on the control, that corresponds to the attribute
40 /// \param theAttributeName a name of the attribute
41 /// \param theEvent key release event
42 void keyReleased(const std::string& theAttributeName, QKeyEvent* theEvent);
45 QWidget* myCustomWidget;
47 QList<ModuleBase_ModelWidget*> myWidgets;
50 #endif /* XGUI_PROPERTYPANEL_H_ */