]> git.lyx.org Git - lyx.git/blobdiff - lib/ui/stdtoolbars.inc
Check for icon aliases
[lyx.git] / lib / ui / stdtoolbars.inc
index ad4fa7480ecaf3e3e06f832169fc5963dc31fac4..2e6663a02cc4cd7a68f53f6c1b6309dd3b0df73e 100644 (file)
@@ -17,9 +17,9 @@
 # capitalized in sentences, such as application names.
 #
 # Casing Rules for the "GUI Name":
-# Capitalize all words in the element, with the following exceptions: 
-# * Articles: a, an, the. 
-# * Conjunctions: and, but, for, not, so, yet ...  
+# Capitalize all words in the element, with the following exceptions:
+# * Articles: a, an, the.
+# * Conjunctions: and, but, for, not, so, yet ...
 # * Prepositions of three or fewer letters: at, for, by, in, to ...
 #
 # (http://library.gnome.org/devel/hig-book/stable/design-text-labels.html.en)
@@ -28,7 +28,7 @@
 #
 # Toolbar "name" "GUI Name"
 #
-# Only seven commands are allowed inside the Toolbar and End
+# Only eight commands are allowed inside the Toolbar and End
 # directives:
 #   Item "The tooltip" "<action> [<parameter>]" adds an icon to the toolbar performing
 #          "<action> <parameter>"
 #      Item "Small font" "font-size small"
 #      Item Emphasized set-emph
 #
+#   BidiItem is like Item, but an alternative icon (with name ending
+#     with "+rtl") will be used <hen the paragraph has a right-to-left
+#     layout. If this alternative icon does not exist, the LtR icon will
+#     be mirrored instead.
+#
 #   Layouts adds the layouts combo-box to the toolbar
 #
 #   Separator adds some spacing to the toolbar
 #
-#   Minibuffer adds the command buffer (Qt only, only one may exist)
+#   Minibuffer adds the command buffer (only one may exist)
 #
-#   TableInsert "The tooltip" adds a special widget for quick insertion of tables
+#   TableInsert "The tooltip" adds a special widget for quick
+#     insertion of tables
 #
 #   PopupMenu "name" "The tooltip"
 #
-#   ... inserts a button with a popup menu derived from Toolbar "name"
+#     ... inserts a button with a popup menu derived from Toolbar "name"
 #
 #   IconPalette "name" "The tooltip"
 #
-#   ... inserts a button with a popup iconpalette derived from Toolbar "name"
+#     ... inserts a button with a popup icon palette derived from Toolbar "name"
 #
 #
-# The icons are found in the lib/images/ direcory under the name
+# The icons are found in the lib/images/ directory under the name
 # action.png or action_parameter.png, except for math-insert, which
 # is e.g. lib/image/math/sum.png. Note that some characters are
 # replaced (e.g. ')' -> rbracket).
 #
-#  All other lyx commands will get a "unknown" icon.
+# Note that the lib/images/icon.aliases file can be used to specify
+# fallback icons for some functions.
+#
+#  All other LyX commands will get a "unknown" icon.
 #
 # This is the default toolbar:
 
-Format 1
+Format 5
 
 ToolbarSet
 
-       Toolbar "standard" "Standard"
+       Toolbar "standard" "Standard[[toolbar]]"
                Layouts
                Item "New document" "buffer-new"
                Item "Open document" "file-open"
                Item "Save document" "buffer-write"
-               Item "Print document" "dialog-show print"
                Separator
                Item "Check spelling" "dialog-show spellchecker"
                Item "Spellcheck continuously" "spelling-continuously"
@@ -80,22 +88,24 @@ ToolbarSet
                Item "Redo" "redo"
                Item "Cut" "cut"
                Item "Copy" "copy"
-               Item "Paste" "paste"
-               Item "Find and replace" "dialog-show findreplace"
+               DynamicMenu "paste" "Paste"
+               Item "Find and replace" "dialog-toggle findreplace"
                Item "Find and replace (advanced)" "dialog-toggle findreplaceadv"
                Item "Navigate back" "bookmark-goto 0"
                Separator
                Item "Toggle emphasis" "font-emph"
                Item "Toggle noun" "font-noun"
