]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInclude.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiInclude.h
index 8330684ca2f6da319811b991711775efc97b273d..1106c3e02e9b72eb14d5064441f1c857cc679671 100644 (file)
 
 #include "insets/InsetCommandParams.h"
 
-#include "support/docstring.h"
-
 
 namespace lyx {
 namespace frontend {
 
-class GuiInclude : public GuiDialog, public Ui::IncludeUi, public Controller
+class GuiInclude : public GuiDialog, public Ui::IncludeUi
 {
        Q_OBJECT
 
 public:
-       GuiInclude(LyXView & lv);
+       GuiInclude(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -45,25 +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);
-       /// parent controller
-       Controller & controller() { return *this; }
        ///
-       void updateLists();
-       /// validate listings parameters and return an error message, if any
-       docstring validate_listings_params();
+       bool initialiseParams(std::string const & sdata);
        ///
-       void edit(std::string const & file);
-
+       void paramsToDialog(InsetCommandParams const & icp);
+       /// 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,20 +66,20 @@ private:
                ///
                INCLUDE,
                ///
-               LISTINGS,
+               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:
        ///