void Krecipes::updateActions( KrePanel panel, bool show )
{
	switch ( panel ) {
	case RecipeView: {
			exportAction->setEnabled( show );
			printAction->setEnabled( show );
			reloadAction->setEnabled( show );
			copyToClipboardAction->setEnabled( show );
			showRecipeAction->setEnabled( false );

			//can't edit when there are multiple recipes loaded
			if ( show && m_view->viewPanel->recipesLoaded() == 1 ) {
				editAction->setEnabled( true );
			}
			else
				editAction->setEnabled( false );

			break;
		}
	case RecipeEdit: {
			exportAction->setEnabled( false );
			showRecipeAction->setEnabled( show );
			break;
		}
	case SelectP: {
			exportAction->setEnabled( show );
			if (show)
				m_view->selectPanel->haveSelectedItems();
			else
				recipeSelected( false );
			break;
		}
	case MatcherP: {
			exportAction->setEnabled( show );
			if (show) 
				m_view->ingredientMatcherPanel->haveSelectedItems();
			else
				recipeSelected( false );
			break;
		}
	default:
		break;
	}
}
void Krecipes::updateActions( KrePanel panel, bool show )
{
	switch ( panel ) {
	case RecipeView: {
			exportAction->setEnabled( show );
			printAction->setEnabled( show );
			reloadAction->setEnabled( show );
			copyToClipboardAction->setEnabled( show );
			showRecipeAction->setEnabled( false );

			 
			if ( show && m_view->viewPanel->recipesLoaded() == 1 ) {
				editAction->setEnabled( true );
			}
			else
				editAction->setEnabled( false );

			break;
		}
	case RecipeEdit: {
			exportAction->setEnabled( false );
			showRecipeAction->setEnabled( show );
			break;
		}
	case SelectP: {
			exportAction->setEnabled( show );
			if (show)
				m_view->selectPanel->haveSelectedItems();
			else
				recipeSelected( false );
			break;
		}
	case MatcherP: {
			exportAction->setEnabled( show );
			if (show) 
				m_view->ingredientMatcherPanel->haveSelectedItems();
			else
				recipeSelected( false );
			break;
		}
	default:
		break;
	}
}