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:
twanvl
2011-01-21 14:11:06 +00:00
parent bd55326c7d
commit 579f180549
4 changed files with 78 additions and 2 deletions
+10
View File
@@ -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;