X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiErrorList.h;h=b36255a150aa879422632e87f6f9810b7d6b0aed;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=ec3ef9496d220b150f3c16d1280730ad717770d3;hpb=a1cec91afaca91968b46e695533c10ad2a3f73d3;p=lyx.git diff --git a/src/frontends/qt4/GuiErrorList.h b/src/frontends/qt4/GuiErrorList.h index ec3ef9496d..b36255a150 100644 --- a/src/frontends/qt4/GuiErrorList.h +++ b/src/frontends/qt4/GuiErrorList.h @@ -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 - 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 > -{ -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