1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +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

@@ -222,10 +222,6 @@ public:
int mVisibleChannels; // bit set of visible channels
std::weak_ptr<StretchHandle> mStretchHandle;
protected:
std::shared_ptr<TrackView> DoGetView() override;
std::shared_ptr<TrackControls> DoGetControls() override;
};
/// Data used to display a note track