2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
|
* \file GuiMathMatrixDialog.h
|
2006-03-05 17:24:44 +00:00
|
|
|
|
* 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<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#ifndef GUIMATHMATRIXDIALOG_H
|
|
|
|
|
#define GUIMATHMATRIXDIALOG_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
#include "GuiDialogView.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#include "ControlMath.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_MathMatrixUi.h"
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
class GuiMathMatrix;
|
2007-04-19 21:42:42 +00:00
|
|
|
|
class ControlMath;
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
class GuiMathMatrixDialog : public QDialog, public Ui::MathMatrixUi {
|
2006-03-05 17:24:44 +00:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiMathMatrixDialog(GuiMathMatrix * form);
|
2006-06-30 14:37:33 +00:00
|
|
|
|
public Q_SLOTS:
|
2006-03-05 17:24:44 +00:00
|
|
|
|
void slotOK();
|
|
|
|
|
void slotClose();
|
2006-06-30 14:37:33 +00:00
|
|
|
|
protected Q_SLOTS:
|
2006-03-05 17:24:44 +00:00
|
|
|
|
virtual void columnsChanged(int);
|
|
|
|
|
virtual void rowsChanged(int);
|
|
|
|
|
virtual void change_adaptor();
|
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiMathMatrix * form_;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
};
|
|
|
|
|
|
2007-04-19 21:42:42 +00:00
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class GuiMathMatrix : public GuiView<GuiMathMatrixDialog> {
|
2007-04-19 21:42:42 +00:00
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
friend class GuiMathMatrixDialog;
|
2007-04-19 21:42:42 +00:00
|
|
|
|
|
2007-09-03 05:59:32 +00:00
|
|
|
|
GuiMathMatrix(GuiDialog &);
|
2007-08-31 22:16:11 +00:00
|
|
|
|
/// parent controller
|
|
|
|
|
ControlMath & controller()
|
|
|
|
|
{ return static_cast<ControlMath &>(this->getController()); }
|
|
|
|
|
/// parent controller
|
|
|
|
|
ControlMath const & controller() const
|
|
|
|
|
{ return static_cast<ControlMath const &>(this->getController()); }
|
2007-04-19 21:42:42 +00:00
|
|
|
|
private:
|
2007-09-03 20:28:26 +00:00
|
|
|
|
virtual void applyView() {}
|
2007-04-19 21:42:42 +00:00
|
|
|
|
virtual void update_contents() {}
|
|
|
|
|
/// Build the dialog.
|
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#endif // GUIMATHMATRIXDIALOG_H
|