Skip to content

Commit

Permalink
Use grid layout not form layout (preserves compatibility with older q…
Browse files Browse the repository at this point in the history
…t versions)

git-svn-id: http://svn.osgeo.org/qgis/trunk@12199 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 19, 2009
1 parent 1cb41ab commit 8e6fcde
Showing 1 changed file with 119 additions and 155 deletions.
274 changes: 119 additions & 155 deletions src/plugins/copyright_label/pluginguibase.ui
Expand Up @@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>397</width>
<height>331</height> <height>326</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
Expand All @@ -18,170 +18,133 @@
<normaloff/> <normaloff/>
</iconset> </iconset>
</property> </property>
<widget class="QTextEdit" name="txtCopyrightText"> <layout class="QGridLayout" name="gridLayout">
<property name="geometry"> <item row="0" column="0" colspan="2">
<rect> <widget class="QCheckBox" name="cboxEnabled">
<x>10</x> <property name="text">
<y>50</y> <string>Enable copyright label</string>
<width>341</width> </property>
<height>161</height> <property name="checked">
</rect> <bool>true</bool>
</property> </property>
<property name="html"> </widget>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; </item>
<item row="1" column="0" colspan="2">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&amp;Enter your copyright label here:</string>
</property>
<property name="buddy">
<cstring>txtCopyrightText</cstring>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QTextEdit" name="txtCopyrightText">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Verdana'; font-size:10pt;&quot;&gt;© QGIS 2009&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Verdana';&quot;&gt;© QGIS 2009&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="cboxEnabled"> </item>
<property name="geometry"> <item row="3" column="0">
<rect> <widget class="QLabel" name="textLabel16">
<x>10</x> <property name="text">
<y>10</y> <string>&amp;Placement</string>
<width>339</width> </property>
<height>18</height> <property name="buddy">
</rect> <cstring>cboPlacement</cstring>
</property> </property>
<property name="text"> </widget>
<string>Enable copyright label</string> </item>
</property> <item row="3" column="1">
<property name="checked"> <widget class="QComboBox" name="cboPlacement">
<bool>true</bool> <item>
</property>
</widget>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>10</x>
<y>300</y>
<width>341</width>
<height>25</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>181</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>&amp;Enter your copyright label here:</string>
</property>
<property name="buddy">
<cstring>txtCopyrightText</cstring>
</property>
</widget>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<width>341</width>
<height>81</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="textLabel16">
<property name="text"> <property name="text">
<string>&amp;Placement</string> <string>Bottom Left</string>
</property> </property>
<property name="buddy"> </item>
<cstring>cboPlacement</cstring> <item>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="cboPlacement">
<item>
<property name="text">
<string>Bottom Left</string>
</property>
</item>
<item>
<property name="text">
<string>Top Left</string>
</property>
</item>
<item>
<property name="text">
<string>Bottom Right</string>
</property>
</item>
<item>
<property name="text">
<string>Top Right</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="textLabel15">
<property name="text"> <property name="text">
<string>&amp;Orientation</string> <string>Top Left</string>
</property>
<property name="buddy">
<cstring>cboOrientation</cstring>
</property> </property>
</widget> </item>
</item> <item>
<item row="1" column="1">
<widget class="QComboBox" name="cboOrientation">
<item>
<property name="text">
<string>Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Vertical</string>
</property>
</item>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>&amp;Color</string> <string>Bottom Right</string>
</property> </property>
<property name="buddy"> </item>
<cstring>pbnColorChooser</cstring> <item>
<property name="text">
<string>Top Right</string>
</property> </property>
</widget> </item>
</item> </widget>
<item row="2" column="1"> </item>
<widget class="QgsColorButton" name="pbnColorChooser"> <item row="4" column="0">
<property name="sizePolicy"> <widget class="QLabel" name="textLabel15">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding"> <property name="text">
<horstretch>0</horstretch> <string>&amp;Orientation</string>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="buddy">
<cstring>cboOrientation</cstring>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="cboOrientation">
<item>
<property name="text">
<string>Horizontal</string>
</property> </property>
<property name="minimumSize"> </item>
<size> <item>
<width>100</width> <property name="text">
<height>0</height> <string>Vertical</string>
</size>
</property> </property>
</widget> </item>
</item> </widget>
</layout> </item>
</widget> <item row="5" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>&amp;Color</string>
</property>
<property name="buddy">
<cstring>pbnColorChooser</cstring>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QgsColorButton" name="pbnColorChooser">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item row="6" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>
<customwidgets> <customwidgets>
Expand All @@ -192,6 +155,7 @@ p, li { white-space: pre-wrap; }
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops> <tabstops>
<tabstop>cboxEnabled</tabstop>
<tabstop>txtCopyrightText</tabstop> <tabstop>txtCopyrightText</tabstop>
<tabstop>cboPlacement</tabstop> <tabstop>cboPlacement</tabstop>
<tabstop>cboOrientation</tabstop> <tabstop>cboOrientation</tabstop>
Expand Down

0 comments on commit 8e6fcde

Please sign in to comment.