]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/ui/WrapUi.ui
Embedding: add embedCB checkboxes to IncludeUi and ExternalUi
[lyx.git] / src / frontends / qt4 / ui / WrapUi.ui
index 1dc89b7ff0b3dc9d61eedb4c4d435b4566209d22..48723ed7fbd7d9e2482de9248508ab55ef3f4d7f 100644 (file)
@@ -1,15 +1,12 @@
 <ui version="4.0" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
- <class>QWrapUi</class>
- <widget class="QDialog" name="QWrapUi" >
+ <class>WrapUi</class>
+ <widget class="QDialog" name="WrapUi" >
   <property name="geometry" >
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>369</width>
-    <height>111</height>
+    <width>359</width>
+    <height>152</height>
    </rect>
   </property>
   <property name="windowTitle" >
   <property name="sizeGripEnabled" >
    <bool>true</bool>
   </property>
-  <layout class="QVBoxLayout" >
+  <layout class="QGridLayout" >
    <property name="margin" >
-    <number>11</number>
+    <number>9</number>
    </property>
    <property name="spacing" >
     <number>6</number>
    </property>
-   <item>
-    <layout class="QGridLayout" >
-     <property name="margin" >
-      <number>0</number>
-     </property>
-     <property name="spacing" >
-      <number>6</number>
-     </property>
-     <item row="0" column="0" >
-      <widget class="QLabel" name="widthLA" >
-       <property name="text" >
-        <string>&amp;Width:</string>
-       </property>
-       <property name="buddy" >
-        <cstring>widthED</cstring>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="2" >
-      <widget class="QComboBox" name="valignCO" >
-       <property name="toolTip" >
-        <string>Vertical alignment</string>
-       </property>
-       <item>
-        <property name="text" >
-         <string>Default (outer)</string>
-        </property>
-       </item>
-       <item>
-        <property name="text" >
-         <string>Left</string>
-        </property>
-       </item>
-       <item>
-        <property name="text" >
-         <string>Right</string>
-        </property>
-       </item>
-       <item>
-        <property name="text" >
-         <string>Outer</string>
-        </property>
-       </item>
-      </widget>
-     </item>
-     <item row="0" column="2" >
-      <widget class="QLabel" name="valignLA" >
-       <property name="text" >
-        <string>&amp;Placement:</string>
-       </property>
-       <property name="buddy" >
-        <cstring>valignCO</cstring>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="1" >
-      <widget class="LengthCombo" name="unitsLC" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>3</hsizetype>
-         <vsizetype>0</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="minimumSize" >
-        <size>
-         <width>40</width>
-         <height>22</height>
-        </size>
-       </property>
-       <property name="focusPolicy" >
-        <enum>Qt::StrongFocus</enum>
-       </property>
-       <property name="toolTip" >
-        <string>Units of width value</string>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="0" >
-      <widget class="QLineEdit" name="widthED" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>1</hsizetype>
-         <vsizetype>0</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="toolTip" >
-        <string>Width value</string>
-       </property>
-      </widget>
-     </item>
-     <item row="0" column="1" >
-      <widget class="QLabel" name="unitsLA" >
-       <property name="text" >
-        <string>&amp;Units:</string>
-       </property>
-       <property name="buddy" >
-        <cstring>unitsLC</cstring>
-       </property>
-      </widget>
-     </item>
-    </layout>
-   </item>
-   <item>
+   <item row="3" column="2" >
     <spacer>
      <property name="orientation" >
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeType" >
-      <enum>QSizePolicy::Expanding</enum>
+      <enum>Qt::Horizontal</enum>
      </property>
      <property name="sizeHint" >
       <size>
-       <width>20</width>
+       <width>40</width>
        <height>20</height>
       </size>
      </property>
     </spacer>
    </item>
-   <item>
+   <item row="3" column="1" >
+    <widget class="QSpinBox" name="linesSB" >
+     <property name="enabled" >
+      <bool>false</bool>
+     </property>
+     <property name="toolTip" >
+      <string>number of needed lines</string>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="0" >
+    <widget class="QCheckBox" name="linesCB" >
+     <property name="toolTip" >
+      <string>use number of lines</string>
+     </property>
+     <property name="text" >
+      <string>&amp;Line span:</string>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="3" >
+    <widget class="LengthCombo" name="widthUnitLC" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>3</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="minimumSize" >
+      <size>
+       <width>40</width>
+       <height>22</height>
+      </size>
+     </property>
+     <property name="focusPolicy" >
+      <enum>Qt::StrongFocus</enum>
+     </property>
+     <property name="toolTip" >
+      <string>Unit of width value</string>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="0" >
+    <widget class="QLabel" name="widthLA" >
+     <property name="text" >
+      <string>&amp;Width:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>widthED</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="1" colspan="2" >
+    <widget class="QLineEdit" name="widthED" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>1</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="toolTip" >
+      <string>Width value</string>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="0" colspan="4" >
     <layout class="QHBoxLayout" >
      <property name="margin" >
       <number>0</number>
      </item>
     </layout>
    </item>
