]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiAbout.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiAbout.h
index 27ed42ed79844b339f1f129fbc3e8eacb0d3377d..a8a3b7996d18b8f2051868555a7141662b290c8c 100644 (file)
 #ifndef GUIABOUT_H
 #define GUIABOUT_H
 
-#include "GuiDialogView.h"
-#include "ControlAboutlyx.h"
-#include "ui_AboutUi.h"
-
-#include <QDialog>
+#include "DialogView.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiAboutDialog : public QDialog, public Ui::AboutUi {
+class GuiAbout : public DialogView
+{
        Q_OBJECT
+
 public:
-       GuiAboutDialog(QWidget * parent = 0)
-               : QDialog(parent)
-       {
-               setupUi(this);
-               connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
-       }
-};
+       // Constructor
+       GuiAbout(GuiView & lv);
 
+private Q_SLOTS:
+       void on_closePB_clicked();
 
-class GuiAbout : public GuiView<GuiAboutDialog>
-{
-public:
-       GuiAbout(GuiDialog &);
-       /// parent controller
-       ControlAboutlyx & controller()
-       { return static_cast<ControlAboutlyx &>(this->getController()); }
-       /// parent controller
-       ControlAboutlyx const & controller() const
-       { return static_cast<ControlAboutlyx const &>(this->getController()); }
 private:
-       /// not needed
-       virtual void apply() {}
-       /// not needed
-       virtual void update_contents() {}
-       // build the dialog
-       virtual void build_dialog();
+       /// Controller stuff
+       ///@{
+       void updateView() {}
+       void dispatchParams() {}
+       bool isBufferDependent() const { return false; }
+       ///@}
+
+       struct Private;
+       Private * const d;
 };
 
 } // namespace frontend