PageLayoutUi.ui: group everything into boxes for a consistent layout with the other document settings UI

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30554 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-07-14 01:38:15 +00:00
parent b015528fca
commit 14efd07a82

View File

@ -5,54 +5,24 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>407</width> <width>362</width>
<height>377</height> <height>308</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" name="gridLayout_3">
<property name="margin" > <item row="0" column="0">
<number>9</number> <widget class="QGroupBox" name="paperFormatGB">
</property> <property name="title">
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" colspan="13" >
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Paper Format</string> <string>Paper Format</string>
</property> </property>
</widget> <property name="flat">
</item> <bool>true</bool>
<item>
<widget class="QFrame" name="frame_2" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="frameShape" > <layout class="QGridLayout" name="gridLayout">
<enum>QFrame::HLine</enum> <item row="0" column="0">
</property>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="papersizeL"> <widget class="QLabel" name="papersizeL">
<property name="text"> <property name="text">
<string>&amp;Format:</string> <string>&amp;Format:</string>
@ -62,36 +32,36 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="5" colspan="8" > <item row="0" column="1">
<widget class="QComboBox" name="papersizeCO"> <widget class="QComboBox" name="papersizeCO">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Choose a particular paper size, or set your own with "Custom"</string> <string>Choose a particular paper size, or set your own with &quot;Custom&quot;</string>
</property> </property>
<property name="maxVisibleItems"> <property name="maxVisibleItems">
<number>20</number> <number>20</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="13" > <item row="0" column="3">
<spacer> <spacer>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>40</width> <width>43</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="2" column="1" > <item row="1" column="0">
<widget class="QLabel" name="paperheightL"> <widget class="QLabel" name="paperheightL">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
@ -104,23 +74,23 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="5" > <item row="1" column="1">
<widget class="QLineEdit" name="paperheightLE"> <widget class="QLineEdit" name="paperheightLE">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="12" > <item row="1" column="2">
<widget class="LengthCombo" name="paperheightUnitCO"/> <widget class="LengthCombo" name="paperheightUnitCO"/>
</item> </item>
<item row="3" column="1" > <item row="2" column="0">
<widget class="QLabel" name="paperwidthL"> <widget class="QLabel" name="paperwidthL">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
@ -133,23 +103,23 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="5" > <item row="2" column="1">
<widget class="QLineEdit" name="paperwidthLE"> <widget class="QLineEdit" name="paperwidthLE">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="12" > <item row="2" column="2">
<widget class="LengthCombo" name="paperwidthUnitCO"/> <widget class="LengthCombo" name="paperwidthUnitCO"/>
</item> </item>
<item row="4" column="1" > <item row="3" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>&amp;Orientation:</string> <string>&amp;Orientation:</string>
@ -159,7 +129,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="5" colspan="8" > <item row="3" column="1">
<widget class="QRadioButton" name="portraitRB"> <widget class="QRadioButton" name="portraitRB">
<property name="text"> <property name="text">
<string>&amp;Portrait</string> <string>&amp;Portrait</string>
@ -169,47 +139,32 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="5" colspan="8" > <item row="4" column="1">
<widget class="QRadioButton" name="landscapeRB"> <widget class="QRadioButton" name="landscapeRB">
<property name="text"> <property name="text">
<string>&amp;Landscape</string> <string>&amp;Landscape</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1" colspan="13" > </layout>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Page Layout</string>
</property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0">
<widget class="QFrame" name="frame" > <widget class="QGroupBox" name="pageLayoutGB">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="frameShape" > <property name="title">
<enum>QFrame::HLine</enum> <string>Page Layout</string>
</property> </property>
<property name="frameShadow" > <property name="flat">
<enum>QFrame::Sunken</enum> <bool>true</bool>
</property> </property>
</widget> <layout class="QGridLayout" name="gridLayout_2">
</item> <item row="0" column="0">
</layout>
</item>
<item row="7" column="1" colspan="2" >
<widget class="QLabel" name="pagestyleL"> <widget class="QLabel" name="pagestyleL">
<property name="text"> <property name="text">
<string>Headings &amp;style:</string> <string>Headings &amp;style:</string>
@ -219,10 +174,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="5" colspan="8" > <item row="0" column="1" colspan="2">
<widget class="QComboBox" name="pagestyleCO"> <widget class="QComboBox" name="pagestyleCO">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -232,20 +187,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="13" > <item row="0" column="3">
<spacer> <spacer>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>40</width> <width>168</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="8" column="1" colspan="12" > <item row="1" column="0" colspan="3">
<widget class="QCheckBox" name="facingPagesCB"> <widget class="QCheckBox" name="facingPagesCB">
<property name="toolTip"> <property name="toolTip">
<string>Lay out the page for double-sided printing</string> <string>Lay out the page for double-sided printing</string>
@ -255,7 +210,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="9" column="1" colspan="3" > <item row="2" column="0" colspan="2">
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="text"> <property name="text">
<string>Background Color:</string> <string>Background Color:</string>
@ -265,23 +220,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="10" column="5" > <item row="2" column="2" colspan="2">
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>51</width>
<height>131</height>
</size>
</property>
</spacer>
</item>
<item row="9" column="5" colspan="4" >
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<widget class="QPushButton" name="backgroundPB"> <widget class="QPushButton" name="backgroundPB">
@ -338,6 +277,25 @@
</item> </item>
</layout> </layout>
</widget> </widget>
</item>
<item row="2" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>51</width>
<height>131</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
<class>LengthCombo</class> <class>LengthCombo</class>