okular/part.rc
Nate Graham ea0ea9c93d Add "Open Containing Folder" feature
Summary:
This patch adds an "Open Containing Folder" menu item to the file menu, similar to
other KDE apps like Gwenview that have it there. This action is especially useful
for the case when you've downloaded a PDF from the internet that opens itself in
Okular. The location of this file may not be clear or easy to find without this
feature, and on several occasiona I have found myself wishing for it when this
happens.

Test Plan:
- Delete or move aside `~/.local/config/kxmlgui5/okular/part.rc`
- Menu item is enabled and works when there is an open document: {F6940449, size=full}
- Menu item is disabled when there is no open document: {F6940448, size=full}

Reviewers: #okular, aacid, sander

Reviewed By: #okular, aacid

Subscribers: shubham, davidhurka, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D22145
2019-07-17 08:35:09 -06:00

110 lines
3.7 KiB
Text

<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="okular_part" version="41">
<MenuBar>
<Menu name="file"><text>&amp;File</text>
<Action name="get_new_stuff" group="file_open"/>
<Action name="import_ps" group="file_open"/>
<Action name="file_save" group="file_save"/>
<Action name="file_save_as" group="file_save"/>
<Action name="file_reload" group="file_save"/>
<Action name="file_print" group="file_print"/>
<Action name="file_print_preview" group="file_print"/>
<Action name="open_containing_folder" group="file_print"/>
<Action name="properties" group="file_print"/>
<Action name="embedded_files" group="file_print"/>
<Action name="file_export_as" group="file_print"/>
<Action name="file_share" group="file_print"/>
</Menu>
<Menu name="edit"><text>&amp;Edit</text>
<Action name="edit_undo"/>
<Action name="edit_redo"/>
<Separator/>
<Action name="edit_copy"/>
<Separator/>
<Action name="edit_select_all"/>
<Action name="edit_select_all_current_page"/>
<Separator/>
<Action name="edit_find"/>
<Action name="edit_find_next"/>
<Action name="edit_find_prev"/>
</Menu>
<Menu name="view"><text>&amp;View</text>
<Action name="presentation"/>
<Separator/>
<Action name="view_zoom_in"/>
<Action name="view_zoom_out"/>
<Action name="view_actual_size"/>
<Action name="view_fit_to_width"/>
<Action name="view_fit_to_page"/>
<Action name="view_auto_fit"/>
<Separator/>
<Action name="view_continuous"/>
<Action name="view_render_mode"/>
<Separator/>
<Menu name="view_orientation"><text>&amp;Orientation</text>
<Action name="view_orientation_rotate_ccw"/>
<Action name="view_orientation_rotate_cw"/>
<Action name="view_orientation_original"/>
</Menu>
<Action name="view_pagesizes"/>
<Action name="view_trim_mode"/>
<Separator/>
<Action name="view_toggle_forms"/>
</Menu>
<Menu name="go"><text>&amp;Go</text>
<Action name="go_previous"/>
<Action name="go_next"/>
<Separator/>
<Action name="first_page"/>
<Action name="last_page"/>
<Separator/>
<Action name="go_document_back"/>
<Action name="go_document_forward" />
<Separator/>
<Action name="go_goto_page"/>
</Menu>
<Menu name="bookmarks"><text>&amp;Bookmarks</text>
<Action name="bookmark_add"/>
<Action name="rename_bookmark"/>
<Action name="previous_bookmark"/>
<Action name="next_bookmark" />
<Separator/>
<ActionList name="bookmarks_currentdocument" />
</Menu>
<Menu name="tools"><text>&amp;Tools</text>
<Action name="mouse_drag"/>
<Action name="mouse_zoom"/>
<Action name="mouse_select"/>
<Action name="mouse_textselect"/>
<Action name="mouse_tableselect"/>
<Action name="mouse_magnifier"/>
<Separator/>
<Action name="mouse_toggle_annotate"/>
<Separator/>
<Action name="speak_document"/>
<Action name="speak_current_page"/>
<Action name="speak_stop_all"/>
</Menu>
<Menu name="settings"><text>&amp;Settings</text>
<Action name="show_leftpanel" group="show_merge"/>
<Action name="show_bottombar" group="show_merge"/>
<Action name="options_configure_generators" group="configure_merge"/>
<Action name="options_configure" group="configure_merge"/>
</Menu>
<Menu name="help"><text>&amp;Help</text>
<Action name="help_about_backend" group="about_merge"/>
</Menu>
</MenuBar>
<ToolBar name="mainToolBar"><text>Main Toolbar</text>
<Action name="go_previous"/>
<Action name="go_next"/>
<Separator/>
<Action name="zoom_to" />
<Action name="view_zoom_out"/>
<Action name="view_zoom_in"/>
<Separator/>
<Action name="mouse_drag"/>
<Action name="mouse_zoom"/>
<Action name="mouse_selecttools"/>
</ToolBar>
</kpartgui>