From f7f385f73b6dfba7cb4b77d794bd5f899842bc05 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 2 Jun 2008 09:26:27 +0000 Subject: [PATCH] More code removal. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25063 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDelimiter.cpp | 4 ++-- src/frontends/qt4/GuiMath.cpp | 24 ------------------------ src/frontends/qt4/GuiMath.h | 10 ---------- src/frontends/qt4/GuiMathMatrix.cpp | 5 +++-- 4 files changed, 5 insertions(+), 38 deletions(-) diff --git a/src/frontends/qt4/GuiDelimiter.cpp b/src/frontends/qt4/GuiDelimiter.cpp index 3196cc5bf1..96b276750a 100644 --- a/src/frontends/qt4/GuiDelimiter.cpp +++ b/src/frontends/qt4/GuiDelimiter.cpp @@ -185,11 +185,11 @@ void GuiDelimiter::updateTeXCode(int size) void GuiDelimiter::on_insertPB_clicked() { if (sizeCO->currentIndex() == 0) - dispatchDelim(fromqstr(tex_code_)); + dispatchFunc(LFUN_MATH_DELIM, fromqstr(tex_code_)); else { QString command = '"' + tex_code_ + '"'; command.replace(' ', "\" \""); - dispatchBigDelim(fromqstr(command)); + dispatchFunc(LFUN_MATH_BIGDELIM, fromqstr(command)); } } diff --git a/src/frontends/qt4/GuiMath.cpp b/src/frontends/qt4/GuiMath.cpp index 9bb7bfd15c..f3d3a982d7 100644 --- a/src/frontends/qt4/GuiMath.cpp +++ b/src/frontends/qt4/GuiMath.cpp @@ -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 { map::const_iterator it = diff --git a/src/frontends/qt4/GuiMath.h b/src/frontends/qt4/GuiMath.h index 31afc17ddd..b7bbeed538 100644 --- a/src/frontends/qt4/GuiMath.h +++ b/src/frontends/qt4/GuiMath.h @@ -48,16 +48,6 @@ public: /// dispatch an LFUN void dispatchFunc(FuncCode action, 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. MathSymbol const & mathSymbol(std::string tex_name) const; diff --git a/src/frontends/qt4/GuiMathMatrix.cpp b/src/frontends/qt4/GuiMathMatrix.cpp index 3b0ace1428..b92765251f 100644 --- a/src/frontends/qt4/GuiMathMatrix.cpp +++ b/src/frontends/qt4/GuiMathMatrix.cpp @@ -88,8 +88,9 @@ void GuiMathMatrix::slotOK() QString const sh = halignED->text(); int const nx = columnsSB->value(); int const ny = rowsSB->value(); - dispatchMatrix(fromqstr( - QString("%1 %2 %3 %4").arg(nx).arg(ny).arg(c).arg(sh))); + string const str = fromqstr( + QString("%1 %2 %3 %4").arg(nx).arg(ny).arg(c).arg(sh)); + dispatchFunc(LFUN_MATH_MATRIX, str); close(); } -- 2.39.2