Files
GoldenCheetah/src/HelpWindow.cpp
Joern aada4f4341 Adding "Help Overview" Window
... Help Overview Window added to MainWindow - containing
.. Info on new "Shift"+"F1" Context specific Help
.. Links to Golden Cheetah Tutorials, Science, User's Guide, FAQ
2014-12-31 14:35:15 +01:00

61 lines
2.5 KiB
C++

/*
* Copyright (c) 2010 Mark Liversedge (liversedge@gmail.com)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "HelpWindow.h"
#include "MainWindow.h"
HelpWindow::HelpWindow(Context *context) : context(context)
{
setWindowTitle(tr("Help Overview"));
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::Tool);
// prepare the text
fillPage();
// layout the widget
layout = new QVBoxLayout();
layout->addWidget(textPage);
setLayout(layout);
}
void
HelpWindow::fillPage() {
textPage = new QLabel(this);
textPage->setContentsMargins(0,0,0,0);
textPage->setOpenExternalLinks(true);
textPage->setText(tr("<center>"
"<img src=\":images/gc.png\" height=80>"
"<h2>Help Options</h2>"
"<b><tt>\"Shift\"+\"F1\"</tt></b><br>provides a context specific short description of a feature"
" including the link to the Wiki page explaining more details<hr>"
"<h3>Additional documentation and tutorials are available here:</h3>"
"<br><a href=\"http://www.goldencheetah.org\">Golden Cheetah Website</a>"
"<br><a href=\"http://www.goldencheetah.org/#section-tutorials\">Golden Cheetah Website - Video Tutorials</a>"
"<br><a href=\"http://www.goldencheetah.org/#section-science\">Golden Cheetah Website - Science in Golden Cheetah</a>"
"<br><a href=\"https://github.com/GoldenCheetah/GoldenCheetah/wiki\">Wiki Overview</a>"
"<br><a href=\"https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Main-Page_Users-Guide\">Wiki - User's Guide</a>"
"<br><a href=\"https://github.com/GoldenCheetah/GoldenCheetah/wiki/FAQ\">Wiki - Frequently Asked Questions</a>"
));
}