Skip to content

Commit 57d6f6d

Browse files
authored
Merge pull request #4107 from DelazJ/tips
Update Startup tips
2 parents f3d53b8 + bfd18c4 commit 57d6f6d

File tree

1 file changed

+46
-26
lines changed

1 file changed

+46
-26
lines changed

src/app/qgstipfactory.cpp

+46-26
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
8686
myTip.setContent( tr( "You can add a current date variable to your map"
8787
" layout. Create a regular text label and add the string"
8888
" $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\">"
9090
"QDate::toString format documentation</a> for the possible date formats."
9191
) );
9292
addGuiTip( myTip );
@@ -95,11 +95,14 @@ QgsTipFactory::QgsTipFactory() : QObject()
9595
" elements. The first one ( <img src=\":/images/themes/default/mActionSelect.svg\"/> )"
9696
" selects and moves elements in the layout. After selecting the element"
9797
" 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>."
100100
" 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 );
103106
addGuiTip( myTip );
104107
// This tip contributed by Andreas Neumann
105108
myTip.setTitle( tr( "Lock an element in the layout view" ) );
@@ -116,13 +119,16 @@ QgsTipFactory::QgsTipFactory() : QObject()
116119
myTip.setContent( tr( "In the Print Composer you can rotate a map by setting its rotation value"
117120
" in the tab <strong>Item Properties -> Map -> Main properties</strong> section."
118121
" 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"
120123
" 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>"
122125
" checkbox and selecting a map frame. Whenever you change the rotation"
123126
" 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 );
126132
addGuiTip( myTip );
127133
// This tip contributed by Andreas Neumann
128134
myTip.setTitle( tr( "Numeric scale value in map layout linked to map frame" ) );
@@ -137,8 +143,11 @@ QgsTipFactory::QgsTipFactory() : QObject()
137143
myTip.setContent( tr( "You can use the scroll wheel on your mouse to zoom in,"
138144
" out and pan the map. Scroll forwards to zoom in, scroll backwards to"
139145
" 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 );
142151
addGuiTip( myTip );
143152
// by Tim
144153
myTip.setTitle( tr( "Disabling rendering" ) );
@@ -182,12 +191,15 @@ QgsTipFactory::QgsTipFactory() : QObject()
182191
myTip.setTitle( tr( "QGIS has Plugins!" ) );
183192
myTip.setContent( tr( "QGIS has plugins that extend its functionality."
184193
" 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"
186195
" are a lot of <a href=\"https://plugins.qgis.org/\">Python plugins </a>"
187196
" contributed by the user community that can be"
188197
" 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 );
191203
addGenericTip( myTip );
192204
// by yjacolin
193205
myTip.setTitle( tr( "Add an action to layer" ) );
@@ -220,24 +232,30 @@ QgsTipFactory::QgsTipFactory() : QObject()
220232
myTip.setContent( tr( "If you have a number of aerial photos spread across a wide area, instead of "
221233
"loading each file as a separate layer you can treat them all as a single layer "
222234
"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+
);
225240
addGuiTip( myTip );
226241
// by Harrissou Sant-anna
227242
myTip.setTitle( tr( "Switch quickly between different styles of the layer" ) );
228243
myTip.setContent( tr( "From the Layer properties dialog, use the <strong>Styles -> Add</strong> combobox"
229244
" to create as many combinations of layer properties settings (symbology, labeling,"
230245
" 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+
);
234250
addGuiTip( myTip );
235251
// by Harrissou Sant-anna
236252
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+
);
241259
addGuiTip( myTip );
242260
// by Harrissou Sant-anna
243261
myTip.setTitle( tr( "Print or export a specific feature from an atlas composition" ) );
@@ -258,9 +276,11 @@ QgsTipFactory::QgsTipFactory() : QObject()
258276
// by Harrissou Sant-anna
259277
myTip.setTitle( tr( "Set your own shortcuts for your actions" ) );
260278
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+
);
264284
addGuiTip( myTip );
265285

266286
/* Template for adding more tips

0 commit comments

Comments
 (0)