about summary refs log tree commit diff stats
path: root/src/tracker_frame.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-12 17:48:02 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-12 17:48:02 -0400
commitea16cff14ff4faf5782da8ff684a6ec412b7b6ac (patch)
treea5f09508f2f6c5e969a993de67181d5e94878924 /src/tracker_frame.cpp
parent8edd1bfd4ed2a42c28830f6c6575684aa3461b77 (diff)
downloadlingo-ap-tracker-ea16cff14ff4faf5782da8ff684a6ec412b7b6ac.tar.gz
lingo-ap-tracker-ea16cff14ff4faf5782da8ff684a6ec412b7b6ac.tar.bz2
lingo-ap-tracker-ea16cff14ff4faf5782da8ff684a6ec412b7b6ac.zip
Started making subway map
Diffstat (limited to 'src/tracker_frame.cpp')
-rw-r--r--src/tracker_frame.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tracker_frame.cpp b/src/tracker_frame.cpp index 8a0c764..70fee2d 100644 --- a/src/tracker_frame.cpp +++ b/src/tracker_frame.cpp
@@ -11,6 +11,7 @@
11#include "ap_state.h" 11#include "ap_state.h"
12#include "connection_dialog.h" 12#include "connection_dialog.h"
13#include "settings_dialog.h" 13#include "settings_dialog.h"
14#include "subway_map.h"
14#include "tracker_config.h" 15#include "tracker_config.h"
15#include "tracker_panel.h" 16#include "tracker_panel.h"
16#include "version.h" 17#include "version.h"
@@ -58,15 +59,20 @@ TrackerFrame::TrackerFrame()
58 Bind(STATE_CHANGED, &TrackerFrame::OnStateChanged, this); 59 Bind(STATE_CHANGED, &TrackerFrame::OnStateChanged, this);
59 Bind(STATUS_CHANGED, &TrackerFrame::OnStatusChanged, this); 60 Bind(STATUS_CHANGED, &TrackerFrame::OnStatusChanged, this);
60 61
61 wxChoicebook *choicebook = new wxChoicebook(this, wxID_ANY);
62 achievements_pane_ = new AchievementsPane(this); 62 achievements_pane_ = new AchievementsPane(this);
63
64 wxChoicebook *choicebook = new wxChoicebook(this, wxID_ANY);
63 choicebook->AddPage(achievements_pane_, "Achievements"); 65 choicebook->AddPage(achievements_pane_, "Achievements");
64 66
65 tracker_panel_ = new TrackerPanel(this); 67 wxNotebook *rightpane = new wxNotebook(this, wxID_ANY);
68 tracker_panel_ = new TrackerPanel(rightpane);
69 subway_map_ = new SubwayMap(rightpane);
70 rightpane->AddPage(tracker_panel_, "Map");
71 rightpane->AddPage(subway_map_, "Subway");
66 72
67 wxBoxSizer *top_sizer = new wxBoxSizer(wxHORIZONTAL); 73 wxBoxSizer *top_sizer = new wxBoxSizer(wxHORIZONTAL);
68 top_sizer->Add(choicebook, wxSizerFlags().Expand().Proportion(1)); 74 top_sizer->Add(choicebook, wxSizerFlags().Expand().Proportion(1));
69 top_sizer->Add(tracker_panel_, wxSizerFlags().Expand().Proportion(3)); 75 top_sizer->Add(rightpane, wxSizerFlags().Expand().Proportion(3));
70 76
71 SetSizerAndFit(top_sizer); 77 SetSizerAndFit(top_sizer);
72 SetSize(1280, 728); 78 SetSize(1280, 728);
@@ -165,6 +171,7 @@ void TrackerFrame::OnCheckForUpdates(wxCommandEvent &event) {
165void TrackerFrame::OnStateChanged(wxCommandEvent &event) { 171void TrackerFrame::OnStateChanged(wxCommandEvent &event) {
166 tracker_panel_->UpdateIndicators(); 172 tracker_panel_->UpdateIndicators();
167 achievements_pane_->UpdateIndicators(); 173 achievements_pane_->UpdateIndicators();
174 subway_map_->UpdateIndicators();
168 Refresh(); 175 Refresh();
169} 176}
170 177