2011-10-12 19:36:01 +00:00
|
|
|
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
Create new "Zoom to 100%" action
Summary:
This patch implements a "Zoom to 100%" action and sticks it in the {nav View} menu. Since it's a `KStandardAction` with a `KStandardShortcut`, we automatically get the correct icon and keyboard shortcut, but we do override the name to be "Zoom to 100%" since that's clearer for Okular's use case.
FEATURE: 400048
FIXED-IN: 18.12.0
Test Plan:
- Action works to zoom the document to 100% scale when invoked
- Action is disabled when document is opened at 100% scale or is manually zoomed to 100% scale after being opened
- All other zoom modes and action still work
{F6341045}
Reviewers: #okular, #vdg, abetts
Reviewed By: #vdg, abetts
Subscribers: davidhurka, sander, tobiasdeiminger, veqz, abetts, aacid, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D16345
2018-10-21 03:54:49 +00:00
|
|
|
<kpartgui name="okular_part_viewermode" version="4">
|
2011-10-12 19:36:01 +00:00
|
|
|
|
|
|
|
<MenuBar>
|
|
|
|
<Menu name="file"><text>&File</text>
|
|
|
|
<Action name="file_print_preview" group="okular_print_merge"/>
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
<Menu name="settings"><text>&Settings</text>
|
|
|
|
<Action name="options_configure_generators" group="configure_merge"/>
|
|
|
|
<Action name="options_configure" group="configure_merge"/>
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
<Menu name="help"><text>&Help</text>
|
|
|
|
<Action name="help_about_backend" group="about_merge"/>
|
|
|
|
</Menu>
|
|
|
|
</MenuBar>
|
|
|
|
|
|
|
|
<Menu name="menu_okular_part_viewer">
|
|
|
|
<Action name="mouse_drag" group="viewer_menu_merge"/>
|
|
|
|
<Action name="mouse_zoom" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Action name="view_zoom_in" group="viewer_menu_merge"/>
|
|
|
|
<Action name="view_zoom_out" group="viewer_menu_merge"/>
|
Create new "Zoom to 100%" action
Summary:
This patch implements a "Zoom to 100%" action and sticks it in the {nav View} menu. Since it's a `KStandardAction` with a `KStandardShortcut`, we automatically get the correct icon and keyboard shortcut, but we do override the name to be "Zoom to 100%" since that's clearer for Okular's use case.
FEATURE: 400048
FIXED-IN: 18.12.0
Test Plan:
- Action works to zoom the document to 100% scale when invoked
- Action is disabled when document is opened at 100% scale or is manually zoomed to 100% scale after being opened
- All other zoom modes and action still work
{F6341045}
Reviewers: #okular, #vdg, abetts
Reviewed By: #vdg, abetts
Subscribers: davidhurka, sander, tobiasdeiminger, veqz, abetts, aacid, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D16345
2018-10-21 03:54:49 +00:00
|
|
|
<Action name="view_actual_size" group="viewer_menu_merge"/>
|
2011-10-12 19:36:01 +00:00
|
|
|
<Action name="view_fit_to_width" group="viewer_menu_merge"/>
|
|
|
|
<Action name="view_fit_to_page" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Action name="view_continuous" group="viewer_menu_merge"/>
|
|
|
|
<Action name="view_render_mode" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Menu name="view_orientation" group="viewer_menu_merge"><text>&Orientation</text>
|
|
|
|
<Action name="view_orientation_rotate_ccw" group="viewer_menu_merge"/>
|
|
|
|
<Action name="view_orientation_rotate_cw" group="viewer_menu_merge"/>
|
|
|
|
<Action name="view_orientation_original" group="viewer_menu_merge"/>
|
|
|
|
</Menu>
|
|
|
|
<Action name="view_pagesizes" group="viewer_menu_merge"/>
|
2015-08-27 20:09:02 +00:00
|
|
|
<Action name="view_trim" group="viewer_menu_merge"/>
|
2011-10-12 19:36:01 +00:00
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Action name="go_previous" group="viewer_menu_merge"/>
|
|
|
|
<Action name="go_next" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Action name="first_page" group="viewer_menu_merge"/>
|
|
|
|
<Action name="last_page" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Action name="go_document_back" group="viewer_menu_merge"/>
|
|
|
|
<Action name="go_document_forward" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Action name="go_goto_page" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Menu name="okular_bookmarks" group="viewer_menu_merge"><text>&Bookmarks</text>
|
|
|
|
<Action name="bookmark_add" group="viewer_menu_merge"/>
|
|
|
|
<Action name="previous_bookmark" group="viewer_menu_merge"/>
|
|
|
|
<Action name="next_bookmark" group="viewer_menu_merge"/>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<ActionList name="bookmarks_currentdocument" group="viewer_menu_merge"/>
|
|
|
|
</Menu>
|
|
|
|
<Separator group="viewer_menu_merge"/>
|
|
|
|
<Action name="edit_find" group="viewer_menu_merge"/>
|
|
|
|
<Action name="edit_find_next" group="viewer_menu_merge"/>
|
|
|
|
<Action name="edit_find_prev" group="viewer_menu_merge"/>
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
<ToolBar name="OkularViewerToolBar"><text>Viewer Toolbar</text>
|
|
|
|
<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>
|