ardour
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MidiMultipleChannelSelector Class Reference

#include <midi_channel_selector.h>

Inheritance diagram for MidiMultipleChannelSelector:
MidiChannelSelector

Public Member Functions

 MidiMultipleChannelSelector (ARDOUR::ChannelMode mode=ARDOUR::FilterChannels, uint16_t initial_selection=0xFFFF)
 
virtual ~MidiMultipleChannelSelector ()
 
void set_channel_mode (ARDOUR::ChannelMode mode, uint16_t mask)
 
ARDOUR::ChannelMode get_channel_mode () const
 
uint16_t get_selected_channels () const
 
void set_selected_channels (uint16_t selected_channels)
 
- Public Member Functions inherited from MidiChannelSelector
 MidiChannelSelector (int n_rows=4, int n_columns=4, int start_row=0, int start_column=0)
 
virtual ~MidiChannelSelector ()=0
 
void set_channel_colors (const uint32_t new_channel_colors[16])
 
void set_default_channel_color ()
 

Public Attributes

sigc::signal< void,
ARDOUR::ChannelMode, uint16_t > 
mode_changed
 
- Public Attributes inherited from MidiChannelSelector
sigc::signal< void > clicked
 

Protected Member Functions

virtual void button_toggled (Gtk::ToggleButton *button, uint8_t button_nr)
 
void force_channels_button_toggled ()
 
void select_all (bool on)
 
void invert_selection (void)
 
- Protected Member Functions inherited from MidiChannelSelector
bool was_clicked (GdkEventButton *)
 

Protected Attributes

ARDOUR::ChannelMode _channel_mode
 
ARDOUR::NoteMode _note_mode
 
Gtk::Button _select_all
 
Gtk::Button _select_none
 
Gtk::Button _invert_selection
 
Gtk::ToggleButton _force_channel
 
- Protected Attributes inherited from MidiChannelSelector
Gtk::Label _button_labels [4][4]
 
Gtkmm2ext::StatefulToggleButton _buttons [4][4]
 
int _recursion_counter
 

Detailed Description

Definition at line 77 of file midi_channel_selector.h.

Constructor & Destructor Documentation

MidiMultipleChannelSelector::MidiMultipleChannelSelector ( ARDOUR::ChannelMode  mode = ARDOUR::FilterChannels,
uint16_t  initial_selection = 0xFFFF 
)

Definition at line 153 of file midi_channel_selector.cc.

MidiMultipleChannelSelector::~MidiMultipleChannelSelector ( )
virtual

Definition at line 184 of file midi_channel_selector.cc.

Member Function Documentation

void MidiMultipleChannelSelector::button_toggled ( Gtk::ToggleButton *  button,
uint8_t  button_nr 
)
protectedvirtual

Implements MidiChannelSelector.

Definition at line 238 of file midi_channel_selector.cc.

void MidiMultipleChannelSelector::force_channels_button_toggled ( )
protected

Definition at line 253 of file midi_channel_selector.cc.

ARDOUR::ChannelMode MidiMultipleChannelSelector::get_channel_mode ( ) const
inline

Definition at line 92 of file midi_channel_selector.h.

uint16_t MidiMultipleChannelSelector::get_selected_channels ( ) const
Returns
each bit in the returned word represents a midi channel, eg. bit 0 represents channel 0 and bit 15 represents channel 15

Definition at line 211 of file midi_channel_selector.cc.

void MidiMultipleChannelSelector::invert_selection ( void  )
protected

Definition at line 307 of file midi_channel_selector.cc.

void MidiMultipleChannelSelector::select_all ( bool  on)
protected

Definition at line 292 of file midi_channel_selector.cc.

void MidiMultipleChannelSelector::set_channel_mode ( ARDOUR::ChannelMode  mode,
uint16_t  mask 
)

Definition at line 190 of file midi_channel_selector.cc.

void MidiMultipleChannelSelector::set_selected_channels ( uint16_t  selected_channels)

Definition at line 225 of file midi_channel_selector.cc.

Member Data Documentation

ARDOUR::ChannelMode MidiMultipleChannelSelector::_channel_mode
protected

Definition at line 103 of file midi_channel_selector.h.

Gtk::ToggleButton MidiMultipleChannelSelector::_force_channel
protected

Definition at line 115 of file midi_channel_selector.h.

Gtk::Button MidiMultipleChannelSelector::_invert_selection
protected

Definition at line 114 of file midi_channel_selector.h.

ARDOUR::NoteMode MidiMultipleChannelSelector::_note_mode
protected

Definition at line 104 of file midi_channel_selector.h.

Gtk::Button MidiMultipleChannelSelector::_select_all
protected

Definition at line 112 of file midi_channel_selector.h.

Gtk::Button MidiMultipleChannelSelector::_select_none
protected

Definition at line 113 of file midi_channel_selector.h.

sigc::signal<void, ARDOUR::ChannelMode, uint16_t> MidiMultipleChannelSelector::mode_changed

The channel mode or selected channel(s) has changed. First parameter is the new channel mode, second parameter is a bitmask of the currently selected channels.

Definition at line 89 of file midi_channel_selector.h.


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