]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiMathMatrix.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiMathMatrix.h
index 050f20fc530ed793a3232fb8717a2e7098b0ad13..cbe11c17d2eaa737c39930ae430c8b774448f3c2 100644 (file)
@@ -1,6 +1,6 @@
 // -*- 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.
  *
  * 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 "GuiMath.h"
 #include "ui_MathMatrixUi.h"
 
 #include <QDialog>
 namespace lyx {
 namespace frontend {
 
-class GuiMathMatrix;
-class ControlMath;
-
-
-class GuiMathMatrixDialog : public QDialog, public Ui::MathMatrixUi {
+class GuiMathMatrix : public GuiMath, public Ui::MathMatrixUi
+{
        Q_OBJECT
+
 public:
-       GuiMathMatrixDialog(GuiMathMatrix * form);
+       GuiMathMatrix(GuiView & lv);
+
 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_;
-};
-
-
-class GuiMathMatrix : public GuiView<GuiMathMatrixDialog> {
-public:
-       friend class GuiMathMatrixDialog;
-
-       GuiMathMatrix(Dialog &);
-       /// 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();
+       void columnsChanged(int);
+       void rowsChanged(int);
+       void change_adaptor();
 };
 
-
 } // namespace frontend
 } // namespace lyx