lyx_mirror/src/frontends/qt4/ui/LaTeXUi.ui
Jürgen Spitzmüller d45ca67d1d ** fix bug 2114. Fileformat change.
** fix bug 5343 (patch from Richard, prerequisite for the other fix)

* Buffer.cpp:
	- increment format to 343
* src/BufferParams.{cpp,h}:
	- new param \use_default_options that allows to select/deselect
	  the "Other" class options defined in the layout file.
* src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/LaTeXUi.ui:
	- add GUI to set \use_default_options, display predefined options in the dialog
	- update dialog correctly on class change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 09:36:00 +00:00

323 lines
8.8 KiB
XML

<ui version="4.0" >
<class>LaTeXUi</class>
<widget class="QWidget" name="LaTeXUi" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>381</width>
<height>449</height>
</rect>
</property>
<property name="windowTitle" >
<string/>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="4" column="0" colspan="4" >
<widget class="QGroupBox" name="modulesGB" >
<property name="title" >
<string>Modules</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="6" column="0" colspan="3" >
<widget class="QTextBrowser" name="infoML" />
</item>
<item row="5" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>80</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="1" >
<widget class="QPushButton" name="downPB" >
<property name="text" >
<string>Do&amp;wn</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QPushButton" name="upPB" >
<property name="text" >
<string>&amp;Up</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="deletePB" >
<property name="text" >
<string>De&amp;lete</string>
</property>
</widget>
</item>
<item rowspan="5" row="1" column="2" >
<widget class="QListView" name="selectedLV" >
<property name="editTriggers" >
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="addPB" >
<property name="text" >
<string>A&amp;dd</string>
</property>
</widget>
</item>
<item rowspan="5" row="1" column="0" >
<widget class="QListView" name="availableLV" >
<property name="editTriggers" >
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QLabel" name="selmodL" >
<property name="text" >
<string>S&amp;elected:</string>
</property>
<property name="buddy" >
<cstring>selectedLV</cstring>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="availmodL" >
<property name="text" >
<string>A&amp;vailable:</string>
</property>
<property name="buddy" >
<cstring>availableLV</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="0" colspan="4" >
<widget class="QGroupBox" name="childDocGB" >
<property name="toolTip" >
<string>Select if the current document is included to a master file</string>
</property>
<property name="statusTip" >
<string/>
</property>
<property name="title" >
<string>Select de&amp;fault master document</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="childDocLA" >
<property name="text" >
<string>&amp;Master:</string>
</property>
<property name="buddy" >
<cstring>childDocLE</cstring>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="childDocPB" >
<property name="text" >
<string>&amp;Browse...</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="childDocLE" >
<property name="toolTip" >
<string>Enter the name of the default master document</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="psdriverCO" >
<property name="duplicatesEnabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="psdriverL" >
<property name="text" >
<string>&amp;Postscript driver:</string>
</property>
<property name="buddy" >
<cstring>psdriverCO</cstring>
</property>
</widget>
</item>
<item row="2" column="2" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>261</width>
<height>22</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QComboBox" name="classCO" >
<property name="maxVisibleItems" >
<number>20</number>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="layoutPB" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Click to select a local document class definition file</string>
</property>
<property name="text" >
<string>&amp;Local Layout...</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="classL" >
<property name="text" >
<string>Document &amp;class:</string>
</property>
<property name="buddy" >
<cstring>classCO</cstring>
</property>
</widget>
</item>
<item row="1" column="0" colspan="4" >
<widget class="QGroupBox" name="optionsGB" >
<property name="title" >
<string>Class options</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item rowspan="2" row="0" column="1" >
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="defaultOptionsLE" >
<property name="toolTip" >
<string>The options that are predefined in the layout file. Click to the left to select/deselect.</string>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="optionsLE" />
</item>
</layout>
</item>
<item row="0" column="0" >
<widget class="QCheckBox" name="defaultOptionsCB" >
<property name="toolTip" >
<string>Enable to use the options that are predefined in the layout file</string>
</property>
<property name="text" >
<string>P&amp;redefined:</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="optionsL" >
<property name="text" >
<string>Cust&amp;om:</string>
</property>
<property name="buddy" >
<cstring>optionsLE</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>classCO</tabstop>
<tabstop>optionsLE</tabstop>
<tabstop>psdriverCO</tabstop>
<tabstop>availableLV</tabstop>
<tabstop>addPB</tabstop>
<tabstop>deletePB</tabstop>
<tabstop>upPB</tabstop>
<tabstop>downPB</tabstop>
<tabstop>selectedLV</tabstop>
<tabstop>infoML</tabstop>
</tabstops>
<includes>
<include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections>
<connection>
<sender>defaultOptionsCB</sender>
<signal>toggled(bool)</signal>
<receiver>defaultOptionsLE</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>63</x>
<y>79</y>
</hint>
<hint type="destinationlabel" >
<x>237</x>
<y>82</y>
</hint>
</hints>
</connection>
</connections>
</ui>