-               Item "Apply last" "textstyle-apply"
+               DynamicMenu "dynamic-char-styles" "Custom text styles"
                Separator
                Item "Insert math" "math-mode on"
                Item "Insert graphics" "dialog-show-new-inset graphics"
                TableInsert "Insert table"
+               DynamicMenu "dynamic-custom-insets" "Custom insets"
                Separator
                Item "Toggle outline" "dialog-toggle toc"
-               Item "Toggle math toolbar" "toolbar-toggle math"
-               Item "Toggle table toolbar" "toolbar-toggle table"
+               PopupMenu "toolbar-toggle_math" "Show math toolbar"
+               PopupMenu "toolbar-toggle_table" "Show table toolbar"
+               PopupMenu "toolbar-toggle_review" "Show review toolbar"
        End
 
        Toolbar "view/update" "View/Update"
@@ -103,6 +113,7 @@ ToolbarSet
                Item "Update" "buffer-update"
                Item "View master document" "master-buffer-view"
                Item "Update master document" "master-buffer-update"
+#              Item "Cancel export" "export-cancel"
                Item "Enable Forward/Reverse Search" "buffer-toggle-output-sync"
                Separator
                StickyPopupMenu "view-others" "View other formats"
@@ -111,12 +122,13 @@ ToolbarSet
 
        Toolbar "extra" "Extra"
                Item "Default" "layout"
-               Item "Numbered list" "layout Enumerate"
-               Item "Itemized list" "layout Itemize"
-               Item "List" "layout List"
-               Item "Description" "layout Description"
-               Item "Increase depth" "depth-increment"
-               Item "Decrease depth" "depth-decrement"
+               BidiItem "Numbered list" "layout-toggle Enumerate"
+               BidiItem "Itemized list" "layout-toggle Itemize"
+               BidiItem "Labeled List" "layout-toggle Labeling"
+               BidiItem "Description" "layout-toggle Description"
+               BidiItem "Section" "layout-toggle Section"
+               BidiItem "Increase depth" "command-alternatives outline-in;depth-increment"
+               BidiItem "Decrease depth" "command-alternatives outline-out;depth-decrement"
                Separator
                Item "Insert figure float" "float-insert figure"
                Item "Insert table float" "float-insert table"
@@ -135,44 +147,47 @@ ToolbarSet
                Item "Insert math macro" "math-macro newmacroname newcommand"
                Item "Include file" "dialog-show-new-inset include"
                Separator
-               Item "Text style" "dialog-show character"
+               Item "Text properties" "dialog-show character"
+               DynamicMenu "textstyle-apply" "Apply recent text properties"
                Item "Paragraph settings" "layout-paragraph"
                Item "Thesaurus" "thesaurus-entry"
        End
-       
+
        Toolbar "table" "Table"
-               Item "Add row" "inset-modify tabular append-row"
-               Item "Add column" "inset-modify tabular append-column"
-               Item "Delete row" "inset-modify tabular delete-row"
-               Item "Delete column" "inset-modify tabular delete-column"
-               Item "Move row up" "inset-modify tabular move-row-up"
-               Item "Move column left" "inset-modify tabular move-column-left"
-               Item "Move row down" "inset-modify tabular move-row-down"
-               Item "Move column right" "inset-modify tabular move-column-right"
+               Item "Add row" "tabular-feature append-row"
+               Item "Add column" "tabular-feature append-column"
+               Item "Delete row" "tabular-feature delete-row"
+               Item "Delete column" "tabular-feature delete-column"
+               Item "Move row up" "tabular-feature move-row-up"
+               Item "Move column left" "tabular-feature move-column-left"
+               Item "Move row down" "tabular-feature move-row-down"
+               Item "Move column right" "tabular-feature move-column-right"
                Separator
