about summary refs log tree commit diff stats
path: root/tracker_frame.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-01 17:21:47 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-01 17:21:47 -0400
commitd7eb71dc931c812b57d39566f71069a51cb66f4d (patch)
tree7df00a458e343aa6e7ddfe7f31eb93f9a57b6c0e /tracker_frame.cpp
downloadlingo-ap-tracker-d7eb71dc931c812b57d39566f71069a51cb66f4d.tar.gz
lingo-ap-tracker-d7eb71dc931c812b57d39566f71069a51cb66f4d.tar.bz2
lingo-ap-tracker-d7eb71dc931c812b57d39566f71069a51cb66f4d.zip
Initial commit
Diffstat (limited to 'tracker_frame.cpp')
-rw-r--r--tracker_frame.cpp29
1 files changed, 29 insertions, 0 deletions
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 @@
1#include "tracker_frame.h"
2
3TrackerFrame::TrackerFrame()
4 : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker") {
5 wxMenu *menuFile = new wxMenu();
6 menuFile->Append(wxID_EXIT);
7
8 wxMenu *menuHelp = new wxMenu();
9 menuHelp->Append(wxID_ABOUT);
10
11 wxMenuBar *menuBar = new wxMenuBar();
12 menuBar->Append(menuFile, "&File");
13 menuBar->Append(menuHelp, "&Help");
14
15 SetMenuBar(menuBar);
16
17 CreateStatusBar();
18 SetStatusText("Not connected to Archipelago.");
19
20 Bind(wxEVT_MENU, &TrackerFrame::OnAbout, this, wxID_ABOUT);
21 Bind(wxEVT_MENU, &TrackerFrame::OnExit, this, wxID_EXIT);
22}
23
24void TrackerFrame::OnAbout(wxCommandEvent &event) {
25 wxMessageBox("Lingo Archipelago Tracker by hatkirby",
26 "About lingo-ap-tracker", wxOK | wxICON_INFORMATION);
27}
28
29void TrackerFrame::OnExit(wxCommandEvent &event) { Close(true); }