Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::MidiModel::PatchChangeDiffCommand Class Reference

#include <midi_model.h>

Inheritance diagram for ARDOUR::MidiModel::PatchChangeDiffCommand:
[legend]

Classes

struct  Change
 

Public Types

enum  Property { Time , Channel , Program , Bank }
 

Public Member Functions

 PatchChangeDiffCommand (std::shared_ptr< MidiModel >, const std::string &)
 
 PatchChangeDiffCommand (std::shared_ptr< MidiModel >, const XMLNode &)
 
int set_state (const XMLNode &, int version)
 
XMLNodeget_state () const
 
void operator() ()
 
void undo ()
 
void add (PatchChangePtr)
 
void remove (PatchChangePtr)
 
void change_time (PatchChangePtr, TimeType)
 
void change_channel (PatchChangePtr, uint8_t)
 
void change_program (PatchChangePtr, uint8_t)
 
void change_bank (PatchChangePtr, int)
 
- Public Member Functions inherited from ARDOUR::MidiModel::DiffCommand
 DiffCommand (std::shared_ptr< MidiModel > m, const std::string &name)
 
const std::string & name () const
 
std::shared_ptr< MidiModelmodel () const
 
- Public Member Functions inherited from PBD::Command
virtual ~Command ()
 
void set_name (const std::string &str)
 
const std::string & name () const
 
virtual void redo ()
 
virtual bool empty () const
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_change (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 
- Public Member Functions inherited from PBD::Destructible
virtual ~Destructible ()
 
virtual void drop_references ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Private Types

typedef std::list< ChangeChangeList
 

Private Member Functions

XMLNodemarshal_change (const Change &) const
 
Change unmarshal_change (XMLNode *)
 
XMLNodemarshal_patch_change (constPatchChangePtr) const
 
PatchChangePtr unmarshal_patch_change (XMLNode *)
 

Private Attributes

ChangeList _changes
 
std::list< PatchChangePtr_added
 
std::list< PatchChangePtr_removed
 

Additional Inherited Members

- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal< void()> Destroyed
 
PBD::Signal< void()> DropReferences
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Member Functions inherited from PBD::Command
 Command ()
 
 Command (const std::string &name)
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Attributes inherited from ARDOUR::MidiModel::DiffCommand
std::shared_ptr< MidiModel_model
 
const std::string _name
 
- Protected Attributes inherited from PBD::Command
std::string _name
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 

Detailed Description

Definition at line 201 of file midi_model.h.

Member Typedef Documentation

◆ ChangeList

Definition at line 247 of file midi_model.h.

Member Enumeration Documentation

◆ Property

Enumerator
Time 
Channel 
Program 
Bank 

Definition at line 219 of file midi_model.h.

Constructor & Destructor Documentation

◆ PatchChangeDiffCommand() [1/2]

ARDOUR::MidiModel::PatchChangeDiffCommand::PatchChangeDiffCommand ( std::shared_ptr< MidiModel ,
const std::string &   
)

◆ PatchChangeDiffCommand() [2/2]

ARDOUR::MidiModel::PatchChangeDiffCommand::PatchChangeDiffCommand ( std::shared_ptr< MidiModel ,
const XMLNode  
)

Member Function Documentation

◆ add()

void ARDOUR::MidiModel::PatchChangeDiffCommand::add ( PatchChangePtr  )

◆ change_bank()

void ARDOUR::MidiModel::PatchChangeDiffCommand::change_bank ( PatchChangePtr  ,
int   
)

◆ change_channel()

void ARDOUR::MidiModel::PatchChangeDiffCommand::change_channel ( PatchChangePtr  ,
uint8_t   
)

◆ change_program()

void ARDOUR::MidiModel::PatchChangeDiffCommand::change_program ( PatchChangePtr  ,
uint8_t   
)

◆ change_time()

void ARDOUR::MidiModel::PatchChangeDiffCommand::change_time ( PatchChangePtr  ,
TimeType   
)

◆ get_state()

XMLNode& ARDOUR::MidiModel::PatchChangeDiffCommand::get_state ( ) const
virtual

◆ marshal_change()

XMLNode& ARDOUR::MidiModel::PatchChangeDiffCommand::marshal_change ( const Change ) const
private

◆ marshal_patch_change()

XMLNode& ARDOUR::MidiModel::PatchChangeDiffCommand::marshal_patch_change ( constPatchChangePtr  ) const
private

◆ operator()()

void ARDOUR::MidiModel::PatchChangeDiffCommand::operator() ( )
virtual

◆ remove()

void ARDOUR::MidiModel::PatchChangeDiffCommand::remove ( PatchChangePtr  )

◆ set_state()

int ARDOUR::MidiModel::PatchChangeDiffCommand::set_state ( const XMLNode ,
int  version 
)
virtual

◆ undo()

void ARDOUR::MidiModel::PatchChangeDiffCommand::undo ( )
virtual

◆ unmarshal_change()

Change ARDOUR::MidiModel::PatchChangeDiffCommand::unmarshal_change ( XMLNode )
private

◆ unmarshal_patch_change()

PatchChangePtr ARDOUR::MidiModel::PatchChangeDiffCommand::unmarshal_patch_change ( XMLNode )
private

Member Data Documentation

◆ _added

std::list<PatchChangePtr> ARDOUR::MidiModel::PatchChangeDiffCommand::_added
private

Definition at line 250 of file midi_model.h.

◆ _changes

ChangeList ARDOUR::MidiModel::PatchChangeDiffCommand::_changes
private

Definition at line 248 of file midi_model.h.

◆ _removed

std::list<PatchChangePtr> ARDOUR::MidiModel::PatchChangeDiffCommand::_removed
private

Definition at line 251 of file midi_model.h.


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