add boldsymbol to Qt math panel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10136 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-07-06 12:22:59 +00:00
parent 7fdf13d545
commit a72f2eda2d
2 changed files with 20 additions and 14 deletions

View File

@ -1,3 +1,7 @@
2005-06-16 Joao Luis Meloni Assirati <assirati@nonada.if.usp.br>
* QMathDialog.C (QMathDialog, insertFont): add boldsymbol font.
2005-07-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QToc.C: consider gui name, not type, when trying to set the

View File

@ -139,13 +139,14 @@ QMathDialog::QMathDialog(QMath * form)
m->insertTearOffHandle();
m->insertItem(qt_("Roman \\mathrm"), 1);
m->insertItem(qt_("Bold \\mathbf"), 2);
m->insertItem(qt_("Sans serif \\mathsf"), 3);
m->insertItem(qt_("Italic \\mathit"), 4);
m->insertItem(qt_("Typewriter \\mathtt"), 5);
m->insertItem(qt_("Blackboard \\mathbb"), 6);
m->insertItem(qt_("Fraktur \\mathfrak"), 7);
m->insertItem(qt_("Calligraphic \\mathcal"), 8);
m->insertItem(qt_("Normal text mode \\textrm"), 9);
m->insertItem(qt_("Bold symbol \\boldsymbol"), 3);
m->insertItem(qt_("Sans serif \\mathsf"), 4);
m->insertItem(qt_("Italic \\mathit"), 5);
m->insertItem(qt_("Typewriter \\mathtt"), 6);
m->insertItem(qt_("Blackboard \\mathbb"), 7);
m->insertItem(qt_("Fraktur \\mathfrak"), 8);
m->insertItem(qt_("Calligraphic \\mathcal"), 9);
m->insertItem(qt_("Normal text mode \\textrm"), 10);
connect(m, SIGNAL(activated(int)), this, SLOT(insertFont(int)));
fontPB->setPopup(m);
}
@ -297,13 +298,14 @@ void QMathDialog::insertFont(int id)
switch (id) {
case 1: str = "mathrm"; break;
case 2: str = "mathbf"; break;
case 3: str = "mathsf"; break;
case 4: str = "mathit"; break;
case 5: str = "mathtt"; break;
case 6: str = "mathbb"; break;
case 7: str = "mathfrak"; break;
case 8: str = "mathcal"; break;
case 9: str = "textrm"; break;
case 3: str = "boldsymbol"; break;
case 4: str = "mathsf"; break;
case 5: str = "mathit"; break;
case 6: str = "mathtt"; break;
case 7: str = "mathbb"; break;
case 8: str = "mathfrak"; break;
case 9: str = "mathcal"; break;
case 10: str = "textrm"; break;
default: return;
}
form_->controller().dispatchInsert(str);