mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* 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
This commit is contained in:
parent
54b4b8e6b4
commit
b7c0fe942b
@ -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_));
|
||||
|
@ -31,6 +31,8 @@ public:
|
||||
public Q_SLOTS:
|
||||
/// select an entry
|
||||
void select();
|
||||
/// open the LaTeX log
|
||||
void viewLog();
|
||||
|
||||
private:
|
||||
///
|
||||
|
@ -5,8 +5,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>367</width>
|
||||
<height>459</height>
|
||||
<width>274</width>
|
||||
<height>422</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
@ -15,8 +15,29 @@
|
||||
<property name="sizeGripEnabled" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout" >
|
||||
<item row="0" column="0" >
|
||||
<layout class="QGridLayout" >
|
||||
<property name="margin" >
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item row="3" column="0" colspan="3" >
|
||||
<widget class="QTextBrowser" name="descriptionTB" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>For more information, refer to the complete log.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="2" >
|
||||
<widget class="QLabel" name="errorsLabel" >
|
||||
<property name="text" >
|
||||
<string>&Errors:</string>
|
||||
@ -26,35 +47,21 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2" >
|
||||
<widget class="QListWidget" name="errorsLW" >
|
||||
<property name="toolTip" >
|
||||
<string>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.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" >
|
||||
<item row="2" column="0" colspan="2" >
|
||||
<widget class="QLabel" name="descriptionLabel" >
|
||||
<property name="text" >
|
||||
<string>Description:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2" >
|
||||
<widget class="QTextBrowser" name="descriptionTB" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>For more information, see Document -> LaTeX log.</string>
|
||||
<item row="4" column="2" >
|
||||
<widget class="QPushButton" name="closePB" >
|
||||
<property name="text" >
|
||||
<string>&Close</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" >
|
||||
<item row="4" column="1" >
|
||||
<spacer>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -62,18 +69,29 @@ and jump the cursor to the location in the document where the error occured.</st
|
||||
<property name="sizeType" >
|
||||
<enum>QSizePolicy::Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
<width>121</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="4" column="1" >
|
||||
<widget class="QPushButton" name="closePB" >
|
||||
<item row="4" column="0" >
|
||||
<widget class="QPushButton" name="viewLogPB" >
|
||||
<property name="toolTip" >
|
||||
<string>Open the LaTeX Log File dialog</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Close</string>
|
||||
<string>View Complete &Log...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3" >
|
||||
<widget class="QListWidget" name="errorsLW" >
|
||||
<property name="toolTip" >
|
||||
<string>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.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user