-               Item "Set top line" "inset-modify tabular toggle-line-top"
-               Item "Set bottom line" "inset-modify tabular toggle-line-bottom"
-               Item "Set left line" "inset-modify tabular toggle-line-left"
-               Item "Set right line" "inset-modify tabular toggle-line-right"
-               Item "Set border lines" "inset-modify tabular set-border-lines"
-               Item "Set all lines" "inset-modify tabular set-all-lines"
-               Item "Unset all lines" "inset-modify tabular unset-all-lines"
+               Item "Toggle top line" "tabular-feature toggle-line-top"
+               Item "Toggle bottom line" "tabular-feature toggle-line-bottom"
+               Item "Toggle left line" "tabular-feature toggle-line-left"
+               Item "Toggle right line" "tabular-feature toggle-line-right"
+               Item "Toggle border lines" "tabular-feature toggle-border-lines"
+               Item "Toggle inner lines" "tabular-feature toggle-inner-lines"
+               Item "Toggle all lines" "tabular-feature toggle-all-lines"
+               Item "Unset all lines" "tabular-feature unset-all-lines"
+               Item "Reset formal default lines" "tabular-feature reset-formal-default"
                Separator
-               Item "Align left" "command-alternatives inset-modify tabular m-align-left;inset-modify tabular align-left"
-               Item "Align center" "command-alternatives inset-modify tabular m-align-center;inset-modify tabular align-center"
-               Item "Align right" "command-alternatives inset-modify tabular m-align-right;inset-modify tabular align-right"
-               Item "Align on decimal" "inset-modify tabular align-decimal"
+               Item "Align left" "command-alternatives tabular-feature m-align-left;tabular-feature align-left"
+               Item "Align center" "command-alternatives tabular-feature m-align-center;tabular-feature align-center"
+               Item "Align right" "command-alternatives tabular-feature m-align-right;tabular-feature align-right"
+               Item "Align on decimal" "tabular-feature align-decimal"
                Separator
-               Item "Align top" "command-alternatives inset-modify tabular m-valign-top;inset-modify tabular valign-top"
-               Item "Align middle" "command-alternatives inset-modify tabular m-valign-middle;inset-modify tabular valign-middle"
-               Item "Align bottom" "command-alternatives inset-modify tabular m-valign-bottom;inset-modify tabular valign-bottom"
+               Item "Align top" "command-alternatives tabular-feature m-valign-top;tabular-feature valign-top"
+               Item "Align middle" "command-alternatives tabular-feature m-valign-middle;tabular-feature valign-middle"
+               Item "Align bottom" "command-alternatives tabular-feature m-valign-bottom;tabular-feature valign-bottom"
                Separator
-               Item "Rotate cell by 90 degrees or unset rotation" "inset-modify tabular toggle-rotate-cell"
-               Item "Rotate table by 90 degrees or unset rotation" "inset-modify tabular toggle-rotate-tabular"
-               Item "Set multi-column" "inset-modify tabular multicolumn"
-               Item "Set multi-row" "inset-modify tabular multirow"
+               Item "Rotate cell by 90 degrees or unset rotation" "tabular-feature toggle-rotate-cell"
+               Item "Rotate table by 90 degrees or unset rotation" "tabular-feature toggle-rotate-tabular"
+               Item "Set multi-column" "tabular-feature multicolumn"
+               Item "Set multi-row" "tabular-feature multirow"
        End
-       
+
        Toolbar "math" "Math"
                Item "Set display mode" "math-display"
                Separator
@@ -184,10 +199,6 @@ ToolbarSet
                Item "Insert sum" "math-insert \sum"
                Item "Insert integral" "math-insert \int"
                Item "Insert product" "math-insert \prod"
-               Item "Insert left/right side scripts" "math-insert \sideset"
-               Item "Insert right side scripts" "math-insert \sidesetr"
-               Item "Insert left side scripts" "math-insert \sidesetl"
-               Item "Insert side scripts" "math-insert \sidesetn"
                Separator
                Item "Insert ( )" "math-delim ( )"
                Item "Insert [ ]" "math-delim [ ]"
