Salome HOME
Issue #1502 Select sub-solids in viewer : Compsolid shape selection type should be...
[modules/shaper.git] / src / ModuleBase / ModuleBase_ParamSpinBox.h
index 591d0cfd970658fa981a8ffc0f6a47ad69d3c117..6f2252ec81bdeb3cdbb6c4ed6b46450e9368a331 100644 (file)
@@ -8,6 +8,9 @@
 
 #include <QValidator>
 
+class QStringListModel;
+class QCompleter;
+
 /**
 * \ingroup GUI
 * An extension of a double spin box which let to use parameters and expressions for value definition
@@ -30,6 +33,10 @@ public:
    \param thePrecision a precision of values display
    */
   explicit ModuleBase_ParamSpinBox( QWidget* theParent = 0, int thePrecision = -12 );
+
+  /// Set list of completion strings
+  void setCompletionList(QStringList&);
+
   virtual ~ModuleBase_ParamSpinBox();
 
   virtual void stepBy(int);
@@ -52,7 +59,7 @@ public:
   /// Returns True if the input value contains variable
   bool hasVariable() const;
 
- protected:
+protected:
    /// Returns True if the given text contains variable
    /// \param theText a text string
   bool hasVariable(const QString& theText) const;
@@ -82,6 +89,9 @@ public:
   QString myTextValue;
 
   bool myAcceptVariables;
+
+  QStringListModel* myCompleterModel;
+  QCompleter* myCompleter;
 };
 
 #endif