From: Uwe Stöhr Date: Tue, 10 Apr 2007 20:57:59 +0000 (+0000) Subject: add math delimiter dialog to math toolbar, by Richard and me X-Git-Tag: 1.6.10~10299 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c3ffce4a8cbede2db9a34d92932b6628a7aa68eb;p=features.git add math delimiter dialog to math toolbar, by Richard and me git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17768 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index 4aaa07bb06..328990d76d 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -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 diff --git a/lib/Makefile.am b/lib/Makefile.am index abf31cd764..738ed20751 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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 index 0000000000..875814a3ec --- /dev/null +++ b/lib/images/dialog-show_mathdelimiter.xpm @@ -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 . ", +" .. .. ", +" ", +" " +}; + + diff --git a/lib/ui/stdtoolbars.inc b/lib/ui/stdtoolbars.inc index bfb70602e9..9afba8cd4e 100644 --- a/lib/ui/stdtoolbars.inc +++ b/lib/ui/stdtoolbars.inc @@ -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" " []" adds an icon to the toolbar performing # " " @@ -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"