@@ -196,12 +207,34 @@ ToolbarSet
                Separator
                Item "Insert matrix" "dialog-show mathmatrix"
                Item "Insert cases environment" "math-insert \cases"
-               Item "Add row" "inset-modify tabular append-row"
-               Item "Add column" "inset-modify tabular append-column"
-               Item "Delete row" "inset-modify tabular delete-row"
-               Item "Delete column" "inset-modify tabular delete-column"
+               Item "Add row" "tabular-feature append-row"
+               Item "Add column" "tabular-feature append-column"
+               Item "Delete row" "tabular-feature delete-row"
+               Item "Delete column" "tabular-feature delete-column"
                Separator
-               Item "Toggle math panels" "toolbar-toggle math_panels"
+               PopupMenu "toolbar-toggle_math_panels" "Show math panels"
+       End
+
+       Toolbar "math_panels" "Math Panels"
+               PopupMenu "space" "Math spacings"
+               PopupMenu "style" "Styles & classes"
+               PopupMenu "frac-square" "Fractions"
+               PopupMenu "font" "Fonts"
+               PopupMenu "functions" "Functions"
+               IconPalette "latex_deco" "Frame decorations"
+               IconPalette "latex_varsz" "Big operators"
+               IconPalette "latex_misc" "Miscellaneous"
+               IconPalette "latex_greek" "Greek"
+               IconPalette "latex_arrow" "Arrows"
+               IconPalette "latex_ams_arrows" "Arrows (extended)"
+               IconPalette "latex_bop" "Operators"
+               IconPalette "latex_ams_ops" "Operators (extended)"
+               IconPalette "latex_brel" "Relations"
+               IconPalette "latex_ams_rel" "Relations (extended)"
+               IconPalette "latex_ams_nrel" "Negative relations (extended)"
+               IconPalette "latex_dots" "Dots"
+               IconPalette "latex_delim" "Delimiters (fixed size)"
+               IconPalette "latex_ams_misc" "Miscellaneous (extended)"
        End
 
        Toolbar "mathmacrotemplate" "Math Macros"
@@ -232,7 +265,7 @@ ToolbarSet
        Toolbar "minibuffer" "Command Buffer"
                Minibuffer
        End
-       
+
        Toolbar "review" "Review[[Toolbar]]"
                Item "Track changes" "changes-track"
                Item "Show changes in output" "changes-output"
@@ -248,15 +281,49 @@ ToolbarSet
                Item "Insert note" "note-insert"
                Item "Next note" "note-next"
        End
-       
+
+       Toolbar "documentation" "LyX Documentation Tools"
+               Item "Info" "info-insert"
+               Item "Menu Separator" "specialchar-insert menu-separator"
+               Separator
+               Item "LyX Logo" "specialchar-insert lyx"
+               Item "TeX Logo" "specialchar-insert tex"
+               Item "LaTeX Logo" "specialchar-insert latex"
+               Item "LaTeX2e Logo" "specialchar-insert latex2e"
+       End
+
        Toolbar "view-others" "View Other Formats"
                ViewFormats
        End
-       
+
        Toolbar "update-others" "Update Other Formats"
                UpdateFormats
        End
 
