mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Introduce Toolbox to GUI
The left side of MainWindow is now a toolbox which contains Ride Analysis and Racing and Training options. The Right side tabs have been reorganised and associated with the toolbox. To support the population of the Racing and Training left tool the config dialog has been updated to enable the user to configure the location of their workouts. In addition, the config dialog now calls upon MainWindow to issue a configUpdate() signal to notify widgets when config has been updated. This is a refactoring of the existing mechanism that only called realtimeWindow->updateConfig, now any widget can connect to the MainWindow signal and re-read its config appropriately. Currently, the TrainTool and RealtimeWindow widgets have been coded to use this.
This commit is contained in:
committed by
Sean Rhea
parent
e5affbbc64
commit
e93970ed4d
@@ -153,6 +153,7 @@ void ConfigDialog::save_Clicked()
|
||||
settings->setValue(GC_CRANKLENGTH, configPage->crankLengthCombo->currentText());
|
||||
settings->setValue(GC_BIKESCOREDAYS, configPage->BSdaysEdit->text());
|
||||
settings->setValue(GC_BIKESCOREMODE, configPage->bsModeCombo->currentText());
|
||||
settings->setValue(GC_WORKOUTDIR, configPage->workoutDirectory->text());
|
||||
settings->setValue(GC_INITIAL_STS, cyclistPage->perfManStart->text());
|
||||
settings->setValue(GC_INITIAL_LTS, cyclistPage->perfManStart->text());
|
||||
settings->setValue(GC_STS_DAYS, cyclistPage->perfManSTSavg->text());
|
||||
@@ -196,9 +197,9 @@ void ConfigDialog::save_Clicked()
|
||||
DeviceConfigurations all;
|
||||
all.writeConfig(devicePage->deviceListModel->Configuration);
|
||||
|
||||
// update widgets to let them know config has changed
|
||||
// only realtime sorted thus far;
|
||||
mainWindow->realtimeWindow->configUpdate();
|
||||
// Tell MainWindow we changed config, so it can emit the signal
|
||||
// configChanged() to all its children
|
||||
mainWindow->notifyConfigChanged();
|
||||
}
|
||||
|
||||
void ConfigDialog::moveCalendarToCurrentRange() {
|
||||
|
||||
Reference in New Issue
Block a user