Fix #12053 - Add tooltips and text to buttons in function editor

This commit is contained in:
Nathan Woodrow 2015-01-29 16:34:29 +10:00
parent 1eec3b9ecf
commit a20b8e03fd

View File

@ -35,7 +35,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<property name="documentMode"> <property name="documentMode">
<bool>true</bool> <bool>true</bool>
@ -582,13 +582,23 @@
</property> </property>
<item> <item>
<widget class="QToolButton" name="btnRun"> <widget class="QToolButton" name="btnRun">
<property name="toolTip">
<string>Run the current editor text in QGIS (also saves current script).
Use this when testing your functions.
Saved scripts are auto loaded on QGIS startup.</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>Run Script</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../images/images.qrc"> <iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/console/iconRunScriptConsole.png</normaloff>:/images/themes/default/console/iconRunScriptConsole.png</iconset> <normaloff>:/images/themes/default/console/iconRunScriptConsole.png</normaloff>:/images/themes/default/console/iconRunScriptConsole.png</iconset>
</property> </property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<property name="autoRaise"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -612,13 +622,21 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="btnNewFile"> <widget class="QToolButton" name="btnNewFile">
<property name="toolTip">
<string>Create a new function file based on the template file.
Change the name of the script and save to allow QGIS to auto load on startup.</string>
</property>
<property name="text"> <property name="text">
<string>New</string> <string>New file</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../images/images.qrc"> <iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/console/iconTabEditorConsole.png</normaloff>:/images/themes/default/console/iconTabEditorConsole.png</iconset> <normaloff>:/images/themes/default/console/iconTabEditorConsole.png</normaloff>:/images/themes/default/console/iconTabEditorConsole.png</iconset>
</property> </property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<property name="autoRaise"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -632,6 +650,11 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>Name of the file to save.
Existing files are listed here and loaded when selected.</string>
</property>
<property name="editable"> <property name="editable">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -639,13 +662,19 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="btnSaveFile"> <widget class="QToolButton" name="btnSaveFile">
<property name="toolTip">
<string>Save the current script into the users function file folder.</string>
</property>
<property name="text"> <property name="text">
<string>Save</string> <string>Save file</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../images/images.qrc"> <iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/console/iconSaveConsole.png</normaloff>:/images/themes/default/console/iconSaveConsole.png</iconset> <normaloff>:/images/themes/default/console/iconSaveConsole.png</normaloff>:/images/themes/default/console/iconSaveConsole.png</iconset>
</property> </property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<property name="autoRaise"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>