2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QShowFile.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 QSHOWFILE_H
|
|
|
|
#define QSHOWFILE_H
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
2007-04-24 19:37:34 +00:00
|
|
|
|
|
|
|
#include "ui/ShowFileUi.h"
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QCloseEvent>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-04-24 19:37:34 +00:00
|
|
|
class QShowFile;
|
|
|
|
|
|
|
|
class QShowFileDialog : public QDialog, public Ui::QShowFileUi {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
QShowFileDialog(QShowFile * form);
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
|
|
|
QShowFile * form_;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
class ControlShowFile;
|
|
|
|
|
|
|
|
class QShowFile
|
|
|
|
: public QController<ControlShowFile, QView<QShowFileDialog> >
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend class QShowFileDialog;
|
|
|
|
|
|
|
|
QShowFile(Dialog &);
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply() {}
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QSHOWFILE_H
|