4 * Created on: Apr 29, 2014
8 #ifndef XGUI_PROPERTYPANEL_H_
9 #define XGUI_PROPERTYPANEL_H_
13 #include <ModuleBase_ModelWidget.h>
15 #include <QDockWidget>
21 class XGUI_EXPORT XGUI_PropertyPanel : public QDockWidget
25 XGUI_PropertyPanel(QWidget* theParent);
26 virtual ~XGUI_PropertyPanel();
28 QWidget* contentWidget();
29 void setModelWidgets(const QList<ModuleBase_ModelWidget*>& theWidgets);
30 const QList<ModuleBase_ModelWidget*>& modelWidgets() const;
35 virtual bool eventFilter(QObject *theObject, QEvent *theEvent);
38 void updateContentWidget(FeaturePtr theFeature);
39 /// slot to activate the next widget in the property panel
40 /// \param theWidget a widget. The next widget should be activated
41 void onActivateNextWidget(ModuleBase_ModelWidget* theWidget);
42 // Enables / disables "ok" ("accept") button
43 void setAcceptEnabled(bool);
46 /// The signal about key release on the control, that corresponds to the attribute
47 /// \param theEvent key release event
48 void keyReleased(QKeyEvent* theEvent);
49 /// The signal about the widget activation
50 /// \param theWidget the activated widget
51 void widgetActivated(ModuleBase_ModelWidget* theWidget);
53 /// Signal about the point 2d set to the feature
54 /// \param the feature
55 /// \param the attribute of the feature
56 void storedPoint2D(ObjectPtr theFeature, const std::string& theAttribute);
59 QWidget* myCustomWidget;
61 QList<ModuleBase_ModelWidget*> myWidgets;
63 QVBoxLayout* myMainLayout;
66 #endif /* XGUI_PROPERTYPANEL_H_ */