about summary refs log tree commit diff stats
path: root/src/report_popup.h
blob: 4ccc913b880c570367d953a9cb098c34a1949011 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef REPORT_POPUP_H_E065BED4
#define REPORT_POPUP_H_E065BED4

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

class ReportPopup : public wxScrolledCanvas {
 public:
  explicit ReportPopup(wxWindow* parent);

  void SetDoorId(int door_id);

  void Reset();

  void UpdateIndicators();

 private:
  void OnPaint(wxPaintEvent& event);
  void OnDPIChanged(wxDPIChangedEvent& event);

  void LoadIcons();

  int door_id_ = -1;

  wxBitmap unchecked_eye_;
  wxBitmap checked_eye_;
  wxBitmap rendered_;
};

#endif /* end of include guard: REPORT_POPUP_H_E065BED4 */