lyx_mirror/src/frontends/qt4/QNomencl.h
André Pönitz a77a19e497 more dialog merging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17981 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-25 10:57:54 +00:00

69 lines
1.2 KiB
C++

// -*- C++ -*-
/**
* \file QNomencl.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Kalle Dalheimer
* \author O. U. Baran
*
* Full author contact details are available in file CREDITS.
*/
#ifndef QNOMENCL_H
#define QNOMENCL_H
#include "QDialogView.h"
#include "ui/NomenclUi.h"
#include <QDialog>
class QCloseEvent;
namespace lyx {
namespace frontend {
class QNomencl;
class QNomenclDialog : public QDialog, public Ui::QNomenclUi {
Q_OBJECT
public:
QNomenclDialog(QNomencl * form);
virtual void show();
protected Q_SLOTS:
virtual void change_adaptor();
virtual void reject();
protected:
virtual void closeEvent(QCloseEvent * e);
private:
QNomencl * form_;
};
class ControlCommand;
class QNomencl :
public QController<ControlCommand, QView<QNomenclDialog> >
{
public:
friend class QNomenclDialog;
QNomencl(Dialog &, docstring const & title);
protected:
virtual bool isValid();
private:
/// Apply changes
virtual void apply();
/// update
virtual void update_contents();
/// build the dialog
virtual void build_dialog();
};
} // namespace frontend
} // namespace lyx
#endif // QNOMENCL_H