From 5e68e62fb23f15f26e24823bf21b012ab4dfd1e0 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 9 Jun 2020 18:33:54 -0300 Subject: Control Editor device context draw imp init --- Project/ControlEditorDC.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Project/ControlEditorDC.h (limited to 'Project/ControlEditorDC.h') diff --git a/Project/ControlEditorDC.h b/Project/ControlEditorDC.h new file mode 100644 index 0000000..74e509a --- /dev/null +++ b/Project/ControlEditorDC.h @@ -0,0 +1,24 @@ +#ifndef CONTROLEDITORDC_H +#define CONTROLEDITORDC_H + +#include "ControlEditor.h" + +#include +#include + +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 -- cgit