Skip to content
Permalink
Browse files

Updated info about qgis interface object in python console

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11987 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 7, 2009
1 parent 518a7ff commit a4729dabab4be683d8627ef1308caf913d5d12cd
Showing with 60 additions and 45 deletions.
  1. +60 −45 src/ui/qgspythondialog.ui
@@ -1,92 +1,107 @@
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QgsPythonDialog</class>
<widget class="QDialog" name="QgsPythonDialog" >
<property name="geometry" >
<widget class="QDialog" name="QgsPythonDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>709</width>
<height>265</height>
<width>483</width>
<height>305</height>
</rect>
</property>
<property name="windowTitle" >
<property name="windowTitle">
<string>Python console</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="3" column="3" >
<widget class="QPushButton" name="pbnExecute" >
<property name="text" >
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="3">
<widget class="QPushButton" name="pbnExecute">
<property name="text">
<string>&amp;Execute</string>
</property>
</widget>
</item>
<item row="2" column="3" >
<widget class="QPushButton" name="pbnPrev" >
<property name="text" >
<item row="2" column="3">
<widget class="QPushButton" name="pbnPrev">
<property name="text">
<string>&amp;Previous</string>
</property>
</widget>
</item>
<item row="4" column="3" >
<widget class="QPushButton" name="pbnNext" >
<property name="text" >
<item row="4" column="3">
<widget class="QPushButton" name="pbnNext">
<property name="text">
<string>&amp;Next</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="3" >
<widget class="QLabel" name="lblInfo" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<item row="0" column="0" colspan="4">
<widget class="QLabel" name="lblInfo">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<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>
<property name="text">
<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;
p, li { white-space: pre-wrap; }
&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;
&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>
</property>
<property name="wordWrap" >
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="4" >
<widget class="QTextBrowser" name="txtHistory" >
<property name="html" >
<string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
<item row="1" column="0" colspan="4">
<widget class="QTextBrowser" name="txtHistory">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>3</verstretch>
</sizepolicy>
</property>
<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;
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
&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>
&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;
&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>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QLabel" name="lblPrompt" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
<item row="3" column="1">
<widget class="QLabel" name="lblPrompt">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>>>></string>
<property name="text">
<string>&gt;&gt;&gt;</string>
</property>
</widget>
</item>
<item rowspan="3" row="2" column="2" >
<widget class="QTextEdit" name="edtCmdLine" />
<item row="2" column="2" rowspan="3">
<widget class="QTextEdit" name="edtCmdLine">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
<zorder>pbnExecute</zorder>
<zorder>pbnPrev</zorder>
<zorder>pbnNext</zorder>
<zorder>lblInfo</zorder>
<zorder>txtHistory</zorder>
<zorder>lblPrompt</zorder>
<zorder>edtCmdLine</zorder>
</widget>
<tabstops>
<tabstop>edtCmdLine</tabstop>
<tabstop>pbnPrev</tabstop>
<tabstop>pbnExecute</tabstop>
<tabstop>pbnNext</tabstop>
<tabstop>txtHistory</tabstop>
</tabstops>
<resources/>

0 comments on commit a4729da

Please sign in to comment.
You can’t perform that action at this time.