lyx_mirror/src/frontends/qt4/QAbout.h
André Pönitz e9b92c06a3 merge QAbout and QAboutDialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17943 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-24 11:32:09 +00:00

54 lines
962 B
C++

// -*- C++ -*-
/**
* \file QAbout.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Kalle Dalheimer
*
* Full author contact details are available in file CREDITS.
*/
#ifndef FORMABOUT_H
#define FORMABOUT_H
#include "QDialogView.h"
#include "ui/AboutUi.h"
#include <QDialog>
namespace lyx {
namespace frontend {
class ControlAboutlyx;
class QAboutDialog : public QDialog, public Ui::QAboutUi {
Q_OBJECT
public:
QAboutDialog(QWidget * parent = 0)
: QDialog(parent)
{
setupUi(this);
connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
}
};
class QAbout
: public QController<ControlAboutlyx, QView<QAboutDialog> >
{
public:
QAbout(Dialog &);
private:
/// not needed
virtual void apply() {}
/// not needed
virtual void update_contents() {}
// build the dialog
virtual void build_dialog();
};
} // namespace frontend
} // namespace lyx
#endif // FORMABOUT_H