diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-24 10:18:02 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-24 10:18:02 +0100 |
| commit | bdfc577a3b8c360d48c4d094d532786de44c5aed (patch) | |
| tree | bebe68b8584da7a05ee58a8f26746fcdbfc0cbb5 /src/MainWindow.cpp | |
| parent | a8fece4ea62a4831c923ebc7e3ce11d594f9da23 (diff) | |
Start BaseTab design
Diffstat (limited to 'src/MainWindow.cpp')
| -rw-r--r-- | src/MainWindow.cpp | 6 |
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); |
