aboutsummaryrefslogtreecommitdiff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-24 10:18:02 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-24 10:18:02 +0100
commitbdfc577a3b8c360d48c4d094d532786de44c5aed (patch)
treebebe68b8584da7a05ee58a8f26746fcdbfc0cbb5 /src/MainWindow.cpp
parenta8fece4ea62a4831c923ebc7e3ce11d594f9da23 (diff)
Start BaseTab design
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 83fd964..0a79bc2 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -43,6 +43,12 @@ MainWindow::MainWindow()
notebook = new wxAuiNotebook(this, wxID_ANY);
NewGame(new Game());
+ // Test base tab
+ BaseTab *bt = new BaseTab((wxFrame *)notebook);
+ bt->SetLabel("New Base");
+ notebook->AddPage(bt, bt->GetLabel());
+ notebook->SetSelection(notebook->GetPageIndex(bt));
+
Bind(wxEVT_AUINOTEBOOK_PAGE_CHANGED, &MainWindow::OnPageChange, this,
wxID_ANY);
Bind(REFRESH_TAB_TITLE, &MainWindow::OnRefreshTabTitle, this, wxID_ANY);