2002-08-30 16:20:27 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QMath.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-08-30 16:20:27 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-08-30 16:20:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QMATH_H
|
|
|
|
#define QMATH_H
|
|
|
|
|
2003-06-12 14:21:04 +00:00
|
|
|
#include "QDialogView.h"
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2003-06-17 12:53:35 +00:00
|
|
|
class ControlMath;
|
2002-09-23 16:16:08 +00:00
|
|
|
class QMathDialog;
|
2003-06-17 00:30:47 +00:00
|
|
|
class QMathMatrixDialog;
|
|
|
|
class QDelimiterDialog;
|
2002-09-23 16:16:08 +00:00
|
|
|
|
2003-06-17 12:53:35 +00:00
|
|
|
class QMath : public QController<ControlMath, QView<QMathDialog> > {
|
2002-08-30 16:20:27 +00:00
|
|
|
public:
|
|
|
|
friend class QMathDialog;
|
|
|
|
|
2003-06-12 14:21:04 +00:00
|
|
|
QMath(Dialog &);
|
2002-08-30 16:20:27 +00:00
|
|
|
|
|
|
|
private:
|
2002-09-23 16:16:08 +00:00
|
|
|
virtual void apply() {}
|
|
|
|
virtual void update_contents() {}
|
2003-06-12 14:21:04 +00:00
|
|
|
/// Build the dialog.
|
|
|
|
virtual void build_dialog();
|
2002-08-30 16:20:27 +00:00
|
|
|
};
|
|
|
|
|
2003-06-17 00:30:47 +00:00
|
|
|
|
2003-06-17 12:53:35 +00:00
|
|
|
class QMathMatrix : public QController<ControlMath, QView<QMathMatrixDialog> > {
|
2003-06-17 00:30:47 +00:00
|
|
|
public:
|
|
|
|
friend class QMathMatrixDialog;
|
|
|
|
|
|
|
|
QMathMatrix(Dialog &);
|
|
|
|
|
|
|
|
private:
|
|
|
|
virtual void apply() {}
|
|
|
|
virtual void update_contents() {}
|
|
|
|
/// Build the dialog.
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2003-06-17 12:53:35 +00:00
|
|
|
class QMathDelimiter : public QController<ControlMath, QView<QDelimiterDialog> > {
|
2003-06-17 00:30:47 +00:00
|
|
|
public:
|
|
|
|
friend class QDelimiterDialog;
|
|
|
|
|
|
|
|
QMathDelimiter(Dialog &);
|
|
|
|
|
|
|
|
private:
|
|
|
|
virtual void apply() {}
|
|
|
|
virtual void update_contents() {}
|
|
|
|
/// Build the dialog.
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2002-08-30 16:20:27 +00:00
|
|
|
#endif // QMATH_H
|