2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QTabularCreate.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTABULARCREATE_H
|
|
|
|
#define QTABULARCREATE_H
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_TabularCreateUi.h"
|
2007-04-24 17:46:08 +00:00
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-04-24 17:46:08 +00:00
|
|
|
class QTabularCreate;
|
|
|
|
|
|
|
|
class QTabularCreateDialog : public QDialog, public Ui::QTabularCreateUi {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
QTabularCreateDialog(QTabularCreate * form);
|
|
|
|
protected Q_SLOTS:
|
|
|
|
virtual void columnsChanged(int);
|
|
|
|
virtual void rowsChanged(int);
|
|
|
|
private:
|
|
|
|
QTabularCreate * form_;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
class ControlTabularCreate;
|
|
|
|
|
|
|
|
class QTabularCreate
|
|
|
|
: public QController<ControlTabularCreate, QView<QTabularCreateDialog> >
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
friend class QTabularCreateDialog;
|
|
|
|
///
|
|
|
|
QTabularCreate(Dialog &);
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents() {}
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QTABULARCREATE_H
|