]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QViewSourceDialog.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QViewSourceDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QViewSourceDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Bo Peng
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QVIEWSOURCEDIALOG_H
14 #define QVIEWSOURCEDIALOG_H
15
16 #include "ui/QViewSourceUi.h"
17
18 namespace lyx {
19 namespace frontend {
20
21 class QViewSource;
22
23 class QViewSourceDialog : public QDialog, public Ui::QViewSourceUi {
24         Q_OBJECT
25 public:
26         QViewSourceDialog(QViewSource * form);
27 protected:
28         virtual void closeEvent(QCloseEvent * e);
29 private Q_SLOTS:
30         // update content
31         void slotUpdate();
32 private:
33         QViewSource * form_;
34 };
35
36 } // namespace frontend
37 } // namespace lyx
38
39 #endif // QVIEWSOURCEDIALOG_H