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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user