]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiErrorList.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiErrorList.h
index 2ed5f72da7a608f42794060820a6d203cc71e54e..4472dc5a851f92bbde85d5a659d34345df32c345 100644 (file)
 #ifndef GUIERRORLIST_H
 #define GUIERRORLIST_H
 
-#include "GuiDialogView.h"
-#include "ControlErrorList.h"
+#include "GuiDialog.h"
+#include "ErrorList.h"
 #include "ui_ErrorListUi.h"
 
-#include <QDialog>
-
 class QListWidgetItem;
 
 namespace lyx {
 namespace frontend {
 
-class GuiErrorList;
-
-class GuiErrorListDialog : public QDialog, public Ui::ErrorListUi {
+class GuiErrorList : public GuiDialog, public Ui::ErrorListUi
+{
        Q_OBJECT
-public:
-       GuiErrorListDialog(GuiErrorList * form);
-
-public Q_SLOTS:
-       void select_adaptor(QListWidgetItem *);
-protected:
-       void closeEvent(QCloseEvent *);
-       void showEvent(QShowEvent *);
-private:
-       GuiErrorList * form_;
-};
 
-
-class GuiErrorList : public GuiView<GuiErrorListDialog>
-{
 public:
-       friend class GuiErrorListDialog;
+       GuiErrorList(GuiView & lv);
 
-       GuiErrorList(GuiDialog &);
-       /// parent controller
-       ControlErrorList & controller()
-       { return static_cast<ControlErrorList &>(this->getController()); }
-       /// parent controller
-       ControlErrorList const & controller() const
-       { return static_cast<ControlErrorList const &>(this->getController()); }
-private:
+public Q_SLOTS:
        /// select an entry
        void select(QListWidgetItem *);
-       /// required apply
-       virtual void apply() {}
-       /// build dialog
-       virtual void build_dialog();
+
+private:
+       ///
+       void showEvent(QShowEvent *);
        /// update contents
-       virtual void update_contents();
+       void updateContents();
+       ///
+       bool isBufferDependent() const { return true; }
+       ///
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams() {}
+       ///
+       void dispatchParams() {}
+
+       /// goto this error in the parent bv
+       void goTo(int item);
+       ///
+       ErrorList const & errorList() const;
+private:
+       ///
+       std::string error_type_;
+       /// the parent document name
+       docstring name_;
 };
 
 } // namespace frontend