]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiDialog.h
index 7ade39cd6e7c615e274d12e1d53939b5312c88f7..2359d740122f260fad455380a79d27bb112613a4 100644 (file)
 #include "Dialog.h"
 #include "ButtonController.h"
 
-#include "insets/InsetCommandParams.h"
-
 #include <QDialog>
 
-class QCloseEvent;
-class QShowEvent;
 
 namespace lyx {
 namespace frontend {
@@ -40,7 +36,7 @@ public:
        /// \param name is the identifier given to the dialog by its parent
        /// container.
        /// \param title is the window title used for decoration.
-       GuiDialog(GuiView & lv, std::string const & name, QString const & title);
+       GuiDialog(GuiView & lv, QString const & name, QString const & title);
 
        virtual QWidget * asQWidget() { return this; }
        virtual QWidget const * asQWidget() const { return this; }
@@ -56,8 +52,12 @@ public Q_SLOTS:
        void slotOK();
        // Apply button clicked
        void slotApply();
+       // AutoApply checkbox clicked
+       void slotAutoApply();
        // Close button clicked or closed from WindowManager
        void slotClose();
+       ///
+       void closeEvent(QCloseEvent * e);
 
 public:
        /** Check whether we may apply our data.
@@ -107,31 +107,6 @@ private:
 };
 
 
-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, QString const & title);
-       ///
-       bool initialiseParams(std::string const & data);
-       /// clean-up on hide.
-       void clearParams() { params_.clear(); }
-       /// clean-up on hide.
-       void dispatchParams();
-       ///
-       bool isBufferDependent() const { return true; }
-
-protected:
-       ///
-       InsetCommandParams params_;
-       //FIXME It should be possible to eliminate lfun_name_
-       //now and recover that information from params().insetType().
-       //But let's not do that quite yet.
-       /// Flags what action is taken by Kernel::dispatch()
-       std::string const lfun_name_;
-};
-
 } // namespace frontend
 } // namespace lyx