summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditorDC.h
blob: c8325a892b399061bb10016625839ff8a631d6f8 (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() { m_panelWorkspace->Refresh(); }

protected:
    virtual void OnPaint(wxPaintEvent& event);
    virtual void OnIdle(wxIdleEvent& event) {} // Prevent OpenGL checks
};

#endif // CONTROLEDITORDC_H