mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
blink console panel icon to indicate new errors/warnings/infos
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1630 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -250,6 +250,16 @@ void SetWindow::selectPanel(int id) {
|
||||
current_panel->SetFocus();
|
||||
}
|
||||
|
||||
void SetWindow::setPanelIcon(SetWindowPanel* panel, wxBitmap const& icon) {
|
||||
for (size_t i = 0 ; i < panels.size() ; ++i) {
|
||||
if (panels[i] == panel) {
|
||||
wxToolBar* tabBar = (wxToolBar*)FindWindow(ID_TAB_BAR);
|
||||
tabBar->SetToolNormalBitmap(ID_WINDOW_MIN+i, icon);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Window managment
|
||||
|
||||
vector<SetWindow*> SetWindow::set_windows;
|
||||
|
||||
Reference in New Issue
Block a user