mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-03 02:37:39 +00:00
Improve UI
This commit is contained in:
parent
a762ff6521
commit
fc9f6bd6a2
4 changed files with 11 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue