diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-09 18:38:21 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-09 18:38:21 -0300 |
commit | 4fdcfe16959a610a928064df73281f509425cbbf (patch) | |
tree | 2f2484a5162313f472d80e85b9a4c6392213347e /Project/ControlEditorDC.h | |
parent | 8321d2612f6ee88bafd97c1bf08fb9f0b7a9db5b (diff) | |
parent | 5e68e62fb23f15f26e24823bf21b012ab4dfd1e0 (diff) | |
download | PSP.git-4fdcfe16959a610a928064df73281f509425cbbf.tar.gz PSP.git-4fdcfe16959a610a928064df73281f509425cbbf.tar.xz PSP.git-4fdcfe16959a610a928064df73281f509425cbbf.zip |
Merge branch 'master' of https://github.com/Thales1330/PSP
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 |