void KrecipesView::renameCurrentElement()
{
	QWidget * vis_panel = rightPanel->visiblePanel();
	if ( vis_panel == ingredientsPanel ) {
		ingredientsPanel->getActionsHandler()->rename();
	} else if ( vis_panel == propertiesPanel ) {
		propertiesPanel->getActionsHandler()->rename();
	} else if ( vis_panel == unitsPanel ) {
		if ( unitsPanel->getActionsHandler() )
			unitsPanel->getActionsHandler()->rename();
	} else if ( vis_panel == prepMethodsPanel ) {
		prepMethodsPanel->getActionsHandler()->rename();
	} else if ( vis_panel == categoriesPanel) {
		categoriesPanel->getActionsHandler()->rename();
	} else if ( vis_panel == authorsPanel ) {
		authorsPanel->getActionsHandler()->rename();
	}	
}
void KrecipesView::renameCurrentElement()
{
	QWidget * vis_panel = rightPanel->visiblePanel();
	if ( vis_panel == ingredientsPanel ) {
		ingredientsPanel->getActionsHandler()->rename();
	} else if ( vis_panel == propertiesPanel ) {
		propertiesPanel->getActionsHandler()->rename();
	} else if ( vis_panel == unitsPanel ) {
		if ( unitsPanel->getActionsHandler() )
			unitsPanel->getActionsHandler()->rename();
	} else if ( vis_panel == prepMethodsPanel ) {
		prepMethodsPanel->getActionsHandler()->rename();
	} else if ( vis_panel == categoriesPanel) {
		categoriesPanel->getActionsHandler()->rename();
	} else if ( vis_panel == authorsPanel ) {
		authorsPanel->getActionsHandler()->rename();
	}	
}