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 *);
43 void slotButtonBox(QAbstractButton *);
54 void finished(bool aborted);
58 void progressMax(int) const;
60 void setStatusMessage(QString);
64 void updateContents();
68 bool initialiseParams(std::string const &);
70 bool isBufferDependent() const { return false; }
74 void dispatchParams() {}
79 /// enable or disable all controls and rename the Close/Cancel button
80 void enableControls(bool enable);
83 QString browse(QString const & in_name) const;
84 /// retrieve the buffer from the specified filename
85 Buffer const * bufferFromFileName(std::string const & file) const;
87 /// create the compare object and run the comparison
91 /// the object that will do the comparison
94 /// the buffer that will contain the result
95 Buffer * dest_buffer_;
96 /// the buffer that will contain the result
97 Buffer const * old_buffer_;
98 /// the buffer that will contain the result
99 Buffer const * new_buffer_;
104 } // namespace frontend
107 #endif // GUICOMPARE_H