Add Activity Details to Sidebar

The metadata information is now shown within
the sidebar.

We need to implement a mechanism for the users
to configure the sidebar widgets etc pretty soon
now, since this update is useful, but the sidebar
is getting crowded out.

Minor changes to ridemetadata to allow a 'single
column' view, but mostly all the widgets were
already instantiated so there is no real cost
to this update.
This commit is contained in:
Mark Liversedge
2011-08-31 21:11:49 +01:00
parent 26a0c98028
commit 70c371d982
4 changed files with 9 additions and 5 deletions

View File

@@ -162,8 +162,7 @@ MainWindow::MainWindow(const QDir &home) :
*--------------------------------------------------------------------*/
// Metadata fields
_rideMetadata = new RideMetadata(this);
_rideMetadata->hide(); // never displayed
_rideMetadata = new RideMetadata(this,true);
metricDB = new MetricAggregator(this, home, zones(), hrZones()); // just to catch config updates!
metricDB->refreshMetrics();
@@ -403,6 +402,7 @@ MainWindow::MainWindow(const QDir &home) :
// POPULATE TOOLBOX
toolBox->addItem(listView, QIcon(":images/activity.png"), "Activity History");
toolBox->addItem(_rideMetadata, QIcon(":images/metadata.png"), "Activity Details");
toolBox->addItem(intervalSplitter, QIcon(":images/stopwatch.png"), "Best Intervals and Laps");
toolBox->addItem(masterControls, QIcon(":images/settings.png"), "Chart Settings");
toolBox->addItem(new AthleteTool(QFileInfo(home.path()).path(), this), QIcon(":images/toolbar/main/athlete.png"), "Athletes");