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 *);
42 void change_adaptor();
44 void select_newfile();
46 void select_oldfile();
49 void finished(bool aborted);
53 void progress_max(int) const;
57 void updateContents();
61 bool initialiseParams(std::string const &) { return true; }
63 bool isBufferDependent() const { return false; }
67 void dispatchParams() {}
72 /// enable or disable all controls and rename the Close/Cancel button
73 void enableControls(bool enable) const;
76 QString browse(QString const & in_name) const;
77 /// retrieve the buffer from the specified filename
78 Buffer const * bufferFromFileName(std::string const & file) const;
80 /// create the compare object and run the comparison
84 /// the object that will do the comparison
87 /// the buffer that will contain the result
88 Buffer * dest_buffer_;
89 /// the buffer that will contain the result
90 Buffer const * old_buffer_;
91 /// the buffer that will contain the result
92 Buffer const * new_buffer_;
95 mutable QString window_title_;
100 } // namespace frontend
103 #endif // GUICOMPARE_H