1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-28 17:05:09 +01:00

Registration of toolbar factory functions...

... reduces direct dependencies of ToolManager.cpp.

This frees four files from cycles:
DeviceToolBar
EditToolBar
MeterToolBar
MixerToolBar

Leaving 66 files still in the big s.c.c.
This commit is contained in:
Paul Licameli
2019-06-12 15:53:13 -04:00
parent 0a29afb933
commit e6d7a72a73
13 changed files with 87 additions and 27 deletions

View File

@@ -980,3 +980,7 @@ void TranscriptionToolBar::AdjustPlaySpeed(float adj)
OnSpeedSlider(e);
}
static RegisteredToolbarFactory factory{ TranscriptionBarID,
[](AudacityProject *){
return ToolBar::Holder{ safenew TranscriptionToolBar }; }
};