allow math menus to be torn off

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5311 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-09-16 13:30:52 +00:00
parent dc5991db52
commit 37379eb187
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-09-16 John Levon <levon@movementarian.org>
* QMathDialog.C: allow menus to be torn off
2002-09-16 John Levon <levon@movementarian.org> 2002-09-16 John Levon <levon@movementarian.org>
* QDelimiterDialog.C: fix empty delimiter * QDelimiterDialog.C: fix empty delimiter

View File

@ -103,6 +103,8 @@ QMathDialog::QMathDialog(QMath * form)
connect(symbolsWS, SIGNAL(aboutToShow(int)), this, SLOT(showingPanel(int))); connect(symbolsWS, SIGNAL(aboutToShow(int)), this, SLOT(showingPanel(int)));
QPopupMenu * m = new QPopupMenu(spacePB); QPopupMenu * m = new QPopupMenu(spacePB);
m->setCaption(_("LyX: Insert space"));
m->insertTearOffHandle();
m->insertItem(_("Thin space \\,"), 1); m->insertItem(_("Thin space \\,"), 1);
m->insertItem(_("Medium space \\:"), 2); m->insertItem(_("Medium space \\:"), 2);
m->insertItem(_("Thick space \\;"), 3); m->insertItem(_("Thick space \\;"), 3);
@ -113,6 +115,8 @@ QMathDialog::QMathDialog(QMath * form)
spacePB->setPopup(m); spacePB->setPopup(m);
m = new QPopupMenu(sqrtPB); m = new QPopupMenu(sqrtPB);
m->setCaption(_("LyX: Insert root"));
m->insertTearOffHandle();
m->insertItem(_("Square root \\sqrt"), 1); m->insertItem(_("Square root \\sqrt"), 1);
m->insertItem(_("Cube root \\root"), 2); m->insertItem(_("Cube root \\root"), 2);
m->insertItem(_("Other root \\root"), 3); m->insertItem(_("Other root \\root"), 3);
@ -120,6 +124,8 @@ QMathDialog::QMathDialog(QMath * form)
sqrtPB->setPopup(m); sqrtPB->setPopup(m);
m = new QPopupMenu(stylePB); m = new QPopupMenu(stylePB);
m->setCaption(_("LyX: Set math style"));
m->insertTearOffHandle();
m->insertItem(_("Display style \\displaystyle"), 1); m->insertItem(_("Display style \\displaystyle"), 1);
m->insertItem(_("Normal text style \\textstyle"), 2); m->insertItem(_("Normal text style \\textstyle"), 2);
m->insertItem(_("Script (small) style \\scriptstyle"), 3); m->insertItem(_("Script (small) style \\scriptstyle"), 3);
@ -128,6 +134,8 @@ QMathDialog::QMathDialog(QMath * form)
stylePB->setPopup(m); stylePB->setPopup(m);
m = new QPopupMenu(fontPB); m = new QPopupMenu(fontPB);
m->setCaption(_("LyX: Set math font"));
m->insertTearOffHandle();
m->insertItem(_("Roman \\mathrm"), 1); m->insertItem(_("Roman \\mathrm"), 1);
m->insertItem(_("Bold \\mathbf"), 2); m->insertItem(_("Bold \\mathbf"), 2);
m->insertItem(_("San serif \\mathsf"), 3); m->insertItem(_("San serif \\mathsf"), 3);