]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInclude.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiInclude.h
index 3f46796e266862ed9c8096be5845008b1dba9e83..df33c26ee2424e686dc63c9e1e3d0e5aa83e76a6 100644 (file)
 namespace lyx {
 namespace frontend {
 
-//FIXME This could, and therefore probably should, inherit from
-//GuiCommand.
-class GuiInclude : public GuiDialog, public Ui::IncludeUi
+class GuiInclude : public GuiCommand, public Ui::IncludeUi
 {
        Q_OBJECT
 
 public:
-       GuiInclude(LyXView & lv);
+       GuiInclude(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -50,21 +48,6 @@ private Q_SLOTS:
        void set_listings_msg();
 
 private:
-       void closeEvent(QCloseEvent * e);
-       ///
-       void updateLists();
-       /// validate listings parameters and return an error message, if any
-       docstring validate_listings_params();
-       ///
-       void edit(std::string const & file);
-
-       ///
-       bool isValid();
-       /// Apply changes
-       void applyView();
-       /// update
-       void updateContents();
-
        ///
        enum Type {
                ///
@@ -76,22 +59,22 @@ 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();
+       ///
+       void edit(std::string const & file);
+       ///
+       bool isValid();
+       /// Apply changes
+       void applyView();
+       /// update
+       void updateContents();
        ///
        bool isBufferDependent() const { return true; }
-
        /// Browse for a file
        docstring browse(docstring const &, Type) const;
-
-private:
-       ///
-       InsetCommandParams params_;
 };
 
 } // namespace frontend