]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiDialog.h
index 608e5962e962a716fb09ae520acd74af59add7c8..ce9f2fcd6a774ae7a3bb1d701c4a9e6512f94fee 100644 (file)
@@ -39,7 +39,8 @@ public:
        /// \param lv is the access point for the dialog to the LyX kernel.
        /// \param name is the identifier given to the dialog by its parent
        /// container.
-       explicit GuiDialog(GuiView & lv, std::string const & name);
+       /// \param title is the window title used for decoration.
+       GuiDialog(GuiView & lv, QString const & name, QString const & title);
 
        virtual QWidget * asQWidget() { return this; }
        virtual QWidget const * asQWidget() const { return this; }
@@ -57,11 +58,10 @@ public Q_SLOTS:
        void slotApply();
        // Close button clicked or closed from WindowManager
        void slotClose();
-
-public:
        ///
-       void setViewTitle(docstring const & title);
+       void closeEvent(QCloseEvent * e);
 
+public:
        /** Check whether we may apply our data.
         *
         *  The buttons are disabled if not and (re-)enabled if yes.
@@ -114,7 +114,7 @@ class GuiCommand : public GuiDialog
 public:
        /// We need to know with what sort of inset we're associated.
        // FIXME This should probably be an InsetCode
-       GuiCommand(GuiView &, std::string const & name);
+       GuiCommand(GuiView &, QString const & name, QString const & title);
        ///
        bool initialiseParams(std::string const & data);
        /// clean-up on hide.