Salome HOME
Update SketchPlugin_Projection feature (issue #1459)
[modules/shaper.git] / src / ModuleBase / ModuleBase_IntSpinBox.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:      ModuleBase_IntSpinBox.h
4 // Author:    Natalia ERMOLAEVA
5 //
6 #ifndef MODULEBASE_INT_SPINBOX_H_
7 #define MODULEBASE_INT_SPINBOX_H_
8
9 #include "ModuleBase.h"
10
11 #include <QSpinBox>
12
13 class QWidget;
14 class QKeyEvent;
15
16 /**
17   * \ingroup GUI
18   * Enhanced version of the Qt's int spin box.
19   * It allows to store modified state
20 */
21 class MODULEBASE_EXPORT ModuleBase_IntSpinBox : public QSpinBox
22 {
23 Q_OBJECT
24
25 public:
26   explicit ModuleBase_IntSpinBox(QWidget* theParent = 0);
27   virtual ~ModuleBase_IntSpinBox() {};
28
29 protected:
30   /// Called on key press event
31   virtual void keyPressEvent(QKeyEvent* theEvent);
32 };
33
34 #endif