From: Jürgen Spitzmüller Date: Sat, 14 Nov 2009 15:52:54 +0000 (+0000) Subject: * direct access from the error dialog to the LaTeX log. X-Git-Tag: 2.0.0~5153 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b7c0fe942b351a40c129373faa9a25730aecd417;p=features.git * direct access from the error dialog to the LaTeX log. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31980 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index 746d3ed35d..3afc679628 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -16,6 +16,7 @@ #include "Buffer.h" #include "BufferView.h" +#include "FuncRequest.h" #include "ParIterator.h" #include "Text.h" @@ -41,6 +42,8 @@ GuiErrorList::GuiErrorList(GuiView & lv) connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); + connect(viewLogPB, SIGNAL(clicked()), + this, SLOT(viewLog())); connect(errorsLW, SIGNAL(currentRowChanged(int)), this, SLOT(select())); @@ -68,6 +71,12 @@ void GuiErrorList::select() } +void GuiErrorList::viewLog() +{ + dispatch(FuncRequest(LFUN_DIALOG_SHOW, "latexlog")); +} + + void GuiErrorList::updateContents() { setTitle(toqstr(name_)); diff --git a/src/frontends/qt4/GuiErrorList.h b/src/frontends/qt4/GuiErrorList.h index af4f0b9abc..7bbf4a1f03 100644 --- a/src/frontends/qt4/GuiErrorList.h +++ b/src/frontends/qt4/GuiErrorList.h @@ -31,6 +31,8 @@ public: public Q_SLOTS: /// select an entry void select(); + /// open the LaTeX log + void viewLog(); private: /// diff --git a/src/frontends/qt4/ui/ErrorListUi.ui b/src/frontends/qt4/ui/ErrorListUi.ui index 84dbfbb380..fbe1d30744 100644 --- a/src/frontends/qt4/ui/ErrorListUi.ui +++ b/src/frontends/qt4/ui/ErrorListUi.ui @@ -5,8 +5,8 @@ 0 0 - 367 - 459 + 274 + 422 @@ -15,8 +15,29 @@ true - - + + + 9 + + + 6 + + + + + + 3 + 0 + 0 + 0 + + + + For more information, refer to the complete log. + + + + &Errors: @@ -26,35 +47,21 @@ - - - - Selecting an error will show the error message in the panel below, -and jump the cursor to the location in the document where the error occured. - - - - + Description: - - - - - 0 - 0 - - - - For more information, see Document -> LaTeX log. + + + + &Close - + Qt::Horizontal @@ -62,18 +69,29 @@ and jump the cursor to the location in the document where the error occured. QSizePolicy::Expanding - + - 20 - 20 + 121 + 30 - - + + + + Open the LaTeX Log File dialog + - &Close + View Complete &Log... + + + + + + + Selecting an error will show the error message in the panel below, +and jump the cursor to the location in the document where the error occured.