comparison base/PropertyContainer.h @ 1751:77543124651b by-id

Overhaul PlayParameters bits
author Chris Cannam
date Thu, 04 Jul 2019 18:04:21 +0100
parents c01cbe41aeb5
children
comparison
equal deleted inserted replaced
1750:d0ef65d8dd89 1751:77543124651b
19 #include "Command.h" 19 #include "Command.h"
20 20
21 #include <QString> 21 #include <QString>
22 #include <QObject> 22 #include <QObject>
23 #include <vector> 23 #include <vector>
24 #include <memory>
24 25
25 class PlayParameters; 26 class PlayParameters;
26 class RangeMapper; 27 class RangeMapper;
27 28
28 class PropertyContainer : public QObject 29 class PropertyContainer : public QObject
109 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; 110 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const;
110 111
111 virtual QString getPropertyContainerName() const = 0; 112 virtual QString getPropertyContainerName() const = 0;
112 virtual QString getPropertyContainerIconName() const = 0; 113 virtual QString getPropertyContainerIconName() const = 0;
113 114
114 virtual PlayParameters *getPlayParameters() { return 0; } 115 /**
116 * Return the play parameters for this layer, if any. The return
117 * value is a shared_ptr that, if not null, can be passed to
118 * e.g. PlayParameterRepository::EditCommand to change the
119 * parameters.
120 */
121 virtual std::shared_ptr<PlayParameters> getPlayParameters() { return {}; }
115 122
116 signals: 123 signals:
117 void propertyChanged(PropertyContainer::PropertyName); 124 void propertyChanged(PropertyContainer::PropertyName);
118 125
119 public slots: 126 public slots: