|
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 | ( | ) |
|
virtual |
|
static |
|
pure virtual |
Subclasses must return a description of what they are.
Implemented in engine::ControlSurface, engine::SelectedMidiEvents, engine::BreakpointOscillatorModifier, engine::EnvelopeFollowerModifier, engine::LFOModifier, engine::MIDITrackerModifier, engine::RandomModifier, engine::StepModifier, engine::AutomatableParameter, engine::AutomationCurveModifier, engine::ArrangerClip, engine::ChordClip, engine::StepVolumeEffect, engine::NormaliseEffect, engine::MakeMonoEffect, engine::CollectionClip, engine::ContainerClip, engine::EditClip, engine::MarkerClip, engine::MidiClip, engine::StepClip::Channel, engine::StepClip::PatternInstance, engine::StepClip, engine::WaveAudioClip, engine::Edit, engine::PitchSetting, engine::Scene, engine::TempoSequence, engine::TempoSetting, engine::TimeSigSetting, engine::ArrangerTrack, engine::AudioTrack, engine::AutomationTrack, engine::ChordTrack, engine::ClipSlot, engine::FolderTrack, engine::MarkerTrack, engine::MasterTrack, engine::TempoTrack, engine::TrackCompManager::TrackComp, engine::InputDeviceInstance::Destination, engine::AirWindowsPlugin, engine::ChorusPlugin, engine::CompressorPlugin, engine::DelayPlugin, engine::EqualiserPlugin, engine::FourOscPlugin, engine::ImpulseResponsePlugin, engine::LatencyPlugin, engine::LowPassPlugin, engine::MidiModifierPlugin, engine::MidiPatchBayPlugin, engine::PatchBayPlugin, engine::PhaserPlugin, engine::PitchShiftPlugin, engine::ReverbPlugin, engine::SamplerPlugin, engine::ToneGeneratorPlugin, engine::ExternalPlugin, engine::AuxReturnPlugin, engine::AuxSendPlugin, engine::ChannelMapperPlugin, engine::FreezePointPlugin, engine::InsertPlugin, engine::LevelMeterPlugin, engine::RackInstance, engine::RackType, engine::TextPlugin, engine::VCAPlugin, engine::VolumeAndPanPlugin, engine::Project, and engine::ProjectItem.
|
virtual |
Can be overridden to tell this object that it has just been selected or deselected.
Reimplemented in engine::SelectedMidiEvents, engine::AudioClipBase, engine::ProjectItem, and engine::CurveEditorPoint.
|
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::Modifier, engine::ExternalPlugin, 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.
| 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 | ( | ) |
| WeakRef engine::Selectable::getWeakRef | ( | ) |
| WeakRef::Master engine::Selectable::masterReference |