]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCompare.h
rename buffer parameter math_number_before to math_numbering_side
[lyx.git] / src / frontends / qt4 / GuiCompare.h
index f02ee4bf238dc69d46d9c3c9a029d09a30f669ea..025d2da9895caa8680384935aef7e0c8dd820005 100644 (file)
 #define GUICOMPARE_H
 
 #include "GuiDialog.h"
+
 #include "ui_CompareUi.h"
-#include "qt_helpers.h"
 
 namespace lyx {
+
+class Compare;
+
 namespace frontend {
 
 
@@ -43,12 +46,16 @@ private Q_SLOTS:
        ///
        void selectOldFile();
 
+       ///
+       void error();
        ///
        void finished(bool aborted);
        ///
-       void nextIt(int);
+       void progress(int);
        ///
        void progressMax(int) const;
+       ///
+       void setStatusMessage(QString);
 
 private:
        ///
@@ -56,7 +63,7 @@ private:
        ///
        bool isValid();
        ///
-       bool initialiseParams(std::string const &) { return true; }
+       bool initialiseParams(std::string const &);
        ///
        bool isBufferDependent() const { return false; }
        ///
@@ -68,7 +75,7 @@ private:
 
 
        /// enable or disable all controls and rename the Close/Cancel button
-       void enableControls(bool enable) const;
+       void enableControls(bool enable);
        
        /// browse for a file
        QString browse(QString const & in_name) const;
@@ -79,15 +86,15 @@ private:
        int run();
 
 private:
+       /// the object that will do the comparison
+       Compare * compare_;
+
        /// the buffer that will contain the result
        Buffer * dest_buffer_;
        /// the buffer that will contain the result
        Buffer const * old_buffer_;
        /// the buffer that will contain the result
        Buffer const * new_buffer_;
-
-       /// the window title
-       mutable QString window_title_;
 };