Skip to content

Commit 52437a0

Browse files
author
wonder
committed
Updated info about qgis interface object in python console
git-svn-id: http://svn.osgeo.org/qgis/trunk@11987 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a4fc172 commit 52437a0

File tree

1 file changed

+60
-45
lines changed

1 file changed

+60
-45
lines changed

src/ui/qgspythondialog.ui

+60-45
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,107 @@
1-
<ui version="4.0" >
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
23
<class>QgsPythonDialog</class>
3-
<widget class="QDialog" name="QgsPythonDialog" >
4-
<property name="geometry" >
4+
<widget class="QDialog" name="QgsPythonDialog">
5+
<property name="geometry">
56
<rect>
67
<x>0</x>
78
<y>0</y>
8-
<width>709</width>
9-
<height>265</height>
9+
<width>483</width>
10+
<height>305</height>
1011
</rect>
1112
</property>
12-
<property name="windowTitle" >
13+
<property name="windowTitle">
1314
<string>Python console</string>
1415
</property>
15-
<layout class="QGridLayout" name="gridLayout" >
16-
<item row="3" column="3" >
17-
<widget class="QPushButton" name="pbnExecute" >
18-
<property name="text" >
16+
<layout class="QGridLayout" name="gridLayout">
17+
<item row="3" column="3">
18+
<widget class="QPushButton" name="pbnExecute">
19+
<property name="text">
1920
<string>&amp;Execute</string>
2021
</property>
2122
</widget>
2223
</item>
23-
<item row="2" column="3" >
24-
<widget class="QPushButton" name="pbnPrev" >
25-
<property name="text" >
24+
<item row="2" column="3">
25+
<widget class="QPushButton" name="pbnPrev">
26+
<property name="text">
2627
<string>&amp;Previous</string>
2728
</property>
2829
</widget>
2930
</item>
30-
<item row="4" column="3" >
31-
<widget class="QPushButton" name="pbnNext" >
32-
<property name="text" >
31+
<item row="4" column="3">
32+
<widget class="QPushButton" name="pbnNext">
33+
<property name="text">
3334
<string>&amp;Next</string>
3435
</property>
3536
</widget>
3637
</item>
37-
<item row="0" column="0" colspan="3" >
38-
<widget class="QLabel" name="lblInfo" >
39-
<property name="sizePolicy" >
40-
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
38+
<item row="0" column="0" colspan="4">
39+
<widget class="QLabel" name="lblInfo">
40+
<property name="sizePolicy">
41+
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
4142
<horstretch>0</horstretch>
4243
<verstretch>0</verstretch>
4344
</sizepolicy>
4445
</property>
45-
<property name="text" >
46-
<string>To access Quantum GIS environment from this python console use object from global scope which is an instance of QgisInterface class.&lt;br>Usage e.g.: iface.zoomFull()</string>
46+
<property name="text">
47+
<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;
48+
&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;
49+
p, li { white-space: pre-wrap; }
50+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
51+
&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;To access Quantum GIS environment from this python console use qgis.utils.iface object which is an instance of QgisInterface class.&lt;br /&gt;Usage e.g.: qgis.utils.iface.zoomFull()&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
4752
</property>
48-
<property name="wordWrap" >
53+
<property name="wordWrap">
4954
<bool>true</bool>
5055
</property>
5156
</widget>
5257
</item>
53-
<item row="1" column="0" colspan="4" >
54-
<widget class="QTextBrowser" name="txtHistory" >
55-
<property name="html" >
56-
<string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
57-
&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
58+
<item row="1" column="0" colspan="4">
59+
<widget class="QTextBrowser" name="txtHistory">
60+
<property name="sizePolicy">
61+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
62+
<horstretch>0</horstretch>
63+
<verstretch>3</verstretch>
64+
</sizepolicy>
65+
</property>
66+
<property name="html">
67+
<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;
68+
&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;
5869
p, li { white-space: pre-wrap; }
59-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
60-
&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;/p>&lt;/body>&lt;/html></string>
70+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
71+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;&quot;&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
6172
</property>
6273
</widget>
6374
</item>
64-
<item row="3" column="1" >
65-
<widget class="QLabel" name="lblPrompt" >
66-
<property name="sizePolicy" >
67-
<sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
75+
<item row="3" column="1">
76+
<widget class="QLabel" name="lblPrompt">
77+
<property name="sizePolicy">
78+
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
6879
<horstretch>0</horstretch>
6980
<verstretch>0</verstretch>
7081
</sizepolicy>
7182
</property>
72-
<property name="text" >
73-
<string>>>></string>
83+
<property name="text">
84+
<string>&gt;&gt;&gt;</string>
7485
</property>
7586
</widget>
7687
</item>
77-
<item rowspan="3" row="2" column="2" >
78-
<widget class="QTextEdit" name="edtCmdLine" />
88+
<item row="2" column="2" rowspan="3">
89+
<widget class="QTextEdit" name="edtCmdLine">
90+
<property name="sizePolicy">
91+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
92+
<horstretch>0</horstretch>
93+
<verstretch>1</verstretch>
94+
</sizepolicy>
95+
</property>
96+
</widget>
7997
</item>
8098
</layout>
81-
<zorder>pbnExecute</zorder>
82-
<zorder>pbnPrev</zorder>
83-
<zorder>pbnNext</zorder>
84-
<zorder>lblInfo</zorder>
85-
<zorder>txtHistory</zorder>
86-
<zorder>lblPrompt</zorder>
87-
<zorder>edtCmdLine</zorder>
8899
</widget>
89100
<tabstops>
101+
<tabstop>edtCmdLine</tabstop>
102+
<tabstop>pbnPrev</tabstop>
103+
<tabstop>pbnExecute</tabstop>
104+
<tabstop>pbnNext</tabstop>
90105
<tabstop>txtHistory</tabstop>
91106
</tabstops>
92107
<resources/>

0 commit comments

Comments
 (0)