]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiAbout.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / GuiAbout.h
index 0be3eae0e526d7bead5b18baf336c01835eaf95f..9b88d765affbcfa618be31d8427c67419cc476c9 100644 (file)
 #ifndef GUIABOUT_H
 #define GUIABOUT_H
 
-#include "GuiDialogView.h"
-#include "ControlAboutlyx.h"
+#include "GuiDialog.h"
 #include "ui_AboutUi.h"
 
-#include <QDialog>
-
 namespace lyx {
 namespace frontend {
 
-class GuiAboutDialog : public QDialog, public Ui::AboutUi {
+class GuiAbout : public GuiDialog, public Ui::AboutUi
+{
        Q_OBJECT
-public:
-       GuiAboutDialog(QWidget * parent = 0)
-               : QDialog(parent)
-       {
-               setupUi(this);
-               connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
-       }
-};
-
 
-class GuiAbout : public GuiView<GuiAboutDialog>
-{
 public:
-       GuiAbout(Dialog &);
-       /// 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();
+       // Constructor
+       GuiAbout(GuiView & lv);
+
+       // Controller stuff
+       bool initialiseParams(std::string const &) { return true; }
+       void clearParams() {}
+       void dispatchParams() {}
+       bool isBufferDependent() const { return false; }
 };
 
 } // namespace frontend