mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-21 04:43:41 +01:00
38 lines
635 B
C++
38 lines
635 B
C++
#ifndef DEVICEPANEL_H
|
|||
|
|
#define DEVICEPANEL_H
|
||
|
|
|
||
|
|
#include <wx/wx.h>
|
||
|
|
#include "../state.hpp"
|
||
|
|
|
||
|
|
class MainFrame;
|
||
|
|
class DevicePanel : public wxPanel
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
DevicePanel(MainFrame* frame, wxWindow* parent)
|
||
|
|
: wxPanel(parent),
|
||
|
|
m_frame(frame)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
virtual void SetDeviceState(const DeviceState& state)
|
||
|
|
{
|
||
|
|
m_deviceState = state;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected:
|
||
|
|
MainFrame* GetMainFrame() const
|
||
|
|
{
|
||
|
|
return m_frame;
|
||
|
|
}
|
||
|
|
|
||
|
|
const DeviceState& GetDeviceState() const
|
||
|
|
{
|
||
|
|
return m_deviceState;
|
||
|
|
}
|
||
|
|
|
||
|
|
private:
|
||
|
|
MainFrame* m_frame;
|
||
|
|
DeviceState m_deviceState;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // DEVICEPANEL_H
|