Salome HOME
Issue #1648: Dump Python in the High Level Parameterized Geometry API
[modules/shaper.git] / src / ModuleBase / ModuleBase_DoubleSpinBox.h
index ec18e3500d8306cc7ab04221f5770bb1fd3f9c1e..c26d17f038ecc4627ca46c3f128ea8bb5c9a93f6 100644 (file)
@@ -11,6 +11,8 @@
 #include <QDoubleSpinBox>
 #include <QValidator>
 
+#include <QColor>
+
 class QKeyEvent;
 
 /**
@@ -54,10 +56,12 @@ Q_OBJECT
   /// \return the previous value
   bool enableKeyPressEvent(const bool& theEnable);
 
+  /// Imitation of disable control value. If theEnable is false, the control becomes
+  /// read only and base color is disabled. 
+  void setValueEnabled(const bool& theEnable);
+
 signals:
   /// The signal about key release on the control, that corresponds to the attribute
-  /// \param theEvent key release event
-  void enterPressed();
   void enterReleased();
 
  protected slots:
@@ -82,6 +86,9 @@ signals:
 
   /// Precision value
   int myPrecision;
+
+  /// Cashed color of active base palette
+  QColor myEnabledBaseColor;
 };
 
 #endif