]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QExternalDialog.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QExternalDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QExternalDialog.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QEXTERNALDIALOG_H
13 #define QEXTERNALDIALOG_H
14
15 #include "ui/QExternalUi.h"
16
17 #include <QCloseEvent>
18 #include <QDialog>
19
20 namespace lyx {
21 namespace frontend {
22
23 class QExternal;
24
25 class QExternalDialog : public QDialog, public Ui::QExternalUi {
26         Q_OBJECT
27 public:
28         QExternalDialog(QExternal * form);
29
30         virtual void show();
31 protected Q_SLOTS:
32         virtual void bbChanged();
33         virtual void browseClicked();
34         virtual void change_adaptor();
35         virtual void editClicked();
36         virtual void extraChanged(const QString&);
37         virtual void formatChanged(const QString&);
38         virtual void getbbClicked();
39         virtual void sizeChanged();
40         virtual void templateChanged();
41         virtual void widthUnitChanged();
42
43 protected:
44         virtual void closeEvent(QCloseEvent * e);
45 private:
46         bool activateAspectratio() const;
47         QExternal * form_;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // QEXTERNALDIALOG_H