mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
added "About GoldenCheetah" dialog with build date and link to GPL
This commit is contained in:
@@ -13,6 +13,7 @@ LIBS += -lm -lz
|
||||
macx {
|
||||
LIBS += -framework Carbon
|
||||
}
|
||||
QMAKE_CXXFLAGS = -DGC_BUILD_DATE="`date +'\"%a_%b_%d,_%Y\"'`"
|
||||
|
||||
# Input
|
||||
HEADERS += \
|
||||
|
||||
@@ -287,6 +287,9 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
rideMenu->addAction(tr("&Import from SRM..."), this,
|
||||
SLOT(importSRM()), tr("Ctrl+I"));
|
||||
|
||||
QMenu *helpMenu = menuBar()->addMenu(tr("&Help"));
|
||||
helpMenu->addAction(tr("&About GoldenCheetah"), this, SLOT(aboutDialog()));
|
||||
|
||||
if (last != NULL)
|
||||
treeWidget->setCurrentItem(last);
|
||||
}
|
||||
@@ -656,3 +659,21 @@ MainWindow::pickerMoved(const QPoint &pos)
|
||||
curve_to_point(minutes, cpintPlot->getAllCurve())));
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::aboutDialog()
|
||||
{
|
||||
QMessageBox::about(this, tr("About GoldenCheetah"), tr(
|
||||
"<center>"
|
||||
"<h2>GoldenCheetah</h2>"
|
||||
"<i>Cycling Power Analysis Software for Linux and Mac OS X</i>"
|
||||
"<p><i>Build date: "
|
||||
"") + QString(GC_BUILD_DATE).replace("_", " ") + ("</i>"
|
||||
"</center>"
|
||||
"<p>GoldenCheetah is licensed under the "
|
||||
"<a href=\"http://www.gnu.org/copyleft/gpl.html\">GNU General "
|
||||
"Public License</a>. Source code can be obtained from "
|
||||
"<a href=\"http://goldencheetah.org/\">"
|
||||
"http://goldencheetah.org/</a>."
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ class MainWindow : public QMainWindow
|
||||
void setBinWidthFromLineEdit();
|
||||
void tabChanged(int index);
|
||||
void pickerMoved(const QPoint &);
|
||||
void aboutDialog();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user