src/pi/ui/ViewManager.cpp
bool ViewManager::switchToLayout(int n) {
	if(n < 0 || n >= (int)names.size())
		return false;

	// Update the active layout if needed
	if(activeLayoutIndex != n) {
		activeLayoutIndex = n;
		invalidate = true;

		updateWindowTitle();

		// update tab view
		if(tabView != NULL)
			tabView->setSelectedTab(activeLayoutIndex);
	}
	return true;
}
/** Switch to the given layout, return true upon success, usually false means invalid number 'n' **/
Switch to the given layout, return true upon success, usually false means invalid number 'n'
Switch to the given layout return true upon success usually false means invalid number ' n '
bool ViewManager::switchToLayout(int n) {
	if(n < 0 || n >= (int)names.size())
		return false;
	if(activeLayoutIndex != n) {
		activeLayoutIndex = n;
		invalidate = true;
		updateWindowTitle();
		if(tabView != NULL)
			tabView->setSelectedTab(activeLayoutIndex);
	}
	return true;
}
bool ViewManager :: switchToLayout ( int n ) { if ( n < 0 || n >= ( int ) names . size ( ) ) return false ; if ( activeLayoutIndex != n ) { activeLayoutIndex = n ; invalidate = true ; updateWindowTitle ( ) ; if ( tabView != NULL ) tabView -> setSelectedTab ( activeLayoutIndex ) ; } return true ; }
Switch to the given layout, return true upon success, usually false means invalid number 'n'
Switch to the given layout return true upon success usually false means invalid number ' n '
// Update the active layout if needed // update tab view