|
TracktionEngine
|
Base class for things that can be selected, and whose properties can appear in the properties panel. More...
#include <tracktion_Selectable.h>
Classes | |
| class | Listener |
Public Types | |
| using | WeakRef = juce::WeakReference<Selectable> |
Public Member Functions | |
| Selectable () | |
| virtual | ~Selectable () |
| virtual juce::String | getSelectableDescription ()=0 |
| Subclasses must return a description of what they are. | |
| virtual void | selectionStatusChanged (bool isNowSelected) |
| Can be overridden to tell this object that it has just been selected or deselected. | |
| virtual void | changed () |
| This should be called to send a change notification to any SelectableListeners that are registered with this object. | |
| virtual void | selectableAboutToBeDeleted () |
| Called just before the selectable is about to be deleted so any subclasses should still be valid at this point. | |
| void | addListener (SelectableListener *) |
| void | removeListener (SelectableListener *) |
| void | addSelectableListener (SelectableListener *) |
| void | removeSelectableListener (SelectableListener *) |
| void | cancelAnyPendingUpdates () |
| If changed() has been called, this will cancel any pending async change notificaions. | |
| void | deselect () |
| void | propertiesChanged () |
| void | notifyListenersOfDeletion () |
| WeakRef | getWeakRef () |
Static Public Member Functions | |
| static void | initialise () |
| static bool | isSelectableValid (const Selectable *) noexcept |
| checks whether this object has been deleted. | |
Public Attributes | |
| WeakRef::Master | masterReference |
Base class for things that can be selected, and whose properties can appear in the properties panel.
| using engine::Selectable::WeakRef = juce::WeakReference<Selectable> |
| engine::Selectable::Selectable | ( | ) |
Referenced by engine::ClipSlot::getClipOwnerSelectable(), engine::AutomatableParameter::getOwnerSelectable(), isSelectableValid(), engine::Selectable::Listener::Listener(), engine::Selectable::Listener::selectableObjectAboutToBeDeleted(), engine::Selectable::Listener::selectableObjectChanged(), and SelectableUpdateTimer.
|
virtual |
|
static |
|
pure virtual |
Subclasses must return a description of what they are.
Implemented in engine::AirWindowsPlugin, engine::ArrangerClip, engine::ArrangerTrack, engine::AudioTrack, engine::AutomatableParameter, engine::AutomationCurveModifier, engine::AutomationTrack, engine::AuxReturnPlugin, engine::AuxSendPlugin, engine::BreakpointOscillatorModifier, engine::ChannelMapperPlugin, engine::ChordClip, engine::ChordTrack, engine::ChorusPlugin, engine::ClipSlot, engine::CollectionClip, engine::CompressorPlugin, engine::ContainerClip, engine::ControlSurface, engine::DelayPlugin, engine::Edit, engine::EditClip, engine::EnvelopeFollowerModifier, engine::EqualiserPlugin, engine::ExternalPlugin, engine::FolderTrack, engine::FourOscPlugin, engine::FreezePointPlugin, engine::ImpulseResponsePlugin, engine::InputDeviceInstance::Destination, engine::InsertPlugin, engine::LatencyPlugin, engine::LevelMeterPlugin, engine::LFOModifier, engine::LowPassPlugin, engine::MakeMonoEffect, engine::MarkerClip, engine::MarkerTrack, engine::MasterTrack, engine::MidiClip, engine::MidiModifierPlugin, engine::MidiPatchBayPlugin, engine::MIDITrackerModifier, engine::NormaliseEffect, engine::PatchBayPlugin, engine::PhaserPlugin, engine::PitchSetting, engine::PitchShiftPlugin, engine::Project, engine::ProjectItem, engine::RackInstance, engine::RackType, engine::RandomModifier, engine::ReverbPlugin, engine::SamplerPlugin, engine::Scene, engine::SelectedMidiEvents, engine::StepClip::Channel, engine::StepClip, engine::StepClip::PatternInstance, engine::StepModifier, engine::StepVolumeEffect, engine::TempoSequence, engine::TempoSetting, engine::TempoTrack, engine::TextPlugin, engine::TimeSigSetting, engine::ToneGeneratorPlugin, engine::TrackCompManager::TrackComp, engine::VCAPlugin, engine::VolumeAndPanPlugin, and engine::WaveAudioClip.
|
virtual |
Can be overridden to tell this object that it has just been selected or deselected.
Reimplemented in engine::AudioClipBase, engine::CurveEditorPoint, engine::ProjectItem, and engine::SelectedMidiEvents.
|
virtual |
This should be called to send a change notification to any SelectableListeners that are registered with this object.
Reimplemented in engine::AudioClipBase, engine::Clip, engine::EditClip, and engine::Plugin.
|
virtual |
Called just before the selectable is about to be deleted so any subclasses should still be valid at this point.
Reimplemented in engine::ExternalPlugin, engine::Modifier, and engine::Plugin.
| void engine::Selectable::addListener | ( | SelectableListener * | ) |
| void engine::Selectable::removeListener | ( | SelectableListener * | ) |
| void engine::Selectable::addSelectableListener | ( | SelectableListener * | ) |
| void engine::Selectable::removeSelectableListener | ( | SelectableListener * | ) |
|
staticnoexcept |
checks whether this object has been deleted.
This is pretty reliable, and can be called with a null pointer, but isn't 100% perfect, as it can provide a false-positive when an object is deleted, and another one later created that happens to have the same memory address.
References Selectable().
| void engine::Selectable::cancelAnyPendingUpdates | ( | ) |
If changed() has been called, this will cancel any pending async change notificaions.
| void engine::Selectable::deselect | ( | ) |
| void engine::Selectable::propertiesChanged | ( | ) |
| void engine::Selectable::notifyListenersOfDeletion | ( | ) |
Referenced by engine::AirWindowsAutomatableParameter::~AirWindowsAutomatableParameter(), engine::InputDeviceInstance::Destination::~Destination(), engine::DiscreteLabelledParameter::~DiscreteLabelledParameter(), engine::ExternalAutomatableParameter::~ExternalAutomatableParameter(), engine::InputDeviceInstance::MidiInputDestination::~MidiInputDestination(), engine::StepClip::PatternInstance::~PatternInstance(), engine::SuffixedParameter::~SuffixedParameter(), engine::InputDeviceInstance::VirtualMidiInputDestination::~VirtualMidiInputDestination(), and engine::InputDeviceInstance::WaveInputDestination::~WaveInputDestination().
| WeakRef engine::Selectable::getWeakRef | ( | ) |
| WeakRef::Master engine::Selectable::masterReference |