From ea16cff14ff4faf5782da8ff684a6ec412b7b6ac Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 12 May 2024 17:48:02 -0400 Subject: Started making subway map --- src/tracker_frame.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/tracker_frame.cpp') 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 @@ #include "ap_state.h" #include "connection_dialog.h" #include "settings_dialog.h" +#include "subway_map.h" #include "tracker_config.h" #include "tracker_panel.h" #include "version.h" @@ -58,15 +59,20 @@ TrackerFrame::TrackerFrame() Bind(STATE_CHANGED, &TrackerFrame::OnStateChanged, this); Bind(STATUS_CHANGED, &TrackerFrame::OnStatusChanged, this); - wxChoicebook *choicebook = new wxChoicebook(this, wxID_ANY); achievements_pane_ = new AchievementsPane(this); + + wxChoicebook *choicebook = new wxChoicebook(this, wxID_ANY); choicebook->AddPage(achievements_pane_, "Achievements"); - tracker_panel_ = new TrackerPanel(this); + wxNotebook *rightpane = new wxNotebook(this, wxID_ANY); + tracker_panel_ = new TrackerPanel(rightpane); + subway_map_ = new SubwayMap(rightpane); + rightpane->AddPage(tracker_panel_, "Map"); + rightpane->AddPage(subway_map_, "Subway"); wxBoxSizer *top_sizer = new wxBoxSizer(wxHORIZONTAL); top_sizer->Add(choicebook, wxSizerFlags().Expand().Proportion(1)); - top_sizer->Add(tracker_panel_, wxSizerFlags().Expand().Proportion(3)); + top_sizer->Add(rightpane, wxSizerFlags().Expand().Proportion(3)); SetSizerAndFit(top_sizer); SetSize(1280, 728); @@ -165,6 +171,7 @@ void TrackerFrame::OnCheckForUpdates(wxCommandEvent &event) { void TrackerFrame::OnStateChanged(wxCommandEvent &event) { tracker_panel_->UpdateIndicators(); achievements_pane_->UpdateIndicators(); + subway_map_->UpdateIndicators(); Refresh(); } -- cgit 1.4.1