@@ -86,7 +86,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
86
86
myTip.setContent ( tr ( " You can add a current date variable to your map"
87
87
" layout. Create a regular text label and add the string"
88
88
" $CURRENT_DATE(yyyy-MM-dd) to the text box. See the"
89
- " <a href=\" https://doc.qt.io/qt-5.7 /qdate.html#toString\" >"
89
+ " <a href=\" https://doc.qt.io/qt-5.3 /qdate.html#toString\" >"
90
90
" QDate::toString format documentation</a> for the possible date formats."
91
91
) );
92
92
addGuiTip ( myTip );
@@ -95,11 +95,14 @@ QgsTipFactory::QgsTipFactory() : QObject()
95
95
" elements. The first one ( <img src=\" :/images/themes/default/mActionSelect.svg\" /> )"
96
96
" selects and moves elements in the layout. After selecting the element"
97
97
" with this tool you can also move them around with the arrow keys."
98
- " For accurate positioning use the <strong>Position and Size </strong> section,"
99
- " which can be found in the tab <strong>Item Properties -> Position and Size </strong>."
98
+ " For accurate positioning use the <strong>%1 </strong> section,"
99
+ " which can be found in the tab <strong>%2 </strong>."
100
100
" The other move tool ( <img src=\" :/images/themes/default/mActionMoveItemContent.svg\" /> )"
101
- " allows you to move the map content within a map frame."
102
- ) );
101
+ " allows you to move the map content within a map frame." )
102
+ .arg ( tr ( " Position and Size" ) )
103
+ .arg ( tr ( " Item Properties" ) )
104
+ );
105
+ addGuiTip ( myTip );
103
106
addGuiTip ( myTip );
104
107
// This tip contributed by Andreas Neumann
105
108
myTip.setTitle ( tr ( " Lock an element in the layout view" ) );
@@ -116,13 +119,16 @@ QgsTipFactory::QgsTipFactory() : QObject()
116
119
myTip.setContent ( tr ( " In the Print Composer you can rotate a map by setting its rotation value"
117
120
" in the tab <strong>Item Properties -> Map -> Main properties</strong> section."
118
121
" To place a north arrow in your layout you can use the"
119
- " <strong>Add Image </strong> tool. After the selection and"
122
+ " <strong>%1 </strong> tool. After the selection and"
120
123
" placement of the north arrow in the layout you can link it"
121
- " with a specific map frame by activating the <strong>Sync with map </strong>"
124
+ " with a specific map frame by activating the <strong>%2 </strong>"
122
125
" checkbox and selecting a map frame. Whenever you change the rotation"
123
126
" value of a linked map, the north arrow will now automatically adjust"
124
- " its rotation."
125
- ) );
127
+ " its rotation." )
128
+ .arg ( tr ( " Add Image" ) )
129
+ .arg ( tr ( " Sync with map" ) )
130
+ );
131
+ addGuiTip ( myTip );
126
132
addGuiTip ( myTip );
127
133
// This tip contributed by Andreas Neumann
128
134
myTip.setTitle ( tr ( " Numeric scale value in map layout linked to map frame" ) );
@@ -137,8 +143,11 @@ QgsTipFactory::QgsTipFactory() : QObject()
137
143
myTip.setContent ( tr ( " You can use the scroll wheel on your mouse to zoom in,"
138
144
" out and pan the map. Scroll forwards to zoom in, scroll backwards to"
139
145
" zoom out and press and hold the scroll wheel down to pan the map. You"
140
- " can configure the zoom scale factor in the <strong>Options -> Map tools</strong> panel."
141
- ) );
146
+ " can configure the zoom scale factor in the <strong> %1 -> %2 </strong> panel." )
147
+ .arg ( tr ( " Options" ) )
148
+ .arg ( tr ( " Map tools" ) )
149
+ );
150
+ addGuiTip ( myTip );
142
151
addGuiTip ( myTip );
143
152
// by Tim
144
153
myTip.setTitle ( tr ( " Disabling rendering" ) );
@@ -182,12 +191,15 @@ QgsTipFactory::QgsTipFactory() : QObject()
182
191
myTip.setTitle ( tr ( " QGIS has Plugins!" ) );
183
192
myTip.setContent ( tr ( " QGIS has plugins that extend its functionality."
184
193
" QGIS ships with some core plugins you can explore from the"
185
- " <strong>Plugins -> Manage and Install </strong> Plugins menu. In addition there"
194
+ " <strong> %1 -> %2 </strong> menu. In addition there"
186
195
" are a lot of <a href=\" https://plugins.qgis.org/\" >Python plugins </a>"
187
196
" contributed by the user community that can be"
188
197
" installed via this same menu. Don't miss out on all QGIS has to offer!"
189
- " Check out the plugins and see what they can do for you."
190
- ) );
198
+ " Check out the plugins and see what they can do for you." )
199
+ .arg ( tr ( " Plugins" ) )
200
+ .arg ( tr ( " Manage and Install Plugins..." ) )
201
+ );
202
+ addGuiTip ( myTip );
191
203
addGenericTip ( myTip );
192
204
// by yjacolin
193
205
myTip.setTitle ( tr ( " Add an action to layer" ) );
@@ -220,24 +232,30 @@ QgsTipFactory::QgsTipFactory() : QObject()
220
232
myTip.setContent ( tr ( " If you have a number of aerial photos spread across a wide area, instead of "
221
233
" loading each file as a separate layer you can treat them all as a single layer "
222
234
" by using a .vrt file. "
223
- " To create a .vrt, go to <strong>Raster -> Miscellaneous -> Build Virtual Raster (Catalog)</strong>."
224
- ) );
235
+ " To create a .vrt, go to <strong> %1 -> %2 -> %3</strong>." )
236
+ .arg ( tr ( " Raster" ) )
237
+ .arg ( tr ( " Miscellaneous" ) )
238
+ .arg ( tr ( " Build Virtual Raster (Catalog)" ) )
239
+ );
225
240
addGuiTip ( myTip );
226
241
// by Harrissou Sant-anna
227
242
myTip.setTitle ( tr ( " Switch quickly between different styles of the layer" ) );
228
243
myTip.setContent ( tr ( " From the Layer properties dialog, use the <strong>Styles -> Add</strong> combobox"
229
244
" to create as many combinations of layer properties settings (symbology, labeling,"
230
245
" diagram, fields form, actions...) as you want. Then, simply switch between styles"
231
- " from the context menu of the layer in <strong>Layers Panel</strong> to automatically"
232
- " get different custom representations of your data."
233
- ) );
246
+ " from the context menu of the layer in <strong>%1</strong> to automatically"
247
+ " get different custom representations of your data." )
248
+ .arg ( tr ( " Layers Panel" ) )
249
+ );
234
250
addGuiTip ( myTip );
235
251
// by Harrissou Sant-anna
236
252
myTip.setTitle ( tr ( " Live update rendering" ) );
237
- myTip.setContent ( tr ( " Press F7 to activate the <strong>Layer Styling</strong> panel from which you can"
238
- " easily and quickly configure the layer rendering. Check the <strong>Live update</strong>"
239
- " option to automatically apply to the map canvas each of your modifications."
240
- ) );
253
+ myTip.setContent ( tr ( " Press F7 to activate the <strong>%1</strong> panel from which you can"
254
+ " easily and quickly configure the layer rendering. Check the <strong>%2</strong>"
255
+ " option to automatically apply to the map canvas each of your modifications." )
256
+ .arg ( tr ( " Layer Styling" ) )
257
+ .arg ( tr ( " Live update" ) )
258
+ );
241
259
addGuiTip ( myTip );
242
260
// by Harrissou Sant-anna
243
261
myTip.setTitle ( tr ( " Print or export a specific feature from an atlas composition" ) );
@@ -258,9 +276,11 @@ QgsTipFactory::QgsTipFactory() : QObject()
258
276
// by Harrissou Sant-anna
259
277
myTip.setTitle ( tr ( " Set your own shortcuts for your actions" ) );
260
278
myTip.setContent ( tr ( " QGIS provides you with a list of predefined shortcuts you can use to speed"
261
- " your workflow. These are available under <strong>Settings -> Configure"
262
- " shortcuts</strong> menu and can be extended and customized for any dialog or tool."
263
- ) );
279
+ " your workflow. These are available under <strong> %1 -> %2 </strong>"
280
+ " menu and can be extended and customized for any dialog or tool." )
281
+ .arg ( tr ( " Settings" ) )
282
+ .arg ( tr ( " Keyboard Shortcuts" ) )
283
+ );
264
284
addGuiTip ( myTip );
265
285
266
286
/* Template for adding more tips
0 commit comments