+       Toolbar "toolbar-toggle_math" "Show math toolbar"
+               Item "[[Toolbar]]On" "toolbar-set math on"
+               Item "[[Toolbar]]Off" "toolbar-set math off"
+               Item "[[Toolbar]]Automatic" "toolbar-set math auto"
+       End
+
+       Toolbar "toolbar-toggle_math_panels" "Show math panels"
+               Item "[[Toolbar]]On" "toolbar-set math_panels on"
+               Item "[[Toolbar]]Off" "toolbar-set math_panels off"
+               Item "[[Toolbar]]Automatic" "toolbar-set math_panels auto"
+       End
+
+       Toolbar "toolbar-toggle_table" "Show table toolbar"
+               Item "[[Toolbar]]On" "toolbar-set table on"
+               Item "[[Toolbar]]Off" "toolbar-set table off"
+               Item "[[Toolbar]]Automatic" "toolbar-set table auto"
+       End
+
+       Toolbar "toolbar-toggle_review" "Show review toolbar"
+               Item "[[Toolbar]]On" "toolbar-set review on"
+               Item "[[Toolbar]]Off" "toolbar-set review off"
+               Item "[[Toolbar]]Automatic" "toolbar-set review auto"
+       End
+
 # The following three toolbars are disabled because of missing icons.
 #      Toolbar "import/export" "Import/Export"
 #              Item "Import" "buffer-import"
@@ -281,35 +348,13 @@ ToolbarSet
                Item "Revert changes" "vc-revert"
                Item "Compare with older revision" "vc-compare"
                Item "Compare with last revision" "vc-compare 0"
-               Item "Insert Version Info" "info-insert buffer vcs-revision"
+               Item "Insert Version Info" "info-insert vcs revision"
                Separator
                Item "Use SVN file locking property" "vc-locking-toggle"
                Separator
                Item "Update local directory from repository" "vc-repo-update"
        End
 
-       Toolbar "math_panels" "Math Panels"
-               PopupMenu "space" "Math spacings"
-               PopupMenu "style" "Styles"
-               PopupMenu "frac-square" "Fractions"
-               PopupMenu "font" "Fonts"
-               PopupMenu "functions" "Functions"
-               IconPalette "latex_deco" "Frame decorations"
-               IconPalette "latex_varsz" "Big operators"
-               IconPalette "latex_misc" "Miscellaneous"
-               IconPalette "latex_greek" "Greek"
-               IconPalette "latex_arrow" "Arrows"
-               IconPalette "latex_ams_arrows" "Arrows (extended)"
-               IconPalette "latex_bop" "Operators"
-               IconPalette "latex_ams_ops" "Operators (extended)"
-               IconPalette "latex_brel" "Relations"
-               IconPalette "latex_ams_rel" "Relations (extended)"
-               IconPalette "latex_ams_nrel" "Negative relations (extended)"
-               IconPalette "latex_dots" "Dots"
-               IconPalette "latex_delim" "Delimiters (fixed size)"
-               IconPalette "latex_ams_misc" "Miscellaneous (extended)"
-       End
-
        Toolbar "functions" "Functions"
                Item "arccos" "math-insert \arccos"
                Item "arcsin" "math-insert \arcsin"
@@ -356,22 +401,28 @@ ToolbarSet
                Item "Phantom   \\phantom" "math-insert \phantom"
                Item "Horizontal phantom        \\hphantom" "math-insert \hphantom"
                Item "Vertical phantom  \\vphantom" "math-insert \vphantom"
-               Item "Smash \\smash" "math-insert \smash"
-               Item "Left overlap \\mathllap" "math-insert \mathllap"
-               Item "Center overlap \\mathclap" "math-insert \mathclap"
-               Item "Right overlap \\mathrlap" "math-insert \mathrlap"
+               Item "Smash     \\smash" "math-insert \smash"
+               Item "Top smash \\smasht" "math-insert \smasht"
+               Item "Bottom smash      \\smashb" "math-insert \smashb"
+               Item "Left overlap      \\mathllap" "math-insert \mathllap"
+               Item "Center overlap    \\mathclap" "math-insert \mathclap"
+               Item "Right overlap     \\mathrlap" "math-insert \mathrlap"
        End
 
        Toolbar "sqrt-square" "Roots"
                Item "Square root       \\sqrt" "math-insert \sqrt"
                Item "Other root        \\root" "math-insert \root"
        End
-       
-       Toolbar "style" "Styles"
+
+       Toolbar "style" "Styles & Classes"
                Item "Display style     \\displaystyle" "math-size \displaystyle"
                Item "Normal text style \\textstyle" "math-size \textstyle"
                Item "Script (small) style      \\scriptstyle" "math-size \scriptstyle"
                Item "Scriptscript (smaller) style      \\scriptscriptstyle" "math-size \scriptscriptstyle"
