X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiMathMatrix.h;h=8f3c624fc84db5a5f3e9c10835102754f7a37144;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=42d1cb906ed49af592d3b56d84a42366fd08755b;hpb=212386be8a1573fb52b5da718961835816a3c8e2;p=lyx.git diff --git a/src/frontends/qt4/GuiMathMatrix.h b/src/frontends/qt4/GuiMathMatrix.h index 42d1cb906e..8f3c624fc8 100644 --- a/src/frontends/qt4/GuiMathMatrix.h +++ b/src/frontends/qt4/GuiMathMatrix.h @@ -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 +#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 { -public: - friend class GuiMathMatrixDialog; - - GuiMathMatrix(GuiDialog &); - /// parent controller - ControlMath & controller() - { return static_cast(this->getController()); } - /// parent controller - ControlMath const & controller() const - { return static_cast(this->getController()); } -private: - virtual void apply() {} - virtual void update_contents() {} - /// Build the dialog. - virtual void build_dialog(); -}; - - } // namespace frontend } // namespace lyx