ardour
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PatchChangeDialog Class Reference

#include <patch_change_dialog.h>

Inheritance diagram for PatchChangeDialog:
ArdourDialog ARDOUR::SessionHandlePtr

Public Member Functions

 PatchChangeDialog (const ARDOUR::BeatsFramesConverter *, ARDOUR::Session *, Evoral::PatchChange< Evoral::Beats > const &, ARDOUR::InstrumentInfo &, const Gtk::BuiltinStockID &, bool allow_delete=false)
 
Evoral::PatchChange
< Evoral::Beats
patch () const
 
- Public Member Functions inherited from ArdourDialog
 ArdourDialog (std::string title, bool modal=false, bool use_separator=false)
 
 ArdourDialog (Gtk::Window &parent, std::string title, bool modal=false, bool use_separator=false)
 
 ~ArdourDialog ()
 
bool on_focus_in_event (GdkEventFocus *)
 
bool on_focus_out_event (GdkEventFocus *)
 
bool on_delete_event (GdkEventAny *)
 
void on_unmap ()
 
void on_show ()
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual void set_session (ARDOUR::Session *)
 

Private Member Functions

void fill_bank_combo ()
 
void set_active_bank_combo ()
 
void fill_patch_combo ()
 
void set_active_patch_combo ()
 
void bank_combo_changed ()
 
void patch_combo_changed ()
 
void channel_changed ()
 
void bank_changed ()
 
void program_changed ()
 
void instrument_info_changed ()
 

Private Attributes

const
ARDOUR::BeatsFramesConverter
_time_converter
 
ARDOUR::InstrumentInfo_info
 
AudioClock _time
 
Gtk::SpinButton _channel
 
Gtk::SpinButton _program
 
Gtk::SpinButton _bank
 
Gtk::ComboBoxText _bank_combo
 
Gtk::ComboBoxText _patch_combo
 
boost::shared_ptr
< MIDI::Name::PatchBank > 
_current_patch_bank
 
bool _ignore_signals
 
PBD::ScopedConnection _info_changed_connection
 

Additional Inherited Members

- Protected Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 40 of file patch_change_dialog.h.

Constructor & Destructor Documentation

PatchChangeDialog::PatchChangeDialog ( const ARDOUR::BeatsFramesConverter tc,
ARDOUR::Session session,
Evoral::PatchChange< Evoral::Beats > const &  patch,
ARDOUR::InstrumentInfo info,
const Gtk::BuiltinStockID &  ok,
bool  allow_delete = false 
)
Parameters
tcIf non-0, a time converter for this patch change. If 0, time control will be desensitized

Definition at line 43 of file patch_change_dialog.cc.

Member Function Documentation

void PatchChangeDialog::bank_changed ( )
private

Definition at line 344 of file patch_change_dialog.cc.

void PatchChangeDialog::bank_combo_changed ( )
private

Update _current_patch_bank and reflect the current value of bank_combo in the rest of the dialog.

Definition at line 213 of file patch_change_dialog.cc.

void PatchChangeDialog::channel_changed ( )
private

Definition at line 325 of file patch_change_dialog.cc.

void PatchChangeDialog::fill_bank_combo ( )
private

Fill the bank_combo according to the current _channel

Definition at line 161 of file patch_change_dialog.cc.

void PatchChangeDialog::fill_patch_combo ( )
private

Fill the contents of the patch combo

Definition at line 251 of file patch_change_dialog.cc.

void PatchChangeDialog::instrument_info_changed ( )
private

Definition at line 134 of file patch_change_dialog.cc.

Evoral::PatchChange< Evoral::Beats > PatchChangeDialog::patch ( ) const

Definition at line 143 of file patch_change_dialog.cc.

void PatchChangeDialog::patch_combo_changed ( )
private

Set _program from the current state of _patch_combo

Definition at line 303 of file patch_change_dialog.cc.

void PatchChangeDialog::program_changed ( )
private

Definition at line 334 of file patch_change_dialog.cc.

void PatchChangeDialog::set_active_bank_combo ( )
private

Set the active value of the bank_combo, and _current_patch_bank, from the contents of _bank

Definition at line 180 of file patch_change_dialog.cc.

void PatchChangeDialog::set_active_patch_combo ( )
private

Set the active value of the patch combo from the value of the _program entry

Definition at line 269 of file patch_change_dialog.cc.

Member Data Documentation

Gtk::SpinButton PatchChangeDialog::_bank
private

Definition at line 70 of file patch_change_dialog.h.

Gtk::ComboBoxText PatchChangeDialog::_bank_combo
private

Definition at line 71 of file patch_change_dialog.h.

Gtk::SpinButton PatchChangeDialog::_channel
private

Definition at line 68 of file patch_change_dialog.h.

boost::shared_ptr<MIDI::Name::PatchBank> PatchChangeDialog::_current_patch_bank
private

Definition at line 74 of file patch_change_dialog.h.

bool PatchChangeDialog::_ignore_signals
private

Definition at line 75 of file patch_change_dialog.h.

ARDOUR::InstrumentInfo& PatchChangeDialog::_info
private

Definition at line 66 of file patch_change_dialog.h.

PBD::ScopedConnection PatchChangeDialog::_info_changed_connection
private

Definition at line 78 of file patch_change_dialog.h.

Gtk::ComboBoxText PatchChangeDialog::_patch_combo
private

Definition at line 72 of file patch_change_dialog.h.

Gtk::SpinButton PatchChangeDialog::_program
private

Definition at line 69 of file patch_change_dialog.h.

AudioClock PatchChangeDialog::_time
private

Definition at line 67 of file patch_change_dialog.h.

const ARDOUR::BeatsFramesConverter* PatchChangeDialog::_time_converter
private

Definition at line 65 of file patch_change_dialog.h.


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