#include <vtkActorCollection.h>
#include <QString>
+#include <QSpinBox>
+#include <QDoubleSpinBox>
//=============================================================================
}
}
//------------------------------------------------------------
+ void initSpinBox( QSpinBox* spinBox,
+ int min, int max, int step )
+ {
+ spinBox->setRange( min, max );
+ spinBox->setSingleStep( step );
+ }
+ //------------------------------------------------------------
+ void initSpinBox( QDoubleSpinBox* spinBox,
+ double min, double max,
+ double step, int decimals )
+ {
+ spinBox->setRange( min, max );
+ spinBox->setSingleStep( step );
+ spinBox->setDecimals( decimals );
+ }
+ //------------------------------------------------------------
}
class QWidget;
class QDialog;
+class QSpinBox;
+class QDoubleSpinBox;
class SUIT_Desktop;
class SUIT_ViewWindow;
VISU::Prs3d_i* thePrs3d, int pos);
void RemoveScalarBarPosition(VisuGUI* theModule, SVTK_ViewWindow* theViewWindow,
VISU::Prs3d_i* thePrs3d);
+ void initSpinBox( QSpinBox*, int, int, int = 1 );
+ void initSpinBox( QDoubleSpinBox*, double, double, double = 0.1, int = 6 );
}
#endif