#include "Buffer.h"
#include "BufferView.h"
+#include "FuncRequest.h"
#include "ParIterator.h"
#include "Text.h"
connect(closePB, SIGNAL(clicked()),
this, SLOT(slotClose()));
+ connect(viewLogPB, SIGNAL(clicked()),
+ this, SLOT(viewLog()));
connect(errorsLW, SIGNAL(currentRowChanged(int)),
this, SLOT(select()));
}
+void GuiErrorList::viewLog()
+{
+ dispatch(FuncRequest(LFUN_DIALOG_SHOW, "latexlog"));
+}
+
+
void GuiErrorList::updateContents()
{
setTitle(toqstr(name_));
<rect>
<x>0</x>
<y>0</y>
- <width>367</width>
- <height>459</height>
+ <width>274</width>
+ <height>422</height>
</rect>
</property>
<property name="windowTitle" >
<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>
</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>
<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>