-
Notifications
You must be signed in to change notification settings - Fork 0
/
HistogramSettings.h
78 lines (66 loc) · 1.38 KB
/
HistogramSettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* @file HistogramSettings.h
* @author Dan R. Lipsa
* @date 19 August 2010
* @brief Dialog for modifying Histogram settings
* @ingroup ui
*/
#ifndef __HISTOGRAM_SETTINGS_H__
#define __HISTOGRAM_SETTINGS_H__
#include "ui_HistogramSettings.h"
/**
* @brief Dialog for modifying Histogram settings
*/
class HistogramSettings :
public QDialog, private Ui::HistogramSettings
{
public:
enum State
{
MAX_VALUE,
VALUE
};
public:
HistogramSettings (QWidget* parent);
size_t GetYValue () const
{
return m_yAxisValue;
}
void SetYValue (size_t value);
void SetYAxisMaxValue (size_t maxValue)
{
m_yAxisMaxValue = maxValue;
}
size_t GetYMaximumValue () const
{
return m_yAxisMaxValue;
}
State GetYState () const
{
return m_yState;
}
bool IsYAxisLogScale () const
{
return m_yAxisLogScale;
}
void SetYAxisLogScale (bool logScale);
public Q_SLOTS:
void ToggledYAxisLogScale (bool checked);
void ToggledYMaxValue (bool checked);
void ToggledYValue (bool checked);
void EditingFinishedYValue ();
void FocusInYValue ();
private:
void setValue (size_t value);
private:
Q_OBJECT
bool m_yAxisLogScale;
QIntValidator m_validator;
size_t m_yAxisValue;
size_t m_yAxisMaxValue;
State m_yState;
};
#endif //__HISTOGRAM_SETTINGS_H__
// Local Variables:
// mode: c++
// End: