]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiChanges.h
cosmetics
[lyx.git] / src / frontends / qt4 / GuiChanges.h
index 9df8b9f715526e03851f423d2a031cf15b7b03bc..ed895f0dfc2f3b4d7c4c0ed3274b0ca9f8d784ac 100644 (file)
@@ -9,64 +9,35 @@
  * 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