Ardour  9.0-pre0-822-g12e3bc5c20
IOSelector Class Reference

#include <io_selector.h>

Inheritance diagram for IOSelector:
[legend]

Public Member Functions

 IOSelector (Gtk::Window *, ARDOUR::Session *, std::shared_ptr< ARDOUR::IO >)
 
void set_state (ARDOUR::BundleChannel c[2], bool)
 
PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const
 
std::string disassociation_verb () const
 
std::string channel_noun () const
 
ARDOUR::Sessionsession () const
 
uint32_t n_io_ports () const
 
std::shared_ptr< ARDOUR::IO > const io ()
 
void setup_ports (int)
 
bool list_is_global (int) const
 
bool find_inputs_for_io_outputs () const
 
int ours () const
 
int other () const
 
- Public Member Functions inherited from PortMatrix
 PortMatrix (Gtk::Window *, ARDOUR::Session *, ARDOUR::DataType)
 
 ~PortMatrix ()
 
void set_type (ARDOUR::DataType)
 
ARDOUR::DataType type () const
 
void disassociate_all ()
 
void setup_scrollbars ()
 
void popup_menu (ARDOUR::BundleChannel, ARDOUR::BundleChannel, uint32_t)
 
int min_height_divisor () const
 
void set_min_height_divisor (int f)
 
Arrangement arrangement () const
 
bool show_only_bundles () const
 
PortGroupList const * columns () const
 
std::shared_ptr< const PortGroupvisible_columns () const
 
int column_index () const
 
PortGroupList const * rows () const
 
std::shared_ptr< const PortGroupvisible_rows () const
 
int row_index () const
 
PortGroupList const * ports (int d) const
 
std::shared_ptr< const PortGroupvisible_ports (int d) const
 
void init ()
 
void setup ()
 
void setup_all_ports ()
 
std::pair< uint32_t, uint32_t > max_size () const
 
bool should_show (ARDOUR::DataType) const
 
uint32_t count_of_our_type (ARDOUR::ChanCount) const
 
uint32_t count_of_our_type_min_1 (ARDOUR::ChanCount) const
 
PortMatrixNode::State get_association (PortMatrixNode) const
 
void flip ()
 
bool key_press (GdkEventKey *)
 
virtual bool can_add_channels (std::shared_ptr< ARDOUR::Bundle >) const
 
virtual void add_channel (std::shared_ptr< ARDOUR::Bundle >, ARDOUR::DataType)
 
virtual bool can_remove_channels (std::shared_ptr< ARDOUR::Bundle >) const
 
virtual void remove_channel (ARDOUR::BundleChannel)
 
virtual void remove_all_channels (std::weak_ptr< ARDOUR::Bundle >)
 
virtual bool can_rename_channels (std::shared_ptr< ARDOUR::Bundle >) const
 
virtual bool can_add_port (std::shared_ptr< ARDOUR::Bundle >, ARDOUR::DataType t) const
 
virtual void rename_channel (ARDOUR::BundleChannel)
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual void set_session (ARDOUR::Session *)
 

Private Member Functions

void setup_type ()
 
void io_changed ()
 
void io_changed_proxy ()
 

Private Attributes

int _other
 
int _ours
 
std::shared_ptr< ARDOUR::IO_io
 
std::shared_ptr< PortGroup_port_group
 
bool _find_inputs_for_io_outputs
 
PBD::ScopedConnection _io_connection
 

Additional Inherited Members

- Public Types inherited from PortMatrix
enum  Arrangement { TOP_TO_RIGHT , LEFT_TO_BOTTOM }
 
enum  Result { Cancelled , Accepted }
 
- Static Public Member Functions inherited from PortMatrix
static bool bundle_with_channels (std::shared_ptr< ARDOUR::Bundle >)
 
- Public Attributes inherited from PortMatrix
sigc::signal< void, ResultFinished
 
- Protected Attributes inherited from PortMatrix
PortGroupList _ports [2]
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 28 of file io_selector.h.

Constructor & Destructor Documentation

◆ IOSelector()

IOSelector::IOSelector ( Gtk::Window *  ,
ARDOUR::Session ,
std::shared_ptr< ARDOUR::IO  
)

Member Function Documentation

◆ channel_noun()

std::string IOSelector::channel_noun ( ) const
virtual

Reimplemented from PortMatrix.

◆ disassociation_verb()

std::string IOSelector::disassociation_verb ( ) const
virtual

Implements PortMatrix.

◆ find_inputs_for_io_outputs()

bool IOSelector::find_inputs_for_io_outputs ( ) const
inline

Definition at line 46 of file io_selector.h.

◆ get_state()

PortMatrixNode::State IOSelector::get_state ( ARDOUR::BundleChannel  c[2]) const
virtual
Parameters
cChannels; where c[0] is from _ports[0] and c[1] is from _ports[1].
Returns
state

Implements PortMatrix.

◆ io()

std::shared_ptr<ARDOUR::IO> const IOSelector::io ( )
inline

Definition at line 42 of file io_selector.h.

◆ io_changed()

void IOSelector::io_changed ( )
private

◆ io_changed_proxy()

void IOSelector::io_changed_proxy ( )
private

◆ list_is_global()

bool IOSelector::list_is_global ( int  ) const
virtual

Implements PortMatrix.

◆ n_io_ports()

uint32_t IOSelector::n_io_ports ( ) const

◆ other()

int IOSelector::other ( ) const
inline

Definition at line 54 of file io_selector.h.

◆ ours()

int IOSelector::ours ( ) const
inline

Definition at line 50 of file io_selector.h.

◆ session()

ARDOUR::Session* IOSelector::session ( ) const
inlinevirtual

Reimplemented from ARDOUR::SessionHandlePtr.

Definition at line 39 of file io_selector.h.

◆ set_state()

void IOSelector::set_state ( ARDOUR::BundleChannel  c[2],
bool  s 
)
virtual
Parameters
cChannels; where c[0] is from _ports[0] and c[1] is from _ports[1].
sNew state.

Implements PortMatrix.

◆ setup_ports()

void IOSelector::setup_ports ( int  )
virtual

Implements PortMatrix.

◆ setup_type()

void IOSelector::setup_type ( )
private

Member Data Documentation

◆ _find_inputs_for_io_outputs

bool IOSelector::_find_inputs_for_io_outputs
private

Definition at line 68 of file io_selector.h.

◆ _io

std::shared_ptr<ARDOUR::IO> IOSelector::_io
private

Definition at line 66 of file io_selector.h.

◆ _io_connection

PBD::ScopedConnection IOSelector::_io_connection
private

Definition at line 69 of file io_selector.h.

◆ _other

int IOSelector::_other
private

Definition at line 64 of file io_selector.h.

◆ _ours

int IOSelector::_ours
private

Definition at line 65 of file io_selector.h.

◆ _port_group

std::shared_ptr<PortGroup> IOSelector::_port_group
private

Definition at line 67 of file io_selector.h.


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