Salome HOME
Property panel widgets redesign
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetFileSelector.h
index 06ca8bf5cf7d4a54de28013413f29cc7ca731e56..d9b3337fdd3689c583f95c291f52a921f5cdd147 100644 (file)
@@ -21,6 +21,7 @@ class QWidget;
 class QLineEdit;
 
 /**
+* \ingroup GUI
 *  Implementation of model widget for open file widget.
 *  It can be defined as following:
 *  \code
@@ -45,12 +46,8 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW
                                 const std::string& theParentId);
   virtual ~ModuleBase_WidgetFileSelector();
 
-  virtual bool storeValue() const;
-
   virtual bool restoreValue();
 
-  QWidget* getControl() const;
-
   virtual QList<QWidget*> getControls() const;
 
   /// Returns true if a file on the current path in the line edit
@@ -64,6 +61,11 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW
   /// Processing of path changing
   void onPathChanged();
 
+protected:
+  /// Saves the internal parameters to the given feature
+  /// \return True in success
+  virtual bool storeValue() const;
+
  protected:
    /// Returns string containing formats
   QString formatsString() const;
@@ -75,9 +77,6 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW
    /// A control for path input
   QLineEdit* myPathField;
 
-  /// Container
-  QWidget* myMainWidget;
-
   /// A title of open file dialog box
   QString myTitle;