2006-03-05 17:24:44 +00:00
|
|
|
/**
|
|
|
|
* \file QMath.C
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "QMath.h"
|
|
|
|
#include "QMathDialog.h"
|
|
|
|
#include "QMathMatrixDialog.h"
|
|
|
|
#include "QDelimiterDialog.h"
|
|
|
|
|
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
typedef QController<ControlMath, QView<QMathDialog> > math_base;
|
|
|
|
|
|
|
|
|
|
|
|
QMath::QMath(Dialog & parent)
|
2006-09-09 15:27:44 +00:00
|
|
|
: math_base(parent, lyx::to_utf8(_("Math Panel")))
|
2006-03-05 17:24:44 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
void QMath::build_dialog()
|
|
|
|
{
|
|
|
|
dialog_.reset(new QMathDialog(this));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
typedef QController<ControlMath, QView<QMathMatrixDialog> > matrix_base;
|
|
|
|
|
|
|
|
|
|
|
|
QMathMatrix::QMathMatrix(Dialog & parent)
|
2006-09-09 15:27:44 +00:00
|
|
|
: matrix_base(parent, lyx::to_utf8(_("Math Matrix")))
|
2006-03-05 17:24:44 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
void QMathMatrix::build_dialog()
|
|
|
|
{
|
|
|
|
dialog_.reset(new QMathMatrixDialog(this));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
typedef QController<ControlMath, QView<QDelimiterDialog> > delimiter_base;
|
|
|
|
|
|
|
|
|
|
|
|
QMathDelimiter::QMathDelimiter(Dialog & parent)
|
2006-09-09 15:27:44 +00:00
|
|
|
: delimiter_base(parent, lyx::to_utf8(_("Math Delimiter")))
|
2006-03-05 17:24:44 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
void QMathDelimiter::build_dialog()
|
|
|
|
{
|
|
|
|
dialog_.reset(new QDelimiterDialog(this));
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|