Add context sensitive help for the toolbar

Includes updated screen capture for the wiki.
This commit is contained in:
Alejandro Martinez
2022-07-04 17:31:38 -03:00
parent 48c8725507
commit 6d4921ba09
5 changed files with 22 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -83,14 +83,18 @@ HelpWhatsThis::getText(GCHelp chapter) {
return text.arg("ScopeBar_Views#options").arg(tr("Application level Options/Preferences for all athletes"));
// Tool Bar
case ToolBar_Download:
return text.arg("First-Steps_Download-or-import#downloading-a-activity-from-device").arg(tr("Direct download from Powertap, SRM, Joule, Joule GPS, Moxy Monitor or Macro-X device"));
case ToolBar_Manual:
return text.arg("Menu%20Bar_Activity").arg(tr("Import any activity file - supported by Golden Cheetah - mass import is supported here"));
case ToolBar_Back:
return text.arg("Tool%20Bar_Functions#back").arg(tr("Navigate backward"));
case ToolBar_Forward:
return text.arg("Tool%20Bar_Functions#forward").arg(tr("Navigate forward"));
case ToolBar_PerspectiveSelector:
return text.arg("Tool%20Bar_Functions#perspective-selector").arg(tr("Select active perspective for the current view, create new perspectives and manage existing ones"));
case ToolBar_ToggleSidebar:
return text.arg("Menu%20Bar_View").arg(tr("Activate / De-activate the Sidebar - which provides different sub-sections to select data shown in the main view"));
return text.arg("Tool%20Bar_Functions#side-bar").arg(tr("Activate / De-activate the Sidebar - which provides different sub-sections to select data shown in the main view"));
case ToolBar_ToggleComparePane:
return text.arg("Compare-Pane_General").arg(tr("Activate / De-activate the Compare Pane - which allows to compare activities, intervals or date ranges - also across athletes"));
return text.arg("Tool%20Bar_Functions#bottom-bar").arg(tr("Activate / De-activate the Compare Pane - which allows to compare activities and intervals in Activities View or date ranges in Trends View - also across athletes. In Train View it shows/hide the Intensity Adjustments and Workout Control Pane."));
case ToolBar_TabTile:
return text.arg("Tool%20Bar_Functions#tabtile").arg(tr("Changes the current view layout between Tabbed and Tiled"));
// Menus
case MenuBar_Athlete:

View File

@@ -41,10 +41,12 @@ Q_OBJECT
ScopeBar_Sync,
ScopeBar_Options,
ToolBar_Download,
ToolBar_Manual,
ToolBar_Back,
ToolBar_Forward,
ToolBar_PerspectiveSelector,
ToolBar_ToggleSidebar,
ToolBar_ToggleComparePane,
ToolBar_TabTile,
MenuBar_Athlete,

View File

@@ -283,6 +283,8 @@ MainWindow::MainWindow(const QDir &home)
back->setIconSize(isize);
back->setStyle(toolStyle);
connect(back, SIGNAL(clicked(bool)), this, SIGNAL(backClicked()));
HelpWhatsThis *helpBack = new HelpWhatsThis(back);
back->setWhatsThis(helpBack->getWhatsThisText(HelpWhatsThis::ToolBar_Back));
forward = new QPushButton(this);
forward->setIcon(forwardIcon);
@@ -291,6 +293,8 @@ MainWindow::MainWindow(const QDir &home)
forward->setIconSize(isize);
forward->setStyle(toolStyle);
connect(forward, SIGNAL(clicked(bool)), this, SIGNAL(forwardClicked()));
HelpWhatsThis *helpForward = new HelpWhatsThis(forward);
forward->setWhatsThis(helpForward->getWhatsThisText(HelpWhatsThis::ToolBar_Forward));
lowbar = new QPushButton(this);
lowbar->setIcon(lowbarIcon);
@@ -322,6 +326,8 @@ MainWindow::MainWindow(const QDir &home)
lowbar->setStyle(toolStyle);
tabtile->setToolTip(tr("Toggle Tab/Tile"));
connect(tabtile, SIGNAL(clicked(bool)), this, SLOT(toggleStyle()));
HelpWhatsThis *helpTabtile = new HelpWhatsThis(tabtile);
tabtile->setWhatsThis(helpTabtile->getWhatsThisText(HelpWhatsThis::ToolBar_TabTile));
// What's this button
whatsthis = new QPushButton(this);
@@ -339,6 +345,8 @@ MainWindow::MainWindow(const QDir &home)
perspectiveSelector->setFixedWidth(200 * dpiXFactor);
perspectiveSelector->setFixedHeight(gl_toolheight * dpiYFactor);
connect(perspectiveSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(perspectiveSelected(int)));
HelpWhatsThis *helpPerspectiveSelector = new HelpWhatsThis(perspectiveSelector);
perspectiveSelector->setWhatsThis(helpPerspectiveSelector->getWhatsThisText(HelpWhatsThis::ToolBar_PerspectiveSelector));
searchBox = new SearchFilterBox(this,context,false);