]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiErrorList.h
GuiBibtex: Use appropriate title when using Biblatex
[lyx.git] / src / frontends / qt4 / GuiErrorList.h
index 4687debf714711b04bb8d8fc26ab1fc86eef4cda..fe4393d581e4495fdd2ebb87d1a006623c3353d9 100644 (file)
@@ -13,7 +13,7 @@
 #define GUIERRORLIST_H
 
 #include "GuiDialog.h"
-#include "ControlErrorList.h"
+#include "ErrorList.h"
 #include "ui_ErrorListUi.h"
 
 class QListWidgetItem;
@@ -21,25 +21,52 @@ class QListWidgetItem;
 namespace lyx {
 namespace frontend {
 
-class GuiErrorListDialog : public GuiDialog, public Ui::ErrorListUi
+class GuiErrorList : public GuiDialog, public Ui::ErrorListUi
 {
        Q_OBJECT
 
 public:
-       GuiErrorListDialog(LyXView & lv);
+       GuiErrorList(GuiView & lv);
 
 public Q_SLOTS:
-       void select_adaptor(QListWidgetItem *);
+       /// select an entry
+       void select();
+       /// open the LaTeX log
+       void viewLog();
+       /// show the output file despite compilation errors
+       void showAnyway();
 
 private:
-       void closeEvent(QCloseEvent *);
+       ///
        void showEvent(QShowEvent *);
-       /// parent controller
-       ControlErrorList & controller() const;
-       /// select an entry
-       void select(QListWidgetItem *);
-       /// update contents
-       void update_contents();
+       ///
+       void paramsToDialog();
+       ///
+       bool isBufferDependent() const { return true; }
+       ///
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams() {}
+       ///
+       void dispatchParams() {}
+       ///
+       bool canApply() const { return true; }
+
+       /// goto this error in the parent bv. Returns success.
+       bool goTo(int item);
+       ///
+       ErrorList const & errorList() const;
+private:
+       ///
+       std::string error_type_;
+       ///
+       mutable ErrorList error_list_;
+       ///
+       Buffer const * buf_;
+       /// the parent document name
+       docstring name_;
+       ///
+       bool from_master_;
 };
 
 } // namespace frontend