add boldsymbol to Qt math panel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10137 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-07-06 12:28:49 +00:00
parent 4f90d7f496
commit 8d252fdd7f
3 changed files with 23 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

@ -147,13 +147,14 @@ QMathDialog::QMathDialog(QMath * form)
m->insertTearOffHandle();
m->insertItem(qt_("Roman \\mathrm"), 1);
m->insertItem(qt_("Bold \\mathbf"), 2);
m->insertItem(qt_("San 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);
}
@ -310,13 +311,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_->insert(str);

View File

@ -43,6 +43,9 @@ What's new
- The ``annote'' field of BibTeX entries is now shown in citation preview.
- it is now possible to change current font to boldsymbol through the math
panel. [Qt only]
- update the aastex textclass to AASTeX 5.2
- new Turkish translation.