aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab')
-rw-r--r--src/game_tab/GameTab.cpp2
-rw-r--r--src/game_tab/left_panel/GameTabLeftPanel.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/game_tab/GameTab.cpp b/src/game_tab/GameTab.cpp
index a9a12da..4657cb4 100644
--- a/src/game_tab/GameTab.cpp
+++ b/src/game_tab/GameTab.cpp
@@ -60,6 +60,8 @@ void GameTab::OnToolClick(wxCommandEvent &event){
related_file = newFileDialog.GetPath().ToStdString();
}
SaveGame(related_file,game);
+ } else if(id==1){
+ wxLogDebug("Not yet implemented");
}
}
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp
index 33383fd..71d44bf 100644
--- a/src/game_tab/left_panel/GameTabLeftPanel.cpp
+++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp
@@ -7,6 +7,8 @@ GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game)
// Configure toolbal
game_toolbar->AddTool(0, wxT("Save As"),
wxArtProvider::GetBitmap(wxART_FILE_SAVE, wxART_TOOLBAR));
+ game_toolbar->AddTool(1, wxT("Duplicate Game"),
+ wxArtProvider::GetBitmap(wxART_COPY, wxART_TOOLBAR));
// Add board
board_canvas = new BoardCanvas((wxFrame *)this);