X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiErrorList.h;h=b36255a150aa879422632e87f6f9810b7d6b0aed;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=2ed5f72da7a608f42794060820a6d203cc71e54e;hpb=212386be8a1573fb52b5da718961835816a3c8e2;p=lyx.git diff --git a/src/frontends/qt4/GuiErrorList.h b/src/frontends/qt4/GuiErrorList.h index 2ed5f72da7..b36255a150 100644 --- a/src/frontends/qt4/GuiErrorList.h +++ b/src/frontends/qt4/GuiErrorList.h @@ -12,55 +12,55 @@ #ifndef GUIERRORLIST_H #define GUIERRORLIST_H -#include "GuiDialogView.h" -#include "ControlErrorList.h" +#include "GuiDialog.h" +#include "ErrorList.h" #include "ui_ErrorListUi.h" -#include - 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 -{ -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(this->getController()); } - /// parent controller - ControlErrorList const & controller() const - { return static_cast(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_; + /// the parent document name + docstring name_; + /// + bool from_master_; }; } // namespace frontend