]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiAbout.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiAbout.h
index f38985a017bae15d32c9aa5cb1a6db7c832643df..9b88d765affbcfa618be31d8427c67419cc476c9 100644 (file)
@@ -9,45 +9,31 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef FORMABOUT_H
-#define FORMABOUT_H
+#ifndef GUIABOUT_H
+#define GUIABOUT_H
 
-#include "GuiDialogView.h"
+#include "GuiDialog.h"
 #include "ui_AboutUi.h"
-#include <QDialog>
 
 namespace lyx {
 namespace frontend {
 
-class ControlAboutlyx;
-
-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 QController<ControlAboutlyx, GuiView<GuiAboutDialog> >
-{
 public:
-       GuiAbout(Dialog &);
-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
 } // namespace lyx
 
-#endif // FORMABOUT_H
+#endif // GUIABOUT_H