mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
More code removal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25063 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
19668bf2d6
commit
f7f385f73b
@ -185,11 +185,11 @@ void GuiDelimiter::updateTeXCode(int size)
|
|||||||
void GuiDelimiter::on_insertPB_clicked()
|
void GuiDelimiter::on_insertPB_clicked()
|
||||||
{
|
{
|
||||||
if (sizeCO->currentIndex() == 0)
|
if (sizeCO->currentIndex() == 0)
|
||||||
dispatchDelim(fromqstr(tex_code_));
|
dispatchFunc(LFUN_MATH_DELIM, fromqstr(tex_code_));
|
||||||
else {
|
else {
|
||||||
QString command = '"' + tex_code_ + '"';
|
QString command = '"' + tex_code_ + '"';
|
||||||
command.replace(' ', "\" \"");
|
command.replace(' ', "\" \"");
|
||||||
dispatchBigDelim(fromqstr(command));
|
dispatchFunc(LFUN_MATH_BIGDELIM, fromqstr(command));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,30 +69,6 @@ void GuiMath::dispatchFunc(FuncCode action, string const & arg) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GuiMath::dispatchMatrix(string const & str) const
|
|
||||||
{
|
|
||||||
dispatchFunc(LFUN_MATH_MATRIX, str);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GuiMath::dispatchDelim(string const & str) const
|
|
||||||
{
|
|
||||||
dispatchFunc(LFUN_MATH_DELIM, str);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GuiMath::dispatchBigDelim(string const & str) const
|
|
||||||
{
|
|
||||||
dispatchFunc(LFUN_MATH_BIGDELIM, str);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GuiMath::showDialog(string const & name) const
|
|
||||||
{
|
|
||||||
dispatchFunc(LFUN_DIALOG_SHOW, name);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
MathSymbol const & GuiMath::mathSymbol(string tex_name) const
|
MathSymbol const & GuiMath::mathSymbol(string tex_name) const
|
||||||
{
|
{
|
||||||
map<string, MathSymbol>::const_iterator it =
|
map<string, MathSymbol>::const_iterator it =
|
||||||
|
@ -48,16 +48,6 @@ public:
|
|||||||
/// dispatch an LFUN
|
/// dispatch an LFUN
|
||||||
void dispatchFunc(FuncCode action,
|
void dispatchFunc(FuncCode action,
|
||||||
std::string const & arg = std::string()) const;
|
std::string const & arg = std::string()) const;
|
||||||
/// Insert a matrix
|
|
||||||
void dispatchMatrix(std::string const & str) const;
|
|
||||||
/// Insert a variable size delimiter
|
|
||||||
void dispatchDelim(std::string const & str) const;
|
|
||||||
/// Insert a big delimiter
|
|
||||||
void dispatchBigDelim(std::string const & str) const;
|
|
||||||
/** A request to the kernel to launch a dialog.
|
|
||||||
* \param name the dialog identifier.
|
|
||||||
*/
|
|
||||||
void showDialog(std::string const & name) const;
|
|
||||||
|
|
||||||
/// \return the math unicode symbol associated to a TeX name.
|
/// \return the math unicode symbol associated to a TeX name.
|
||||||
MathSymbol const & mathSymbol(std::string tex_name) const;
|
MathSymbol const & mathSymbol(std::string tex_name) const;
|
||||||
|
@ -88,8 +88,9 @@ void GuiMathMatrix::slotOK()
|
|||||||
QString const sh = halignED->text();
|
QString const sh = halignED->text();
|
||||||
int const nx = columnsSB->value();
|
int const nx = columnsSB->value();
|
||||||
int const ny = rowsSB->value();
|
int const ny = rowsSB->value();
|
||||||
dispatchMatrix(fromqstr(
|
string const str = fromqstr(
|
||||||
QString("%1 %2 %3 %4").arg(nx).arg(ny).arg(c).arg(sh)));
|
QString("%1 %2 %3 %4").arg(nx).arg(ny).arg(c).arg(sh));
|
||||||
|
dispatchFunc(LFUN_MATH_MATRIX, str);
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user