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"
23 class GuiCompare : public GuiDialog, public Ui::CompareUi
29 GuiCompare(GuiView & lv);
32 void closeEvent(QCloseEvent *);
47 void finished(bool aborted);
51 void progressMax(int) const;
55 void updateContents();
59 bool initialiseParams(std::string const &) { return true; }
61 bool isBufferDependent() const { return false; }
65 void dispatchParams() {}
70 /// enable or disable all controls and rename the Close/Cancel button
71 void enableControls(bool enable) const;
74 QString browse(QString const & in_name) const;
75 /// retrieve the buffer from the specified filename
76 Buffer const * bufferFromFileName(std::string const & file) const;
78 /// create the compare object and run the comparison
82 /// the buffer that will contain the result
83 Buffer * dest_buffer_;
84 /// the buffer that will contain the result
85 Buffer const * old_buffer_;
86 /// the buffer that will contain the result
87 Buffer const * new_buffer_;
90 mutable QString window_title_;
95 } // namespace frontend
98 #endif // GUICOMPARE_H