From 712313d825db7ce7c9d4457f7564b27d3dd4ce64 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 8 Feb 2025 15:11:23 -0500 Subject: Added a scrollbar to subway reports --- src/report_popup.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/report_popup.h (limited to 'src/report_popup.h') diff --git a/src/report_popup.h b/src/report_popup.h new file mode 100644 index 0000000..9e141bf --- /dev/null +++ b/src/report_popup.h @@ -0,0 +1,30 @@ +#ifndef REPORT_POPUP_H_E065BED4 +#define REPORT_POPUP_H_E065BED4 + +#include + +#ifndef WX_PRECOMP +#include +#endif + +class ReportPopup : public wxScrolledCanvas { + public: + explicit ReportPopup(wxWindow* parent); + + void SetDoorId(int door_id); + + void Reset(); + + void UpdateIndicators(); + + private: + void OnPaint(wxPaintEvent& event); + + int door_id_ = -1; + + wxBitmap unchecked_eye_; + wxBitmap checked_eye_; + wxBitmap rendered_; +}; + +#endif /* end of include guard: REPORT_POPUP_H_E065BED4 */ -- cgit 1.4.1