+               Item "Relation class    \\mathrel" "math-insert \mathrel"
+               Item "Binary operator class     \\mathbin" "math-insert \mathbin"
+               Item "Large operator class      \\mathop" "math-insert \mathop"
+               Item "Ordinary class    \\mathord" "math-insert \mathord"
        End
 
        Toolbar "frac-square" "Fractions"
@@ -399,6 +450,7 @@ ToolbarSet
                Item "Italic    \\mathit" "math-insert \mathit"
                Item "Typewriter        \\mathtt" "math-insert \mathtt"
                Item "Blackboard        \\mathbb" "math-insert \mathbb"
+               Item "Double stroke     \\mathds" "math-insert \mathds"
                Item "Fraktur   \\mathfrak" "math-insert \mathfrak"
                Item "Calligraphic      \\mathcal" "math-insert \mathcal"
                Item "Formal Script     \\mathscr" "math-insert \mathscr"
@@ -442,7 +494,6 @@ ToolbarSet
                Item "overleftarrow" "math-insert \overleftarrow"
                Item "overrightarrow" "math-insert \overrightarrow"
                Item "overleftrightarrow" "math-insert \overleftrightarrow"
-               Item "overset" "math-insert \overset"
                Item "underline" "math-insert \underline"
 #              Item "underbar" "math-insert \underbar" # switches to text mode, strikes through underlengths
                Item "underbrace" "math-insert \underbrace"
@@ -450,11 +501,16 @@ ToolbarSet
                Item "underleftarrow" "math-insert \underleftarrow"
                Item "underrightarrow" "math-insert \underrightarrow"
                Item "underleftrightarrow" "math-insert \underleftrightarrow"
-               Item "underset" "math-insert \underset"
                Item "cancel" "math-insert \cancel"
                Item "bcancel" "math-insert \bcancel"
                Item "xcancel" "math-insert \xcancel"
                Item "cancelto" "math-insert \cancelto"
+               Item "Insert left/right side scripts (sideset)" "math-insert \sideset"
+               Item "Insert right side scripts (sidesetr)" "math-insert \sidesetr"
+               Item "Insert left side scripts (sidesetl)" "math-insert \sidesetl"
+               Item "Insert side scripts (sidesetn)" "math-insert \sidesetn"
+               Item "overset" "math-insert \overset"
+               Item "underset" "math-insert \underset"
                Item "stackrel" "math-insert \stackrel"
                Item "stackrelthree" "math-insert \stackrelthree"
        End
@@ -948,6 +1004,8 @@ ToolbarSet
                Item "Longmapsto" "math-insert \Longmapsto"
                Item "longmapsfrom" "math-insert \longmapsfrom"
                Item "Longmapsfrom" "math-insert \Longmapsfrom"
+               Item "xleftarrow" "math-insert \xleftarrow"
+               Item "xrightarrow" "math-insert \xrightarrow"
 #              Item "mapstochar" "math-insert \mapstochar"
 #              Item "Mapstochar" "math-insert \Mapstochar"
 #              Item "mapsfromchar" "math-insert \mapsfromchar"
@@ -1302,7 +1360,7 @@ ToolbarSet
                Item "Voiced labiodental approximant" "unicode-insert 0x028b"
                Item "Voiced alveolar approximant" "unicode-insert 0x0279"
                Item "Voiced retroflex approximant" "unicode-insert 0x027b"
-               Item "Voiced palatal approximant" "unicode-insert 0x0068"
+               Item "Voiced palatal approximant" "unicode-insert 0x006a"
                Item "Voiced velar approximant" "unicode-insert 0x0270"
                Item "Voiced alveolar lateral approximant" "unicode-insert 0x006c"
                Item "Voiced retroflex lateral approximant" "unicode-insert 0x026d"