Beispiel #1
0
void MainWindow::LoadPerspectives(const wxString& pers_name)
{
	sett().SetLastPerspectiveName(pers_name);
	wxString perspective_name = AddPerspectivePostfix(pers_name);

	LoadNotebookPerspective(m_func_tabs, perspective_name);
	m_sp_tab->LoadPerspective(perspective_name);
	m_join_tab->LoadPerspective(perspective_name);
	wxWindow* active_chat_tab = static_cast<wxWindow*>(m_chat_tab->GetActiveChatPanel());
	if (active_chat_tab)
		active_chat_tab->Refresh();
	//chat tab saving won't work w/o further work
	//    m_chat_tab->LoadPerspective( perspective_name );
}
Beispiel #2
0
void MainOptionsTab::LoadPerspective( const wxString& perspective_name  )
{
    LoadNotebookPerspective( m_tabs, perspective_name );
}
void MainJoinBattleTab::LoadPerspective( const wxString& perspective_name  )
{
    LoadNotebookPerspective( m_tabs, perspective_name );
}
void MainSinglePlayerTab::LoadPerspective(const wxString& perspective_name)
{
	LoadNotebookPerspective(m_tabs, perspective_name);
}
void MainChatTab::LoadPerspective( const wxString& perspective_name  )
{
    LoadNotebookPerspective( m_chat_tabs, perspective_name );
}