]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / GuiDialog.h
index 1e95fc5e371ae79e21cc2d70ac7e4119ccad1309..de71a780e0ad37e45b1319215019aad625182453 100644 (file)
@@ -15,6 +15,7 @@
 #include "Dialog.h"
 #include "ButtonController.h"
 
+#include <QAbstractButton>
 #include <QDialog>
 
 
@@ -22,7 +23,7 @@ namespace lyx {
 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. Eventually, old dialogs should be
   * converted to \c DialogView too.
@@ -56,9 +57,14 @@ public Q_SLOTS:
        void slotAutoApply();
        // Close button clicked or closed from WindowManager
        void slotClose();
+       // A collectiong slot for QDialogButtonBox
+       void slotButtonBox(QAbstractButton *);
        ///
        void closeEvent(QCloseEvent * e);
 
+protected Q_SLOTS:
+       void onBufferViewChanged() {};//override
+
 public:
        /** Check whether we may apply our data.
         *
@@ -94,7 +100,7 @@ public:
         *  to close or not (no point refreshing the display for example).
         */
        bool isClosing() const { return is_closing_; }
-       
+
        ///
        bool needBufferOpen() const { return isBufferDependent(); }