linuxsampler 2.3.1
LinuxSampler::InstrumentEditorListener Class Referenceabstract

Instrument Editor Notifications. More...

#include <InstrumentEditor.h>

Public Member Functions

virtual void OnInstrumentEditorQuit (InstrumentEditor *pSender)=0
 Called after the instrument editor stopped running.
 
virtual void OnSamplesToBeRemoved (std::set< void * > Samples, InstrumentEditor *pSender)=0
 Called before samples are to be deleted.
 
virtual void OnSamplesRemoved (InstrumentEditor *pSender)=0
 Called after samples have been deleted.
 
virtual void OnDataStructureToBeChanged (void *pStruct, String sStructType, InstrumentEditor *pSender)=0
 Called before data structure is to be modified.
 
virtual void OnDataStructureChanged (void *pStruct, String sStructType, InstrumentEditor *pSender)=0
 Called after data structure has been modified.
 
virtual void OnSampleReferenceChanged (void *pOldSample, void *pNewSample, InstrumentEditor *pSender)=0
 Called after some data structure changed its reference to a sample.
 

Detailed Description

Instrument Editor Notifications.

This abstract interface class has to be implemented by classes that want to be notified on certain events of an instrument editor. This is typically used on sampler side, but might also be used by an instrument editor to get informed about modifications another instrument editor makes.

Definition at line 260 of file InstrumentEditor.h.

Member Function Documentation

◆ OnDataStructureChanged()

virtual void LinuxSampler::InstrumentEditorListener::OnDataStructureChanged ( void pStruct,
String  sStructType,
InstrumentEditor pSender 
)
pure virtual

Called after data structure has been modified.

See the dispatcher method InstrumentEditor::NotifyDataStructureChanged() for details. This method has to be implemented by the descendant.

Parameters
pStruct- data structure that has been modified
sStructType- name of the data structure (i.e. its C++ struct or class name)
pSender- instrument editor that did this modification

◆ OnDataStructureToBeChanged()

virtual void LinuxSampler::InstrumentEditorListener::OnDataStructureToBeChanged ( void pStruct,
String  sStructType,
InstrumentEditor pSender 
)
pure virtual

Called before data structure is to be modified.

See the dispatcher method InstrumentEditor::NotifyDataStructureToBeChanged() for details. This method has to be implemented by the descendant.

Parameters
pStruct- data structure going to be modified
sStructType- name of the data structure (i.e. its C++ struct or class name)
pSender- instrument editor that is going to do this modification

◆ OnInstrumentEditorQuit()

virtual void LinuxSampler::InstrumentEditorListener::OnInstrumentEditorQuit ( InstrumentEditor pSender)
pure virtual

Called after the instrument editor stopped running.

Automatically called after the instrument editor application stopped running. This method has to be implemented by the descendant.

Parameters
pSender- instrument editor that died

◆ OnSampleReferenceChanged()

virtual void LinuxSampler::InstrumentEditorListener::OnSampleReferenceChanged ( void pOldSample,
void pNewSample,
InstrumentEditor pSender 
)
pure virtual

Called after some data structure changed its reference to a sample.

InstrumentEditor::NotifySampleReferenceChanged() for details. This method has to be implemented by the descendant.

Parameters
pOldSample- previous sample reference
pNewSample- current sample reference
pSender- instrument editor that did this modification

◆ OnSamplesRemoved()

virtual void LinuxSampler::InstrumentEditorListener::OnSamplesRemoved ( InstrumentEditor pSender)
pure virtual

Called after samples have been deleted.

See the dispatcher method InstrumentEditor::NotifySamplesRemoved() for details. This method has to be implemented by the descendant.

Parameters
pSender- instrument editor that did this modification

◆ OnSamplesToBeRemoved()

virtual void LinuxSampler::InstrumentEditorListener::OnSamplesToBeRemoved ( std::set< void * >  Samples,
InstrumentEditor pSender 
)
pure virtual

Called before samples are to be deleted.

See the dispatcher method InstrumentEditor::NotifySamplesToBeRemoved() for details. This method has to be implemented by the descendant.

Parameters
Samples- list of samples that will be deleted by the instrument editor
pSender- instrument editor that is going to do this modification

The documentation for this class was generated from the following file: