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

#include <bundle_manager.h>

Inheritance diagram for BundleEditorMatrix:
PortMatrix ARDOUR::SessionHandlePtr

Public Member Functions

 BundleEditorMatrix (Gtk::Window *, ARDOUR::Session *, boost::shared_ptr< ARDOUR::Bundle >)
 
void set_state (ARDOUR::BundleChannel c[2], bool s)
 
PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const
 
bool can_add_channels (boost::shared_ptr< ARDOUR::Bundle >) const
 
void add_channel (boost::shared_ptr< ARDOUR::Bundle >, ARDOUR::DataType)
 
bool can_remove_channels (boost::shared_ptr< ARDOUR::Bundle >) const
 
void remove_channel (ARDOUR::BundleChannel)
 
bool can_rename_channels (boost::shared_ptr< ARDOUR::Bundle >) const
 
void rename_channel (ARDOUR::BundleChannel)
 
void setup_ports (int)
 
bool list_is_global (int) const
 
std::string disassociation_verb () 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
 
boost::shared_ptr< const
PortGroup
visible_columns () const
 
int column_index () const
 
PortGroupList const * rows () const
 
boost::shared_ptr< const
PortGroup
visible_rows () const
 
int row_index () const
 
PortGroupList const * ports (int d) const
 
boost::shared_ptr< const
PortGroup
visible_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 void remove_all_channels (boost::weak_ptr< ARDOUR::Bundle >)
 
virtual std::string channel_noun () const
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual void set_session (ARDOUR::Session *)
 

Private Types

enum  { OTHER = 0, OURS = 1 }
 

Private Attributes

boost::shared_ptr< PortGroup_port_group
 
boost::shared_ptr< ARDOUR::Bundle_bundle
 

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 (boost::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 37 of file bundle_manager.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
OTHER 
OURS 

Definition at line 58 of file bundle_manager.h.

Constructor & Destructor Documentation

BundleEditorMatrix::BundleEditorMatrix ( Gtk::Window *  parent,
ARDOUR::Session session,
boost::shared_ptr< ARDOUR::Bundle bundle 
)

Definition at line 39 of file bundle_manager.cc.

Member Function Documentation

void BundleEditorMatrix::add_channel ( boost::shared_ptr< ARDOUR::Bundle b,
ARDOUR::DataType  t 
)
virtual

Reimplemented from PortMatrix.

Definition at line 114 of file bundle_manager.cc.

bool BundleEditorMatrix::can_add_channels ( boost::shared_ptr< ARDOUR::Bundle b) const
virtual

Reimplemented from PortMatrix.

Definition at line 104 of file bundle_manager.cc.

bool BundleEditorMatrix::can_remove_channels ( boost::shared_ptr< ARDOUR::Bundle b) const
virtual

Reimplemented from PortMatrix.

Definition at line 135 of file bundle_manager.cc.

bool BundleEditorMatrix::can_rename_channels ( boost::shared_ptr< ARDOUR::Bundle b) const
virtual

Reimplemented from PortMatrix.

Definition at line 152 of file bundle_manager.cc.

string BundleEditorMatrix::disassociation_verb ( ) const
virtual

Implements PortMatrix.

Definition at line 180 of file bundle_manager.cc.

PortMatrixNode::State BundleEditorMatrix::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.

Definition at line 83 of file bundle_manager.cc.

bool BundleEditorMatrix::list_is_global ( int  dim) const
virtual

Implements PortMatrix.

Definition at line 174 of file bundle_manager.cc.

void BundleEditorMatrix::remove_channel ( ARDOUR::BundleChannel  bc)
virtual

Reimplemented from PortMatrix.

Definition at line 145 of file bundle_manager.cc.

void BundleEditorMatrix::rename_channel ( ARDOUR::BundleChannel  bc)
virtual

Reimplemented from PortMatrix.

Definition at line 162 of file bundle_manager.cc.

void BundleEditorMatrix::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.

Definition at line 70 of file bundle_manager.cc.

void BundleEditorMatrix::setup_ports ( int  dim)
virtual

Implements PortMatrix.

Definition at line 51 of file bundle_manager.cc.

Member Data Documentation

boost::shared_ptr<ARDOUR::Bundle> BundleEditorMatrix::_bundle
private

Definition at line 64 of file bundle_manager.h.

boost::shared_ptr<PortGroup> BundleEditorMatrix::_port_group
private

Definition at line 63 of file bundle_manager.h.


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