Enable Context Help (Shift+F1) using "QT's - What's This"

... adds "What's this" to (hopefully) most of the widgets (please report
on missing ones)
... defines draft "Whats' this" texts including a
context specific WikiLink

.. Help Key for all platforms is <Shift>+<F1> + in some widgets
"RightMouse - Click"

... Tested on Win and Mac (On Mac QtMacButton seems not supporting
"What's this") - so here <Shift>+<F1> has no result.

... ToDo: Create final texts and links based on the to be updated 3.11
Wiki
This commit is contained in:
Joern
2014-12-14 18:55:42 +01:00
parent 9a486ae9c8
commit dfb7b8fc36
52 changed files with 824 additions and 6 deletions

View File

@@ -22,6 +22,7 @@
#include "Context.h"
#include "GcWindowLayout.h"
#include "Settings.h"
#include "HelpWhatsThis.h"
#include <QWebSettings>
#include <QWebFrame>
#include "TimeUtils.h"
@@ -59,6 +60,9 @@ DiarySidebar::DiarySidebar(Context *context) : context(context)
layout->setContentsMargins(0,0,0,0);
calendarItem->addWidget(calWidget);
HelpWhatsThis *helpCalendarItem = new HelpWhatsThis(calendarItem);
calendarItem->setWhatsThis(helpCalendarItem->getWhatsThisText(HelpWhatsThis::SideBarDiaryView_Calendar));
// summary widget
summaryWidget = new QWidget(this);
summaryWidget->setContentsMargins(0,0,0,0);
@@ -69,6 +73,9 @@ DiarySidebar::DiarySidebar(Context *context) : context(context)
slayout->setContentsMargins(0,0,0,0);
summaryItem->addWidget(summaryWidget);
HelpWhatsThis *helpSummaryItem = new HelpWhatsThis(summaryItem);
summaryItem->setWhatsThis(helpSummaryItem->getWhatsThisText(HelpWhatsThis::SideBarDiaryView_Summary));
splitter->addWidget(calendarItem);
splitter->addWidget(summaryItem);
splitter->prepare(context->athlete->cyclist, "diary");