Navigation Menu

Skip to content

Commit

Permalink
[QGIS Server] Add place holder and tooltip to OWS inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 4, 2016
1 parent cbd29e5 commit 94da2ab
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 28 deletions.
13 changes: 10 additions & 3 deletions src/ui/qgsgroupwmsdatadialogbase.ui
Expand Up @@ -52,15 +52,18 @@
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mShortNameLineEdit">
<property name="toolTip">
<string>A name used to identify the group layer. The short name is a text string used for machine-to-machine communication.</string>
</property>
<property name="placeholderText">
<string>The short name is a text string used for machine-to-machine communication</string>
<string>A name used to identify the group layer. The short name is a text string used for machine-to-machine communication.</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="mTitleLineEdit">
<property name="placeholderText">
<string>The title is a text string for the benefit of humans</string>
<string>The title is for the benefit of humans to identify group layer.</string>
</property>
</widget>
</item>
Expand All @@ -79,7 +82,11 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QTextEdit" name="mAbstractTextEdit"/>
<widget class="QTextEdit" name="mAbstractTextEdit">
<property name="toolTip">
<string>The abstract is a descriptive narrative providing more information about the group layer.</string>
</property>
</widget>
</item>
</layout>
</item>
Expand Down
88 changes: 79 additions & 9 deletions src/ui/qgsprojectpropertiesbase.ui
Expand Up @@ -1460,7 +1460,14 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="mWMSOnlineResourceLineEdit"/>
<widget class="QLineEdit" name="mWMSOnlineResourceLineEdit">
<property name="toolTip">
<string>The web site URL of the service provider.</string>
</property>
<property name="placeholderText">
<string>The web site URL of the service provider.</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="mWMSOnlineResourceLabel">
Expand All @@ -1480,10 +1487,24 @@
</widget>
</item>
<item row="6" column="1">
<widget class="QLineEdit" name="mWMSContactMail"/>
<widget class="QLineEdit" name="mWMSContactMail">
<property name="toolTip">
<string>The contact person e-mail for the service.</string>
</property>
<property name="placeholderText">
<string>The contact person e-mail for the service.</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="mWMSContactPerson"/>
<widget class="QLineEdit" name="mWMSContactPerson">
<property name="toolTip">
<string>The contact person name for the service.</string>
</property>
<property name="placeholderText">
<string>The contact person name for the service.</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_13">
Expand All @@ -1493,7 +1514,14 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="mWMSContactOrganization"/>
<widget class="QLineEdit" name="mWMSContactOrganization">
<property name="toolTip">
<string>The name of the service provider.</string>
</property>
<property name="placeholderText">
<string>The name of the service provider.</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_12">
Expand All @@ -1507,8 +1535,11 @@
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="mWMSTitle">
<property name="toolTip">
<string>The title should be brief yet descriptive enough to identify this service.</string>
</property>
<property name="placeholderText">
<string>The title is a text string for the benefit of humans</string>
<string>The title should be brief yet descriptive enough to identify this service.</string>
</property>
</widget>
</item>
Expand All @@ -1523,10 +1554,27 @@
</widget>
</item>
<item row="7" column="1">
<widget class="QLineEdit" name="mWMSContactPhone"/>
<widget class="QLineEdit" name="mWMSContactPhone">
<property name="toolTip">
<string>The contact person phone for the service.</string>
</property>
<property name="placeholderText">
<string>The contact person phone for the service.</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QTextEdit" name="mWMSAbstract"/>
<widget class="QTextEdit" name="mWMSAbstract">
<property name="toolTip">
<string>The abstract is a descriptive narrative providing more information about the service.</string>
</property>
<property name="whatsThis">
<string/>
</property>
<property name="documentTitle">
<string/>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="mWMSKeywordListLabel">
Expand All @@ -1536,7 +1584,14 @@
</widget>
</item>
<item row="11" column="1">
<widget class="QLineEdit" name="mWMSKeywordList"/>
<widget class="QLineEdit" name="mWMSKeywordList">
<property name="toolTip">
<string>List of keywords separated by comma to help catalog searching.</string>
</property>
<property name="placeholderText">
<string>List of keywords separated by comma to help catalog searching.</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_11">
Expand Down Expand Up @@ -1564,13 +1619,19 @@
</item>
<item row="9" column="1">
<widget class="QComboBox" name="mWMSFeesCb">
<property name="toolTip">
<string>Fees applied to the service.</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QComboBox" name="mWMSAccessConstraintsCb">
<property name="toolTip">
<string>Access constraints applied to the service.</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
Expand All @@ -1585,15 +1646,24 @@
</item>
<item row="5" column="1">
<widget class="QComboBox" name="mWMSContactPositionCb">
<property name="toolTip">
<string>The contact person position for the service.</string>
</property>
<property name="accessibleDescription">
<string/>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mWMSName">
<property name="toolTip">
<string>A name used to identify the root layer. The short name is a text string used for machine-to-machine communication.</string>
</property>
<property name="placeholderText">
<string>The short name is a text string used for machine-to-machine communication</string>
<string>A name used to identify the root layer. The short name is a text string used for machine-to-machine communication.</string>
</property>
</widget>
</item>
Expand Down
67 changes: 59 additions & 8 deletions src/ui/qgsrasterlayerpropertiesbase.ui
Expand Up @@ -1753,8 +1753,11 @@ p, li { white-space: pre-wrap; }
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="mLayerTitleLineEdit">
<property name="toolTip">
<string>The title is for the benefit of humans to identify layer.</string>
</property>
<property name="placeholderText">
<string>The title is a text string for the benefit of humans</string>
<string>The title is for the benefit of humans to identify layer.</string>
</property>
</widget>
</item>
Expand All @@ -1779,6 +1782,9 @@ p, li { white-space: pre-wrap; }
<height>50</height>
</size>
</property>
<property name="toolTip">
<string>The abstract is a descriptive narrative providing more information about the layer.</string>
</property>
</widget>
</item>
<item row="5" column="0">
Expand All @@ -1789,12 +1795,26 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="mLayerKeywordListLineEdit"/>
<widget class="QLineEdit" name="mLayerKeywordListLineEdit">
<property name="toolTip">
<string>List of keywords separated by comma to help catalog searching.</string>
</property>
<property name="placeholderText">
<string>List of keywords separated by comma to help catalog searching.</string>
</property>
</widget>
</item>
<item row="6" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<widget class="QLineEdit" name="mLayerDataUrlLineEdit"/>
<widget class="QLineEdit" name="mLayerDataUrlLineEdit">
<property name="toolTip">
<string>An URL of the data presentation.</string>
</property>
<property name="placeholderText">
<string>An URL of the data presentation.</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mLayerDataUrlFormatLabel">
Expand Down Expand Up @@ -1840,8 +1860,11 @@ p, li { white-space: pre-wrap; }
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mLayerShortNameLineEdit">
<property name="toolTip">
<string>A name used to identify the layer. The short name is a text string used for machine-to-machine communication.</string>
</property>
<property name="placeholderText">
<string>The short name is a text string used for machine-to-machine communication</string>
<string>A name used to identify the layer. The short name is a text string used for machine-to-machine communication.</string>
</property>
</widget>
</item>
Expand All @@ -1865,7 +1888,14 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mLayerAttributionLineEdit"/>
<widget class="QLineEdit" name="mLayerAttributionLineEdit">
<property name="toolTip">
<string>Attribution's title indicates the provider of the layer.</string>
</property>
<property name="placeholderText">
<string>Attribution's title indicates the provider of the layer.</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="mLayerAttributionUrlLabel">
Expand All @@ -1875,7 +1905,14 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="mLayerAttributionUrlLineEdit"/>
<widget class="QLineEdit" name="mLayerAttributionUrlLineEdit">
<property name="toolTip">
<string>Attribution's url gives a link to the webpage of the provider of the data layer.</string>
</property>
<property name="placeholderText">
<string>Attribution's url gives a link to the webpage of the provider of the data layer.</string>
</property>
</widget>
</item>
</layout>
</widget>
Expand All @@ -1897,7 +1934,14 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mLayerMetadataUrlLineEdit"/>
<widget class="QLineEdit" name="mLayerMetadataUrlLineEdit">
<property name="toolTip">
<string>The URL of the metadata document.</string>
</property>
<property name="placeholderText">
<string>The URL of the metadata document.</string>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_8">
Expand Down Expand Up @@ -1987,7 +2031,14 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item>
<widget class="QLineEdit" name="mLayerLegendUrlLineEdit"/>
<widget class="QLineEdit" name="mLayerLegendUrlLineEdit">
<property name="toolTip">
<string>An URL of the legend image.</string>
</property>
<property name="placeholderText">
<string>An URL of the legend image.</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mLayerLegendUrlFormatLabel">
Expand Down

0 comments on commit 94da2ab

Please sign in to comment.