mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-17 00:30:55 +00:00
1717ef203c
variable. This is done in the preferences, much like as the PATH prefix. A single '.' in the paths will get replaced with the current document dir and also non-absolute paths will be prefixed with that dir. The default semantics of TEXINPUTS apply, such that, for example, if a path is terminated with a double slash, all subdirectories will be also searched by both the TeX engine and ancillary programs such as dvi previewers or dvips. As an example, if the prefix is set to ".:figs", the TEXINPUTS variable will be set as ".:<docdir>:<docdir>/figs:$ORIGTEXINPUTS", where <docdir> is the document directory. The initial '.' is necessary to address the actual current dir (this will be the temp dir at preview time), while if TEXINPUTS was initially unset, such that $ORIGTEXINPUTS is empty, a colon (or semicolon on Windows) will end the path list. This is very important, because we don't want to replace the system directories but to complement them and, in order to do that, an empty element has to be present in the list. Indeed, according to the TEXINPUTS semantics, an empty element means the standard search path. This works whether TEXINPUTS is originally set or not, because if the original TEXINPUTS starts with a colon (meaning that the standard search path is wanted there) we will have an empty element at that point, otherwise the final colon will simply serve as a path separator. Of course, on Windows a ';' has to be used as a path separator. LyX will take care of transforming the platform path list into one understandable by the TeX engine. For example, this will be the case for a Cygwin version of LyX using a native Windows TeX engine or viceversa. I tested all of this and it works for me. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38681 a592a061-630c-0410-9148-cb99ea01b6c8
268 lines
7.1 KiB
XML
268 lines
7.1 KiB
XML
<ui version="4.0" >
|
|
<class>PrefPathsUi</class>
|
|
<widget class="QWidget" name="PrefPathsUi" >
|
|
<property name="geometry" >
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>347</width>
|
|
<height>311</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="12" column="0" colspan="3" >
|
|
<spacer>
|
|
<property name="orientation" >
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType" >
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0" >
|
|
<size>
|
|
<width>329</width>
|
|
<height>16</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="10" column="0" >
|
|
<widget class="QLabel" name="pathPrefixLA" >
|
|
<property name="text" >
|
|
<string>&PATH prefix:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>pathPrefixED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="10" column="1" colspan="2" >
|
|
<widget class="QLineEdit" name="pathPrefixED"/>
|
|
</item>
|
|
<item row="11" column="0">
|
|
<widget class="QLabel" name="texinputsPrefixLA">
|
|
<property name="text">
|
|
<string>TEX&INPUTS prefix:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>texinputsPrefixED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="11" column="1" colspan="2">
|
|
<widget class="QLineEdit" name="texinputsPrefixED"/>
|
|
</item>
|
|
<item row="6" column="2" >
|
|
<widget class="QPushButton" name="thesaurusDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0" >
|
|
<widget class="QLabel" name="thesaurusDirLA" >
|
|
<property name="text" >
|
|
<string>T&hesaurus dictionaries:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>thesaurusDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1" >
|
|
<widget class="QLineEdit" name="thesaurusDirED" />
|
|
</item>
|
|
<item row="5" column="2" >
|
|
<widget class="QPushButton" name="tempDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1" >
|
|
<widget class="QLineEdit" name="tempDirED" />
|
|
</item>
|
|
<item row="5" column="0" >
|
|
<widget class="QLabel" name="tempDirLA" >
|
|
<property name="text" >
|
|
<string>&Temporary directory:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>tempDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="2" >
|
|
<widget class="QPushButton" name="lyxserverDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1" >
|
|
<widget class="QLineEdit" name="lyxserverDirED" />
|
|
</item>
|
|
<item row="4" column="0" >
|
|
<widget class="QLabel" name="lyxserverDirLA" >
|
|
<property name="text" >
|
|
<string>Ly&XServer pipe:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>lyxserverDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="2" >
|
|
<widget class="QPushButton" name="backupDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1" >
|
|
<widget class="QLineEdit" name="backupDirED" />
|
|
</item>
|
|
<item row="3" column="0" >
|
|
<widget class="QLabel" name="backupDirLA" >
|
|
<property name="text" >
|
|
<string>&Backup directory:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>backupDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="2" >
|
|
<widget class="QPushButton" name="exampleDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1" >
|
|
<widget class="QLineEdit" name="exampleDirED" />
|
|
</item>
|
|
<item row="2" column="0" >
|
|
<widget class="QLabel" name="exampleDirLA" >
|
|
<property name="text" >
|
|
<string>&Example files:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>exampleDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="2" >
|
|
<widget class="QPushButton" name="templateDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1" >
|
|
<widget class="QLineEdit" name="templateDirED" />
|
|
</item>
|
|
<item row="1" column="0" >
|
|
<widget class="QLabel" name="templateDirLA" >
|
|
<property name="text" >
|
|
<string>&Document templates:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>templateDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2" >
|
|
<widget class="QPushButton" name="workingDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1" >
|
|
<widget class="QLineEdit" name="workingDirED" />
|
|
</item>
|
|
<item row="0" column="0" >
|
|
<widget class="QLabel" name="workingDirLA" >
|
|
<property name="text" >
|
|
<string>&Working directory:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>workingDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="0" >
|
|
<widget class="QLabel" name="hunspellDirLA" >
|
|
<property name="text" >
|
|
<string>H&unspell dictionaries:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>hunspellDirED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="1" >
|
|
<widget class="QLineEdit" name="hunspellDirED" />
|
|
</item>
|
|
<item row="8" column="2" >
|
|
<widget class="QPushButton" name="hunspellDirPB" >
|
|
<property name="text" >
|
|
<string>Browse...</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>workingDirED</tabstop>
|
|
<tabstop>workingDirPB</tabstop>
|
|
<tabstop>templateDirED</tabstop>
|
|
<tabstop>templateDirPB</tabstop>
|
|
<tabstop>backupDirED</tabstop>
|
|
<tabstop>backupDirPB</tabstop>
|
|
<tabstop>lyxserverDirED</tabstop>
|
|
<tabstop>lyxserverDirPB</tabstop>
|
|
<tabstop>tempDirED</tabstop>
|
|
<tabstop>tempDirPB</tabstop>
|
|
</tabstops>
|
|
<includes>
|
|
<include location="local" >qt_i18n.h</include>
|
|
</includes>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|