mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
a500e62902
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23486 a592a061-630c-0410-9148-cb99ea01b6c8
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file DialogView.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef DIALOGVIEW_H
|
|
#define DIALOGVIEW_H
|
|
|
|
#include "Dialog.h"
|
|
#include "GuiView.h"
|
|
|
|
#include <QDialog>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
/** \c Dialog collects the different parts of a Model-Controller-View
|
|
* split of a generic dialog together.
|
|
*/
|
|
class DialogView : public QDialog, public Dialog
|
|
{
|
|
public:
|
|
/// \param lv is the access point for the dialog to the LyX kernel.
|
|
/// \param name is the identifier given to the dialog by its parent
|
|
/// container.
|
|
/// \param title is the window title used for decoration.
|
|
DialogView(GuiView & lv, QString const & name, QString const & title)
|
|
: QDialog(&lv), Dialog(lv, name, "LyX: " + title)
|
|
{}
|
|
|
|
virtual QWidget * asQWidget() { return this; }
|
|
virtual QWidget const * asQWidget() const { return this; }
|
|
|
|
protected:
|
|
/// Dialog inherited methods
|
|
//@{
|
|
void applyView() {}
|
|
bool initialiseParams(std::string const & /*data*/) { return true; }
|
|
void clearParams() {}
|
|
//@}
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // DIALOGVIEW_H
|