diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-02-08 15:11:23 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-02-08 15:11:23 -0500 |
commit | 712313d825db7ce7c9d4457f7564b27d3dd4ce64 (patch) | |
tree | a4fa488b66b19a825bebd8dfea8cdf97d2e9452b /src/report_popup.h | |
parent | 9b8570921477e374f53fa9df183f1776cf345f73 (diff) | |
download | lingo-ap-tracker-712313d825db7ce7c9d4457f7564b27d3dd4ce64.tar.gz lingo-ap-tracker-712313d825db7ce7c9d4457f7564b27d3dd4ce64.tar.bz2 lingo-ap-tracker-712313d825db7ce7c9d4457f7564b27d3dd4ce64.zip |
Added a scrollbar to subway reports
Diffstat (limited to 'src/report_popup.h')
-rw-r--r-- | src/report_popup.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ | |||
1 | #ifndef REPORT_POPUP_H_E065BED4 | ||
2 | #define REPORT_POPUP_H_E065BED4 | ||
3 | |||
4 | #include <wx/wxprec.h> | ||
5 | |||
6 | #ifndef WX_PRECOMP | ||
7 | #include <wx/wx.h> | ||
8 | #endif | ||
9 | |||
10 | class ReportPopup : public wxScrolledCanvas { | ||
11 | public: | ||
12 | explicit ReportPopup(wxWindow* parent); | ||
13 | |||
14 | void SetDoorId(int door_id); | ||
15 | |||
16 | void Reset(); | ||
17 | |||
18 | void UpdateIndicators(); | ||
19 | |||
20 | private: | ||
21 | void OnPaint(wxPaintEvent& event); | ||
22 | |||
23 | int door_id_ = -1; | ||
24 | |||
25 | wxBitmap unchecked_eye_; | ||
26 | wxBitmap checked_eye_; | ||
27 | wxBitmap rendered_; | ||
28 | }; | ||
29 | |||
30 | #endif /* end of include guard: REPORT_POPUP_H_E065BED4 */ | ||