* Full author contact details are available in file CREDITS.
*/
-#ifndef QCHANGES_H
-#define QCHANGES_H
+#ifndef GUICHANGES_H
+#define GUICHANGES_H
-#include "GuiDialogView.h"
+#include "GuiDialog.h"
+#include "ControlChanges.h"
#include "ui_ChangesUi.h"
-#include <QCloseEvent>
-#include <QDialog>
namespace lyx {
namespace frontend {
-class GuiChanges;
-
-class GuiChangesDialog : public QDialog, public Ui::ChangesUi {
+class GuiChangesDialog : public GuiDialog, public Ui::ChangesUi
+{
Q_OBJECT
-public:
- GuiChangesDialog(GuiChanges * form);
-
-protected Q_SLOTS:
-
- virtual void nextPressed();
- virtual void acceptPressed();
- virtual void rejectPressed();
-
-protected:
- virtual void closeEvent(QCloseEvent * e);
-
-private:
- GuiChanges * form_;
-};
-
-class ControlChanges;
-
-class GuiChanges
- : public QController<ControlChanges, GuiView<GuiChangesDialog> >
-{
public:
- friend class GuiChangesDialog;
+ GuiChangesDialog(LyXView & lv);
- GuiChanges(Dialog &);
-
- void accept();
-
- void reject();
-
- void next();
+protected Q_SLOTS:
+ void nextPressed();
+ void acceptPressed();
+ void rejectPressed();
private:
- /// Apply changes
- virtual void apply() {};
- /// update
- virtual void update_contents();
- /// build the dialog
- virtual void build_dialog();
+ void closeEvent(QCloseEvent * e);
+ ControlChanges & controller();
+ void updateContents();
};
} // namespace frontend
} // namespace lyx
-#endif // QCHANGES_H
+#endif // GUICHANGES_H