]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiExternal.h
This is the last of a series of patches that merges the layout modules development...
[lyx.git] / src / frontends / qt4 / GuiExternal.h
1 // -*- C++ -*-
2 /**
3  * \file GuiExternal.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 GUIEXTERNAL_H
13 #define GUIEXTERNAL_H
14
15 #include "GuiDialog.h"
16 #include "ControlExternal.h"
17 #include "ui_ExternalUi.h"
18
19 #include <map>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiExternalDialog : public GuiDialog, public Ui::ExternalUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiExternalDialog(LyXView & lv);
30
31 private Q_SLOTS:
32         void bbChanged();
33         void browseClicked();
34         void change_adaptor();
35         void editClicked();
36         void extraChanged(const QString&);
37         void formatChanged(const QString&);
38         void getbbClicked();
39         void sizeChanged();
40         void templateChanged();
41         void widthUnitChanged();
42
43 private:
44 public:
45         void closeEvent(QCloseEvent * e);
46         //
47         bool activateAspectratio() const;
48         /// parent controller
49         ControlExternal & controller();
50         /// Apply changes
51         void applyView();
52         /// update
53         void updateContents();
54         /// Helper function called when the template is changed.
55         void updateTemplate();
56         /// get bounding box from file
57         void getBB();
58
59         ///
60         typedef std::map<std::string, QString> MapType;
61         ///
62         MapType extra_;
63 };
64
65 } // namespace frontend
66 } // namespace lyx
67
68 #endif // GUIEXTERNAL_H