+   <item row="0" column="0" >
+    <widget class="QLabel" name="valignLA" >
+     <property name="text" >
+      <string>&amp;Placement:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>valignCO</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="0" column="1" colspan="2" >
+    <widget class="QComboBox" name="valignCO" >
+     <property name="toolTip" >
+      <string>Vertical alignment</string>
+     </property>
+     <item>
+      <property name="text" >
+       <string>Outer (default)</string>
+      </property>
+     </item>
+     <item>
+      <property name="text" >
+       <string>Inner</string>
+      </property>
+     </item>
+     <item>
+      <property name="text" >
+       <string>Left</string>
+      </property>
+     </item>
+     <item>
+      <property name="text" >
+       <string>Right</string>
+      </property>
+     </item>
+    </widget>
+   </item>
+   <item row="2" column="0" >
+    <widget class="QCheckBox" name="overhangCB" >
+     <property name="toolTip" >
+      <string>use overhang</string>
+     </property>
+     <property name="text" >
+      <string>Over&amp;hang:</string>
+     </property>
+     <property name="checked" >
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="1" colspan="2" >
+    <widget class="QLineEdit" name="overhangED" >
+     <property name="enabled" >
+      <bool>false</bool>
+     </property>
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>1</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="toolTip" >
+      <string>Overhang value</string>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="3" >
+    <widget class="LengthCombo" name="overhangUnitLC" >
+     <property name="enabled" >
+      <bool>false</bool>
+     </property>
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>13</hsizetype>
+       <vsizetype>13</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="minimumSize" >
+      <size>
+       <width>0</width>
+       <height>0</height>
+      </size>
+     </property>
+     <property name="focusPolicy" >
+      <enum>Qt::StrongFocus</enum>
+     </property>
+     <property name="toolTip" >
+      <string>Unit of overhang value</string>
+     </property>
+    </widget>
+   </item>
   </layout>
  </widget>
- <pixmapfunction></pixmapfunction>
- <includes>
-  <include location="local" >qt_helpers.h</include>
- </includes>
  <customwidgets>
   <customwidget>
    <class>LengthCombo</class>
-   <extends></extends>
+   <extends>QComboBox</extends>
    <header>LengthCombo.h</header>
-   <container>0</container>
-   <pixmap></pixmap>
   </customwidget>
  </customwidgets>
  <tabstops>
-  <tabstop>widthED</tabstop>
-  <tabstop>unitsLC</tabstop>
   <tabstop>valignCO</tabstop>
+  <tabstop>widthED</tabstop>
+  <tabstop>widthUnitLC</tabstop>
+  <tabstop>overhangCB</tabstop>
+  <tabstop>overhangED</tabstop>
+  <tabstop>overhangUnitLC</tabstop>
+  <tabstop>linesCB</tabstop>
+  <tabstop>linesSB</tabstop>
   <tabstop>restorePB</tabstop>
   <tabstop>okPB</tabstop>
-  <tabstop>applyPB</tabstop>
   <tabstop>closePB</tabstop>
+  <tabstop>applyPB</tabstop>
  </tabstops>
+ <includes>
+  <include location="local" >qt_helpers.h</include>
+ </includes>
  <resources/>
- <connections/>
+ <connections>
+  <connection>
+   <sender>overhangCB</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>overhangED</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel" >
+     <x>52</x>
+     <y>71</y>
+    </hint>
+    <hint type="destinationlabel" >
+     <x>124</x>
+     <y>70</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>overhangCB</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>overhangUnitLC</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel" >
+     <x>54</x>
+     <y>80</y>
+    </hint>
+    <hint type="destinationlabel" >
+     <x>259</x>
+     <y>80</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>linesCB</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>linesSB</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel" >
+     <x>13</x>
+     <y>93</y>
+    </hint>
+    <hint type="destinationlabel" >
+     <x>164</x>
+     <y>101</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
 </ui>