lyx_mirror/src/frontends/qt4/DialogView.h
Abdelrazak Younes 41681e7185 Add common session handling infrastructure for dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22061 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 13:05:00 +00:00

51 lines
1.1 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 <QDialog>
class QCloseEvent;
class QShowEvent;
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
{
Q_OBJECT
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.
explicit DialogView(GuiView & lv, std::string const & name);
virtual ~DialogView() {}
virtual QWidget * asQWidget() { return this; }
virtual QWidget const * asQWidget() const { return this; }
protected:
///
void setViewTitle(docstring const & title);
};
} // namespace frontend
} // namespace lyx
#endif // DIALOGVIEW_H