Salome HOME
Update classes documentation
[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   /// Constructor
27   /// \param theParent a parent widget
28   explicit ModuleBase_IntSpinBox(QWidget* theParent = 0);
29   virtual ~ModuleBase_IntSpinBox() {};
30
31 protected:
32   /// Called on key press event
33   virtual void keyPressEvent(QKeyEvent* theEvent);
34 };
35
36 #endif