2015-01-04 17:11:20 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "wx/glcanvas.h"
|
|
|
|
#include "wx/timer.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <queue>
|
|
|
|
|
|
|
|
#include "InteractiveCanvas.h"
|
|
|
|
#include "TuningContext.h"
|
|
|
|
#include "MouseTracker.h"
|
|
|
|
|
|
|
|
#include "fftw3.h"
|
|
|
|
#include "Timer.h"
|
|
|
|
|
|
|
|
class TuningCanvas: public InteractiveCanvas {
|
|
|
|
public:
|
|
|
|
TuningCanvas(wxWindow *parent, int *attribList = NULL);
|
|
|
|
~TuningCanvas();
|
|
|
|
|
|
|
|
void setHelpTip(std::string tip);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void OnPaint(wxPaintEvent& event);
|
|
|
|
void OnIdle(wxIdleEvent &event);
|
|
|
|
|
|
|
|
void OnMouseMoved(wxMouseEvent& event);
|
|
|
|
void OnMouseDown(wxMouseEvent& event);
|
|
|
|
void OnMouseWheelMoved(wxMouseEvent& event);
|
|
|
|
void OnMouseReleased(wxMouseEvent& event);
|
|
|
|
void OnMouseEnterWindow(wxMouseEvent& event);
|
|
|
|
void OnMouseLeftWindow(wxMouseEvent& event);
|
|
|
|
|
|
|
|
TuningContext *glContext;
|
|
|
|
|
|
|
|
std::string helpTip;
|
2015-01-04 19:32:51 -05:00
|
|
|
float dragAccum;
|
2015-01-07 20:23:15 -05:00
|
|
|
float uxDown;
|
2015-01-04 17:11:20 -05:00
|
|
|
//
|
|
|
|
wxDECLARE_EVENT_TABLE();
|
|
|
|
};
|
|
|
|
|