summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditorDC.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project/ControlEditorDC.h')
-rw-r--r--Project/ControlEditorDC.h24
1 files changed, 24 insertions, 0 deletions
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 <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