void CompilerSettingsDlg::UpdateListbookImages() { wxListbook* lb = XRCCTRL(*this, "nbMain", wxListbook); int sel = lb->GetSelection(); // set page images according to their on/off status for (size_t i = 0; i < IMAGES_COUNT + m_PluginPanels.GetCount(); ++i) { lb->SetPageImage(i, (i * 2) + (sel == (int)i ? 0 : 1)); } // the selection colour is ruining the on/off effect, // so make sure no item is selected ;) // (only if we have icons showing) if (GetSettingsIconsStyle(lb->GetListView()) != sisNoIcons) lb->GetListView()->Select(sel, false); // update the page title wxString label = lb->GetPageText(sel); // replace any stray & with && because label makes it an underscore while (label.Replace(_T(" & "), _T(" && "))) ; XRCCTRL(*this, "lblBigTitle", wxStaticText)->SetLabel(label); }
SettingsIconsStyle GetSettingsIconsStyle(cb_unused wxListCtrl* lc) { return GetSettingsIconsStyle(); }