about summary refs log tree commit diff stats
path: root/src/tracker_frame.h
blob: f1d7171e86629f9da4e574f9415df05a93578584 (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
35
36
37
38
39
40
41
42
43
44
45
#ifndef TRACKER_FRAME_H_86BD8DFB
#define TRACKER_FRAME_H_86BD8DFB

#include <wx/wxprec.h>

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

class AchievementsPane;
class SubwayMap;
class TrackerPanel;

wxDECLARE_EVENT(STATE_RESET, wxCommandEvent);
wxDECLARE_EVENT(STATE_CHANGED, wxCommandEvent);
wxDECLARE_EVENT(STATUS_CHANGED, wxCommandEvent);

class TrackerFrame : public wxFrame {
 public:
  TrackerFrame();

  void SetStatusMessage(std::string message);

  void ResetIndicators();
  void UpdateIndicators();

 private:
  void OnExit(wxCommandEvent &event);
  void OnAbout(wxCommandEvent &event);
  void OnConnect(wxCommandEvent &event);
  void OnSettings(wxCommandEvent &event);
  void OnCheckForUpdates(wxCommandEvent &event);

  void OnStateReset(wxCommandEvent &event);
  void OnStateChanged(wxCommandEvent &event);
  void OnStatusChanged(wxCommandEvent &event);

  void CheckForUpdates(bool manual);

  TrackerPanel *tracker_panel_;
  AchievementsPane *achievements_pane_;
  SubwayMap *subway_map_;
};

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