]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiExternal.h
the fun begins....
[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 showView();
46         void closeEvent(QCloseEvent * e);
47         //
48         bool activateAspectratio() const;
49         /// parent controller
50         ControlExternal & controller() const;
51         /// Apply changes
52         void applyView();
53         /// update
54         void update_contents();
55         /// Helper function called when the template is changed.
56         void updateTemplate();
57         /// get bounding box from file
58         void getBB();
59
60         ///
61         typedef std::map<std::string, QString> MapType;
62         ///
63         MapType extra_;
64 };
65
66 } // namespace frontend
67 } // namespace lyx
68
69 #endif // GUIEXTERNAL_H