4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "GuiDialogView.h"
16 #include "ControlInclude.h"
17 #include "ui_IncludeUi.h"
26 class GuiIncludeDialog : public QDialog, public Ui::IncludeUi {
29 GuiIncludeDialog(GuiInclude * form);
34 /// validate listings parameters and return an error message, if any
35 docstring validate_listings_params();
37 virtual void change_adaptor();
38 virtual void editClicked();
39 virtual void browseClicked();
40 virtual void typeChanged(int v);
41 /// AFAIK, QValidator only works for QLineEdit so
42 /// I have to validate listingsED (QTextEdit) manually.
43 /// This function displays a hint or error message returned by
44 /// validate_listings_params
45 void set_listings_msg();
47 virtual void closeEvent(QCloseEvent * e);
53 class GuiInclude : public GuiView<GuiIncludeDialog>
57 friend class GuiIncludeDialog;
61 ControlInclude & controller()
62 { return static_cast<ControlInclude &>(this->getController()); }
64 ControlInclude const & controller() const
65 { return static_cast<ControlInclude const &>(this->getController()); }
67 virtual bool isValid();
72 virtual void update_contents();
74 virtual void build_dialog();
76 /// edit the child document, .lyx file will be opened in lyx
77 /// other formats will be edited by external applications.
84 } // namespace frontend
87 #endif // GUIINCLUDE_H