lyx_mirror/src/frontends/qt4/ui/HSpaceUi.ui
Georg Baum ac1fd9b37f fix bug 2558: hspace support in math
The basic idea was to reuse the corresponding text space inset in the same
fashion as is already done for references. The dialog displays a different
selection for math than for text. If wanted, the additional spaces could
also be enabled for text, but that would be a file format change.
Constructs like \hspace{\mylengthvariable} that are not supported are
treated by the math parser as ERT as before.

For reasons I don't know the context menu does not work, but this is not so
important IMHO (since a left click opens the dialog).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:12:32 +00:00

206 lines
5.0 KiB
XML

<ui version="4.0" >
<class>HSpaceUi</class>
<widget class="QDialog" name="HSpaceUi" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>259</width>
<height>160</height>
</rect>
</property>
<property name="windowTitle" >
<string/>
</property>
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="1" >
<widget class="QComboBox" name="fillPatternCO" >
<property name="toolTip" >
<string>Select a fill pattern style for HFills</string>
</property>
<item>
<property name="text" >
<string>None</string>
</property>
</item>
<item>
<property name="text" >
<string>...............</string>
</property>
</item>
<item>
<property name="text" >
<string>________</string>
</property>
</item>
<item>
<property name="text" >
<string>&lt;-----------</string>
</property>
</item>
<item>
<property name="text" >
<string>-----------></string>
</property>
</item>
<item>
<property name="text" >
<string>\-----v-----/</string>
</property>
</item>
<item>
<property name="text" >
<string>/-----^-----\</string>
</property>
</item>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="spacingL" >
<property name="text" >
<string>&amp;Spacing:</string>
</property>
<property name="buddy" >
<cstring>spacingCO</cstring>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QComboBox" name="spacingCO" >
<property name="toolTip" >
<string>Supported spacing types</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="valueL" >
<property name="text" >
<string>&amp;Value:</string>
</property>
<property name="buddy" >
<cstring>valueLE</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="valueLE" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="toolTip" >
<string>Custom value. Needs spacing type "Custom".</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="LengthCombo" name="unitCO" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="fillPatternL" >
<property name="text" >
<string>&amp;Fill Pattern:</string>
</property>
<property name="buddy" >
<cstring>fillPatternCO</cstring>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="keepL" >
<property name="toolTip" >
<string/>
</property>
<property name="text" >
<string>&amp;Protect:</string>
</property>
<property name="buddy" >
<cstring>keepCB</cstring>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2" >
<widget class="QCheckBox" name="keepCB" >
<property name="toolTip" >
<string>Insert the spacing even after a line break</string>
</property>
<property name="text" >
<string/>
</property>
</widget>
</item>
<item row="4" column="0" colspan="3" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="okPB" >
<property name="text" >
<string>&amp;OK</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="applyPB" >
<property name="text" >
<string>&amp;Apply</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closePB" >
<property name="text" >
<string>&amp;Close</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>LengthCombo</class>
<extends>QComboBox</extends>
<header>LengthCombo.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>spacingCO</tabstop>
<tabstop>valueLE</tabstop>
<tabstop>okPB</tabstop>
<tabstop>applyPB</tabstop>
<tabstop>closePB</tabstop>
<tabstop>keepCB</tabstop>
</tabstops>
<includes>
<include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</ui>