[PATCH] More compact ui.
Aurélien Gâteau
agateau at kde.org
Fri Jun 5 09:23:24 CEST 2009
---
kipi-plugins/printimages/printoptionspage.ui | 356 ++++++++++++--------------
1 files changed, 158 insertions(+), 198 deletions(-)
diff --git a/kipi-plugins/printimages/printoptionspage.ui b/kipi-plugins/printimages/printoptionspage.ui
index 63c0924..c23ae7c 100644
--- a/kipi-plugins/printimages/printoptionspage.ui
+++ b/kipi-plugins/printimages/printoptionspage.ui
@@ -6,99 +6,119 @@
<rect>
<x>0</x>
<y>0</y>
- <width>562</width>
- <height>418</height>
+ <width>609</width>
+ <height>277</height>
</rect>
</property>
<property name="windowTitle">
<string>Image Settings</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_6">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <layout class="QGridLayout" name="gridLayout_3">
+ <item row="0" column="0" colspan="2">
+ <widget class="QGroupBox" name="groupBox_2">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="4" column="0">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>25</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="mPreview">
+ <property name="text">
+ <string/>
+ </property>
+ <property name="scaledContents">
+ <bool>false</bool>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0">
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
+ <item>
+ <widget class="QPushButton" name="mLeftButton">
+ <property name="text">
+ <string><</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="mRightButton">
+ <property name="text">
+ <string>></string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="2" column="0">
+ <widget class="QCheckBox" name="kcfg_PrintAutoRotate">
+ <property name="text">
+ <string>Auto rotate</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="mGroupPxP">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Photos per page</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QSpinBox" name="mPhotoXPage">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
<item>
<widget class="QGroupBox" name="mGroupImage">
<property name="title">
- <string>Image Position</string>
- </property>
- <property name="flat">
- <bool>true</bool>
+ <string>Position</string>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout">
+ <layout class="QVBoxLayout" name="verticalLayout_2">
<item>
- <widget class="QGroupBox" name="groupBox">
- <property name="title">
- <string/>
- </property>
- <property name="flat">
- <bool>true</bool>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QFrame" name="mPositionFrame">
- <zorder>mGroupScaling</zorder>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="kcfg_PrintAutoRotate">
- <property name="text">
- <string>Auto rotate</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
+ <widget class="QFrame" name="mPositionFrame"/>
</item>
<item>
- <widget class="QGroupBox" name="groupBox_3">
- <property name="title">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- <property name="flat">
- <bool>true</bool>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <widget class="QLabel" name="mPreview">
- <property name="text">
- <string/>
- </property>
- <property name="scaledContents">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_4">
- <item>
- <widget class="QPushButton" name="mLeftButton">
- <property name="text">
- <string><</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="mRightButton">
- <property name="text">
- <string>></string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_3">
+ <spacer name="verticalSpacer_2">
<property name="orientation">
- <enum>Qt::Horizontal</enum>
+ <enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>297</width>
- <height>20</height>
+ <width>20</width>
+ <height>201</height>
</size>
</property>
</spacer>
@@ -111,10 +131,7 @@
<property name="title">
<string>Scaling</string>
</property>
- <property name="flat">
- <bool>true</bool>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_2">
+ <layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QRadioButton" name="mNoScale">
<property name="text">
@@ -189,14 +206,8 @@
</widget>
</item>
<item>
- <layout class="QHBoxLayout">
- <property name="spacing">
- <number>6</number>
- </property>
- <property name="margin">
- <number>0</number>
- </property>
- <item>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="0" column="0" rowspan="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -212,17 +223,7 @@
</property>
</spacer>
</item>
- <item>
- <widget class="QDoubleSpinBox" name="kcfg_PrintWidth">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="value">
- <double>15.000000000000000</double>
- </property>
- </widget>
- </item>
- <item>
+ <item row="0" column="2" rowspan="2" colspan="2">
<widget class="QLabel" name="textLabel2">
<property name="text">
<string comment="Dimension separator, as in: '15 x 10 centimeters'">x</string>
@@ -232,7 +233,30 @@
</property>
</widget>
</item>
- <item>
+ <item row="0" column="5" rowspan="2">
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="1">
+ <widget class="QDoubleSpinBox" name="kcfg_PrintWidth">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="value">
+ <double>15.000000000000000</double>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="3">
<widget class="QDoubleSpinBox" name="kcfg_PrintHeight">
<property name="enabled">
<bool>false</bool>
@@ -242,7 +266,7 @@
</property>
</widget>
</item>
- <item>
+ <item row="1" column="4">
<widget class="KComboBox" name="kcfg_PrintUnit">
<property name="enabled">
<bool>false</bool>
@@ -267,34 +291,38 @@
</item>
</widget>
</item>
- <item>
- <widget class="QCheckBox" name="kcfg_PrintKeepRatio">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>Keep ratio</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <spacer>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>16</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
+ <item row="2" column="1" colspan="5">
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QCheckBox" name="kcfg_PrintKeepRatio">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Keep ratio</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>16</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
</item>
</layout>
</item>
@@ -325,74 +353,6 @@
</layout>
</widget>
</item>
- <item>
- <widget class="QGroupBox" name="groupBox_2">
- <property name="title">
- <string/>
- </property>
- <property name="flat">
- <bool>true</bool>
- </property>
- <layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <widget class="QCheckBox" name="mGroupPxP">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="font">
- <font>
- <weight>75</weight>
- <bold>true</bold>
- </font>
- </property>
- <property name="text">
- <string>Photos per page</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QSpinBox" name="mPhotoXPage">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="minimum">
- <number>1</number>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- <item row="1" column="0">
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>25</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- </item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
--
1.6.0.4
--------------090503030206080207060308--
More information about the Kde-imaging
mailing list