lyx_mirror/src/frontends/qt4/QTabularCreate.h
André Pönitz 078bdf9c27 merge the tabular/gui related files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17954 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-24 17:46:08 +00:00

60 lines
1.1 KiB
C++

// -*- 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"
#include "ui/TabularCreateUi.h"
#include <QDialog>
namespace lyx {
namespace frontend {
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_;
};
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