dolphin/src/dolphinui.rc
Emmanuel Pescosta a4ef4bbfde Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu.
Removed all signal-slot-connections related to DolphinNewFileMenu->errorMessage(QString)
in DolphinMainWindow and DolphinContextMenu and replaced it by a better solution.

Now we make use of the already existing DolphinNewFileMenuObserver singleton class to achieve a better
error handling, because every newly created DolphinContextMenu instance registers himself by DolphinNewFileMenuObserver
and we use this to connect the errorMessage(QString) signal of every DolphinContextMenu instance to the errorMessage(QString)
signal of the DolphinNewFileMenuObserver singleton class.

So we need only one connection from DolphinNewFileMenuObserver to DolphinMainWindow (or to DolphinPart) to
collect all error messages thrown by every DolphinNewFileMenu instance.

REVIEW: 112178
2013-08-28 18:46:45 +02:00

116 lines
4 KiB
Plaintext

<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="dolphin" version="14">
<MenuBar>
<Menu name="file">
<Action name="new_menu" />
<Action name="new_window" />
<Action name="new_tab" />
<Action name="close_tab" />
<Separator/>
<Action name="rename" />
<Action name="move_to_trash" />
<Action name="delete" />
<Separator/>
<Action name="properties" />
</Menu>
<Menu name="edit">
<Action name="select_all" />
<Action name="invert_selection" />
</Menu>
<Menu name="view">
<Action name="view_mode" />
<Action name="sort" />
<Action name="additional_info" />
<Action name="show_preview" />
<Action name="show_in_groups" />
<Action name="show_hidden_files" />
<Separator/>
<Action name="split_view" />
<Action name="reload" />
<Action name="stop" />
<Separator/>
<Action name="panels" />
<Menu name="location_bar">
<text context="@title:menu">Location Bar</text>
<Action name="editable_location" />
<Action name="replace_location" />
</Menu>
<Separator/>
<Action name="view_properties" />
</Menu>
<Menu name="go">
<Action name="closed_tabs" />
</Menu>
<Menu name="tools">
<Action name="show_filter_bar" />
<Action name="open_terminal" />
<Action name="compare_files" />
<Action name="change_remote_encoding" />
</Menu>
</MenuBar>
<State name="new_file" >
<disable>
<Action name="edit_undo" />
<Action name="edit_redo" />
<Action name="edit_cut" />
<Action name="edit_copy" />
<Action name="rename" />
<Action name="move_to_trash" />
<Action name="delete" />
<Action name="invert_selection" />
<Separator/>
<Action name="go_back" />
<Action name="go_forward" />
</disable>
</State>
<State name="has_selection" >
<enable>
<Action name="edit_cut" />
<Action name="edit_copy" />
<Action name="rename" />
<Action name="move_to_trash" />
<Action name="delete" />
<Action name="invert_selection" />
</enable>
</State>
<State name="has_no_selection" >
<disable>
<Action name="edit_cut" />
<Action name="edit_copy" />
<Action name="rename" />
<Action name="move_to_trash" />
<Action name="delete" />
<Action name="delete_shortcut" />
<Action name="invert_selection" />
</disable>
</State>
<ToolBar noMerge="1" name="mainToolBar" >
<text context="@title:menu">Main Toolbar</text>
<Action name="go_back" />
<Action name="go_forward" />
<Separator name="separator_1" />
<Action name="icons" />
<Action name="compact" />
<Action name="details" />
<Separator name="separator_0" />
<Action name="edit_find"/>
<Action name="show_preview" />
<Action name="split_view" />
</ToolBar>
<ActionProperties scheme="Default">
<Action priority="0" name="go_back"/>
<Action priority="0" name="go_forward"/>
<Action priority="0" name="go_up"/>
<Action priority="0" name="go_home"/>
<Action priority="0" name="stop"/>
<Action priority="0" name="icons"/>
<Action priority="0" name="compact"/>
<Action priority="0" name="details"/>
<Action priority="0" name="view_zoom_in"/>
<Action priority="0" name="view_zoom_out"/>
<Action priority="0" name="edit_cut"/>
<Action priority="0" name="edit_copy"/>
<Action priority="0" name="edit_paste"/>
</ActionProperties>
</kpartgui>