blob: 74e509a240df89ff43344f37606d1d2495d18fbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef CONTROLEDITORDC_H
#define CONTROLEDITORDC_H
#include "ControlEditor.h"
#include <wx/graphics.h>
#include <wx/dcbuffer.h>
class ControlEditorDC : public ControlEditor
{
public:
ControlEditorDC(wxWindow* parent,
int ioflags = IOControl::IN_TERMINAL_VOLTAGE | IOControl::IN_VELOCITY | IOControl::OUT_FIELD_VOLTAGE |
IOControl::OUT_MEC_POWER);
~ControlEditorDC();
virtual void Redraw() { this->Refresh(); }
protected:
virtual void OnPaint(wxPaintEvent& event);
virtual void OnIdle(wxIdleEvent& event) {} // Prevent OpenGL checks
};
#endif // CONTROLEDITORDC_H
|