34 #ifndef SCALECONTROL_H
35 #define SCALECONTROL_H
59 class ScaleControlWidget;
121 Ui::ScaleControlWidget* getUI();
129 double value()
const;
137 void setMaxSensitivityPoint(
double s);
145 void setSensitivity(
double s);
154 void setRange(
double min,
163 void setDecimals(
int d);
171 void invertSlider(
bool inverted);
181 void setValue(
double dScale);
190 void valueChanged(
double dScale);
200 void initLabel(
const char* charTextLabel);
226 void spinBoxChanged(
double dScale);
234 void sliderChanged(
int dScale);
246 void setSliderRange(
int min,
257 inline int mapSpinBoxToSlider(
double dIn);
268 inline double mapSliderToSpinBox(
int iIn);
276 void updateNLMapConstants();
285 inline float weightedSensitivity(
float fSensitivity);
291 void promptMinValueChange();
297 void promptMaxValueChange();
299 Ui::ScaleControlWidget* m_pUi;
300 bool m_bManagingSpinBoxChange;
301 bool m_bManagingSliderChange;
302 float m_fSensitivity;
303 float m_fSensitivityWeighted;
304 float m_fMaxSensitivityPoint;
305 float m_fMapYconstant;
306 float m_fMapKconstant;
307 bool m_bSliderInverted;
309 QMenu* m_pSettingsMenu;
314 #endif // SCALECONTROL_H