Tag:
Branch:
Tree:
1784c1d0cb
frameworks
helm-link
master
portage-wilder
wilder
wilder-19.12
wilder-22.12
wilder-helm
wilder-rebase
poppler-21.06.1
v14.11.80
v14.11.90
v14.11.95
v14.11.97
v14.12.0
v14.12.1
v14.12.2
v14.12.3
v15.03.80
v15.03.90
v15.03.95
v15.03.97
v15.04.0
v15.04.1
v15.04.2
v15.04.3
v15.07.80
v15.07.90
v15.08.0
v15.08.1
v15.08.2
v15.08.3
v15.11.80
v15.11.90
v15.12.0
v15.12.1
v15.12.2
v15.12.3
v16.03.80
v16.03.90
v16.04.0
v16.04.1
v16.04.2
v16.04.3
v16.07.80
v16.07.90
v16.08.0
v16.08.1
v16.08.2
v16.08.3
v16.11.80
v16.11.90
v16.12.0
v16.12.1
v16.12.2
v16.12.3
v17.03.80
v17.03.90
v17.04.0
v17.04.1
v17.04.2
v17.04.3
v17.07.80
v17.07.90
v17.08.0
v17.08.1
v17.08.2
v17.08.3
v17.11.80
v17.11.90
v17.12.0
v17.12.1
v17.12.2
v17.12.3
v18.03.80
v18.03.90
v18.04.0
v18.04.1
v18.04.2
v18.04.3
v18.07.80
v18.07.90
v18.08.0
v18.08.1
v18.08.2
v18.08.3
v18.11.80
v18.11.90
v18.12.0
v18.12.1
v18.12.2
v18.12.3
v19.03.80
v19.03.90
v19.04.0
v19.04.1
v19.04.2
v19.04.3
v19.07.80
v19.07.90
v19.08.0
v19.08.1
v19.08.2
v19.08.3
v19.11.80
v19.11.90
v19.12.0
v19.12.1
v19.12.2
v19.12.3
v20.03.80
v20.03.90
v20.04.0
v20.04.1
v20.04.2
v20.04.3
v20.07.80
v20.07.90
v20.08.0
v20.08.1
v20.08.2
v20.08.3
v20.11.80
v20.11.90
v20.12.0
v20.12.1
v20.12.2
v20.12.3
v21.03.80
v21.03.90
v21.04.0
v21.04.1
v21.04.2
v21.04.3
v21.07.80
v21.07.90
v21.08.0
v21.08.1
v21.08.2
v21.08.3
v21.11.80
v21.11.90
v21.12.0
v21.12.1
v21.12.2
v21.12.3
v22.03.80
v22.04.0
v22.04.1
v22.04.2
v22.04.3
v22.07.80
v22.07.90
v22.08.0
v22.08.1
v22.08.2
v22.08.3
v22.11.80
v22.11.90
v22.12.0
v22.12.1
v22.12.2
v22.12.3
v23.03.80
v23.03.90
v23.04.0
v23.04.1
v23.04.2
v3.2.0
v3.2.1
v3.2.2
v3.2.3
v3.3.0
v3.3.1
v3.3.2
v3.4.0
v3.4.0-beta1
v3.4.0-beta2
v3.4.1
v3.4.2
v3.4.3
v3.4.90
v3.4.91
v3.4.92
v3.5.0
v3.5.1
v3.5.10
v3.5.2
v3.5.3
v3.5.4
v3.5.5
v3.5.6
v3.5.7
v3.5.8
v3.5.9
v3.90.1
v3.91.0
v3.92.0
v3.93.0
v3.94.0
v3.95.0
v3.96.0
v3.97.0
v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.0.5
v4.0.71
v4.0.80
v4.0.83
v4.0.98
v4.1.0
v4.1.1
v4.1.2
v4.1.3
v4.1.4
v4.1.80
v4.1.85
v4.1.96
v4.10.0
v4.10.1
v4.10.2
v4.10.3
v4.10.4
v4.10.5
v4.10.80
v4.10.90
v4.10.95
v4.10.97
v4.11.0
v4.11.1
v4.11.2
v4.11.3
v4.11.4
v4.11.5
v4.11.80
v4.11.90
v4.11.95
v4.11.97
v4.12.0
v4.12.1
v4.12.2
v4.12.3
v4.12.4
v4.12.5
v4.12.80
v4.12.90
v4.12.95
v4.12.97
v4.13.0
v4.13.1
v4.13.2
v4.13.3
v4.13.80
v4.13.90
v4.13.95
v4.13.97
v4.14.0
v4.14.1
v4.14.2
v4.14.3
v4.2.0
v4.2.1
v4.2.2
v4.2.3
v4.2.4
v4.2.85
v4.2.90
v4.2.95
v4.2.96
v4.2.98
v4.3.0
v4.3.1
v4.3.2
v4.3.3
v4.3.4
v4.3.5
v4.3.80
v4.3.85
v4.3.90
v4.3.95
v4.3.98
v4.4.0
v4.4.1
v4.4.2
v4.4.3
v4.4.4
v4.4.5
v4.4.80
v4.4.85
v4.4.90
v4.4.92
v4.4.95
v4.5.0
v4.5.1
v4.5.2
v4.5.3
v4.5.4
v4.5.5
v4.5.80
v4.5.85
v4.5.90
v4.5.95
v4.6.0
v4.6.1
v4.6.5
v4.6.80
v4.6.90
v4.6.95
v4.7.0
v4.7.1
v4.7.2
v4.7.3
v4.7.4
v4.7.80
v4.7.90
v4.7.95
v4.7.97
v4.8.0
v4.8.1
v4.8.2
v4.8.3
v4.8.4
v4.8.5
v4.8.80
v4.8.90
v4.8.95
v4.8.97
v4.9.0
v4.9.1
v4.9.2
v4.9.3
v4.9.4
v4.9.5
v4.9.80
v4.9.90
v4.9.95
v4.9.97
v4.9.98
${ noResults }
12 Commits (1784c1d0cb2ca79983d138bbdd0b9f681f7beb7b)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
4e0c1690d2 |
Uniform the case of the 'Id' suffix in variable names
|
6 years ago |
|
|
cd96735ae2 |
Maintain quick annotation shortcut compatibility with Okular < 1.11.0
During the upgrade to Okular 1.11.0 the shortcuts for the quick annotations have been changed from the keys 1, 2, 3,... to Alt + 1, 2, 3,... making some users unhappy. CCBUG: 426009 |
6 years ago |
|
|
076e17c608 |
Create GuiUtils functions createColorIcon() and createOpacityIcon()
* createColorIcon creates a QIcon which visualizes the given colors using rectangles. A background icon can be provided, in that case only the lowest 25% of the icon will be filled by the rectangles. * createOpacityIcon creates a QIcon that visualizes a given opacity using the current foreground color and a checkerboard background. These functions are now used in place of colorIcon, colorPicerIcon, opacityIcon in AnnotationActionHandler. The new functions have some advantages: support most common icon sizes, and dark color schemes. |
6 years ago |
|
|
bc2d22910a |
Improve robustness of code against corrupted configurations
Perform extra checks on the existence of QDomElement attributes and on the correctness of their conversion from QString to int. This also prevents a crash if it is not possible to find the built in tool associated to the triggered quick tool. |
6 years ago |
|
|
72f5a2db08 |
Find built-in tool corresponding to quick tool at runtime
In this way it is possible to drop the `sourceId` attribute from the quick tools definition. This simplifies the code logic and makes it easier to update user settings from the previous version of Okular (because there is no need to add the attribute `sourceId` This also fixes the crash due to the fact that `sourceId` was not correctly created when a quick annotation is created from the Annotation page of Okualr Settings. BUG: 424810 FIXED-IN: 1.11.0 |
6 years ago |
|
|
558742a009 |
Ensure "Quick annotations" action is always disabled on protected pdf
If the annotations are disabled in the current pdf we can skip repopulating "Quick annotations" and in this way we also assure that the enabled/disabled state of the action is preserved upon configuration reparsing. d->toolsEnabled must be initialized to true, in order to correctly populate the "Quick annotations" action the first time for non-protected pdf, given that setToolsEnabled is called after the first call to populateQuickAnnotations. BUG: 424296 FIXED-IN: 1.11.0 |
6 years ago |
|
|
34708565ca |
Add Constrain Angle action for annotation tools, alternative to pressing Shift
This adds a KToggleAction which sets annotation tools to constrain angle mode. It provides an alternative user interface to the Shift button, which is used to constrain angles since MR !210. The action and the Shift button are XOR-ed, i. e. if constrain angle mode is activated, pressing Shift temporarily disables it. The action state is remembered accross sessions, for consistency with most other actions. It should be difficult to check this action without knowing of its existence, since it is not in any toolbar or menu, just in the action collection. The meaning of AnnotatorEngine::Modifiers was generalized a bit, moving the responsibility about whether to constrain angles back to PageViewAnnotator, because AnnotatorEngine does not know about the action. FEATURE: 353560 FIXED-IN: 1.11 |
6 years ago |
|
|
bba13ee566 |
Add tooltip to "Quick Annotations"
|
6 years ago |
|
|
f2338f4022 |
Make connection unique for annotation visibility actions
This event is sent three times at startup and two times per tab at tab change, so let's make sure we setup the connections only once. |
6 years ago |
|
|
19d98d6a74 |
Run clang-format
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \;
If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
|
6 years ago |
|
|
0b05d7ce99 |
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 |
6 years ago |