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
This commit is contained in:
Uwe Stöhr 2007-04-10 20:57:59 +00:00
parent 05c47c5ff7
commit c3ffce4a8c
4 changed files with 40 additions and 3 deletions

View 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

View 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 \

View File

@ -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 . ",
" .. .. ",
" ",
" "
};

View 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"