void Krecipes::setupActions()
{

	printAction =  KStandardAction::print( this, SLOT( filePrint() ), actionCollection() );

	reloadAction = new KAction( this );
	reloadAction->setText( i18nc("@action:inmenu Reload Recipe", "Reloa&d" ) );
	reloadAction->setIcon( KIcon( "view-refresh" ) );
	reloadAction->setShortcut( Qt::Key_F5 );
	actionCollection()->addAction( "reload_action" , reloadAction );
	connect( reloadAction, SIGNAL(triggered(bool)), m_view, SLOT( reloadDisplay() ) );

	editAction = new KAction( this );
	editAction->setText( i18n( "&Edit Recipe" ) );
	editAction->setIcon( KIcon( "document-edit" ) );
	editAction->setShortcut( Qt::CTRL + Qt::Key_E );
	actionCollection()->addAction( "edit_action" , editAction );
	connect( editAction, SIGNAL(triggered(bool)), m_view, SLOT( editRecipe() ) );

	converterAction = new KAction( this );
	converterAction->setText( i18n( "&Measurement Converter" ) );
	converterAction->setShortcut( Qt::CTRL + Qt::Key_M );
	actionCollection()->addAction( "converter_action" , converterAction );
	connect( converterAction, SIGNAL(triggered(bool)), this , SLOT( conversionToolSlot() ) );

	KConfigGroup grp(KGlobal::config(),"Advanced");

	if ( grp.readEntry("UnhideMergeTools",false) ) { //FIXME: Please review it, not used yet

		mergeCategoriesAction = new KAction( this );
		mergeCategoriesAction->setIcon( KIcon( "folder-yellow" ) );
		mergeCategoriesAction->setText( i18n( "&Merge Similar Categories..." ) );
		//mergeCategoriesAction->setShortcut( Qt::CTRL + Qt::Key_M );
		actionCollection()->addAction( "merge_categories_action", mergeCategoriesAction );
		connect( mergeCategoriesAction, SIGNAL(triggered(bool)), this, SLOT( mergeSimilarCategories() ) );

		mergeIngredientsAction = new KAction( this );
		mergeIngredientsAction->setIcon( KIcon( "ingredients" ) );
		mergeIngredientsAction->setText( i18n( "&Merge Similar Ingredients..." ) );
		//ºmergeIngredientsAction->setShortcut( Qt::CTRL + Qt::Key_M );
		actionCollection()->addAction( "merge_ingredients_action", mergeIngredientsAction );
		connect( mergeIngredientsAction, SIGNAL(triggered(bool)), this, SLOT( mergeSimilarIngredients() ) );

	}

	KAction *action = KStandardAction::openNew( this, SLOT( fileNew() ), actionCollection() );
	action->setText( i18n( "&New Recipe" ) );

	saveAction = KStandardAction::save( this, SLOT( fileSave() ), actionCollection() );

	KStandardAction::quit( kapp, SLOT( quit() ), actionCollection() );

	m_statusbarAction = KStandardAction::showStatusbar( this, SLOT( optionsShowStatusbar() ), actionCollection() );

	KStandardAction::keyBindings( this, SLOT( optionsConfigureKeys() ), actionCollection() );
	KStandardAction::configureToolbars( this, SLOT( optionsConfigureToolbars() ), actionCollection() );
	KStandardAction::preferences( this, SLOT( optionsPreferences() ), actionCollection() );

	importAction = new KAction( this );
	importAction->setText( i18n( "Import from File..." ) );
	importAction->setIcon( KIcon( "document-import" ) );
	importAction->setShortcut( Qt::CTRL + Qt::Key_I );
	actionCollection()->addAction( "import_action" , importAction );
	connect( importAction, SIGNAL(triggered(bool)), this, SLOT( import() ) );

	importDBAction= new KAction( this );
	importDBAction->setText( i18n( "Import from Database..." ) );
	importDBAction->setIcon( KIcon( "document-import" ) );
	actionCollection()->addAction( "import_db_action" , importDBAction );
	connect( importDBAction, SIGNAL(triggered(bool)), this, SLOT( kreDBImport() ) );

	exportAction = new KAction( this );
	exportAction->setText( i18n( "Export..." ) );
	exportAction->setShortcut( Qt::CTRL + Qt::Key_P );
	exportAction->setIcon( KIcon( "document-export" ) );
	actionCollection()->addAction( "export_action" , exportAction );
	connect( exportAction, SIGNAL(triggered(bool)), this, SLOT( fileExport() ) );

	copyToClipboardAction = new KAction( this );
	copyToClipboardAction->setText( i18n( "&Copy to Clipboard" ) );
	copyToClipboardAction->setIcon( KIcon( "edit-copy" ) );
	copyToClipboardAction->setShortcut( Qt::CTRL + Qt::Key_C );
	actionCollection()->addAction( "copy_to_clipboard_action" , copyToClipboardAction );
	connect( copyToClipboardAction, SIGNAL(triggered(bool)), this, SLOT( fileToClipboard()  ) );


        pageSetupAction = new KAction( this );
        pageSetupAction->setText( i18n( "Page Setup..." ) );
	pageSetupAction->setIcon( KIcon( "configure" ) );
        actionCollection()->addAction( "page_setup_action" , pageSetupAction );
        connect( pageSetupAction, SIGNAL(triggered(bool)), this, SLOT( pageSetupSlot() ) );

        printSetupAction = new KAction( this );
        printSetupAction->setText( i18n( "Print Setup..." ) );
	printSetupAction->setIcon( KIcon( "configure" ) );
        actionCollection()->addAction( "print_setup_action" , printSetupAction );
        connect( printSetupAction, SIGNAL(triggered(bool)), this, SLOT( printSetupSlot() ) );

        backupAction = new KAction( this );
        backupAction->setText( i18n( "Backup..." ) );
	backupAction->setIcon( KIcon( "document-save-all" ) );
        actionCollection()->addAction( "backup_action" , backupAction );
        connect( backupAction, SIGNAL(triggered(bool)), this, SLOT( backupSlot() ) );

        restoreAction = new KAction( this );
        restoreAction->setText( i18n( "Restore..." ) );
	restoreAction->setIcon( KIcon( "document-revert" ) );
        actionCollection()->addAction( "restore_action" , restoreAction );
        connect( restoreAction, SIGNAL(triggered(bool)), this, SLOT( restoreSlot() ) );

	addToShoppingListAction = new KAction( this );
	addToShoppingListAction->setText( i18n( "Add to Shopping List" ) ); 
	addToShoppingListAction->setIcon( KIcon( "view-pim-tasks" ) );
	addToShoppingListAction->setShortcut( Qt::CTRL + Qt::Key_S );
	actionCollection()->addAction( "add_to_shopping_list_action", addToShoppingListAction );
	connect( addToShoppingListAction, SIGNAL(triggered(bool)), m_view, SLOT( addToShoppingList() ) );

	removeFromCategoryAction = new KAction( this );
	removeFromCategoryAction->setText( i18n( "Remove From Category" ) );
	removeFromCategoryAction->setIcon( KIcon( "edit-delete-shred" ) );
	removeFromCategoryAction->setShortcut( Qt::ALT + Qt::Key_Delete );
	actionCollection()->addAction( "remove_from_category_action", removeFromCategoryAction );
	connect( removeFromCategoryAction, SIGNAL(triggered(bool)), m_view, SLOT( removeFromCategory() ) );

	deleteAction = new KAction( this );
	deleteAction->setText( i18n( "Delete" ) );
	deleteAction->setIcon( KIcon( "edit-delete" ) );
	deleteAction->setShortcut( Qt::Key_Delete );
	actionCollection()->addAction( "delete_action", deleteAction );
	connect( deleteAction, SIGNAL(triggered(bool)), m_view, SLOT( deleteCurrentElements() ) );

	showRecipeAction = new KAction( this );
	showRecipeAction->setText( i18n( "Show Recipe(s)" ) );
	showRecipeAction->setIcon( KIcon( "system-search" ) );
	showRecipeAction->setShortcut( Qt::CTRL + Qt::Key_L );
	actionCollection()->addAction( "show_recipe_action", showRecipeAction );
	connect( showRecipeAction, SIGNAL(triggered(bool)), m_view, SLOT( showCurrentRecipes() ) );

	categorizeAction = new KAction( this );
	categorizeAction->setText( i18n( "Categorize" ) );
	categorizeAction->setIcon( KIcon( "folder-yellow" ) );
	categorizeAction->setShortcut( Qt::CTRL + Qt::Key_T );
	actionCollection()->addAction( "categorize_action", categorizeAction );
	connect( categorizeAction, SIGNAL(triggered(bool)), m_view, SLOT( categorizeCurrentRecipe() ) );

	expandAllAction = new KAction( this );
	expandAllAction->setText( i18n( "Expand All" ) );
	expandAllAction->setShortcut( Qt::CTRL + Qt::Key_Plus );
	actionCollection()->addAction( "expand_all_action", expandAllAction );
	connect( expandAllAction, SIGNAL(triggered(bool)), m_view, SLOT( expandAll() ) );

	collapseAllAction = new KAction( this );
	collapseAllAction->setText( i18n ( "Collapse All") );
	collapseAllAction->setShortcut( Qt::CTRL + Qt::Key_Minus );
	actionCollection()->addAction( "collapse_all_action", collapseAllAction );
	connect( collapseAllAction, SIGNAL(triggered(bool)), m_view, SLOT( collapseAll() ) );
	
	//Note that createAction is intended to create anything except a new recipe.
	createAction = new KAction( this );
	createAction->setText( i18nc("@action:button Create new data item", "Create New" ) );
	createAction->setIcon( KIcon( "document-new" ) );
	createAction->setShortcut( Qt::CTRL + Qt::ALT + Qt::Key_N );
	actionCollection()->addAction( "create_new_action", createAction );
	connect( createAction, SIGNAL(triggered(bool)), m_view, SLOT( createNewElement() ) );

	renameAction = new KAction( this );
	renameAction->setText( i18n( "Rename" ) );
	renameAction->setIcon( KIcon( "edit-rename" ) );
	renameAction->setShortcut( Qt::CTRL + Qt::Key_R );
	actionCollection()->addAction( "rename_action", renameAction );
	connect( renameAction, SIGNAL(triggered(bool)), m_view, SLOT( renameCurrentElement() ) );

	//Not using an standard action because I don't want it in toolbar nor in menus.
	cutAction = new KAction( this );
	cutAction->setText( i18n( "Cut" ) );
	cutAction->setIcon( KIcon( "edit-cut" ) );
	cutAction->setShortcut( Qt::CTRL + Qt::Key_X );
	actionCollection()->addAction( "cut_action", cutAction );
	connect( cutAction, SIGNAL(triggered(bool)), m_view, SLOT( cut() ) );

	//Not using an standard action because I don't want it in toolbar nor in menus.
	pasteAction = new KAction( this );
	pasteAction->setText( i18n( "Paste" ) );
	pasteAction->setIcon( KIcon( "edit-paste" ) );
	pasteAction->setShortcut( Qt::CTRL + Qt::Key_V );
	actionCollection()->addAction( "paste_action", pasteAction );
	connect( pasteAction, SIGNAL(triggered(bool)), m_view, SLOT( paste() ) );

	pasteAsSubcategoryAction = new KAction( this );
	pasteAsSubcategoryAction->setText( i18n( "Paste as Subcategory" ) );
	pasteAsSubcategoryAction->setIcon( KIcon( "edit-paste" ) );
	pasteAsSubcategoryAction->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_V );
	actionCollection()->addAction( "paste_as_subcategory_action", pasteAsSubcategoryAction );
	connect( pasteAsSubcategoryAction, SIGNAL(triggered(bool)), m_view, SLOT( pasteAsSubcategory() ) );
	
	// Add actions to the context menus in the "select recipe" dialog
	m_view->addSelectRecipeAction( showRecipeAction );
	m_view->addSelectRecipeAction( editAction );
	m_view->addSelectRecipeAction( exportAction );
	m_view->addSelectRecipeAction( addToShoppingListAction );
	m_view->addSelectRecipeAction( copyToClipboardAction );
	m_view->setCategorizeAction( categorizeAction );
	m_view->setRemoveFromCategoryAction( removeFromCategoryAction );
	m_view->addSelectRecipeAction( deleteAction );
	m_view->addCategoryAction( expandAllAction );
	m_view->addCategoryAction( collapseAllAction );
	m_view->addCategoryAction( exportAction );
	// Add actions to the context menus in the "advanced search" dialog
	m_view->addFindRecipeAction( showRecipeAction );
	m_view->addFindRecipeAction( editAction );
	m_view->addFindRecipeAction( exportAction );
	m_view->addFindRecipeAction( copyToClipboardAction );
	m_view->addFindRecipeAction( deleteAction );
	// Add actions to the context menus in the "ingredient matcher" dialog
	m_view->addIngredientMatcherAction( showRecipeAction ); 
	m_view->addIngredientMatcherAction( editAction ); 
	m_view->addIngredientMatcherAction( exportAction );
	// Add actions to the dialogs in the "data" submenu
	m_view->addElementAction( createAction );
	m_view->addElementAction( renameAction );
	m_view->addCategoriesPanelAction( cutAction );
	m_view->setCategoryPasteAction( pasteAction );
	m_view->setPasteAsSubcategoryAction( pasteAsSubcategoryAction );
	m_view->addElementAction( deleteAction );

	updateActions( SelectP, true );
	updateActions( RecipeView, false );
	exportAction->setEnabled( true );

	createGUI();
}
void Krecipes::setupActions()
{

	printAction =  KStandardAction::print( this, SLOT( filePrint() ), actionCollection() );

	reloadAction = new KAction( this );
	reloadAction->setText( i18nc("@action:inmenu Reload Recipe", "Reloa&d" ) );
	reloadAction->setIcon( KIcon( "view-refresh" ) );
	reloadAction->setShortcut( Qt::Key_F5 );
	actionCollection()->addAction( "reload_action" , reloadAction );
	connect( reloadAction, SIGNAL(triggered(bool)), m_view, SLOT( reloadDisplay() ) );

	editAction = new KAction( this );
	editAction->setText( i18n( "&Edit Recipe" ) );
	editAction->setIcon( KIcon( "document-edit" ) );
	editAction->setShortcut( Qt::CTRL + Qt::Key_E );
	actionCollection()->addAction( "edit_action" , editAction );
	connect( editAction, SIGNAL(triggered(bool)), m_view, SLOT( editRecipe() ) );

	converterAction = new KAction( this );
	converterAction->setText( i18n( "&Measurement Converter" ) );
	converterAction->setShortcut( Qt::CTRL + Qt::Key_M );
	actionCollection()->addAction( "converter_action" , converterAction );
	connect( converterAction, SIGNAL(triggered(bool)), this , SLOT( conversionToolSlot() ) );

	KConfigGroup grp(KGlobal::config(),"Advanced");

	if ( grp.readEntry("UnhideMergeTools",false) ) {  

		mergeCategoriesAction = new KAction( this );
		mergeCategoriesAction->setIcon( KIcon( "folder-yellow" ) );
		mergeCategoriesAction->setText( i18n( "&Merge Similar Categories..." ) );
		 
		actionCollection()->addAction( "merge_categories_action", mergeCategoriesAction );
		connect( mergeCategoriesAction, SIGNAL(triggered(bool)), this, SLOT( mergeSimilarCategories() ) );

		mergeIngredientsAction = new KAction( this );
		mergeIngredientsAction->setIcon( KIcon( "ingredients" ) );
		mergeIngredientsAction->setText( i18n( "&Merge Similar Ingredients..." ) );
		 
		actionCollection()->addAction( "merge_ingredients_action", mergeIngredientsAction );
		connect( mergeIngredientsAction, SIGNAL(triggered(bool)), this, SLOT( mergeSimilarIngredients() ) );

	}

	KAction *action = KStandardAction::openNew( this, SLOT( fileNew() ), actionCollection() );
	action->setText( i18n( "&New Recipe" ) );

	saveAction = KStandardAction::save( this, SLOT( fileSave() ), actionCollection() );

	KStandardAction::quit( kapp, SLOT( quit() ), actionCollection() );

	m_statusbarAction = KStandardAction::showStatusbar( this, SLOT( optionsShowStatusbar() ), actionCollection() );

	KStandardAction::keyBindings( this, SLOT( optionsConfigureKeys() ), actionCollection() );
	KStandardAction::configureToolbars( this, SLOT( optionsConfigureToolbars() ), actionCollection() );
	KStandardAction::preferences( this, SLOT( optionsPreferences() ), actionCollection() );

	importAction = new KAction( this );
	importAction->setText( i18n( "Import from File..." ) );
	importAction->setIcon( KIcon( "document-import" ) );
	importAction->setShortcut( Qt::CTRL + Qt::Key_I );
	actionCollection()->addAction( "import_action" , importAction );
	connect( importAction, SIGNAL(triggered(bool)), this, SLOT( import() ) );

	importDBAction= new KAction( this );
	importDBAction->setText( i18n( "Import from Database..." ) );
	importDBAction->setIcon( KIcon( "document-import" ) );
	actionCollection()->addAction( "import_db_action" , importDBAction );
	connect( importDBAction, SIGNAL(triggered(bool)), this, SLOT( kreDBImport() ) );

	exportAction = new KAction( this );
	exportAction->setText( i18n( "Export..." ) );
	exportAction->setShortcut( Qt::CTRL + Qt::Key_P );
	exportAction->setIcon( KIcon( "document-export" ) );
	actionCollection()->addAction( "export_action" , exportAction );
	connect( exportAction, SIGNAL(triggered(bool)), this, SLOT( fileExport() ) );

	copyToClipboardAction = new KAction( this );
	copyToClipboardAction->setText( i18n( "&Copy to Clipboard" ) );
	copyToClipboardAction->setIcon( KIcon( "edit-copy" ) );
	copyToClipboardAction->setShortcut( Qt::CTRL + Qt::Key_C );
	actionCollection()->addAction( "copy_to_clipboard_action" , copyToClipboardAction );
	connect( copyToClipboardAction, SIGNAL(triggered(bool)), this, SLOT( fileToClipboard()  ) );


        pageSetupAction = new KAction( this );
        pageSetupAction->setText( i18n( "Page Setup..." ) );
	pageSetupAction->setIcon( KIcon( "configure" ) );
        actionCollection()->addAction( "page_setup_action" , pageSetupAction );
        connect( pageSetupAction, SIGNAL(triggered(bool)), this, SLOT( pageSetupSlot() ) );

        printSetupAction = new KAction( this );
        printSetupAction->setText( i18n( "Print Setup..." ) );
	printSetupAction->setIcon( KIcon( "configure" ) );
        actionCollection()->addAction( "print_setup_action" , printSetupAction );
        connect( printSetupAction, SIGNAL(triggered(bool)), this, SLOT( printSetupSlot() ) );

        backupAction = new KAction( this );
        backupAction->setText( i18n( "Backup..." ) );
	backupAction->setIcon( KIcon( "document-save-all" ) );
        actionCollection()->addAction( "backup_action" , backupAction );
        connect( backupAction, SIGNAL(triggered(bool)), this, SLOT( backupSlot() ) );

        restoreAction = new KAction( this );
        restoreAction->setText( i18n( "Restore..." ) );
	restoreAction->setIcon( KIcon( "document-revert" ) );
        actionCollection()->addAction( "restore_action" , restoreAction );
        connect( restoreAction, SIGNAL(triggered(bool)), this, SLOT( restoreSlot() ) );

	addToShoppingListAction = new KAction( this );
	addToShoppingListAction->setText( i18n( "Add to Shopping List" ) ); 
	addToShoppingListAction->setIcon( KIcon( "view-pim-tasks" ) );
	addToShoppingListAction->setShortcut( Qt::CTRL + Qt::Key_S );
	actionCollection()->addAction( "add_to_shopping_list_action", addToShoppingListAction );
	connect( addToShoppingListAction, SIGNAL(triggered(bool)), m_view, SLOT( addToShoppingList() ) );

	removeFromCategoryAction = new KAction( this );
	removeFromCategoryAction->setText( i18n( "Remove From Category" ) );
	removeFromCategoryAction->setIcon( KIcon( "edit-delete-shred" ) );
	removeFromCategoryAction->setShortcut( Qt::ALT + Qt::Key_Delete );
	actionCollection()->addAction( "remove_from_category_action", removeFromCategoryAction );
	connect( removeFromCategoryAction, SIGNAL(triggered(bool)), m_view, SLOT( removeFromCategory() ) );

	deleteAction = new KAction( this );
	deleteAction->setText( i18n( "Delete" ) );
	deleteAction->setIcon( KIcon( "edit-delete" ) );
	deleteAction->setShortcut( Qt::Key_Delete );
	actionCollection()->addAction( "delete_action", deleteAction );
	connect( deleteAction, SIGNAL(triggered(bool)), m_view, SLOT( deleteCurrentElements() ) );

	showRecipeAction = new KAction( this );
	showRecipeAction->setText( i18n( "Show Recipe(s)" ) );
	showRecipeAction->setIcon( KIcon( "system-search" ) );
	showRecipeAction->setShortcut( Qt::CTRL + Qt::Key_L );
	actionCollection()->addAction( "show_recipe_action", showRecipeAction );
	connect( showRecipeAction, SIGNAL(triggered(bool)), m_view, SLOT( showCurrentRecipes() ) );

	categorizeAction = new KAction( this );
	categorizeAction->setText( i18n( "Categorize" ) );
	categorizeAction->setIcon( KIcon( "folder-yellow" ) );
	categorizeAction->setShortcut( Qt::CTRL + Qt::Key_T );
	actionCollection()->addAction( "categorize_action", categorizeAction );
	connect( categorizeAction, SIGNAL(triggered(bool)), m_view, SLOT( categorizeCurrentRecipe() ) );

	expandAllAction = new KAction( this );
	expandAllAction->setText( i18n( "Expand All" ) );
	expandAllAction->setShortcut( Qt::CTRL + Qt::Key_Plus );
	actionCollection()->addAction( "expand_all_action", expandAllAction );
	connect( expandAllAction, SIGNAL(triggered(bool)), m_view, SLOT( expandAll() ) );

	collapseAllAction = new KAction( this );
	collapseAllAction->setText( i18n ( "Collapse All") );
	collapseAllAction->setShortcut( Qt::CTRL + Qt::Key_Minus );
	actionCollection()->addAction( "collapse_all_action", collapseAllAction );
	connect( collapseAllAction, SIGNAL(triggered(bool)), m_view, SLOT( collapseAll() ) );
	
	 
	createAction = new KAction( this );
	createAction->setText( i18nc("@action:button Create new data item", "Create New" ) );
	createAction->setIcon( KIcon( "document-new" ) );
	createAction->setShortcut( Qt::CTRL + Qt::ALT + Qt::Key_N );
	actionCollection()->addAction( "create_new_action", createAction );
	connect( createAction, SIGNAL(triggered(bool)), m_view, SLOT( createNewElement() ) );

	renameAction = new KAction( this );
	renameAction->setText( i18n( "Rename" ) );
	renameAction->setIcon( KIcon( "edit-rename" ) );
	renameAction->setShortcut( Qt::CTRL + Qt::Key_R );
	actionCollection()->addAction( "rename_action", renameAction );
	connect( renameAction, SIGNAL(triggered(bool)), m_view, SLOT( renameCurrentElement() ) );

	 
	cutAction = new KAction( this );
	cutAction->setText( i18n( "Cut" ) );
	cutAction->setIcon( KIcon( "edit-cut" ) );
	cutAction->setShortcut( Qt::CTRL + Qt::Key_X );
	actionCollection()->addAction( "cut_action", cutAction );
	connect( cutAction, SIGNAL(triggered(bool)), m_view, SLOT( cut() ) );

	 
	pasteAction = new KAction( this );
	pasteAction->setText( i18n( "Paste" ) );
	pasteAction->setIcon( KIcon( "edit-paste" ) );
	pasteAction->setShortcut( Qt::CTRL + Qt::Key_V );
	actionCollection()->addAction( "paste_action", pasteAction );
	connect( pasteAction, SIGNAL(triggered(bool)), m_view, SLOT( paste() ) );

	pasteAsSubcategoryAction = new KAction( this );
	pasteAsSubcategoryAction->setText( i18n( "Paste as Subcategory" ) );
	pasteAsSubcategoryAction->setIcon( KIcon( "edit-paste" ) );
	pasteAsSubcategoryAction->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_V );
	actionCollection()->addAction( "paste_as_subcategory_action", pasteAsSubcategoryAction );
	connect( pasteAsSubcategoryAction, SIGNAL(triggered(bool)), m_view, SLOT( pasteAsSubcategory() ) );
	
	 
	m_view->addSelectRecipeAction( showRecipeAction );
	m_view->addSelectRecipeAction( editAction );
	m_view->addSelectRecipeAction( exportAction );
	m_view->addSelectRecipeAction( addToShoppingListAction );
	m_view->addSelectRecipeAction( copyToClipboardAction );
	m_view->setCategorizeAction( categorizeAction );
	m_view->setRemoveFromCategoryAction( removeFromCategoryAction );
	m_view->addSelectRecipeAction( deleteAction );
	m_view->addCategoryAction( expandAllAction );
	m_view->addCategoryAction( collapseAllAction );
	m_view->addCategoryAction( exportAction );
	 
	m_view->addFindRecipeAction( showRecipeAction );
	m_view->addFindRecipeAction( editAction );
	m_view->addFindRecipeAction( exportAction );
	m_view->addFindRecipeAction( copyToClipboardAction );
	m_view->addFindRecipeAction( deleteAction );
	 
	m_view->addIngredientMatcherAction( showRecipeAction ); 
	m_view->addIngredientMatcherAction( editAction ); 
	m_view->addIngredientMatcherAction( exportAction );
	 
	m_view->addElementAction( createAction );
	m_view->addElementAction( renameAction );
	m_view->addCategoriesPanelAction( cutAction );
	m_view->setCategoryPasteAction( pasteAction );
	m_view->setPasteAsSubcategoryAction( pasteAsSubcategoryAction );
	m_view->addElementAction( deleteAction );

	updateActions( SelectP, true );
	updateActions( RecipeView, false );
	exportAction->setEnabled( true );

	createGUI();
}