// -*- C++ -*-
/**
- * \file GuiMathMatrixDialog.h
+ * \file GuiMathMatrix.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Edwin Leuven
- * \author Jürgen Spitzmüller
+ * \author Jürgen Spitzmüller
*
* Full author contact details are available in file CREDITS.
*/
-#ifndef GUIMATHMATRIXDIALOG_H
-#define GUIMATHMATRIXDIALOG_H
+#ifndef GUIMATHMATRIX_H
+#define GUIMATHMATRIX_H
-#include "GuiDialogView.h"
-#include "ControlMath.h"
-#include "ui_MathMatrixUi.h"
+#include "GuiDialog.h"
-#include <QDialog>
+#include "ui_MathMatrixUi.h"
namespace lyx {
namespace frontend {
-class GuiMathMatrix;
-class ControlMath;
-
-
-class GuiMathMatrixDialog : public QDialog, public Ui::MathMatrixUi {
+class GuiMathMatrix : public GuiDialog, public Ui::MathMatrixUi
+{
Q_OBJECT
+
public:
- GuiMathMatrixDialog(GuiMathMatrix * form);
+ GuiMathMatrix(GuiView & lv);
+
+ bool initialiseParams(std::string const &) { return true; }
+ void clearParams() {}
+ void dispatchParams() {}
+ bool isBufferDependent() const { return true; }
+
public Q_SLOTS:
void slotOK();
void slotClose();
-protected Q_SLOTS:
- virtual void columnsChanged(int);
- virtual void rowsChanged(int);
- virtual void change_adaptor();
-private:
- GuiMathMatrix * form_;
+ void columnsChanged(int);
+ void decorationChanged(int);
+ void change_adaptor();
};
-
-class GuiMathMatrix : public GuiView<GuiMathMatrixDialog> {
-public:
- friend class GuiMathMatrixDialog;
-
- GuiMathMatrix(GuiDialog &);
- /// parent controller
- ControlMath & controller()
- { return static_cast<ControlMath &>(this->getController()); }
- /// parent controller
- ControlMath const & controller() const
- { return static_cast<ControlMath const &>(this->getController()); }
-private:
- virtual void applyView() {}
- virtual void update_contents() {}
- /// Build the dialog.
- virtual void build_dialog();
-};
-
-
} // namespace frontend
} // namespace lyx