]> git.lyx.org Git - lyx.git/commitdiff
* direct access from the error dialog to the LaTeX log.
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 14 Nov 2009 15:52:54 +0000 (15:52 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 14 Nov 2009 15:52:54 +0000 (15:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31980 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiErrorList.cpp
src/frontends/qt4/GuiErrorList.h
src/frontends/qt4/ui/ErrorListUi.ui

index 746d3ed35d1fd52dd93b601e32eb8ae016154b85..3afc6796280b4f181b1dc23adaa01faf197d53da 100644 (file)
@@ -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_));
index af4f0b9abc778fbfb60442c882169332b567c41b..7bbf4a1f03d4e2da9bdf112efef51588c06a7931 100644 (file)
@@ -31,6 +31,8 @@ public:
 public Q_SLOTS:
        /// select an entry
        void select();
+       /// open the LaTeX log
+       void viewLog();
 
 private:
        ///
index 84dbfbb3804f685f81d221d7cba9b3d93c8569ef..fbe1d30744823026caa31efadfa8dea8244b1c31 100644 (file)
@@ -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" >
   <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>&amp;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>&amp;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>&amp;Close</string>
+      <string>View Complete &amp;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>