diff options
Diffstat (limited to 'tracker_frame.cpp')
-rw-r--r-- | tracker_frame.cpp | 29 |
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 | |||
3 | TrackerFrame::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 | |||
24 | void TrackerFrame::OnAbout(wxCommandEvent &event) { | ||
25 | wxMessageBox("Lingo Archipelago Tracker by hatkirby", | ||
26 | "About lingo-ap-tracker", wxOK | wxICON_INFORMATION); | ||
27 | } | ||
28 | |||
29 | void TrackerFrame::OnExit(wxCommandEvent &event) { Close(true); } | ||