From b42220d98caabf22092c1235e3b5164177dd5271 Mon Sep 17 00:00:00 2001 From: brushtyler Date: Fri, 11 Jun 2010 09:14:32 +0000 Subject: [PATCH] replaced all QFormLayouts with QGridLayouts git-svn-id: http://svn.osgeo.org/qgis/trunk@13703 c8812cc2-4d05-0410-92ff-de0c093fc19c --- python/plugins/GdalTools/tools/dialogBase.ui | 11 +- .../plugins/GdalTools/tools/optionsTable.ui | 6 + .../plugins/GdalTools/tools/widgetBuildVRT.ui | 21 ++- .../plugins/GdalTools/tools/widgetClipper.ui | 7 +- .../plugins/GdalTools/tools/widgetContour.ui | 125 ++++++++++-------- .../plugins/GdalTools/tools/widgetConvert.ui | 4 +- python/plugins/GdalTools/tools/widgetGrid.ui | 91 +++++++------ python/plugins/GdalTools/tools/widgetMerge.ui | 7 +- .../GdalTools/tools/widgetNearBlack.ui | 21 ++- .../plugins/GdalTools/tools/widgetOverview.ui | 4 +- .../GdalTools/tools/widgetPolygonize.ui | 18 +-- .../GdalTools/tools/widgetProjection.ui | 18 +-- .../GdalTools/tools/widgetProximity.ui | 4 +- .../GdalTools/tools/widgetRasterize.ui | 24 ++-- python/plugins/GdalTools/tools/widgetSieve.ui | 32 ++--- .../GdalTools/tools/widgetTranslate.ui | 41 +++--- python/plugins/GdalTools/tools/widgetWarp.ui | 24 ++-- 17 files changed, 234 insertions(+), 224 deletions(-) diff --git a/python/plugins/GdalTools/tools/dialogBase.ui b/python/plugins/GdalTools/tools/dialogBase.ui index 03df52be088..b85dc896c26 100644 --- a/python/plugins/GdalTools/tools/dialogBase.ui +++ b/python/plugins/GdalTools/tools/dialogBase.ui @@ -7,7 +7,7 @@ 0 0 285 - 179 + 170 @@ -19,6 +19,9 @@ QLayout::SetNoConstraint + + 0 + @@ -30,12 +33,6 @@ - - - 0 - 0 - - 0 diff --git a/python/plugins/GdalTools/tools/optionsTable.ui b/python/plugins/GdalTools/tools/optionsTable.ui index 9b4c3955bef..8fe033d594f 100644 --- a/python/plugins/GdalTools/tools/optionsTable.ui +++ b/python/plugins/GdalTools/tools/optionsTable.ui @@ -34,6 +34,12 @@ 0 + + 30 + + + true + Name diff --git a/python/plugins/GdalTools/tools/widgetBuildVRT.ui b/python/plugins/GdalTools/tools/widgetBuildVRT.ui index 85ef50eeee0..a0c4d72a19d 100644 --- a/python/plugins/GdalTools/tools/widgetBuildVRT.ui +++ b/python/plugins/GdalTools/tools/widgetBuildVRT.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,13 +21,10 @@ - + QLayout::SetNoConstraint - - QFormLayout::AllNonFixedFieldsGrow - @@ -90,6 +87,13 @@ + + + + &Resolution: + + + @@ -118,13 +122,6 @@ - - - - &Resolution: - - - diff --git a/python/plugins/GdalTools/tools/widgetClipper.ui b/python/plugins/GdalTools/tools/widgetClipper.ui index 3fcce27baef..1e8b4e0460b 100644 --- a/python/plugins/GdalTools/tools/widgetClipper.ui +++ b/python/plugins/GdalTools/tools/widgetClipper.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,10 +21,7 @@ - - - QFormLayout::AllNonFixedFieldsGrow - + diff --git a/python/plugins/GdalTools/tools/widgetContour.ui b/python/plugins/GdalTools/tools/widgetContour.ui index 2c16afee6cc..2802e5791fc 100644 --- a/python/plugins/GdalTools/tools/widgetContour.ui +++ b/python/plugins/GdalTools/tools/widgetContour.ui @@ -6,12 +6,12 @@ 0 0 - 522 - 174 + 520 + 172 - + 0 0 @@ -19,12 +19,9 @@ Contour - + - - - QFormLayout::AllNonFixedFieldsGrow - + @@ -93,56 +90,6 @@ - - - - - - &Attribute name: - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 10 - 10 - - - - - - - - - 8 - - - - If not provided, no elevation attribute is attached. - - - - - - - - - - - ELEV - - - @@ -166,6 +113,68 @@ + + + + QLayout::SetFixedSize + + + + + &Attribute name: + + + + + + + + 0 + 0 + + + + + 8 + + + + If not provided, no elevation attribute is attached. + + + 16 + + + + + + + + + + + ELEV + + + + + + + Qt::Vertical + + + QSizePolicy::Minimum + + + + 20 + 0 + + + + + + diff --git a/python/plugins/GdalTools/tools/widgetConvert.ui b/python/plugins/GdalTools/tools/widgetConvert.ui index ba8e39214b1..305801eb523 100644 --- a/python/plugins/GdalTools/tools/widgetConvert.ui +++ b/python/plugins/GdalTools/tools/widgetConvert.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -28,7 +28,7 @@ - + diff --git a/python/plugins/GdalTools/tools/widgetGrid.ui b/python/plugins/GdalTools/tools/widgetGrid.ui index e11b36d0684..ae59bb88f60 100644 --- a/python/plugins/GdalTools/tools/widgetGrid.ui +++ b/python/plugins/GdalTools/tools/widgetGrid.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,7 +21,7 @@ - + @@ -134,23 +134,13 @@ - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - + + + 20 + + + 20 + @@ -160,7 +150,7 @@ 0 - + @@ -291,7 +281,7 @@ - + @@ -374,10 +364,23 @@ + + + + Qt::Vertical + + + + 20 + 0 + + + + - + @@ -446,10 +449,23 @@ + + + + Qt::Vertical + + + + 20 + 0 + + + + - + @@ -558,26 +574,23 @@ + + + + Qt::Vertical + + + + 20 + 0 + + + + - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - diff --git a/python/plugins/GdalTools/tools/widgetMerge.ui b/python/plugins/GdalTools/tools/widgetMerge.ui index 9cae403a85f..addaff51dac 100644 --- a/python/plugins/GdalTools/tools/widgetMerge.ui +++ b/python/plugins/GdalTools/tools/widgetMerge.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,10 +21,7 @@ - - - QFormLayout::AllNonFixedFieldsGrow - + diff --git a/python/plugins/GdalTools/tools/widgetNearBlack.ui b/python/plugins/GdalTools/tools/widgetNearBlack.ui index 6b769ce7e5e..ec4e697ecc1 100644 --- a/python/plugins/GdalTools/tools/widgetNearBlack.ui +++ b/python/plugins/GdalTools/tools/widgetNearBlack.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,10 +21,7 @@ - - - QFormLayout::AllNonFixedFieldsGrow - + @@ -93,13 +90,6 @@ - - - - 255 - - - @@ -107,6 +97,13 @@ + + + + 255 + + + diff --git a/python/plugins/GdalTools/tools/widgetOverview.ui b/python/plugins/GdalTools/tools/widgetOverview.ui index 0376c35c6b7..a8dcf738b83 100644 --- a/python/plugins/GdalTools/tools/widgetOverview.ui +++ b/python/plugins/GdalTools/tools/widgetOverview.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -28,7 +28,7 @@ - + diff --git a/python/plugins/GdalTools/tools/widgetPolygonize.ui b/python/plugins/GdalTools/tools/widgetPolygonize.ui index 4c2a18993ab..4cffb375075 100644 --- a/python/plugins/GdalTools/tools/widgetPolygonize.ui +++ b/python/plugins/GdalTools/tools/widgetPolygonize.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,7 +21,7 @@ - + @@ -90,13 +90,6 @@ - - - - DN - - - @@ -104,6 +97,13 @@ + + + + DN + + + diff --git a/python/plugins/GdalTools/tools/widgetProjection.ui b/python/plugins/GdalTools/tools/widgetProjection.ui index f4ea565bcbc..d45d22addde 100644 --- a/python/plugins/GdalTools/tools/widgetProjection.ui +++ b/python/plugins/GdalTools/tools/widgetProjection.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -35,7 +35,7 @@ - + @@ -67,6 +67,13 @@ + + + + Recurse subdirectories + + + @@ -100,13 +107,6 @@ - - - - Recurse subdirectories - - - diff --git a/python/plugins/GdalTools/tools/widgetProximity.ui b/python/plugins/GdalTools/tools/widgetProximity.ui index f0daa5a87db..64fc35c84df 100644 --- a/python/plugins/GdalTools/tools/widgetProximity.ui +++ b/python/plugins/GdalTools/tools/widgetProximity.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,7 +21,7 @@ - + diff --git a/python/plugins/GdalTools/tools/widgetRasterize.ui b/python/plugins/GdalTools/tools/widgetRasterize.ui index cc1bc3c0423..75a3024f360 100644 --- a/python/plugins/GdalTools/tools/widgetRasterize.ui +++ b/python/plugins/GdalTools/tools/widgetRasterize.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,7 +21,7 @@ - + @@ -59,6 +59,16 @@ + + + + &Attribute field: + + + attributeComboBox + + + @@ -100,16 +110,6 @@ - - - - &Attribute field: - - - attributeComboBox - - - diff --git a/python/plugins/GdalTools/tools/widgetSieve.ui b/python/plugins/GdalTools/tools/widgetSieve.ui index 57dff4a120d..57baf2f72ed 100644 --- a/python/plugins/GdalTools/tools/widgetSieve.ui +++ b/python/plugins/GdalTools/tools/widgetSieve.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -21,7 +21,7 @@ - + @@ -90,6 +90,13 @@ + + + + &Threshold: + + + @@ -97,6 +104,13 @@ + + + + &Pixel connections: + + + @@ -111,20 +125,6 @@ - - - - &Threshold: - - - - - - - &Pixel connections: - - - diff --git a/python/plugins/GdalTools/tools/widgetTranslate.ui b/python/plugins/GdalTools/tools/widgetTranslate.ui index dd83afd537f..658dd1f7778 100644 --- a/python/plugins/GdalTools/tools/widgetTranslate.ui +++ b/python/plugins/GdalTools/tools/widgetTranslate.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -28,10 +28,7 @@ - - - QFormLayout::ExpandingFieldsGrow - + @@ -100,6 +97,23 @@ + + + + Output format + + + + + + + + 0 + 0 + + + + @@ -128,23 +142,6 @@ - - - - - 0 - 0 - - - - - - - - Output format - - - diff --git a/python/plugins/GdalTools/tools/widgetWarp.ui b/python/plugins/GdalTools/tools/widgetWarp.ui index 93c563c55c1..93c74dfc629 100644 --- a/python/plugins/GdalTools/tools/widgetWarp.ui +++ b/python/plugins/GdalTools/tools/widgetWarp.ui @@ -11,7 +11,7 @@ - + 0 0 @@ -28,7 +28,7 @@ - + @@ -189,6 +189,16 @@ + + + + Set no data value + + + + + + @@ -209,16 +219,6 @@ - - - - Set no data value - - - - - -