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"
17 #include "ui_CompareUi.h"
26 class GuiCompare : public GuiDialog, public Ui::CompareUi
32 GuiCompare(GuiView & lv);
35 void closeEvent(QCloseEvent *);
52 void finished(bool aborted);
56 void progressMax(int) const;
58 void setStatusMessage(QString);
62 void updateContents();
66 bool initialiseParams(std::string const &);
68 bool isBufferDependent() const { return false; }
72 void dispatchParams() {}
77 /// enable or disable all controls and rename the Close/Cancel button
78 void enableControls(bool enable);
81 QString browse(QString const & in_name) const;
82 /// retrieve the buffer from the specified filename
83 Buffer const * bufferFromFileName(std::string const & file) const;
85 /// create the compare object and run the comparison
89 /// the object that will do the comparison
92 /// the buffer that will contain the result
93 Buffer * dest_buffer_;
94 /// the buffer that will contain the result
95 Buffer const * old_buffer_;
96 /// the buffer that will contain the result
97 Buffer const * new_buffer_;
102 } // namespace frontend
105 #endif // GUICOMPARE_H