]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.h
Merge branch 'biblatex2' of git.lyx.org:features into biblatex2
[lyx.git] / src / frontends / qt4 / GuiDialog.h
index 2359d740122f260fad455380a79d27bb112613a4..3b26943923abd09b20ebbbc3f0d2870394fa618f 100644 (file)
@@ -24,7 +24,7 @@ namespace frontend {
 /// Base class for historical LyX dialogs.
 /** 
   * \warning New dialogs should use the leaner classes \c DialogView or
-  * \c DockView depending on the intent. Eventally, old dialog should be
+  * \c DockView depending on the intent. Eventually, old dialogs should be
   * converted to \c DialogView too.
   */
 class GuiDialog : public QDialog, public Dialog
@@ -59,6 +59,9 @@ public Q_SLOTS:
        ///
        void closeEvent(QCloseEvent * e);
 
+protected Q_SLOTS:
+       void onBufferViewChanged() {};//override
+
 public:
        /** Check whether we may apply our data.
         *
@@ -94,6 +97,9 @@ public:
         *  to close or not (no point refreshing the display for example).
         */
        bool isClosing() const { return is_closing_; }
+       
+       ///
+       bool needBufferOpen() const { return isBufferDependent(); }
 
        /// Update the display of the dialog whilst it is still visible.
        virtual void updateView();