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;
59 void updateContents();
63 bool initialiseParams(std::string const &) { return true; }
65 bool isBufferDependent() const { return false; }
69 void dispatchParams() {}
74 /// enable or disable all controls and rename the Close/Cancel button
75 void enableControls(bool enable) const;
78 QString browse(QString const & in_name) const;
79 /// retrieve the buffer from the specified filename
80 Buffer const * bufferFromFileName(std::string const & file) const;
82 /// create the compare object and run the comparison
86 /// the object that will do the comparison
89 /// the buffer that will contain the result
90 Buffer * dest_buffer_;
91 /// the buffer that will contain the result
92 Buffer const * old_buffer_;
93 /// the buffer that will contain the result
94 Buffer const * new_buffer_;
97 mutable QString window_title_;
102 } // namespace frontend
105 #endif // GUICOMPARE_H