Esempio n. 1
0
void PaletteWindow::SelectPage(PaletteType id) {
	if(!choicebook) return;
	if(id == GetSelectedPage()) {
		return;
	}

	for(size_t iz = 0; iz < choicebook->GetPageCount(); ++iz) {
		PalettePanel* panel = dynamic_cast<PalettePanel*>(choicebook->GetPage(iz));
		if(panel->GetType() == id) {
			choicebook->SetSelection(iz);
			//LoadCurrentContents();
			break;
		}
	}
}
Esempio n. 2
0
void GlobalPrefsDialog::SavePreferredPage()
{
    gPrefs->Write(wxT("/Prefs/PrefsCategory"), (long)GetSelectedPage());
    gPrefs->Flush();
}