diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-09 18:33:54 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-09 18:33:54 -0300 |
commit | 5e68e62fb23f15f26e24823bf21b012ab4dfd1e0 (patch) | |
tree | 6ea2989fbcee7eeb1fa8ee9ebe946a8de1be1e82 /Project/ControlEditorDC.h | |
parent | c5636d2031b20e673441e095d90ba94942698e7c (diff) | |
download | PSP.git-5e68e62fb23f15f26e24823bf21b012ab4dfd1e0.tar.gz PSP.git-5e68e62fb23f15f26e24823bf21b012ab4dfd1e0.tar.xz PSP.git-5e68e62fb23f15f26e24823bf21b012ab4dfd1e0.zip |
Control Editor device context draw imp init
Diffstat (limited to 'Project/ControlEditorDC.h')
-rw-r--r-- | Project/ControlEditorDC.h | 24 |
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 |