2026-06-19 17:51:51 -07:00
|
|
|
#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;
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-28 16:37:05 -07:00
|
|
|
virtual void OnShow(wxShowEvent& event)
|
|
|
|
|
{
|
|
|
|
|
event.Skip();
|
|
|
|
|
}
|
2026-06-19 17:51:51 -07:00
|
|
|
protected:
|
|
|
|
|
MainFrame* GetMainFrame() const
|
|
|
|
|
{
|
|
|
|
|
return m_frame;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const DeviceState& GetDeviceState() const
|
|
|
|
|
{
|
|
|
|
|
return m_deviceState;
|
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
MainFrame* m_frame;
|
|
|
|
|
DeviceState m_deviceState;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // DEVICEPANEL_H
|