]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/DialogView.h
* Dialog.cpp: whitespace
[lyx.git] / src / frontends / qt4 / DialogView.h
1 // -*- C++ -*-
2 /**
3  * \file DialogView.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef DIALOGVIEW_H
13 #define DIALOGVIEW_H
14
15 #include "Dialog.h"
16
17 #include <QDialog>
18
19 namespace lyx {
20 namespace frontend {
21
22 /** \c Dialog collects the different parts of a Model-Controller-View
23  *  split of a generic dialog together.
24  */
25 class DialogView : public QDialog, public Dialog
26 {
27         Q_OBJECT
28
29 public:
30         /// \param lv is the access point for the dialog to the LyX kernel.
31         /// \param name is the identifier given to the dialog by its parent
32         /// container.
33         explicit DialogView(GuiView & lv, std::string const & name);
34         virtual ~DialogView() {}
35
36         virtual QWidget * asQWidget() { return this; }
37         virtual QWidget const * asQWidget() const { return this; }
38
39 protected:
40         /// Dialog inherited methods
41         //@{
42         void applyView() {}
43         bool initialiseParams(std::string const & /*data*/) { return true; }
44         void clearParams() {}
45         //@}
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // DIALOGVIEW_H