From d7eb71dc931c812b57d39566f71069a51cb66f4d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 1 May 2023 17:21:47 -0400 Subject: Initial commit --- tracker_frame.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tracker_frame.cpp (limited to 'tracker_frame.cpp') diff --git a/tracker_frame.cpp b/tracker_frame.cpp new file mode 100644 index 0000000..83f42a6 --- /dev/null +++ b/tracker_frame.cpp @@ -0,0 +1,29 @@ +#include "tracker_frame.h" + +TrackerFrame::TrackerFrame() + : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker") { + wxMenu *menuFile = new wxMenu(); + menuFile->Append(wxID_EXIT); + + wxMenu *menuHelp = new wxMenu(); + menuHelp->Append(wxID_ABOUT); + + wxMenuBar *menuBar = new wxMenuBar(); + menuBar->Append(menuFile, "&File"); + menuBar->Append(menuHelp, "&Help"); + + SetMenuBar(menuBar); + + CreateStatusBar(); + SetStatusText("Not connected to Archipelago."); + + Bind(wxEVT_MENU, &TrackerFrame::OnAbout, this, wxID_ABOUT); + Bind(wxEVT_MENU, &TrackerFrame::OnExit, this, wxID_EXIT); +} + +void TrackerFrame::OnAbout(wxCommandEvent &event) { + wxMessageBox("Lingo Archipelago Tracker by hatkirby", + "About lingo-ap-tracker", wxOK | wxICON_INFORMATION); +} + +void TrackerFrame::OnExit(wxCommandEvent &event) { Close(true); } -- cgit 1.4.1