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));
}
}
}
-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 =
/// 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;
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();
}