]> git.lyx.org Git - features.git/commitdiff
add math delimiter dialog to math toolbar, by Richard and me
authorUwe Stöhr <uwestoehr@web.de>
Tue, 10 Apr 2007 20:57:59 +0000 (20:57 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 10 Apr 2007 20:57:59 +0000 (20:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17768 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_manifest.py
lib/Makefile.am
lib/images/dialog-show_mathdelimiter.xpm [new file with mode: 0644]
lib/ui/stdtoolbars.inc

index 4aaa07bb06c82e0564d22e78dff376a8e0846efe..328990d76d48d446e27a559eea5fb67f2589fbe3 100644 (file)
@@ -1521,6 +1521,7 @@ lib_images_files = Split('''
     dialog-show-new-inset_ref.xpm
     dialog-show_character.xpm
     dialog-show_findreplace.xpm
+    dialog-show_mathdelimiter.xpm
     dialog-show_mathpanel.xpm
     dialog-show_print.xpm
     dialog-show_spellchecker.xpm
index abf31cd76457c1f46be2850bfc351946814fb32d..738ed2075152a3dbbfb1f2bc752e266902188c57 100644 (file)
@@ -253,6 +253,7 @@ dist_images_DATA = \
        images/dialog-show-new-inset_ref.xpm \
        images/dialog-show_character.xpm \
        images/dialog-show_findreplace.xpm \
+       images/dialog-show_mathdelimiters.xpm \
        images/dialog-show_mathpanel.xpm \
        images/dialog-show_print.xpm \
        images/dialog-show_spellchecker.xpm \
diff --git a/lib/images/dialog-show_mathdelimiter.xpm b/lib/images/dialog-show_mathdelimiter.xpm
new file mode 100644 (file)
index 0000000..875814a
--- /dev/null
@@ -0,0 +1,33 @@
+/* XPM */
+static char const * delim[] = {
+/* width height num_colors chars_per_pixel */
+"    15    20        3            1",
+/* colors */
+"      c None",
+".     c #000000",
+"X     c #0000ff",
+/* pixels */
+"               ",
+"               ",
+"  ..       ..  ",
+"  .  XXXXX  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  X   X  .  ",
+"  .  XXXXX  .  ",
+"  ..       ..  ",
+"               ",
+"               "
+};
+
+
index bfb70602e92e4ea5ccac0671a5a96ade830f46c0..9afba8cd4e52e0f54b22ec9c32fefa81bd361034 100644 (file)
@@ -16,7 +16,7 @@
 #
 # Toolbar "name" "GUI Name"
 #
-# Only four commands are allowed inside the begin_toolbar and end_toolbar
+# Only four commands are allowed inside the Toolbar and End
 # directives:
 #   Item "The tooltip" "<action> [<parameter>]" adds an icon to the toolbar performing
 #          "<action> <parameter>"
@@ -30,7 +30,7 @@
 #
 #   Minibuffer adds the command buffer (Qt only, only one may exist)
 #
-# The icons are found in the lib/image direcory under the name
+# The icons are found in the lib/images/ direcory under the name
 # action.xpm or action_parameter.xpm, except for math-insert, which
 # is e.g. lib/image/math/sum.xpm. Note that some characters are
 # replaced (e.g. ')' -> rbracket).
@@ -122,10 +122,11 @@ End
 Toolbar "math" "Math"
        Item "Show math panel" "dialog-show mathpanel"
        Item "Set display mode" "math-display"
+       Separator
        Item "Subscript" "math-subscript"
        Item "Superscript" "math-superscript"
-       Item "Insert root" "math-insert \root"
        Item "Insert square root" "math-insert \sqrt"
+       Item "Insert root" "math-insert \root"
        Item "Insert sum" "math-insert \sum"
        Item "Insert integral" "math-insert \int"
        Item "Insert product" "math-insert \prod"
@@ -134,6 +135,7 @@ Toolbar "math" "Math"
        Item "Insert ( )" "math-delim ( )"
        Item "Insert [ ]" "math-delim [ ]"
        Item "Insert { }" "math-delim { }"
+       Item "Insert math delimiters" "dialog-show mathdelimiter"
        Separator
        Item "Insert matrix" "math-matrix 2 2"
        Item "Insert cases environment" "math-insert \cases"