lyx_mirror/src/frontends/qt4/QMath.C
Abdelrazak Younes e6fea4b844 Patch 1 Log:
* controllers/Dialog.[Ch]
  - View::title_ is now a docstring (ctor and access functions changed)

* controllers/ControlLog.[Ch]
  - title() now returns a docstring

* controllers/ControlLog.[Ch]
  - title() now returns a docstring

* qt4/*: adapted to above changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15283 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-09 10:35:14 +00:00

66 lines
1.1 KiB
C

/**
* \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)
: math_base(parent, _("Math Panel"))
{}
void QMath::build_dialog()
{
dialog_.reset(new QMathDialog(this));
}
typedef QController<ControlMath, QView<QMathMatrixDialog> > matrix_base;
QMathMatrix::QMathMatrix(Dialog & parent)
: matrix_base(parent, _("Math Matrix"))
{}
void QMathMatrix::build_dialog()
{
dialog_.reset(new QMathMatrixDialog(this));
}
typedef QController<ControlMath, QView<QDelimiterDialog> > delimiter_base;
QMathDelimiter::QMathDelimiter(Dialog & parent)
: delimiter_base(parent, _("Math Delimiter"))
{}
void QMathDelimiter::build_dialog()
{
dialog_.reset(new QDelimiterDialog(this));
}
} // namespace frontend
} // namespace lyx