Skip to content

Commit

Permalink
Add new tips on startup, fix some outdated (#3806)
Browse files Browse the repository at this point in the history
* Add new tips on startup, fix some outdated

and emphasize some items with bold.
Sur la branche patch-1

* Improve tips

* fix quotation
  • Loading branch information
DelazJ authored and m-kuhn committed Dec 1, 2016
1 parent 149ea48 commit 91d0f1e
Showing 1 changed file with 63 additions and 25 deletions.
88 changes: 63 additions & 25 deletions src/app/qgstipfactory.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
" you make must be made available in source form to whoever you give" " you make must be made available in source form to whoever you give"
" modified versions to, and that you can not create a new version of" " modified versions to, and that you can not create a new version of"
" QGIS under a 'closed source' license. Visit" " QGIS under a 'closed source' license. Visit"
" <a href=\"https://qgis.org\"> the QGIS home page (https://qgis.org)</a>" " <a href=\"https://qgis.org\"> the QGIS home page</a>"
" for more information." " for more information."
) ); ) );
addGenericTip( myTip ); addGenericTip( myTip );
Expand Down Expand Up @@ -73,10 +73,10 @@ QgsTipFactory::QgsTipFactory() : QObject()
" and it will help to avoid confusion if you refer to each by" " and it will help to avoid confusion if you refer to each by"
" its name:" " its name:"
"<ul>" "<ul>"
"<li>QGIS Library - this is the C++ library that contains" "<li><strong>QGIS Library</strong> - this is the C++ library that contains"
" the core logic that is used to build the QGIS user interface and other applications.</li>" " the core logic that is used to build the QGIS user interface and other applications.</li>"
"<li>QGIS Desktop - this is the desktop application that you know and love so much :-).</li>" "<li><strong>QGIS Desktop</strong> - this is the desktop application that you know and love so much :-).</li>"
"<li>QGIS Server - this is a server-side application based on the QGIS Library" "<li><strong>QGIS Server</strong> - this is a server-side application based on the QGIS Library"
" that will serve up your .qgs projects using OGC standard protocols.</li>" " that will serve up your .qgs projects using OGC standard protocols.</li>"
"</ul>" "</ul>"
) ); ) );
Expand All @@ -86,30 +86,29 @@ QgsTipFactory::QgsTipFactory() : QObject()
myTip.setContent( tr( "You can add a current date variable to your map" myTip.setContent( tr( "You can add a current date variable to your map"
" layout. Create a regular text label and add the string" " layout. Create a regular text label and add the string"
" $CURRENT_DATE(yyyy-MM-dd) to the text box. See the" " $CURRENT_DATE(yyyy-MM-dd) to the text box. See the"
" <a href=\"https://doc.qt.io/qt-4.8/qdate.html#toString\">" " <a href=\"https://doc.qt.io/qt-5.7/qdate.html#toString\">"
"QDate::toString format documentation</a> for the possible date formats." "QDate::toString format documentation</a> for the possible date formats."
) ); ) );
addGuiTip( myTip ); addGuiTip( myTip );
myTip.setTitle( tr( "Moving Elements and Maps in the Print Composer" ) ); myTip.setTitle( tr( "Moving Elements and Maps in the Print Composer" ) );
myTip.setContent( tr( "In the print composer toolbar you can find two buttons for moving" myTip.setContent( tr( "In the print composer toolbar you can find two buttons for moving"
" elements. The left one (right arrow icon) selects and moves elements" " elements. The first one ( <img src=\":/images/themes/default/mActionSelect.svg\"/> )"
" in the layout. After selecting the element with this tool you can also" " selects and moves elements in the layout. After selecting the element"
" move them around with the arrow keys. For accurate positioning use the" " with this tool you can also move them around with the arrow keys."
" <strong>Position and Size</strong> section, which can be found in the" " For accurate positioning use the <strong>Position and Size</strong> section,"
" tab <strong>Item Properties -> Position and Size</strong>." " which can be found in the tab <strong>Item Properties -> Position and Size</strong>."
" The other move tool (map canvas icon with right arrow) allows one" " The other move tool ( <img src=\":/images/themes/default/mActionMoveItemContent.svg\"/> )"
" to move the map content within a map frame." " allows you to move the map content within a map frame."
) ); ) );
addGuiTip( myTip ); addGuiTip( myTip );
// This tip contributed by Andreas Neumann // This tip contributed by Andreas Neumann
myTip.setTitle( tr( "Lock an element in the layout view" ) ); myTip.setTitle( tr( "Lock an element in the layout view" ) );
myTip.setContent( tr( "By left clicking an element in the layout view you can" myTip.setContent( tr( "Locking an element in the layout view prevents you to select or accidentally"
" select it, by right clicking an element you can lock it. A lock symbol" " move it with the mouse. (Un)Locking an item is done by ticking its checkbox"
" will appear in the upper left corner of the selected element. This" " in the <strong>Items</strong> tab. While in a locked state, you can"
" prevents the element from accidentally being moved with the mouse. While" " still get it selected from the <strong>Items</strong> tab, move it with the arrow keys"
" in a locked state, you cannot move an element with the mouse but you can" " or configure any of its properties in the <strong>Item Properties</strong> tab"
" still move it with the arrow keys or by absolutely positioning it by" " including precisely place it by setting its <strong>Position and Size</strong>."
" setting its <strong>Position and Size</strong>."
) ); ) );
addGuiTip( myTip ); addGuiTip( myTip );
// This tip contributed by Andreas Neumann // This tip contributed by Andreas Neumann
Expand Down Expand Up @@ -138,7 +137,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
myTip.setContent( tr( "You can use the scroll wheel on your mouse to zoom in," myTip.setContent( tr( "You can use the scroll wheel on your mouse to zoom in,"
" out and pan the map. Scroll forwards to zoom in, scroll backwards to" " out and pan the map. Scroll forwards to zoom in, scroll backwards to"
" zoom out and press and hold the scroll wheel down to pan the map. You" " zoom out and press and hold the scroll wheel down to pan the map. You"
" can configure options for scroll wheel behaviour in the Options panel." " can configure the zoom scale factor in the <strong>Options -> Map tools</strong> panel."
) ); ) );
addGuiTip( myTip ); addGuiTip( myTip );
// by Tim // by Tim
Expand Down Expand Up @@ -174,7 +173,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
" have the financial ability to help, please consider sponsoring the" " have the financial ability to help, please consider sponsoring the"
" development of QGIS. We use money from sponsors to pay for" " development of QGIS. We use money from sponsors to pay for"
" travel and costs related to our regular hackfest meetings, and to generally" " travel and costs related to our regular hackfest meetings, and to generally"
" support the goals of our project. Please see the<a" " support the goals of our project. Please see the <a"
" href=\"https://qgis.org/en/site/getinvolved/governance/sponsorship/sponsorship.html\">QGIS Sponsorship Web" " href=\"https://qgis.org/en/site/getinvolved/governance/sponsorship/sponsorship.html\">QGIS Sponsorship Web"
" Page</a> for more details." " Page</a> for more details."
) ); ) );
Expand All @@ -183,8 +182,8 @@ QgsTipFactory::QgsTipFactory() : QObject()
myTip.setTitle( tr( "QGIS has Plugins!" ) ); myTip.setTitle( tr( "QGIS has Plugins!" ) );
myTip.setContent( tr( "QGIS has plugins that extend its functionality." myTip.setContent( tr( "QGIS has plugins that extend its functionality."
" QGIS ships with some core plugins you can explore from the" " QGIS ships with some core plugins you can explore from the"
" Plugins->Manage and Install Plugins menu. In addition there are a lot" " <strong>Plugins -> Manage and Install</strong> Plugins menu. In addition there"
" of <a href=\"https://plugins.qgis.org/\">Python plugins </a>" " are a lot of <a href=\"https://plugins.qgis.org/\">Python plugins </a>"
" contributed by the user community that can be" " contributed by the user community that can be"
" installed via this same menu. Don't miss out on all QGIS has to offer!" " installed via this same menu. Don't miss out on all QGIS has to offer!"
" Check out the plugins and see what they can do for you." " Check out the plugins and see what they can do for you."
Expand All @@ -202,7 +201,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
myTip.setTitle( tr( "Copy, paste and cut in QGIS" ) ); myTip.setTitle( tr( "Copy, paste and cut in QGIS" ) );
myTip.setContent( tr( "Copy, paste, and cut work as in another applications in QGIS. Select a " myTip.setContent( tr( "Copy, paste, and cut work as in another applications in QGIS. Select a "
"feature (a geometry or an attribut row in the attribute table) and use " "feature (a geometry or an attribut row in the attribute table) and use "
"one of this shortcuts: Ctrl+C to copy, Ctrl+X to cut, and Ctrl+V to paste." "one of these shortcuts: Ctrl+C to copy, Ctrl+X to cut, and Ctrl+V to paste."
) ); ) );
addGuiTip( myTip ); addGuiTip( myTip );
// by yjacolin // by yjacolin
Expand All @@ -221,7 +220,46 @@ QgsTipFactory::QgsTipFactory() : QObject()
myTip.setContent( tr( "If you have a number of aerial photos spread across a wide area, instead of " myTip.setContent( tr( "If you have a number of aerial photos spread across a wide area, instead of "
"loading each file as a separate layer you can treat them all as a single layer " "loading each file as a separate layer you can treat them all as a single layer "
"by using a .vrt file. " "by using a .vrt file. "
"To create a .vrt, go to Raster -> Miscellaneous -> Build Virtual Raster (Catalog)." "To create a .vrt, go to <strong>Raster -> Miscellaneous -> Build Virtual Raster (Catalog)</strong>."
) );
addGuiTip( myTip );
// by Harrissou Sant-anna
myTip.setTitle( tr( "Switch quickly between different styles of the layer" ) );
myTip.setContent( tr( "From the Layer properties dialog, use the <strong>Styles -> Add</strong> combobox"
" to create as many combinations of layer properties settings (symbology, labeling,"
" diagram, fields form, actions...) as you want. Then, simply switch between styles"
" from the context menu of the layer in <strong>Layers Panel</strong> to automatically"
"get different custom representations of your data."
) );
addGuiTip( myTip );
// by Harrissou Sant-anna
myTip.setTitle( tr( "Live update rendering" ) );
myTip.setContent( tr( "Press F7 to activate the <strong>Layer Styling</strong> panel from which you can"
" easily and quickly configure the layer rendering. Check the <strong>Live update</strong>"
" option to automatically apply to the map canvas each of your modifications."
) );
addGuiTip( myTip );
// by Harrissou Sant-anna
myTip.setTitle( tr( "Print or export a specific feature from an atlas composition" ) );
myTip.setContent( tr( "If you want to print or export the composition of only one feature of the atlas,"
" start the atlas preview, select the desired feature in the drop-down list"
" and click on <strong>Composer -> Print</strong> menu (or use <strong>Composer ->"
" Export...</strong> to any supported file format)."
) );
addGuiTip( myTip );
// by Harrissou Sant-anna
myTip.setTitle( tr( "Start QGIS from command line" ) );
myTip.setContent( tr( "QGIS can be launched from command line and supports a number of options. This can be"
" handy if you need to use QGIS with particular configurations such as custom"
" user profile or, without plugins... To get the list of the options,"
" enter qgis --help on the command line."
) );
addGuiTip( myTip );
// by Harrissou Sant-anna
myTip.setTitle( tr( "Set your own shortcuts for your actions" ) );
myTip.setContent( tr( "QGIS provides you with a list of predefined shortcuts you can use to speed"
" your workflow. These are available under <strong>Settings -> Configure"
" shortcuts</strong> menu and can be extended and customized for any dialog or tool."
) ); ) );
addGuiTip( myTip ); addGuiTip( myTip );


Expand Down

0 comments on commit 91d0f1e

Please sign in to comment.