23 #ifndef SALOMEAPP_DOUBLESPINBOX_H
24 #define SALOMEAPP_DOUBLESPINBOX_H
36 enum State { Invalid = 0, NoVariable, Incompatible, Acceptable };
45 virtual void stepBy(
int );
50 virtual QValidator::State
validate( QString&,
int& )
const;
52 virtual bool isValid( QString& msg,
bool =
false );
54 virtual void setDefaultValue(
const double );
56 virtual void setRange(
double,
double );
57 virtual void setValue(
double );
59 virtual void setText(
const QString& );
61 void setAcceptNames(
const bool );
62 bool isAcceptNames()
const;
64 void setShowTipOnValidate(
const bool );
65 bool isShowTipOnValidate()
const;
68 void textChanged(
const QString& );
71 State
isValid(
const QString&,
double& )
const;
73 double defaultValue()
const;
74 bool checkRange(
const double )
const;
76 SearchState findVariable(
const QString&,
double& )
const;
79 virtual void keyPressEvent( QKeyEvent* );
80 virtual void showEvent( QShowEvent* );
83 void onEditingFinished();
87 void connectSignalsAndSlots();