Switch play/pause button icons when necessary

This commit is contained in:
archshift 2014-08-08 13:20:28 -07:00
parent 019d5aee49
commit 400a7bd612
2 changed files with 3 additions and 5 deletions

View File

@ -584,7 +584,7 @@ void CFrame::OnToolBar(wxCommandEvent& event)
break; break;
case IDM_EDIT_PERSPECTIVES: case IDM_EDIT_PERSPECTIVES:
m_bEdit = !m_bEdit; m_bEdit = !m_bEdit;
//m_ToolBarAui->SetToolSticky(IDM_EDIT_PERSPECTIVES, m_bEdit); m_ToolBarAui->SetToolSticky(IDM_EDIT_PERSPECTIVES, m_bEdit);
TogglePaneStyle(m_bEdit, IDM_EDIT_PERSPECTIVES); TogglePaneStyle(m_bEdit, IDM_EDIT_PERSPECTIVES);
break; break;
} }

View File

@ -1722,15 +1722,13 @@ void CFrame::UpdateGUI()
{ {
PlayTool->SetLabel(_("Pause")); PlayTool->SetLabel(_("Pause"));
PlayTool->SetShortHelp(_("Pause")); PlayTool->SetShortHelp(_("Pause"));
// TODO: Change icon m_ToolBar->SetToolNormalBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Pause]);
// m_ToolBar->SetToolBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Pause]);
} }
else else
{ {
PlayTool->SetLabel(_("Play")); PlayTool->SetLabel(_("Play"));
PlayTool->SetShortHelp(_("Play")); PlayTool->SetShortHelp(_("Play"));
// TODO: Change icon m_ToolBar->SetToolNormalBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Play]);
// m_ToolBar->SetToolBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Play]);
} }
} }
} }