X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCompare.h;h=c1956c13ccbb0207f187a8a0aa2283a9d735fcf2;hb=e3625b5b8052e75e8741152bdfd313b54969c675;hp=dff108e3adb5a2e02a6b5dcf60d5d7eaa86d1cf9;hpb=7227566e8688e9fc0a60b01cbc077a97d1281f7e;p=lyx.git diff --git a/src/Compare.h b/src/Compare.h index dff108e3ad..c1956c13cc 100644 --- a/src/Compare.h +++ b/src/Compare.h @@ -14,12 +14,9 @@ #include "Buffer.h" -#include "support/FileName.h" - -#include - #include #include +#include #include @@ -73,8 +70,15 @@ Q_SIGNALS: /// Sets the maximum value of the progress bar in the dialog. void progressMax(int max) const; + /// A message describing the process + void statusMessage(QString msg) const; + +public Q_SLOTS: + /// Emits the status message signal + void doStatusMessage(); + public: - /// QThread inherited methods + /// \name QThread inherited methods //@{ void run(); //@} @@ -86,12 +90,12 @@ private: /// Starts the comparison algorithm int doCompare(); - /// The buffer with the differences marked with track changes - Buffer * const dest_buffer; - /// The old document's buffer - Buffer const * const old_buffer; /// The new document's buffer Buffer const * const new_buffer; + /// The old document's buffer + Buffer const * const old_buffer; + /// The buffer with the differences marked with track changes + Buffer * const dest_buffer; /// The options that are set in the GuiCompare dialog CompareOptions options_; @@ -99,6 +103,9 @@ private: /// QWaitCondition condition_; + /// Emit a statusMessage signal from time to time + QTimer status_timer_; + /// Use the Pimpl idiom to hide the internals. class Impl; ///