#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);
+ GuiErrorList(GuiView & lv);
public Q_SLOTS:
- void select_adaptor(QListWidgetItem *);
-protected:
- void closeEvent(QCloseEvent *);
- void showEvent(QShowEvent *);
-private:
- GuiErrorList * form_;
-};
-
+ /// select an entry
+ void select();
+ /// open the LaTeX log
+ void viewLog();
-class GuiErrorList : public 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(GuiDialog &);
- /// parent controller
- ControlErrorList & controller()
- { return static_cast<ControlErrorList &>(this->getController()); }
- /// parent controller
- ControlErrorList const & controller() const
- { return static_cast<ControlErrorList const &>(this->getController()); }
+ /// 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_;
+ ///
+ mutable ErrorList error_list_;
+ ///
+ Buffer const * buf_;
+ /// the parent document name
+ docstring name_;
+ ///
+ bool from_master_;
};
} // namespace frontend