]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiMathMatrix.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiMathMatrix.h
index 42d1cb906ed49af592d3b56d84a42366fd08755b..8f3c624fc84db5a5f3e9c10835102754f7a37144 100644 (file)
@@ -1,67 +1,47 @@
 // -*- 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 rowsChanged(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 apply() {}
-       virtual void update_contents() {}
-       /// Build the dialog.
-       virtual void build_dialog();
-};
-
-
 } // namespace frontend
 } // namespace lyx