2020-11-28 16:29:11 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
|
2023-02-23 22:17:29 +00:00
|
|
|
<gui name="okular_part" version="54">
|
2002-08-30 09:14:01 +00:00
|
|
|
<MenuBar>
|
2004-01-02 17:46:06 +00:00
|
|
|
<Menu name="file"><text>&File</text>
|
2005-06-19 21:01:28 +00:00
|
|
|
<Action name="get_new_stuff" group="file_open"/>
|
2005-07-15 18:20:57 +00:00
|
|
|
<Action name="import_ps" group="file_open"/>
|
2014-05-09 20:36:24 +00:00
|
|
|
<Action name="file_save" group="file_save"/>
|
2008-03-11 23:40:59 +00:00
|
|
|
<Action name="file_save_as" group="file_save"/>
|
2007-05-06 11:23:26 +00:00
|
|
|
<Action name="file_reload" group="file_save"/>
|
2004-01-03 10:38:06 +00:00
|
|
|
<Action name="file_print" group="file_print"/>
|
|
|
|
<Action name="file_print_preview" group="file_print"/>
|
2019-06-28 15:41:15 +00:00
|
|
|
<Action name="open_containing_folder" group="file_print"/>
|
2004-12-05 22:47:32 +00:00
|
|
|
<Action name="properties" group="file_print"/>
|
2006-10-22 18:19:17 +00:00
|
|
|
<Action name="embedded_files" group="file_print"/>
|
2006-07-01 22:17:53 +00:00
|
|
|
<Action name="file_export_as" group="file_print"/>
|
2017-10-11 15:45:02 +00:00
|
|
|
<Action name="file_share" group="file_print"/>
|
2004-01-02 17:46:06 +00:00
|
|
|
</Menu>
|
2002-09-13 13:56:35 +00:00
|
|
|
<Menu name="edit"><text>&Edit</text>
|
2013-04-05 22:22:48 +00:00
|
|
|
<Action name="edit_undo"/>
|
|
|
|
<Action name="edit_redo"/>
|
|
|
|
<Separator/>
|
2006-11-24 21:02:38 +00:00
|
|
|
<Action name="edit_copy"/>
|
|
|
|
<Separator/>
|
2007-09-03 21:35:05 +00:00
|
|
|
<Action name="edit_select_all"/>
|
Add action in Edit menu to select the text on current page
BUG: 358868
Test Plan: Click on "Select All Text on Current Page" entry in Edit menu to select the entire page. The selected text can then be copied via Edit menu item "Copy"
Reviewers: aacid, #vdg, ngraham
Reviewed By: #vdg, ngraham
Subscribers: yurchor, michaelweghorn, kde-doc-english, davidhurka, abetts, loh.tar, alexde, ngraham, okular-devel
Tags: #okular, #documentation
Differential Revision: https://phabricator.kde.org/D18744
2019-04-21 23:06:54 +00:00
|
|
|
<Action name="edit_select_all_current_page"/>
|
2007-09-03 21:35:05 +00:00
|
|
|
<Separator/>
|
2007-10-07 22:21:13 +00:00
|
|
|
<Action name="edit_find"/>
|
|
|
|
<Action name="edit_find_next"/>
|
2009-02-14 17:11:29 +00:00
|
|
|
<Action name="edit_find_prev"/>
|
2002-09-13 13:56:35 +00:00
|
|
|
</Menu>
|
2002-09-02 21:56:00 +00:00
|
|
|
<Menu name="view"><text>&View</text>
|
2004-12-17 17:14:46 +00:00
|
|
|
<Action name="presentation"/>
|
2002-09-14 14:45:53 +00:00
|
|
|
<Separator/>
|
2007-10-07 22:21:13 +00:00
|
|
|
<Action name="view_zoom_out"/>
|
2023-02-23 22:17:29 +00:00
|
|
|
<Action name="view_zoom_in"/>
|
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"/>
|
2007-10-07 22:21:13 +00:00
|
|
|
<Action name="view_fit_to_width"/>
|
|
|
|
<Action name="view_fit_to_page"/>
|
2013-08-18 15:19:20 +00:00
|
|
|
<Action name="view_auto_fit"/>
|
2004-09-28 13:53:47 +00:00
|
|
|
<Separator/>
|
- GIGANTIC 2700 line diff with LOTS OF FEATURES!
- 1. editor-like text selection, and I do mean it, its not pseudo-editor
(like the ones acroread and kviewshell have) it doesnt intersect the
selection area with words under it, no, it does a lot more, including
work on cursors and searching for the text area closest to the given
cursor
- 2. rotation support, change the orientation of the documents if
you need too :)
- 3. the kfaxview backend works beautifully, porting kviewshell backends
is damn easy ! djvu and dvi will be next!
- 4. Hardware Blending of selection rectangles! We now use XRender
instead of KImageEffect, makes a damn faster blend!
- 5. Overview mode - as seen in Kviewshell, but quite a bit extended,
the kviewshell is only one state, while we support it in both
continous and non-continous form
- BTW. I coded all those features myself, (apart from kfaxview backend library)
it is an impressive bit right? but oKular cant be run by only one person,
join in on the fun! i can introduce you into the code just mail niedakh@gmail.com
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=509871
2006-02-15 18:54:49 +00:00
|
|
|
<Action name="view_render_mode"/>
|
|
|
|
<Separator/>
|
2007-01-19 21:43:53 +00:00
|
|
|
<Menu name="view_orientation"><text>&Orientation</text>
|
|
|
|
<Action name="view_orientation_rotate_ccw"/>
|
2007-01-19 21:51:54 +00:00
|
|
|
<Action name="view_orientation_rotate_cw"/>
|
2007-01-19 21:43:53 +00:00
|
|
|
<Action name="view_orientation_original"/>
|
|
|
|
</Menu>
|
2015-08-27 20:09:02 +00:00
|
|
|
<Action name="view_trim_mode"/>
|
2007-02-25 00:07:59 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="view_toggle_forms"/>
|
2002-08-30 09:14:01 +00:00
|
|
|
</Menu>
|
2002-09-13 13:56:35 +00:00
|
|
|
<Menu name="go"><text>&Go</text>
|
2007-10-07 22:21:13 +00:00
|
|
|
<Action name="go_previous"/>
|
|
|
|
<Action name="go_next"/>
|
2005-06-13 18:06:32 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="first_page"/>
|
2004-09-13 17:30:00 +00:00
|
|
|
<Action name="last_page"/>
|
2003-09-15 21:09:49 +00:00
|
|
|
<Separator/>
|
2007-12-24 13:11:19 +00:00
|
|
|
<Action name="go_document_back"/>
|
|
|
|
<Action name="go_document_forward" />
|
2005-01-27 17:31:07 +00:00
|
|
|
<Separator/>
|
2007-10-07 22:21:13 +00:00
|
|
|
<Action name="go_goto_page"/>
|
2002-09-13 13:56:35 +00:00
|
|
|
</Menu>
|
2007-10-07 22:21:13 +00:00
|
|
|
<Menu name="bookmarks"><text>&Bookmarks</text>
|
2007-05-01 14:43:30 +00:00
|
|
|
<Action name="bookmark_add"/>
|
2011-10-25 20:21:22 +00:00
|
|
|
<Action name="rename_bookmark"/>
|
2007-01-28 00:15:13 +00:00
|
|
|
<Action name="previous_bookmark"/>
|
|
|
|
<Action name="next_bookmark" />
|
|
|
|
<Separator/>
|
2007-01-13 17:28:54 +00:00
|
|
|
<ActionList name="bookmarks_currentdocument" />
|
|
|
|
</Menu>
|
2007-12-20 23:17:45 +00:00
|
|
|
<Menu name="tools"><text>&Tools</text>
|
2005-01-31 19:57:46 +00:00
|
|
|
<Action name="mouse_drag"/>
|
|
|
|
<Action name="mouse_zoom"/>
|
|
|
|
<Action name="mouse_select"/>
|
2006-09-26 22:22:01 +00:00
|
|
|
<Action name="mouse_textselect"/>
|
2011-10-12 13:50:56 +00:00
|
|
|
<Action name="mouse_tableselect"/>
|
2014-02-24 22:42:10 +00:00
|
|
|
<Action name="mouse_magnifier"/>
|
2005-02-18 18:24:45 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="mouse_toggle_annotate"/>
|
2019-06-18 10:20:03 +00:00
|
|
|
<Separator/>
|
2020-11-26 11:53:04 +00:00
|
|
|
<Action name="add_digital_signature"/>
|
2008-03-05 11:06:55 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="speak_document"/>
|
|
|
|
<Action name="speak_current_page"/>
|
2008-03-05 12:05:48 +00:00
|
|
|
<Action name="speak_stop_all"/>
|
2019-09-19 19:50:58 +00:00
|
|
|
<Action name="speak_pause_resume"/>
|
2005-01-31 19:57:46 +00:00
|
|
|
</Menu>
|
2003-09-14 20:23:01 +00:00
|
|
|
<Menu name="settings"><text>&Settings</text>
|
2022-05-24 20:37:11 +00:00
|
|
|
<Action name="colorscheme_menu" group="show_merge"/>
|
2005-03-12 15:39:04 +00:00
|
|
|
<Action name="show_leftpanel" group="show_merge"/>
|
2010-10-29 21:47:17 +00:00
|
|
|
<Action name="show_bottombar" group="show_merge"/>
|
2007-10-07 23:09:08 +00:00
|
|
|
<Action name="options_configure_generators" group="configure_merge"/>
|
2014-02-03 23:30:30 +00:00
|
|
|
<Action name="options_configure" group="configure_merge"/>
|
2003-09-14 20:23:01 +00:00
|
|
|
</Menu>
|
2007-03-07 18:15:00 +00:00
|
|
|
<Menu name="help"><text>&Help</text>
|
|
|
|
<Action name="help_about_backend" group="about_merge"/>
|
|
|
|
</Menu>
|
2002-08-30 09:14:01 +00:00
|
|
|
</MenuBar>
|
2004-09-13 17:30:00 +00:00
|
|
|
<ToolBar name="mainToolBar"><text>Main Toolbar</text>
|
Improve the sidebar's navigation and UX
Okular's sidebar vertical view chooser toolbar suffers from a few issues:
* It's a nonstandard UI not used for category choosers in other pieces of KDE software,
and not used in other FOSS document readers
* What is shown and what is hidden is simultaneously too configurable while still not
offering the desirable UI common to other programs (i.e. no visible category chooser,
but a sidebar capable of displaying thumbnails, table of contents, search results, etc.)
* With labels on it takes up quite a bit of horizontal space, while with labels off, the
categories are less than clear
* UX is kind of clunky with nonstandard behaviors (e.g. clicking on the current category
to hide that category's view while keeping the view chooser visible, showing mostly
disabled items)
* It's made with custom painting code, which reduces maintainability and introduces bugs
(e.g. https://bugs.kde.org/show_bug.cgi?id=408190)
This patch removes the vertical category chooser entirely and replaces it with a tabbed
view on the top of the sidebar itself. The tabs are icons-only and have large icons. A
button is added on the left side of the default toolbar to quickly hide or show the
sidebar. In order to make room for the new button, the Previous and Next buttons on the
toolbar are removed, as previous/next buttons are already present on the Page Bar on the
bottom of the window so there's no need to duplicate this functionality. This improves
the UX, fixes a variety of bugs, and deletes a lot of custom code of dubious long-term
maintainability.
![vokoscreenNG-2020-04-16_13-29-24](https://invent.kde.org/graphics/okular/uploads/a1f96a315b69282df51de9993b1befaf/vokoscreenNG-2020-04-16_13-29-24.webm)
BUG: 213508
BUG: 334441
BUG: 344599
BUG: 408190
CCBUG: 335189
FIXED-IN: 1.11.0
CHANGELOG: The sidebar can now be easily shown or hidden with a toolbar button, and the category chooser no longer takes up so much space
2020-05-27 13:37:42 +00:00
|
|
|
<Action name="show_leftpanel"/>
|
2023-02-23 22:17:29 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="view_zoom_in"/>
|
2020-06-03 03:45:42 +00:00
|
|
|
<Action name="view_zoom_out"/>
|
|
|
|
<Action name="zoom_to" />
|
2023-02-01 18:57:19 +00:00
|
|
|
<Action name="view_render_mode"/>
|
2023-02-23 22:17:29 +00:00
|
|
|
<Spacer/>
|
|
|
|
<Action name="page_number"/>
|
|
|
|
<Spacer/>
|
|
|
|
<Action name="mouse_drag"/>
|
|
|
|
<Action name="mouse_selecttools"/>
|
|
|
|
<Action name="annotation_favorites"/>
|
|
|
|
<Separator/>
|
2021-11-09 01:27:50 +00:00
|
|
|
<Action name="hamburger_menu"/>
|
Overhaul annotations UX
Create a new new annotation toolbar to replace the current one as discussed in the task T8076.
Fixes:
BUG: 386578
BUG: 374728
BUG: 352310
BUG: 330518
BUG: 341914
BUG: 157289
BUG: 358057
BUG: 412767
BUG: 413595
BUG: 420462
FIXED-IN: 1.11.0
Test Plan
Before testing this revision
Delete or Temporary move aside the following files:
~/.config/okularpartrc
~/.config/okularrc
~/.local/share/kxmlgui5/okular/part.rc
~/.local/share/kxmlgui5/okular/shell.rc
Nomenclature
Actions in the main toolbar:
Quick annotations
Actions in the annotation toolbar:
Annotation actions Highlighter, Underline, Squiggle, Strike out, Typewriter,
Inline note, Popup note, Freehand line, Arrow, Straight line, Rectangle, Ellipse,
Polygon, Stamp
Annotation config actions Line width, Color, Inner color, Opacity, Font, Annotation settings
Other actions Add to Quick Annotations, Pin
Autotests
First run: annotation toolbar is not visible
Selecting Tools > Annotations shows the annotation toolbar (below the main toolbar by default)
Select an annotation > toolbar is shown
Select a quick annotation > toolbar is shown
Hide action (red cross) on the toolbar hides the toolbar
Keys 1-9,0 select the (builtin) Annotation actions (one case tested)
Keys Alt+1-9,0 select the quick annotation actions (one case tested)
No annotation action selected: Quick Annotations is enabled, Add to quick annotations is disabled, Annotation config actions are disabled, Pin is enabled
The current document is an image: Highlighter, Underline, Squiggle, Strike out are disabled (also in Quick annotations)
The current document is protected: All actions are disabled
Select annotation: the Annotation config actions are enabled and their values set to the ones for the current annotation (taken from okularpartrc)
Click an annotation action when none selected: browse mode is selected
Click the currently selected annotation action: the action is unchecked and the tool disabled (back to browse mode)
Click ESC: the currently selected annotation action is unchecked
If Pin unchecked the selected annotation is unchecked after it has be used once and we are back to Browse mode
The annotation systems works when multiple Okular tabs are open (the selected annotation is per-tab)
Manual tests
(TODO) Check that kconf_update updates the key AnnotationTools to QuickAnnotationTools in ~/.config/okularpartrc
Color icon is a format-text-color (if inline note or typewriter) or format-stroke-color for all other annotations
All actions have tooltips (some change based on the fact that the icon is enabled or not)
If a custom Line Width or Opacity is set through the Annotation Settings dialog, its value appears as a new checked action in the Line width or Opacity menu
If a custom stamp is selected through the Annotation Settings dialog, its name or filename (without path) appears as a new checked action in the Stamp menu
In Configure Okular > Annotations it is only possible to configure the quick annotations. Modifying them here updates the Quick annotations list after clicking Apply
The current document is an image: Highlighter, Underline, Squiggle, Strike out are disabled in Quick annotations
The state of Pin action is remembered across Okular launches
Selecting a quick action selects the corresponding action and loads its config values (color, line width, ...)
Setting the color and fill color works for all annotations (to be tested carefully, can be problematic for typewriter and inline note given the different internal mechanism to store the color in the settings)
Test stamp annotation (handled differently from the rest of the annotations)
Merge Request: https://invent.kde.org/graphics/okular/-/merge_requests/105
2020-06-04 13:01:31 +00:00
|
|
|
</ToolBar>
|
2021-04-14 17:36:02 +00:00
|
|
|
<ActionProperties scheme="Default">
|
|
|
|
<Action priority="0" name="show_leftpanel"/>
|
2023-02-01 18:57:19 +00:00
|
|
|
<Action priority="0" name="view_zoom_out"/>
|
|
|
|
<Action priority="0" name="view_zoom_in"/>
|
2021-04-14 17:36:02 +00:00
|
|
|
</ActionProperties>
|
Overhaul annotations UX
Create a new new annotation toolbar to replace the current one as discussed in the task T8076.
Fixes:
BUG: 386578
BUG: 374728
BUG: 352310
BUG: 330518
BUG: 341914
BUG: 157289
BUG: 358057
BUG: 412767
BUG: 413595
BUG: 420462
FIXED-IN: 1.11.0
Test Plan
Before testing this revision
Delete or Temporary move aside the following files:
~/.config/okularpartrc
~/.config/okularrc
~/.local/share/kxmlgui5/okular/part.rc
~/.local/share/kxmlgui5/okular/shell.rc
Nomenclature
Actions in the main toolbar:
Quick annotations
Actions in the annotation toolbar:
Annotation actions Highlighter, Underline, Squiggle, Strike out, Typewriter,
Inline note, Popup note, Freehand line, Arrow, Straight line, Rectangle, Ellipse,
Polygon, Stamp
Annotation config actions Line width, Color, Inner color, Opacity, Font, Annotation settings
Other actions Add to Quick Annotations, Pin
Autotests
First run: annotation toolbar is not visible
Selecting Tools > Annotations shows the annotation toolbar (below the main toolbar by default)
Select an annotation > toolbar is shown
Select a quick annotation > toolbar is shown
Hide action (red cross) on the toolbar hides the toolbar
Keys 1-9,0 select the (builtin) Annotation actions (one case tested)
Keys Alt+1-9,0 select the quick annotation actions (one case tested)
No annotation action selected: Quick Annotations is enabled, Add to quick annotations is disabled, Annotation config actions are disabled, Pin is enabled
The current document is an image: Highlighter, Underline, Squiggle, Strike out are disabled (also in Quick annotations)
The current document is protected: All actions are disabled
Select annotation: the Annotation config actions are enabled and their values set to the ones for the current annotation (taken from okularpartrc)
Click an annotation action when none selected: browse mode is selected
Click the currently selected annotation action: the action is unchecked and the tool disabled (back to browse mode)
Click ESC: the currently selected annotation action is unchecked
If Pin unchecked the selected annotation is unchecked after it has be used once and we are back to Browse mode
The annotation systems works when multiple Okular tabs are open (the selected annotation is per-tab)
Manual tests
(TODO) Check that kconf_update updates the key AnnotationTools to QuickAnnotationTools in ~/.config/okularpartrc
Color icon is a format-text-color (if inline note or typewriter) or format-stroke-color for all other annotations
All actions have tooltips (some change based on the fact that the icon is enabled or not)
If a custom Line Width or Opacity is set through the Annotation Settings dialog, its value appears as a new checked action in the Line width or Opacity menu
If a custom stamp is selected through the Annotation Settings dialog, its name or filename (without path) appears as a new checked action in the Stamp menu
In Configure Okular > Annotations it is only possible to configure the quick annotations. Modifying them here updates the Quick annotations list after clicking Apply
The current document is an image: Highlighter, Underline, Squiggle, Strike out are disabled in Quick annotations
The state of Pin action is remembered across Okular launches
Selecting a quick action selects the corresponding action and loads its config values (color, line width, ...)
Setting the color and fill color works for all annotations (to be tested carefully, can be problematic for typewriter and inline note given the different internal mechanism to store the color in the settings)
Test stamp annotation (handled differently from the rest of the annotations)
Merge Request: https://invent.kde.org/graphics/okular/-/merge_requests/105
2020-06-04 13:01:31 +00:00
|
|
|
<ToolBar name="annotationToolBar" iconText="icononly" newline="true" hidden="true"><text>Annotation Toolbar</text>
|
|
|
|
<Action name="annotation_highlighter"/>
|
|
|
|
<Action name="annotation_underline"/>
|
|
|
|
<Action name="annotation_squiggle"/>
|
|
|
|
<Action name="annotation_strike_out"/>
|
|
|
|
<Action name="annotation_typewriter"/>
|
|
|
|
<Action name="annotation_inline_note"/>
|
|
|
|
<Action name="annotation_popup_note"/>
|
|
|
|
<Action name="annotation_freehand_line"/>
|
|
|
|
<Action name="annotation_geometrical_shape"/>
|
|
|
|
<Action name="annotation_stamp"/>
|
|
|
|
<Separator/>
|
|
|
|
<Action name="annotation_settings_width"/>
|
|
|
|
<Action name="annotation_settings_color"/>
|
|
|
|
<Action name="annotation_settings_inner_color"/>
|
|
|
|
<Action name="annotation_settings_opacity"/>
|
|
|
|
<Action name="annotation_settings_font"/>
|
|
|
|
<Action name="annotation_settings_advanced"/>
|
|
|
|
<Separator/>
|
|
|
|
<Action name="annotation_bookmark"/>
|
|
|
|
<Action name="annotation_settings_pin"/>
|
|
|
|
<Spacer/>
|
|
|
|
<Action name="hide_annotation_toolbar"/>
|
2002-08-30 09:14:01 +00:00
|
|
|
</ToolBar>
|
2021-06-06 17:24:36 +00:00
|
|
|
<ToolBar name="quickAnnotationToolBar" iconText="icononly" newline="true" hidden="true" position="right" iconSize="32"><text>Quick Annotation Toolbar</text>
|
|
|
|
<Action name="quick_annotation_action_bar"/>
|
|
|
|
</ToolBar>
|
2020-11-28 16:29:11 +00:00
|
|
|
</gui>
|