X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiInclude.h;h=e5ef7b668907c2d2cf870d01137ca0175939ce30;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=8230860dd12719120737de673a257ec1b92b091b;hpb=6f3cdf8da80a6b3889f2a3b8b53f44590152d600;p=lyx.git diff --git a/src/frontends/qt4/GuiInclude.h b/src/frontends/qt4/GuiInclude.h index 8230860dd1..e5ef7b6689 100644 --- a/src/frontends/qt4/GuiInclude.h +++ b/src/frontends/qt4/GuiInclude.h @@ -19,8 +19,6 @@ #include "insets/InsetCommandParams.h" -#include "support/docstring.h" - namespace lyx { namespace frontend { @@ -30,7 +28,7 @@ class GuiInclude : public GuiDialog, public Ui::IncludeUi Q_OBJECT public: - GuiInclude(LyXView & lv); + GuiInclude(GuiView & lv); private Q_SLOTS: void change_adaptor(); @@ -45,23 +43,19 @@ private Q_SLOTS: /// I have to validate listingsED (QTextEdit) manually. /// This function displays a hint or error message returned by /// validate_listings_params - void set_listings_msg(); + void setListingsMsg(); private: - void closeEvent(QCloseEvent * e); /// - void updateLists(); - /// validate listings parameters and return an error message, if any - docstring validate_listings_params(); + bool initialiseParams(std::string const & data); /// - void edit(std::string const & file); - + void paramsToDialog(InsetCommandParams const & params_); + /// clean-up on hide. + void clearParams() { params_.clear(); } + /// clean-up on hide. + void dispatchParams(); /// - bool isValid(); - /// Apply changes - void applyView(); - /// update - void updateContents(); + bool isBufferDependent() const { return true; } /// enum Type { @@ -74,18 +68,18 @@ private: /// LISTINGS, }; - /// - bool initialiseParams(std::string const & data); - /// clean-up on hide. - void clearParams(); - /// clean-up on hide. - void dispatchParams(); + void updateLists(); + /// validate listings parameters and return an error message, if any + docstring validate_listings_params(); /// - bool isBufferDependent() const { return true; } - + bool isValid(); + /// Apply changes + void applyView(); + /// update + void updateContents() {} /// Browse for a file - docstring browse(docstring const &, Type) const; + QString browse(QString const &, Type) const; private: ///