<table><tr><td style="">simgunz edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-d4vn6i34c3qjio6/">(Show Details)</a><br />simgunz edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-suwttvbqmzpis3g/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15580">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>The toolbar uses the current PageViewAnnotator engine based on XML files (with few modifications)<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">**To test this revision**<br />
Delete or Temporary move aside the following files:<br />
- `~/.config/okularpartrc`<br />
- `~/.config/okularrc`<br />
- `~/.local/share/kxmlgui5/okular/part.rc`<br />
- `~/.local/share/kxmlgui5/okular/shell.rc`<br />
<br />
</span>**What is working and what is planned**<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">**Before testing this revision**<br />
Delete or Temporary move aside the following files:<br />
- `~/.config/okularpartrc`<br />
- `~/.config/okularrc`<br />
- `~/.local/share/kxmlgui5/okular/part.rc`<br />
- `~/.local/share/kxmlgui5/okular/shell.rc`<br />
<br />
**Nomenclature**<br />
Actions in the main toolbar:<br />
- Quick annotations<br />
Actions in the annotation toolbar:<br />
- //Annotation actions// Highlighter, Underline, Squiggle, Strike out, Typewriter, Inline note, Popup note, Freehand line, Arrow, Straight line, Rectangle, Ellipse, Polygon, Stamp<br />
- //Annotation config actions// Line width, Color, Inner color, Opacity, Font, Annotation settings<br />
- //Other actions// Add to Quick Annotations, Pin<br />
<br />
**Tests**<br />
- First run: annotation toolbar not visible<br />
- First run: selecting `Tools > Annotations` shows the annotation toolbar below the main toolbar<br />
- No annotation action selected: `Quick Annotations` is enabled, `Add to quick annotations` is disabled, `Annotation config actions` are disabled, `Pin` is enabled<br />
- Click an annotation action when none selected: browse mode is selected, it is possible to use the annotation tool, the  `Annotation config actions` are enabled and their values set to the ones for the current annotation (taken from okularpartrc)<br />
- Click the currently selected annotation action: the action is unchecked and the tool disabled (back to browse mode)<br />
- Click ESC: the currently selected annotation action is unchecked<br />
- The current document is an image: Highlighter, Underline, Squiggle, Strike out are disabled (also in Quick annotations)<br />
- The current document is protected: All actions are disabled<br />
- The annotation systems works when multiple Okular tabs are open (the selected annotation is per-tab)<br />
- The state of `Pin` action is remembered across Okular launches<br />
- In Configure Okular > Annotations it is possible to only configure the quick annotations. MOdifying them here updates the `Quick annotations` list after clicking `Apply`<br />
- Keys 1-9,0 select the (builtin) Annotation actions<br />
- Keys Alt+1-9,0 select the quick annotation actions<br />
- 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<br />
- 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<br />
- Selecting a quick action selects the corresponding action and loads its config values (color, line width, ...)<br />
- All actions have tooltips (some change based on the fact that the icon is enabled or not)<br />
- Color icon is a format-text-color (if inline note or typewriter) or format-stroke-color for all other annotations<br />
- 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)<br />
- If `Pin` unchecked the selected annotation is unchecked after it has be used once and we are back to Browse mode (tested separately for stamp annotation)</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15580">https://phabricator.kde.org/D15580</a></div></div><br /><div><strong>To: </strong>simgunz, Okular, VDG<br /><strong>Cc: </strong>simgunz, ltoscano, cfeck, aacid, davidhurka, knambiar, ngraham, tobiasdeiminger, okular-devel, andisa, siddharthmanthan, maguirre, fbampaloukas, joaonetto, kezik, tfella, darcyshen<br /></div>