this, SIGNAL(changed()));
connect(latexPaperSizeCO, SIGNAL(activated(int)),
this, SIGNAL(changed()));
+
+#if defined(__CYGWIN__) || defined(_WIN32)
+ pathCB->setVisible(true);
+ connect(pathCB, SIGNAL(clicked()),
+ this, SIGNAL(changed()));
+#else
+ pathCB->setVisible(false);
+#endif
+
}
rc.view_dvi_paper_option = fromqstr(latexDviPaperED->text());
rc.default_papersize =
form_->controller().toPaperSize(latexPaperSizeCO->currentIndex());
+#if defined(__CYGWIN__) || defined(_WIN32)
+ rc.windows_style_tex_paths = pathCB->isChecked();
+#endif
}
latexDviPaperED->setText(toqstr(rc.view_dvi_paper_option));
latexPaperSizeCO->setCurrentIndex(
form_->controller().fromPaperSize(rc.default_papersize));
+#if defined(__CYGWIN__) || defined(_WIN32)
+ pathCB->setChecked(rc.windows_style_tex_paths);
+#endif
}
}
-/////////////////////////////////////////////////////////////////////
-//
-// PrefCygwinPath
-//
-/////////////////////////////////////////////////////////////////////
-
-PrefCygwinPath::PrefCygwinPath(QWidget * parent)
- : PrefModule(_("Paths"), 0, parent)
-{
- setupUi(this);
- connect(pathCB, SIGNAL(clicked()), this, SIGNAL(changed()));
-}
-
-
-void PrefCygwinPath::apply(LyXRC & rc) const
-{
- rc.windows_style_tex_paths = pathCB->isChecked();
-}
-
-
-void PrefCygwinPath::update(LyXRC const & rc)
-{
- pathCB->setChecked(rc.windows_style_tex_paths);
-}
-
-
/////////////////////////////////////////////////////////////////////
//
// PrefDisplay
this, SIGNAL(changed()));
maxAgeLE->setValidator(new QDoubleValidator(maxAgeLE));
- converterDefGB->setFocusProxy(convertersLW);
+ //converterDefGB->setFocusProxy(convertersLW);
}
add(new PrefPlaintext);
add(new PrefLatex(form_));
-#if defined(__CYGWIN__) || defined(_WIN32)
- add(new PrefCygwinPath);
-#endif
-
-
PrefConverters * converters = new PrefConverters(form_);
PrefFileformats * formats = new PrefFileformats(form_);
connect(formats, SIGNAL(formatsChanged()),
<x>0</x>
<y>0</y>
<width>427</width>
- <height>285</height>
+ <height>308</height>
</rect>
</property>
<property name="windowTitle" >
<property name="spacing" >
<number>6</number>
</property>
- <item row="2" column="0" colspan="3" >
+ <item row="7" column="0" colspan="3" >
<widget class="QCheckBox" name="latexAutoresetCB" >
<property name="toolTip" >
<string>Set class options to default on class change</string>
</property>
</widget>
</item>
- <item row="4" column="0" colspan="3" >
+ <item row="8" column="0" colspan="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
<property name="sizeHint" >
<size>
<width>409</width>
- <height>75</height>
+ <height>20</height>
</size>
</property>
</spacer>
</item>
+ <item row="6" column="0" colspan="3" >
+ <widget class="QCheckBox" name="pathCB" >
+ <property name="enabled" >
+ <bool>true</bool>
+ </property>
+ <property name="toolTip" >
+ <string/>
+ </property>
+ <property name="whatsThis" >
+ <string>Select if LyX should output Windows-style paths rather than Posix-style paths to LaTeX files. Useful if you're using the native Windows MikTeX rather than the Cygwin teTeX.</string>
+ </property>
+ <property name="layoutDirection" >
+ <enum>Qt::LeftToRight</enum>
+ </property>
+ <property name="text" >
+ <string>&Use Windows-style paths in LaTeX files</string>
+ </property>
+ </widget>
+ </item>
<item row="1" column="0" >
<widget class="QLabel" name="latexPaperSizeLA" >
<property name="text" >
</property>
</widget>
</item>
+ <item row="2" column="1" colspan="2" >
+ <widget class="QLineEdit" name="latexChecktexED" >
+ <property name="toolTip" >
+ <string>CheckTeX start options and flags</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0" >
+ <widget class="QLabel" name="latexIndexLA" >
+ <property name="text" >
+ <string>&Index command:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>latexIndexED</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0" >
+ <widget class="QLabel" name="latexBibtexLA" >
+ <property name="text" >
+ <string>&BibTeX command:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>latexBibtexED</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="0" >
+ <widget class="QLabel" name="latexDviPaperLA" >
+ <property name="text" >
+ <string>&DVI viewer paper size options:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>latexDviPaperED</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" >
+ <widget class="QLabel" name="latexChecktexLA" >
+ <property name="text" >
+ <string>Chec&kTeX command:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>latexChecktexED</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="1" colspan="2" >
+ <widget class="QLineEdit" name="latexBibtexED" >
+ <property name="toolTip" >
+ <string>BibTeX command and options</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="1" colspan="2" >
+ <widget class="QLineEdit" name="latexDviPaperED" >
+ <property name="toolTip" >
+ <string>Optional paper size flag (-paper) for some DVI viewers</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="1" colspan="2" >
+ <widget class="QLineEdit" name="latexIndexED" >
+ <property name="toolTip" >
+ <string>Index command and options (makeindex, xindy)</string>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="2" row="0" column="2" >
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType" >
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>21</width>
+ <height>52</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item row="0" column="1" >
<widget class="QLineEdit" name="latexEncodingED" />
</item>
</item>
</widget>
</item>
- <item rowspan="2" row="0" column="2" >
- <spacer>
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType" >
- <enum>QSizePolicy::Expanding</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>178</width>
- <height>54</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="3" column="0" colspan="3" >
- <widget class="QGroupBox" name="GroupBox3" >
- <property name="title" >
- <string>External Applications</string>
- </property>
- <layout class="QGridLayout" >
- <property name="margin" >
- <number>11</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item row="0" column="1" >
- <widget class="QLineEdit" name="latexChecktexED" >
- <property name="toolTip" >
- <string>CheckTeX start options and flags</string>
- </property>
- </widget>
- </item>
- <item row="0" column="0" >
- <widget class="QLabel" name="latexChecktexLA" >
- <property name="text" >
- <string>Chec&kTeX command:</string>
- </property>
- <property name="buddy" >
- <cstring>latexChecktexED</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="1" >
- <widget class="QLineEdit" name="latexBibtexED" >
- <property name="toolTip" >
- <string>BibTeX command and options</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0" >
- <widget class="QLabel" name="latexBibtexLA" >
- <property name="text" >
- <string>&BibTeX command:</string>
- </property>
- <property name="buddy" >
- <cstring>latexChecktexED</cstring>
- </property>
- </widget>
- </item>
- <item row="2" column="1" >
- <widget class="QLineEdit" name="latexIndexED" >
- <property name="toolTip" >
- <string>Index command and options (makeindex, xindy)</string>
- </property>
- </widget>
- </item>
- <item row="2" column="0" >
- <widget class="QLabel" name="latexIndexLA" >
- <property name="text" >
- <string>Index command:</string>
- </property>
- <property name="buddy" >
- <cstring>latexDviPaperED</cstring>
- </property>
- </widget>
- </item>
- <item row="3" column="0" >
- <widget class="QLabel" name="latexDviPaperLA" >
- <property name="text" >
- <string>DVI viewer paper size options:</string>
- </property>
- <property name="buddy" >
- <cstring>latexDviPaperED</cstring>
- </property>
- </widget>
- </item>
- <item row="3" column="1" >
- <widget class="QLineEdit" name="latexDviPaperED" >
- <property name="toolTip" >
- <string>Optional paper size flag (-paper) for some DVI viewers</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
</layout>
</widget>
- <pixmapfunction></pixmapfunction>
- <includes>
- <include location="local" >qt_helpers.h</include>
- </includes>
<tabstops>
<tabstop>latexEncodingED</tabstop>
<tabstop>latexPaperSizeCO</tabstop>
- <tabstop>latexAutoresetCB</tabstop>
<tabstop>latexChecktexED</tabstop>
+ <tabstop>latexBibtexED</tabstop>
+ <tabstop>latexIndexED</tabstop>
<tabstop>latexDviPaperED</tabstop>
+ <tabstop>pathCB</tabstop>
+ <tabstop>latexAutoresetCB</tabstop>
</tabstops>
+ <includes>
+ <include location="local" >qt_helpers.h</include>
+ </includes>
<resources/>
<connections/>
</ui>