1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 16:37:12 +01:00

Redefine the factories for track views and controls...

... non-intrusively in the Track suclasses, registering functions instead.

For each abstract factory function (of two), build a table of concrete factory
functions, paralleling the hierarchy of Track subclesses.  Dispatch using
runt time type information in the Track objects.
This commit is contained in:
Paul Licameli
2019-06-21 08:49:24 -04:00
parent 77eeba5463
commit 3e0d48cc14
15 changed files with 88 additions and 56 deletions

View File

@@ -113,10 +113,6 @@ private:
Track::Holder Clone() const override;
friend class TrackFactory;
protected:
std::shared_ptr<TrackView> DoGetView() override;
std::shared_ptr<TrackControls> DoGetControls() override;
};