about summary refs log tree commit diff stats
path: root/src/report_popup.h
blob: 2da9b73921e8323dd0333bdb77a51f202cfd19a5 (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
34
#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;

  const wxBitmap* unchecked_eye_;
  const wxBitmap* checked_eye_;

  wxBitmap rendered_;
};

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