2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiTabularCreate.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
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTABULARCREATE_H
|
|
|
|
#define QTABULARCREATE_H
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
#include "GuiDialogView.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-08-31 05:53:55 +00:00
|
|
|
class GuiTabularCreate;
|
2007-04-24 17:46:08 +00:00
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
class GuiTabularCreateDialog : public QDialog, public Ui::TabularCreateUi {
|
2007-04-24 17:46:08 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiTabularCreateDialog(GuiTabularCreate * form);
|
2007-04-24 17:46:08 +00:00
|
|
|
protected Q_SLOTS:
|
|
|
|
virtual void columnsChanged(int);
|
|
|
|
virtual void rowsChanged(int);
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiTabularCreate * form_;
|
2007-04-24 17:46:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
class ControlTabularCreate;
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
class GuiTabularCreate
|
|
|
|
: public QController<ControlTabularCreate, GuiView<GuiTabularCreateDialog> >
|
2006-03-05 17:24:44 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
2007-08-31 05:53:55 +00:00
|
|
|
friend class GuiTabularCreateDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiTabularCreate(Dialog &);
|
2006-03-05 17:24:44 +00:00
|
|
|
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
|