4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Vincent van Ravesteijn
9 * Full author contact details are available in file CREDITS.
15 #include "GuiDialog.h"
16 #include "ui_CompareUi.h"
17 #include "qt_helpers.h"
25 class GuiCompare : public GuiDialog, public Ui::CompareUi
31 GuiCompare(GuiView & lv);
34 void closeEvent(QCloseEvent *);
51 void finished(bool aborted);
55 void progressMax(int) const;
57 void setStatusMessage(QString);
61 void updateContents();
65 bool initialiseParams(std::string const &) { return true; }
67 bool isBufferDependent() const { return false; }
71 void dispatchParams() {}
76 /// enable or disable all controls and rename the Close/Cancel button
77 void enableControls(bool enable);
80 QString browse(QString const & in_name) const;
81 /// retrieve the buffer from the specified filename
82 Buffer const * bufferFromFileName(std::string const & file) const;
84 /// create the compare object and run the comparison
88 /// the object that will do the comparison
91 /// the buffer that will contain the result
92 Buffer * dest_buffer_;
93 /// the buffer that will contain the result
94 Buffer const * old_buffer_;
95 /// the buffer that will contain the result
96 Buffer const * new_buffer_;
101 } // namespace frontend
104 #endif // GUICOMPARE_H