X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiLog.h;h=2a9ebb6e7a44d5233b2da13c9bd643bc1f7aa5d9;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=6be299386ac9e06de8574b984308e9b1dc428c81;hpb=a5f7d951d15a4955ce8fff66643e86d7769c7adb;p=lyx.git diff --git a/src/frontends/qt4/GuiLog.h b/src/frontends/qt4/GuiLog.h index 6be299386a..2a9ebb6e7a 100644 --- a/src/frontends/qt4/GuiLog.h +++ b/src/frontends/qt4/GuiLog.h @@ -24,20 +24,27 @@ namespace frontend { class LogHighlighter; -class GuiLog : public GuiDialog, public Ui::LogUi, public Controller +class GuiLog : public GuiDialog, public Ui::LogUi { Q_OBJECT public: - GuiLog(LyXView & lv); + GuiLog(GuiView & lv); private Q_SLOTS: void updateContents(); + /// copy log to clipboard + void on_copyPB_clicked(); + /// find content + void find(); + /// jump to next error message + void on_nextErrorPB_clicked(); + /// jump to next warning + void on_nextWarningPB_clicked(); + /// Log type changed + void typeChanged(int); private: - void closeEvent(QCloseEvent * e); - /// parent controller - Controller & controller() { return *this; } /// Apply changes void applyView() {} @@ -59,6 +66,10 @@ private: docstring title() const; /// put the log file into the ostream void getContents(std::ostream & ss) const; + /// go to the next occurence of the RegExp + void goTo(QRegExp const & exp) const; + /// does the document after cursor position contain the RegExp? + bool contains(QRegExp const & exp) const; private: /// Recognized log file-types