lyx_mirror/src/frontends/qt4/GuiTabularCreate.h

65 lines
1.4 KiB
C
Raw Normal View History

// -*- C++ -*-
/**
* \file GuiTabularCreate.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 GUITABULARCREATE_H
#define GUITABULARCREATE_H
#include "GuiDialogView.h"
#include "ControlTabularCreate.h"
#include "ui_TabularCreateUi.h"
#include <QDialog>
namespace lyx {
namespace frontend {
class GuiTabularCreate;
class GuiTabularCreateDialog : public QDialog, public Ui::TabularCreateUi
{
Q_OBJECT
public:
GuiTabularCreateDialog(GuiTabularCreate * form);
protected Q_SLOTS:
virtual void columnsChanged(int);
virtual void rowsChanged(int);
private:
GuiTabularCreate * form_;
};
class GuiTabularCreate : public GuiView<GuiTabularCreateDialog>
{
public:
///
friend class GuiTabularCreateDialog;
///
GuiTabularCreate(GuiDialog &);
/// parent controller
ControlTabularCreate & controller()
{ return static_cast<ControlTabularCreate &>(this->getController()); }
/// parent controller
ControlTabularCreate const & controller() const
{ return static_cast<ControlTabularCreate const &>(this->getController()); }
private:
/// Apply changes
virtual void applyView();
/// update
virtual void update_contents() {}
/// build the dialog
virtual void build_dialog();
};
} // namespace frontend
} // namespace lyx
#endif // GUITABULARCREATE_H