| 34 | wxEND_EVENT_TABLE() |
| 35 | |
| 36 | TuningCanvas::TuningCanvas(wxWindow *parent, const wxGLAttributes& dispAttrs) : |
| 37 | InteractiveCanvas(parent, dispAttrs), dragAccum(0), uxDown(0), top(false), bottom(false), freq(-1), bw(-1), center(-1), halfBand(false) { |
| 38 | |
| 39 | glContext = new TuningContext(this, &wxGetApp().GetContext(this), wxGetApp().GetContextAttributes()); |
| 40 | |
| 41 | hoverIndex = 0; |
| 42 | downIndex = 0; |
| 43 | hoverState = TUNING_HOVER_NONE; |
| 44 | downState = TUNING_HOVER_NONE; |
| 45 | dragging = false; |
| 46 | |
| 47 | freqDP = -1.0; |
| 48 | freqW = (1.0f / 3.0f) * 2.0f; |
| 49 | |
| 50 | bwDP = -1.0 + (2.25 / 3.0); |
| 51 | bwW = (1.0 / 4.0) * 2.0; |
| 52 | |
| 53 | centerDP = -1.0f + (2.0f / 3.0f) * 2.0f; |
| 54 | centerW = (1.0f / 3.0f) * 2.0f; |
| 55 | |
| 56 | currentPPM = lastPPM = 0; |
| 57 | } |
| 58 | |
| 59 | TuningCanvas::~TuningCanvas() = default; |
| 60 |
nothing calls this directly
no test coverage detected