GNOME Bugzilla – Bug 316329
Right-click context menu
Last modified: 2005-12-25 20:09:50 UTC
Evince should have a context menu with "Copy" when right clicking on selected text; and "Copy Image", "Save Image As" when right-clicking on an image.
Perhaps zooming could be in there too. Don't know how realistic image copying is, but copying text should be possible
I think there are other possible actions that could be included in the context menu. I propose a simple menu like this: <popup name="ViewPopup"> <menuitem name="ViewPreviousPagePopup" action="GoPreviousPage"/> <menuitem name="ViewNextPagePopup" action="GoNextPage"/> <menuitem name="ViewReloadPopup" action="ViewReload"/> <separator/> <menuitem name="ViewCopyPopup" action="EditCopy"/> <separator/> <menuitem name="ViewSelectAllPopup" action="EditSelectAll"/> </popup> ViewCopyPopup would be visible only if there is text selected and ViewSelectAllPopup when the document allow selections
I think there is yet another useful use of the context menu. For external links it could show "Open Link" and "Copy Link Address"
*** Bug 318314 has been marked as a duplicate of this bug. ***
I propose that 2 types of context menu. One for the text selection and other for general view of the pdf. Currently, evinice does not differentiate between normal view mode and text selection mode like Adobe Acrobat Reader. So for now, we can work on the text selection context menu like this: <popup name="SelectPopup"> <menuitem name="Copy" action="CopyToClipboard"/> <separator/> <menuitem name="SelectAll" action="SelectAll"/> <menuitem name="DeSelectAll" action="DeSelectAll"/> </popup>
Created attachment 53365 [details] [review] Patch Ok, here is my proposal. At this moment there are two menus: DocumentPopup and ExternalLinkPopup <popup name="DocumentPopup" action="PopupAction"> <menuitem name="GoPreviousPageDP" action="GoPreviousPage"/> <menuitem name="GoNextPageDP" action="GoNextPage"/> <menuitem name="ViewReloadDP" action="ViewReload"/> <separator/> <menuitem name="EditCopyDP" action="EditCopy"/> <menuitem name="EditSelectAllPopup" action="EditSelectAll"/> </popup> <popup name="ExternalLinkPopup" action="PopupAction"> <menuitem name="OpenLinkELP" action="OpenLink"/> <menuitem name="EditCopyELP" action="EditCopy"/> <menuitem name="CopyLinkAddressELP" action="CopyLinkAddress"/> </popup> In both Document and ExternalLink, copy action will only be visible when there is text selected. I'm not sure if "Select all" should be invisible when selection is not supported by the document.
What about "DeSelectAll"? I find "DeSelectAll" is quite handy and useful.
You can DeSelectAll by simply clicking on the view which is faster than right click -> DeSelectAll. I think the context menu should be as simple as possible.
Patch is applied. I've modified it a bit to hide view details from window and to make memory management more clear, but thanks a lot anyhow. I think any suggestions about menu contents should be discussed in other bugs.