mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Unify handling of various cursor tools, e.g. the current Hand Tool and a possible future Zoom Tool, in a new PDFCursorTools
module
With the current way that the `HandTool` is implemented, if someone would try to also add a Zoom tool (as issue 1260 asks for) that probably wouldn't work very well given that you'd then have two cursor tools which may not play nice together. Hence this patch, which attempts to refactor things so that it should be simpler to add e.g. a Zoom tool as well (given that that issue is marked as "good-beginner-bug", and I'm not sure if that really applies considering the current state of the code). Note that I personally have no interest in implementing a Zoom tool (similar to Adobe Reader) since I wouldn't use it, but I figured that it can't hurt to make this code a bit more future proof.
This commit is contained in:
parent
8d2ae20fdd
commit
36c2791296
11 changed files with 240 additions and 145 deletions
|
@ -60,10 +60,10 @@ page_rotate_ccw.title=Rotate Counterclockwise
|
|||
page_rotate_ccw.label=Rotate Counterclockwise
|
||||
page_rotate_ccw_label=Rotate Counterclockwise
|
||||
|
||||
hand_tool_enable.title=Enable hand tool
|
||||
hand_tool_enable_label=Enable hand tool
|
||||
hand_tool_disable.title=Disable hand tool
|
||||
hand_tool_disable_label=Disable hand tool
|
||||
cursor_text_select_tool.title=Enable Text Selection Tool
|
||||
cursor_text_select_tool_label=Text Selection Tool
|
||||
cursor_hand_tool.title=Enable Hand Tool
|
||||
cursor_hand_tool_label=Hand Tool
|
||||
|
||||
# Document properties dialog box
|
||||
document_properties.title=Document Properties…
|
||||
|
|
|
@ -60,10 +60,10 @@ page_rotate_ccw.title=Rotera moturs
|
|||
page_rotate_ccw.label=Rotera moturs
|
||||
page_rotate_ccw_label=Rotera moturs
|
||||
|
||||
hand_tool_enable.title=Aktivera handverktyg
|
||||
hand_tool_enable_label=Aktivera handverktyg
|
||||
hand_tool_disable.title=Inaktivera handverktyg
|
||||
hand_tool_disable_label=Inaktivera handverktyg
|
||||
cursor_text_select_tool.title=Aktivera Textmarkeringsverktyg
|
||||
cursor_text_select_tool_label=Textmarkeringsverktyg
|
||||
cursor_hand_tool.title=Aktivera handverktyg
|
||||
cursor_hand_tool_label=Handverktyg
|
||||
|
||||
# Document properties dialog box
|
||||
document_properties.title=Dokumentegenskaper…
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue