]> git.lyx.org Git - features.git/commitdiff
More code removal.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 2 Jun 2008 09:26:27 +0000 (09:26 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 2 Jun 2008 09:26:27 +0000 (09:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25063 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDelimiter.cpp
src/frontends/qt4/GuiMath.cpp
src/frontends/qt4/GuiMath.h
src/frontends/qt4/GuiMathMatrix.cpp

index 3196cc5bf113e285a8fb28348ec3c1051d1bd7a0..96b276750a48313eab827fed371d6b36aa8c9071 100644 (file)
@@ -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));
        }
  }
 
index 9bb7bfd15c40e02fd93d341716e8af13a66d31e4..f3d3a982d75674b96aa7fdc5d05aa910f8eff57d 100644 (file)
@@ -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<string, MathSymbol>::const_iterator it =
index 31afc17ddd7bbc06e409cb86f5830014b5618f0d..b7bbeed53862018f8db80b471a5eb1629ab9d942 100644 (file)
@@ -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;
index 3b0ace1428725fd21e539689568f060d7445581a..b92765251f166f849ac5c0bf130ea4437a90df74 100644 (file)
@@ -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();
 }