Skip to content

Commit 91d0f1e

Browse files
DelazJm-kuhn
authored andcommittedDec 1, 2016
Add new tips on startup, fix some outdated (#3806)
* Add new tips on startup, fix some outdated and emphasize some items with bold. Sur la branche patch-1 * Improve tips * fix quotation
1 parent 149ea48 commit 91d0f1e

File tree

1 file changed

+63
-25
lines changed

1 file changed

+63
-25
lines changed
 

‎src/app/qgstipfactory.cpp

Lines changed: 63 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
3333
" you make must be made available in source form to whoever you give"
3434
" modified versions to, and that you can not create a new version of"
3535
" QGIS under a 'closed source' license. Visit"
36-
" <a href=\"https://qgis.org\"> the QGIS home page (https://qgis.org)</a>"
36+
" <a href=\"https://qgis.org\"> the QGIS home page</a>"
3737
" for more information."
3838
) );
3939
addGenericTip( myTip );
@@ -73,10 +73,10 @@ QgsTipFactory::QgsTipFactory() : QObject()
7373
" and it will help to avoid confusion if you refer to each by"
7474
" its name:"
7575
"<ul>"
76-
"<li>QGIS Library - this is the C++ library that contains"
76+
"<li><strong>QGIS Library</strong> - this is the C++ library that contains"
7777
" the core logic that is used to build the QGIS user interface and other applications.</li>"
78-
"<li>QGIS Desktop - this is the desktop application that you know and love so much :-).</li>"
79-
"<li>QGIS Server - this is a server-side application based on the QGIS Library"
78+
"<li><strong>QGIS Desktop</strong> - this is the desktop application that you know and love so much :-).</li>"
79+
"<li><strong>QGIS Server</strong> - this is a server-side application based on the QGIS Library"
8080
" that will serve up your .qgs projects using OGC standard protocols.</li>"
8181
"</ul>"
8282
) );
@@ -86,30 +86,29 @@ 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-4.8/qdate.html#toString\">"
89+
" <a href=\"https://doc.qt.io/qt-5.7/qdate.html#toString\">"
9090
"QDate::toString format documentation</a> for the possible date formats."
9191
) );
9292
addGuiTip( myTip );
9393
myTip.setTitle( tr( "Moving Elements and Maps in the Print Composer" ) );
9494
myTip.setContent( tr( "In the print composer toolbar you can find two buttons for moving"
95-
" elements. The left one (right arrow icon) selects and moves elements"
96-
" in the layout. After selecting the element with this tool you can also"
97-
" move them around with the arrow keys. For accurate positioning use the"
98-
" <strong>Position and Size</strong> section, which can be found in the"
99-
" tab <strong>Item Properties -> Position and Size</strong>."
100-
" The other move tool (map canvas icon with right arrow) allows one"
101-
" to move the map content within a map frame."
95+
" elements. The first one ( <img src=\":/images/themes/default/mActionSelect.svg\"/> )"
96+
" selects and moves elements in the layout. After selecting the element"
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>."
100+
" The other move tool ( <img src=\":/images/themes/default/mActionMoveItemContent.svg\"/> )"
101+
" allows you to move the map content within a map frame."
102102
) );
103103
addGuiTip( myTip );
104104
// This tip contributed by Andreas Neumann
105105
myTip.setTitle( tr( "Lock an element in the layout view" ) );
106-
myTip.setContent( tr( "By left clicking an element in the layout view you can"
107-
" select it, by right clicking an element you can lock it. A lock symbol"
108-
" will appear in the upper left corner of the selected element. This"
109-
" prevents the element from accidentally being moved with the mouse. While"
110-
" in a locked state, you cannot move an element with the mouse but you can"
111-
" still move it with the arrow keys or by absolutely positioning it by"
112-
" setting its <strong>Position and Size</strong>."
106+
myTip.setContent( tr( "Locking an element in the layout view prevents you to select or accidentally"
107+
" move it with the mouse. (Un)Locking an item is done by ticking its checkbox"
108+
" in the <strong>Items</strong> tab. While in a locked state, you can"
109+
" still get it selected from the <strong>Items</strong> tab, move it with the arrow keys"
110+
" or configure any of its properties in the <strong>Item Properties</strong> tab"
111+
" including precisely place it by setting its <strong>Position and Size</strong>."
113112
) );
114113
addGuiTip( myTip );
115114
// This tip contributed by Andreas Neumann
@@ -138,7 +137,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
138137
myTip.setContent( tr( "You can use the scroll wheel on your mouse to zoom in,"
139138
" out and pan the map. Scroll forwards to zoom in, scroll backwards to"
140139
" zoom out and press and hold the scroll wheel down to pan the map. You"
141-
" can configure options for scroll wheel behaviour in the Options panel."
140+
" can configure the zoom scale factor in the <strong>Options -> Map tools</strong> panel."
142141
) );
143142
addGuiTip( myTip );
144143
// by Tim
@@ -174,7 +173,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
174173
" have the financial ability to help, please consider sponsoring the"
175174
" development of QGIS. We use money from sponsors to pay for"
176175
" travel and costs related to our regular hackfest meetings, and to generally"
177-
" support the goals of our project. Please see the<a"
176+
" support the goals of our project. Please see the <a"
178177
" href=\"https://qgis.org/en/site/getinvolved/governance/sponsorship/sponsorship.html\">QGIS Sponsorship Web"
179178
" Page</a> for more details."
180179
) );
@@ -183,8 +182,8 @@ QgsTipFactory::QgsTipFactory() : QObject()
183182
myTip.setTitle( tr( "QGIS has Plugins!" ) );
184183
myTip.setContent( tr( "QGIS has plugins that extend its functionality."
185184
" QGIS ships with some core plugins you can explore from the"
186-
" Plugins->Manage and Install Plugins menu. In addition there are a lot"
187-
" of <a href=\"https://plugins.qgis.org/\">Python plugins </a>"
185+
" <strong>Plugins -> Manage and Install</strong> Plugins menu. In addition there"
186+
" are a lot of <a href=\"https://plugins.qgis.org/\">Python plugins </a>"
188187
" contributed by the user community that can be"
189188
" installed via this same menu. Don't miss out on all QGIS has to offer!"
190189
" Check out the plugins and see what they can do for you."
@@ -202,7 +201,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
202201
myTip.setTitle( tr( "Copy, paste and cut in QGIS" ) );
203202
myTip.setContent( tr( "Copy, paste, and cut work as in another applications in QGIS. Select a "
204203
"feature (a geometry or an attribut row in the attribute table) and use "
205-
"one of this shortcuts: Ctrl+C to copy, Ctrl+X to cut, and Ctrl+V to paste."
204+
"one of these shortcuts: Ctrl+C to copy, Ctrl+X to cut, and Ctrl+V to paste."
206205
) );
207206
addGuiTip( myTip );
208207
// by yjacolin
@@ -221,7 +220,46 @@ QgsTipFactory::QgsTipFactory() : QObject()
221220
myTip.setContent( tr( "If you have a number of aerial photos spread across a wide area, instead of "
222221
"loading each file as a separate layer you can treat them all as a single layer "
223222
"by using a .vrt file. "
224-
"To create a .vrt, go to Raster -> Miscellaneous -> Build Virtual Raster (Catalog)."
223+
"To create a .vrt, go to <strong>Raster -> Miscellaneous -> Build Virtual Raster (Catalog)</strong>."
224+
) );
225+
addGuiTip( myTip );
226+
// by Harrissou Sant-anna
227+
myTip.setTitle( tr( "Switch quickly between different styles of the layer" ) );
228+
myTip.setContent( tr( "From the Layer properties dialog, use the <strong>Styles -> Add</strong> combobox"
229+
" to create as many combinations of layer properties settings (symbology, labeling,"
230+
" 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+
) );
234+
addGuiTip( myTip );
235+
// by Harrissou Sant-anna
236+
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+
) );
241+
addGuiTip( myTip );
242+
// by Harrissou Sant-anna
243+
myTip.setTitle( tr( "Print or export a specific feature from an atlas composition" ) );
244+
myTip.setContent( tr( "If you want to print or export the composition of only one feature of the atlas,"
245+
" start the atlas preview, select the desired feature in the drop-down list"
246+
" and click on <strong>Composer -> Print</strong> menu (or use <strong>Composer ->"
247+
" Export...</strong> to any supported file format)."
248+
) );
249+
addGuiTip( myTip );
250+
// by Harrissou Sant-anna
251+
myTip.setTitle( tr( "Start QGIS from command line" ) );
252+
myTip.setContent( tr( "QGIS can be launched from command line and supports a number of options. This can be"
253+
" handy if you need to use QGIS with particular configurations such as custom"
254+
" user profile or, without plugins... To get the list of the options,"
255+
" enter qgis --help on the command line."
256+
) );
257+
addGuiTip( myTip );
258+
// by Harrissou Sant-anna
259+
myTip.setTitle( tr( "Set your own shortcuts for your actions" ) );
260+
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."
225263
) );
226264
addGuiTip( myTip );
227265

0 commit comments

Comments
 (0)
Please sign in to comment.