]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiErrorList.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiErrorList.h
index ec3ef9496d220b150f3c16d1280730ad717770d3..b36255a150aa879422632e87f6f9810b7d6b0aed 100644 (file)
@@ -9,59 +9,61 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QERRORLIST_H
-#define QERRORLIST_H
+#ifndef GUIERRORLIST_H
+#define GUIERRORLIST_H
 
-#include "GuiDialogView.h"
+#include "GuiDialog.h"
+#include "ErrorList.h"
 #include "ui_ErrorListUi.h"
 
-#include <QDialog>
-
 class QListWidgetItem;
-class QCloseEvent;
-class QShowEvent;
 
 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);
+       GuiErrorList(GuiView & lv);
 
 public Q_SLOTS:
-       void select_adaptor(QListWidgetItem *);
-protected:
-       void closeEvent(QCloseEvent *);
-       void showEvent(QShowEvent *);
-private:
-       GuiErrorList * form_;
-};
-
-
-class ControlErrorList;
+       /// select an entry
+       void select();
+       /// open the LaTeX log
+       void viewLog();
 
-class GuiErrorList :
-       public QController<ControlErrorList, GuiView<GuiErrorListDialog> >
-{
-public:
-       friend class GuiErrorListDialog;
+private:
+       ///
+       void showEvent(QShowEvent *);
+       ///
+       void paramsToDialog();
+       ///
+       bool isBufferDependent() const { return true; }
+       ///
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams() {}
+       ///
+       void dispatchParams() {}
+       ///
+       bool canApply() const { return true; }
 
-       GuiErrorList(Dialog &);
+       /// goto this error in the parent bv. Returns success.
+       bool goTo(int item);
+       ///
+       ErrorList const & errorList() const;
 private:
-       /// select an entry
-       void select(QListWidgetItem *);
-       /// required apply
-       virtual void apply() {}
-       /// build dialog
-       virtual void build_dialog();
-       /// update contents
-       virtual void update_contents();
+       ///
+       std::string error_type_;
+       /// the parent document name
+       docstring name_;
+       ///
+       bool from_master_;
 };
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // QERRORLIST_H
+#endif // GUIERRORLIST_H