Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / XGUI / XGUI_PropertyPanel.h
index d034d728903641885564db7737e56e2748e61d74..5cc9b5faf9b5882e17b71b9c5b7699765d9549e0 100644 (file)
@@ -16,6 +16,7 @@
 #include <QList>
 
 class QKeyEvent;
+class QVBoxLayout;
 
 class XGUI_EXPORT XGUI_PropertyPanel: public QDockWidget
 {
@@ -27,10 +28,13 @@ public:
   QWidget* contentWidget();
   void setModelWidgets(const QList<ModuleBase_ModelWidget*>& theWidgets);
 
+  void cleanContent();
+
+protected:
   virtual bool eventFilter(QObject *theObject, QEvent *theEvent);
 
 public slots:
-  void updateContentWidget(boost::shared_ptr<ModelAPI_Feature> theFeature);
+  void updateContentWidget(FeaturePtr theFeature);
   /// slot to set the focus to the widget visualized an attribute with the given name
   /// \param theAttributteName
   void onFocusActivated(const std::string& theAttributeName);
@@ -45,6 +49,8 @@ private:
   QWidget* myCustomWidget;
 
   QList<ModuleBase_ModelWidget*> myWidgets;
+
+  QVBoxLayout* myMainLayout;
 };
 
 #endif /* XGUI_PROPERTYPANEL_H_ */