X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fui%2Fstdcontext.inc;h=3b583d76b62e62c7193f3790b961d28886d6c337;hb=e2f2e1319180ae66e97633d8a141a7ef8e61a6e2;hp=e23a01e783f5ba6c6f4afbbf19fc5455de7cfc4f;hpb=1984f35e43fc1a03ceceb60a4e2dbdb88822fdde;p=lyx.git diff --git a/lib/ui/stdcontext.inc b/lib/ui/stdcontext.inc index e23a01e783..3b583d76b6 100644 --- a/lib/ui/stdcontext.inc +++ b/lib/ui/stdcontext.inc @@ -9,7 +9,7 @@ # Full author contact details are available in file CREDITS. # The interface is designed (partially) following the KDE Human Interface -# Guidelines (http://usability.kde.org/hig/) +# Guidelines (http://techbase.kde.org/Projects/Usability/HIG) # Casing Rules: # Capitalize all words in the element, with the following exceptions: @@ -19,6 +19,8 @@ # (except when the preposition is part of a verb phrase, such as "Check In") # (http://library.gnome.org/devel/hig-book/stable/design-text-labels.html.en) +Format 1 + Menuset # @@ -26,11 +28,11 @@ Menuset # Menu "insert_math_context" Item "Array Environment|y" "math-matrix 2 2" - Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases" - Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column" - Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column" - Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered" - Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column" + Item "Cases Environment|C" "math-insert \cases" + Item "Aligned Environment|l" "command-sequence math-insert \aligned; inset-modify tabular append-column" + Item "AlignedAt Environment|v" "command-sequence math-insert \alignedat; inset-modify tabular append-column" + Item "Gathered Environment|h" "math-insert \gathered" + Item "Split Environment|S" "command-sequence math-insert \split; inset-modify tabular append-column" Separator Item "Delimiters...|r" "dialog-show mathdelimiter" Item "Matrix...|x" "dialog-show mathmatrix" @@ -60,15 +62,15 @@ Menuset Separator Submenu "Insert|s" "insert_math_context" Separator - OptItem "Add Line Above|o" "tabular-feature add-hline-above" - OptItem "Add Line Below|B" "tabular-feature add-hline-below" - OptItem "Delete Line Above|D" "tabular-feature delete-hline-above" - OptItem "Delete Line Below|e" "tabular-feature delete-hline-below" + OptItem "Add Line Above|o" "inset-modify tabular add-hline-above" + OptItem "Add Line Below|B" "inset-modify tabular add-hline-below" + OptItem "Delete Line Above|v" "inset-modify tabular delete-hline-above" + OptItem "Delete Line Below|w" "inset-modify tabular delete-hline-below" Separator - OptItem "Add Line to Left" "tabular-feature add-vline-left" - OptItem "Add Line to Right" "tabular-feature add-vline-right" - OptItem "Delete Line to Left" "tabular-feature delete-vline-left" - OptItem "Delete Line to Right" "tabular-feature delete-vline-right" + OptItem "Add Line to Left" "inset-modify tabular add-vline-left" + OptItem "Add Line to Right" "inset-modify tabular add-vline-right" + OptItem "Delete Line to Left" "inset-modify tabular delete-vline-left" + OptItem "Delete Line to Right" "inset-modify tabular delete-vline-right" Separator Item "Show Math Toolbar" "toolbar-toggle math toggle" Item "Show Math-Panels Toolbar" "toolbar-toggle math_panels toggle" @@ -85,12 +87,13 @@ Menuset Item "Next Cross-Reference|N" "reference-next" Item "Go to Label|G" "label-goto" Separator - Item "|R" "next-inset-modify changetype ref" - Item "()|e" "next-inset-modify changetype eqref" - Item "|P" "next-inset-modify changetype pageref" - Item "On Page |O" "next-inset-modify changetype vpageref" - Item " on Page |f" "next-inset-modify changetype vref" - Item "Formatted Reference|t" "next-inset-modify changetype prettyref" + Item "|R" "inset-modify changetype ref" + Item "()|e" "inset-modify changetype eqref" + Item "|P" "inset-modify changetype pageref" + Item "On Page |O" "inset-modify changetype vpageref" + Item " on Page |f" "inset-modify changetype vref" + Item "Formatted Reference|t" "inset-modify changetype formatted" + Item "Textual Reference|x" "inset-modify changetype nameref" Separator Item "Settings...|S" "inset-settings" End @@ -127,6 +130,12 @@ Menuset Item "Edit Database(s) Externally...|x" "inset-edit" End +# +# InsetBibItem context menu +# + Menu "context-bibitem" + Item "Settings...|S" "inset-settings" + End # # InsetCollapsable context menu @@ -151,20 +160,14 @@ Menuset # Menu "context-box" - Item "Frameless|l" "next-inset-modify changetype Frameless" - Item "Simple Frame|F" "next-inset-modify changetype Boxed" - Item "Simple Frame, Page Breaks|P" "next-inset-modify changetype Framed" - Item "Oval, Thin|a" "next-inset-modify changetype ovalbox" - Item "Oval, Thick|v" "next-inset-modify changetype Ovalbox" - Item "Drop Shadow|w" "next-inset-modify changetype Shadowbox" - Item "Shaded Background|B" "next-inset-modify changetype Shaded" - Item "Double Frame|u" "next-inset-modify changetype Doublebox" - Separator - OptItem "Open Inset|O" "inset-toggle open" - OptItem "Close Inset|C" "inset-toggle close" - Separator - Item "Dissolve Inset|D" "inset-dissolve" - Item "Settings...|S" "inset-settings box" + Item "Frameless|l" "inset-modify changetype Frameless" + Item "Simple Frame|F" "inset-modify changetype Boxed" + Item "Simple Frame, Page Breaks|P" "inset-modify changetype Framed" + Item "Oval, Thin|a" "inset-modify changetype ovalbox" + Item "Oval, Thick|v" "inset-modify changetype Ovalbox" + Item "Drop Shadow|w" "inset-modify changetype Shadowbox" + Item "Shaded Background|B" "inset-modify changetype Shaded" + Item "Double Frame|u" "inset-modify changetype Doublebox" End # @@ -172,17 +175,12 @@ Menuset # Menu "context-note" - Item "LyX Note|N" "next-inset-modify note Note Note" - Item "Comment|m" "next-inset-modify note Note Comment" - Item "Greyed Out|G" "next-inset-modify note Note Greyedout" + Item "LyX Note|N" "inset-modify note Note Note" + Item "Comment|m" "inset-modify note Note Comment" + Item "Greyed Out|G" "inset-modify note Note Greyedout" Separator - OptItem "Open Inset|O" "inset-toggle open" - OptItem "Close Inset|C" "inset-toggle close" - Separator - Item "Open All Notes|A" "all-insets-toggle open note" - Item "Close All Notes|l" "all-insets-toggle close note" - Separator - Item "Dissolve Inset|D" "inset-dissolve" + Item "Open All Notes|A" "inset-forall Note inset-toggle open" + Item "Close All Notes|l" "inset-forall Note inset-toggle close" End # @@ -190,34 +188,33 @@ Menuset # Menu "context-phantom" - Item "Phantom" "next-inset-modify phantom Phantom Phantom" - Item "Horiz. Phantom" "next-inset-modify phantom Phantom HPhantom" - Item "Vert. Phantom" "next-inset-modify phantom Phantom VPhantom" - Separator - Item "Dissolve Inset|D" "inset-dissolve" + Item "Phantom|P" "inset-modify phantom Phantom Phantom" + Item "Horizontal Phantom|H" "inset-modify phantom Phantom HPhantom" + Item "Vertical Phantom|V" "inset-modify phantom Phantom VPhantom" End # # InsetSpace context menu # Menu "context-space" - Item "Interword Space|w" "next-inset-modify space \space{}" - Item "Protected Space|o" "next-inset-modify space ~" - Item "Thin Space|T" "next-inset-modify space \thinspace{}" - Item "Negative Thin Space|N" "next-inset-modify space \negthinspace{}" - Item "Half Quad Space (Enskip)|k" "next-inset-modify space \enskip{}" - Item "Protected Half Quad Space (Enspace)|E" "next-inset-modify space \enspace{}" - Item "Quad Space|Q" "next-inset-modify space \quad{}" - Item "Double Quad Space|u" "next-inset-modify space \qquad{}" - Item "Horizontal Fill|F" "next-inset-modify space \hfill{}" - Item "Protected Horizontal Fill|i" "next-inset-modify space \hspace*{\fill}" - Item "Horizontal Fill (Dots)|D" "next-inset-modify space \dotfill{}" - Item "Horizontal Fill (Rule)|R" "next-inset-modify space \hrulefill{}" - Item "Horizontal Fill (Left Arrow)|L" "next-inset-modify space \leftarrowfill{}" - Item "Horizontal Fill (Right Arrow)|g" "next-inset-modify space \rightarrowfill{}" - Item "Horizontal Fill (Up Brace)|p" "next-inset-modify space \upbracefill{}" - Item "Horizontal Fill (Down Brace)|B" "next-inset-modify space \downbracefill{}" - Item "Custom Length|C" "command-sequence next-inset-modify space \hspace{} \length 1in; inset-settings" + Item "Interword Space|w" "inset-modify space \space{}" + Item "Protected Space|o" "inset-modify space ~" + Item "Visible Space|a" "inset-modify space \textvisiblespace{}" + Item "Thin Space|T" "inset-modify space \thinspace{}" + Item "Negative Thin Space|N" "inset-modify space \negthinspace{}" + Item "Half Quad Space (Enskip)|k" "inset-modify space \enskip{}" + Item "Protected Half Quad Space (Enspace)|E" "inset-modify space \enspace{}" + Item "Quad Space|Q" "inset-modify space \quad{}" + Item "Double Quad Space|u" "inset-modify space \qquad{}" + Item "Horizontal Fill|F" "inset-modify space \hfill{}" + Item "Protected Horizontal Fill|i" "inset-modify space \hspace*{\fill}" + Item "Horizontal Fill (Dots)|D" "inset-modify space \dotfill{}" + Item "Horizontal Fill (Rule)|R" "inset-modify space \hrulefill{}" + Item "Horizontal Fill (Left Arrow)|L" "inset-modify space \leftarrowfill{}" + Item "Horizontal Fill (Right Arrow)|g" "inset-modify space \rightarrowfill{}" + Item "Horizontal Fill (Up Brace)|p" "inset-modify space \upbracefill{}" + Item "Horizontal Fill (Down Brace)|B" "inset-modify space \downbracefill{}" + Item "Custom Length|C" "command-sequence inset-modify space \hspace{} \length 1in; inset-settings" Separator Item "Settings...|S" "inset-settings" End @@ -226,16 +223,16 @@ Menuset # InsetMathSpace context menu # Menu "context-mathspace" - Item "Thin Space|T" "next-inset-modify mathspace \thinspace{}" - Item "Medium Space|M" "next-inset-modify mathspace \medspace{}" - Item "Thick Space|h" "next-inset-modify mathspace \thickspace{}" - Item "Negative Thin Space|N" "next-inset-modify mathspace \negthinspace{}" - Item "Negative Medium Space|u" "next-inset-modify mathspace \negmedspace{}" - Item "Negative Thick Space|i" "next-inset-modify mathspace \negthickspace{}" - Item "Half Quad Space (Enskip)|k" "next-inset-modify mathspace \enskip{}" - Item "Quad Space|Q" "next-inset-modify mathspace \quad{}" - Item "Double Quad Space|u" "next-inset-modify mathspace \qquad{}" - Item "Custom Length|C" "command-sequence next-inset-modify mathspace \hspace{} \length 1in; inset-settings" + Item "Thin Space|T" "inset-modify mathspace \thinspace{}" + Item "Medium Space|M" "inset-modify mathspace \medspace{}" + Item "Thick Space|h" "inset-modify mathspace \thickspace{}" + Item "Negative Thin Space|N" "inset-modify mathspace \negthinspace{}" + Item "Negative Medium Space|u" "inset-modify mathspace \negmedspace{}" + Item "Negative Thick Space|i" "inset-modify mathspace \negthickspace{}" + Item "Half Quad Space (Enskip)|k" "inset-modify mathspace \enskip{}" + Item "Quad Space|Q" "inset-modify mathspace \quad{}" + Item "Double Quad Space|u" "inset-modify mathspace \qquad{}" + Item "Custom Length|C" "command-sequence inset-modify mathspace \hspace{} \length 1in; inset-settings" Separator Item "Settings...|S" "inset-settings" End @@ -244,12 +241,12 @@ Menuset # InsetVSpace context menu # Menu "context-vspace" - Item "DefSkip|D" "next-inset-modify vspace defskip" - Item "SmallSkip|S" "next-inset-modify vspace smallskip" - Item "MedSkip|M" "next-inset-modify vspace medskip" - Item "BigSkip|B" "next-inset-modify vspace bigskip" - Item "VFill|F" "next-inset-modify vspace vfill" - Item "Custom|C" "command-sequence next-inset-modify vspace 1in; inset-settings" + Item "DefSkip|D" "inset-modify vspace defskip" + Item "SmallSkip|S" "inset-modify vspace smallskip" + Item "MedSkip|M" "inset-modify vspace medskip" + Item "BigSkip|B" "inset-modify vspace bigskip" + Item "VFill|F" "inset-modify vspace vfill" + Item "Custom|C" "command-sequence inset-modify vspace 1in; inset-settings" Separator Item "Settings...|e" "inset-settings" End @@ -258,11 +255,11 @@ Menuset # InsetInclude context menu # Menu "context-include" - Item "Include|c" "next-inset-modify changetype include" - Item "Input|p" "next-inset-modify changetype input" - Item "Verbatim|V" "next-inset-modify changetype verbatiminput" - Item "Verbatim (marked blanks)|b" "next-inset-modify changetype verbatiminput*" - Item "Listing|L" "next-inset-modify changetype lstinputlisting" + Item "Include|c" "inset-modify changetype include" + Item "Input|p" "inset-modify changetype input" + Item "Verbatim|V" "inset-modify changetype verbatiminput" + Item "Verbatim (marked blanks)|b" "inset-modify changetype verbatiminput*" + Item "Listing|L" "inset-modify changetype lstinputlisting" Separator Item "Settings...|S" "inset-settings" Separator @@ -273,18 +270,18 @@ Menuset # InsetNewpage context menu # Menu "context-newpage" - Item "New Page|N" "next-inset-modify newpage newpage" - Item "Page Break|a" "next-inset-modify newpage pagebreak" - Item "Clear Page|C" "next-inset-modify newpage clearpage" - Item "Clear Double Page|D" "next-inset-modify newpage cleardoublepage" + Item "New Page|N" "inset-modify newpage newpage" + Item "Page Break|a" "inset-modify newpage pagebreak" + Item "Clear Page|C" "inset-modify newpage clearpage" + Item "Clear Double Page|D" "inset-modify newpage cleardoublepage" End # # InsetNewline context menu # Menu "context-newline" - Item "Ragged Line Break|R" "next-inset-modify newline newline" - Item "Justified Line Break|J" "next-inset-modify newline linebreak" + Item "Ragged Line Break|R" "inset-modify newline newline" + Item "Justified Line Break|J" "inset-modify newline linebreak" End # @@ -299,6 +296,7 @@ Menuset Submenu "Paste Recent|e" "edit_pasterecent" Separator Item "Jump Back to Saved Bookmark|B" "bookmark-goto 0" + OptItem "Forward search|F" "forward-search" Separator Item "Move Paragraph Up|o" "paragraph-move-up" Item "Move Paragraph Down|v" "paragraph-move-down" @@ -307,7 +305,8 @@ Menuset OptItem "Demote Section|m" "outline-in" OptItem "Move Section Down|D" "outline-down" OptItem "Move Section Up|U" "outline-up" - OptItem "Insert Short Title|T" "optional-insert" + OptItem "Insert Short Title|T" "argument-insert" + OptSubmenu "Insert Regular Expression" "context-edit-regexp" Separator OptItem "Accept Change|c" "change-accept" OptItem "Reject Change|j" "change-reject" @@ -315,10 +314,24 @@ Menuset Item "Apply Last Text Style|A" "textstyle-apply" Submenu "Text Style|S" "edit_textstyles" Item "Paragraph Settings...|P" "layout-paragraph" + LanguageSelector Separator Item "Fullscreen Mode" "ui-toggle fullscreen" End + +# +# Regular Expression context menu +# + Menu "context-edit-regexp" + Item "Anything|A" "command-sequence regexp-mode; self-insert .*" + Item "Anything Non-Empty|o" "command-sequence regexp-mode; self-insert .+" + Item "Any Word|W" "command-sequence regexp-mode; self-insert [a-z]+" + Item "Any Number|N" "command-sequence regexp-mode; self-insert [0-9]+" + Item "User Defined|U" "regexp-mode" + End + + # # Math Macro context menu # @@ -337,23 +350,6 @@ Menuset Item "Remove Last Argument Spitting Out to the Right" "math-macro-remove-greedy-param" End -# -# InsetListing context menu -# - - Menu "context-listings" - Item "Cut" "cut" - Item "Copy" "copy" - Item "Paste" "paste" - Submenu "Paste Recent|e" "edit_pasterecent" - Separator - OptItem "Open Inset|O" "inset-toggle open" - OptItem "Close Inset|C" "inset-toggle close" - Separator - Item "Dissolve Inset|D" "inset-dissolve" - Item "Settings...|S" "inset-settings listings" - End - # # InsetGraphics context menu # @@ -382,40 +378,58 @@ Menuset # Menu "context-tabular" - Item "Multicolumn|M" "tabular-feature multicolumn" + Item "Multicolumn|u" "inset-modify tabular multicolumn" + Item "Multirow|w" "inset-modify tabular multirow" Separator - Item "Top Line|T" "tabular-feature toggle-line-top" - Item "Bottom Line|B" "tabular-feature toggle-line-bottom" - Item "Left Line|L" "tabular-feature toggle-line-left" - Item "Right Line|R" "tabular-feature toggle-line-right" + Item "Top Line|n" "inset-modify tabular toggle-line-top" + Item "Bottom Line|i" "inset-modify tabular toggle-line-bottom" + Item "Left Line|L" "inset-modify tabular toggle-line-left" + Item "Right Line|R" "inset-modify tabular toggle-line-right" Separator - Item "Left|L" "tabular-feature align-left" - Item "Center|C" "tabular-feature align-center" - Item "Right|R" "tabular-feature align-right" + Item "Left|f" "command-alternatives inset-modify tabular m-align-left;inset-modify tabular align-left" + Item "Center|C" "command-alternatives inset-modify tabular m-align-center;inset-modify tabular align-center" + Item "Right|h" "command-alternatives inset-modify tabular m-align-right;inset-modify tabular align-right" + Item "Decimal" "inset-modify tabular align-decimal" Separator - Item "Top|T" "tabular-feature valign-top" - Item "Middle|M" "tabular-feature valign-middle" - Item "Bottom|B" "tabular-feature valign-bottom" + Item "Top|T" "inset-modify tabular valign-top" + Item "Middle|M" "inset-modify tabular valign-middle" + Item "Bottom|B" "inset-modify tabular valign-bottom" Separator - Item "Add Row|A" "tabular-feature append-row" - Item "Delete Row|D" "tabular-feature delete-row" - Item "Copy Row|o" "tabular-feature copy-row" - # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken + Item "Append Row|A" "inset-modify tabular append-row" + Item "Delete Row|D" "inset-modify tabular delete-row" + Item "Copy Row|o" "inset-modify tabular copy-row" + # Item "Swap Rows|S" "inset-modify tabular swap-row" # currently broken Separator - Item "Add Column|u" "tabular-feature append-column" - Item "Delete Column|e" "tabular-feature delete-column" - Item "Copy Column|p" "tabular-feature copy-column" - # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken + Item "Append Column|p" "inset-modify tabular append-column" + Item "Delete Column|e" "inset-modify tabular delete-column" + Item "Copy Column|y" "inset-modify tabular copy-column" + # Item "Swap Columns|w" "inset-modify tabular swap-column" # currently broken Separator - Item "Settings...|S" "inset-settings tabular" + Item "Settings...|g" "inset-settings tabular" End - # # InsetInfo context menu # + Menu "buffer-info" + Item "File|F" "inset-modify buffer name" + Item "Path|P" "inset-modify buffer path" + Item "Class|C" "inset-modify buffer class" + Separator + Item "File Revision|R" "inset-modify buffer vcs-revision" + Item "Tree Revision|T" "inset-modify buffer vcs-tree-revision" + Item "Revision Author|A" "inset-modify buffer vcs-author" + Item "Revision Date|D" "inset-modify buffer vcs-date" + Item "Revision Time|i" "inset-modify buffer vcs-time" + Separator + Item "LyX Version|X" "inset-modify lyxinfo version" + End + Menu "context-info" + Submenu "Document Info|D" "buffer-info" + Separator + Item "Copy Text|o" "inset-copy-as" Item "Settings...|S" "inset-settings info" End @@ -424,14 +438,8 @@ Menuset # Menu "context-branch" - OptItem "Open Inset|O" "inset-toggle open" - OptItem "Close Inset|C" "inset-toggle close" - Separator OptItem "Activate Branch|A" "branch-activate" OptItem "Deactivate Branch|e" "branch-deactivate" - Separator - Item "Dissolve Inset|D" "inset-dissolve" - OptItem "Settings...|S" "inset-settings" End # @@ -527,13 +535,6 @@ Menuset Menu "context-index" IndicesContext - Separator - OptItem "Open Inset|O" "inset-toggle open" - OptItem "Close Inset|C" "inset-toggle close" - Separator - Item "Dissolve Inset|D" "inset-dissolve" - Separator - OptItem "Settings...|S" "inset-settings" End # @@ -541,10 +542,10 @@ Menuset # Menu "context-indexprint" - Item "All Indexes|A" "next-inset-modify check-printindex*" + Item "All Indexes|A" "inset-modify check-printindex*" IndicesListsContext Separator - Item "Subindex|b" "next-inset-modify toggle-subindex" + Item "Subindex|b" "inset-modify toggle-subindex" Separator OptItem "Settings...|S" "inset-settings" End @@ -558,6 +559,14 @@ Menuset End +# InsetPreview context menu +# + + Menu "context-preview" + Item "Dissolve Inset|D" "inset-dissolve" + End + + # # Toc Changes context menu # @@ -580,4 +589,19 @@ Menuset Item "Select Section|S" "section-select" End +# +# InsetERT context menu +# + Menu "context-ert" + # repeat 1 is added as a work-around to not indicate this action as toggable + Item "Wrap by Preview|P" "command-sequence repeat 1;inset-toggle;char-forward;char-backward;char-forward-select;preview-insert;char-backward;char-backward;inset-toggle" + End + +# +# InsetHyperlink context menu +# + Menu "context-hyperlink" + Item "Settings...|S" "inset-settings" + End + End