23 #ifndef SALOMEAPP_INTSPINBOX_H
24 #define SALOMEAPP_INTSPINBOX_H
36 enum State { Invalid = 0, NoVariable, Incompatible, Acceptable };
44 virtual void stepBy(
int );
46 virtual int valueFromText(
const QString& )
const;
49 virtual QValidator::State validate( QString&,
int& )
const;
51 virtual bool isValid( QString& msg,
bool =
false );
53 virtual void setDefaultValue(
const int );
55 virtual void setValue(
int );
57 virtual void setText(
const QString& );
59 void setAcceptNames(
const bool );
60 bool isAcceptNames()
const;
62 void setShowTipOnValidate(
const bool );
63 bool isShowTipOnValidate()
const;
66 void textChanged(
const QString& );
69 State
isValid(
const QString&,
int& )
const;
71 int defaultValue()
const;
72 bool checkRange(
const int )
const;
74 SearchState findVariable(
const QString&,
int& )
const;
77 virtual void keyPressEvent( QKeyEvent* );
78 virtual void showEvent( QShowEvent* );
81 void onEditingFinished();
85 void connectSignalsAndSlots();