mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
added a new air density (rho) estimator dialog box, hooked it into the Tools menu, and updated src.pro to add compilation dependencies for it
This commit is contained in:
committed by
Mark Liversedge
parent
c0ba84cdbc
commit
5c8beee46d
@@ -50,6 +50,7 @@
|
||||
#include "RideCalendar.h"
|
||||
#include "DatePickerDialog.h"
|
||||
#include "ToolsDialog.h"
|
||||
#include "ToolsRhoEstimator.h"
|
||||
#include "MetricAggregator.h"
|
||||
#include "SplitActivityWizard.h"
|
||||
#include "BatchExportDialog.h"
|
||||
@@ -610,6 +611,7 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
QMenu *optionsMenu = menuBar()->addMenu(tr("&Tools"));
|
||||
optionsMenu->addAction(tr("&Options..."), this, SLOT(showOptions()), tr("Ctrl+O"));
|
||||
optionsMenu->addAction(tr("Critical Power Calculator..."), this, SLOT(showTools()));
|
||||
optionsMenu->addAction(tr("Air Density (Rho) Estimator..."), this, SLOT(showRhoEstimator()));
|
||||
|
||||
optionsMenu->addSeparator();
|
||||
optionsMenu->addAction(tr("Workout Wizard"), this, SLOT(showWorkoutWizard()));
|
||||
@@ -1075,6 +1077,12 @@ void MainWindow::showTools()
|
||||
td->show();
|
||||
}
|
||||
|
||||
void MainWindow::showRhoEstimator()
|
||||
{
|
||||
ToolsRhoEstimator *tre = new ToolsRhoEstimator();
|
||||
tre->show();
|
||||
}
|
||||
|
||||
void MainWindow::showWorkoutWizard()
|
||||
{
|
||||
WorkoutWizard *ww = new WorkoutWizard(this);
|
||||
|
||||
Reference in New Issue
Block a user