Ardour  8.7-15-gadf511264b
RegionListBase Class Reference

#include <region_list_base.h>

Inheritance diagram for RegionListBase:
[legend]

Classes

struct  Columns
 

Public Member Functions

 RegionListBase ()
 
void set_session (ARDOUR::Session *)
 
Gtk::Widgetwidget ()
 
void clear ()
 
void redisplay ()
 
void suspend_redisplay ()
 
void resume_redisplay ()
 
void block_change_connection (bool b)
 
void unselect_all ()
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual ARDOUR::Sessionsession () const
 

Protected Types

typedef boost::unordered_map< std::shared_ptr< ARDOUR::Region >, Gtk::TreeModel::iteratorRegionRowMap
 

Protected Member Functions

void add_name_column ()
 
void add_tag_column ()
 
template<class T >
Gtk::TreeViewColumnappend_col (Gtk::TreeModelColumn< T > const &col, int width)
 
template<class T >
Gtk::TreeViewColumnappend_col (Gtk::TreeModelColumn< T > const &col, std::string const &sizing_text)
 
void setup_col (Gtk::TreeViewColumn *, int, Gtk::AlignmentEnum, const char *, const char *, bool require_mod_to_edit=false)
 
void setup_toggle (Gtk::TreeViewColumn *, sigc::slot< void, std::string >)
 
void freeze_tree_model ()
 
void thaw_tree_model ()
 
void remove_weak_region (std::weak_ptr< ARDOUR::Region >)
 
virtual void regions_changed (std::shared_ptr< ARDOUR::RegionList >, PBD::PropertyChange const &)
 
void name_editing_started (Gtk::CellEditable *, const Glib::ustring &)
 
void name_editing_canceled ()
 
void tag_editing_started (Gtk::CellEditable *, const Glib::ustring &)
 
void tag_editing_canceled ()
 
virtual void name_edit (const std::string &, const std::string &)
 
virtual void tag_edit (const std::string &, const std::string &)
 
void locked_changed (std::string const &)
 
void muted_changed (std::string const &)
 
void opaque_changed (std::string const &)
 
virtual bool key_press (GdkEventKey *)
 
virtual bool button_press (GdkEventButton *)
 
bool focus_in (GdkEventFocus *)
 
bool focus_out (GdkEventFocus *)
 
bool enter_notify (GdkEventCrossing *)
 
bool leave_notify (GdkEventCrossing *)
 
void format_position (Temporal::timepos_t const &pos, char *buf, size_t bufsize, bool onoff=true) const
 
void add_region (std::shared_ptr< ARDOUR::Region >)
 
void populate_row (std::shared_ptr< ARDOUR::Region >, Gtk::TreeModel::Row const &, PBD::PropertyChange const &)
 
void populate_row_used (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_position (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_end (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_sync (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_fade_in (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row, std::shared_ptr< ARDOUR::AudioRegion >)
 
void populate_row_fade_out (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row, std::shared_ptr< ARDOUR::AudioRegion >)
 
void populate_row_locked (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_muted (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_opaque (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_length (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_name (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void populate_row_source (std::shared_ptr< ARDOUR::Region > region, Gtk::TreeModel::Row const &row)
 
void clock_format_changed ()
 
void drag_begin (Glib::RefPtr< Gdk::DragContext > const &)
 
void drag_end (Glib::RefPtr< Gdk::DragContext > const &)
 
void drag_data_get (Glib::RefPtr< Gdk::DragContext > const &, Gtk::SelectionData &, guint, guint)
 
virtual bool list_region (std::shared_ptr< ARDOUR::Region >) const
 
- Protected Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 

Protected Attributes

Columns _columns
 
int _sort_col_id
 
Gtk::SortType _sort_type
 
Gtk::CellEditable_name_editable
 
Gtk::CellEditable_tags_editable
 
Gtk::Widget_old_focus
 
Gtk::ScrolledWindow _scroller
 
Gtk::Frame _frame
 
Gtkmm2ext::DnDTreeView< std::shared_ptr< ARDOUR::Region > > _display
 
Glib::RefPtr< Gtk::TreeStore_model
 
bool _no_redisplay
 
RegionRowMap region_row_map
 
sigc::connection _change_connection
 
PBD::ScopedConnection _editor_freeze_connection
 
PBD::ScopedConnection _editor_thaw_connection
 
PBD::ScopedConnectionList _remove_region_connections
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 52 of file region_list_base.h.

Member Typedef Documentation

◆ RegionRowMap

typedef boost::unordered_map<std::shared_ptr<ARDOUR::Region>, Gtk::TreeModel::iterator> RegionListBase::RegionRowMap
protected

Definition at line 239 of file region_list_base.h.

Constructor & Destructor Documentation

◆ RegionListBase()

RegionListBase::RegionListBase ( )

Member Function Documentation

◆ add_name_column()

void RegionListBase::add_name_column ( )
protected

◆ add_region()

void RegionListBase::add_region ( std::shared_ptr< ARDOUR::Region )
protected

◆ add_tag_column()

void RegionListBase::add_tag_column ( )
protected

◆ append_col() [1/2]

template<class T >
Gtk::TreeViewColumn* RegionListBase::append_col ( Gtk::TreeModelColumn< T > const &  col,
int  width 
)
inlineprotected

Definition at line 144 of file region_list_base.h.

◆ append_col() [2/2]

template<class T >
Gtk::TreeViewColumn* RegionListBase::append_col ( Gtk::TreeModelColumn< T > const &  col,
std::string const &  sizing_text 
)
inlineprotected

Definition at line 154 of file region_list_base.h.

◆ block_change_connection()

void RegionListBase::block_change_connection ( bool  b)
inline

Definition at line 79 of file region_list_base.h.

◆ button_press()

virtual bool RegionListBase::button_press ( GdkEventButton )
inlineprotectedvirtual

Reimplemented in EditorSources, and EditorRegions.

Definition at line 184 of file region_list_base.h.

◆ clear()

void RegionListBase::clear ( )

◆ clock_format_changed()

void RegionListBase::clock_format_changed ( )
protected

◆ drag_begin()

void RegionListBase::drag_begin ( Glib::RefPtr< Gdk::DragContext > const &  )
protected

◆ drag_data_get()

void RegionListBase::drag_data_get ( Glib::RefPtr< Gdk::DragContext > const &  ,
Gtk::SelectionData ,
guint  ,
guint   
)
protected

◆ drag_end()

void RegionListBase::drag_end ( Glib::RefPtr< Gdk::DragContext > const &  )
protected

◆ enter_notify()

bool RegionListBase::enter_notify ( GdkEventCrossing )
protected

◆ focus_in()

bool RegionListBase::focus_in ( GdkEventFocus )
protected

◆ focus_out()

bool RegionListBase::focus_out ( GdkEventFocus )
protected

◆ format_position()

void RegionListBase::format_position ( Temporal::timepos_t const &  pos,
char *  buf,
size_t  bufsize,
bool  onoff = true 
) const
protected

◆ freeze_tree_model()

void RegionListBase::freeze_tree_model ( )
protected

◆ key_press()

virtual bool RegionListBase::key_press ( GdkEventKey )
protectedvirtual

Reimplemented in EditorSources.

◆ leave_notify()

bool RegionListBase::leave_notify ( GdkEventCrossing )
protected

◆ list_region()

virtual bool RegionListBase::list_region ( std::shared_ptr< ARDOUR::Region ) const
protectedvirtual

Reimplemented in SourceListBase.

◆ locked_changed()

void RegionListBase::locked_changed ( std::string const &  )
protected

◆ muted_changed()

void RegionListBase::muted_changed ( std::string const &  )
protected

◆ name_edit()

virtual void RegionListBase::name_edit ( const std::string &  ,
const std::string &   
)
protectedvirtual

Reimplemented in SourceListBase.

◆ name_editing_canceled()

void RegionListBase::name_editing_canceled ( )
protected

◆ name_editing_started()

void RegionListBase::name_editing_started ( Gtk::CellEditable ,
const Glib::ustring &   
)
protected

◆ opaque_changed()

void RegionListBase::opaque_changed ( std::string const &  )
protected

◆ populate_row()

void RegionListBase::populate_row ( std::shared_ptr< ARDOUR::Region ,
Gtk::TreeModel::Row const &  ,
PBD::PropertyChange const &   
)
protected

◆ populate_row_end()

void RegionListBase::populate_row_end ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_fade_in()

void RegionListBase::populate_row_fade_in ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row,
std::shared_ptr< ARDOUR::AudioRegion  
)
protected

◆ populate_row_fade_out()

void RegionListBase::populate_row_fade_out ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row,
std::shared_ptr< ARDOUR::AudioRegion  
)
protected

◆ populate_row_length()

void RegionListBase::populate_row_length ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_locked()

void RegionListBase::populate_row_locked ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_muted()

void RegionListBase::populate_row_muted ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_name()

void RegionListBase::populate_row_name ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_opaque()

void RegionListBase::populate_row_opaque ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_position()

void RegionListBase::populate_row_position ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_source()

void RegionListBase::populate_row_source ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_sync()

void RegionListBase::populate_row_sync ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ populate_row_used()

void RegionListBase::populate_row_used ( std::shared_ptr< ARDOUR::Region region,
Gtk::TreeModel::Row const &  row 
)
protected

◆ redisplay()

void RegionListBase::redisplay ( )

◆ regions_changed()

virtual void RegionListBase::regions_changed ( std::shared_ptr< ARDOUR::RegionList ,
PBD::PropertyChange const &   
)
protectedvirtual

Reimplemented in EditorRegions.

◆ remove_weak_region()

void RegionListBase::remove_weak_region ( std::weak_ptr< ARDOUR::Region )
protected

◆ resume_redisplay()

void RegionListBase::resume_redisplay ( )
inline

Definition at line 73 of file region_list_base.h.

◆ set_session()

void RegionListBase::set_session ( ARDOUR::Session )
virtual

Reimplemented from ARDOUR::SessionHandlePtr.

Reimplemented in SourceListBase.

◆ setup_col()

void RegionListBase::setup_col ( Gtk::TreeViewColumn ,
int  ,
Gtk::AlignmentEnum  ,
const char *  ,
const char *  ,
bool  require_mod_to_edit = false 
)
protected

◆ setup_toggle()

void RegionListBase::setup_toggle ( Gtk::TreeViewColumn ,
sigc::slot< void, std::string >   
)
protected

◆ suspend_redisplay()

void RegionListBase::suspend_redisplay ( )
inline

Definition at line 68 of file region_list_base.h.

◆ tag_edit()

virtual void RegionListBase::tag_edit ( const std::string &  ,
const std::string &   
)
protectedvirtual

Reimplemented in SourceListBase.

◆ tag_editing_canceled()

void RegionListBase::tag_editing_canceled ( )
protected

◆ tag_editing_started()

void RegionListBase::tag_editing_started ( Gtk::CellEditable ,
const Glib::ustring &   
)
protected

◆ thaw_tree_model()

void RegionListBase::thaw_tree_model ( )
protected

◆ unselect_all()

void RegionListBase::unselect_all ( )
inline

Definition at line 84 of file region_list_base.h.

◆ widget()

Gtk::Widget& RegionListBase::widget ( )
inline

Definition at line 59 of file region_list_base.h.

Member Data Documentation

◆ _change_connection

sigc::connection RegionListBase::_change_connection
protected

Definition at line 243 of file region_list_base.h.

◆ _columns

Columns RegionListBase::_columns
protected

Definition at line 221 of file region_list_base.h.

◆ _display

Gtkmm2ext::DnDTreeView<std::shared_ptr<ARDOUR::Region> > RegionListBase::_display
protected

Definition at line 233 of file region_list_base.h.

◆ _editor_freeze_connection

PBD::ScopedConnection RegionListBase::_editor_freeze_connection
protected

Definition at line 245 of file region_list_base.h.

◆ _editor_thaw_connection

PBD::ScopedConnection RegionListBase::_editor_thaw_connection
protected

Definition at line 246 of file region_list_base.h.

◆ _frame

Gtk::Frame RegionListBase::_frame
protected

Definition at line 231 of file region_list_base.h.

◆ _model

Glib::RefPtr<Gtk::TreeStore> RegionListBase::_model
protected

Definition at line 235 of file region_list_base.h.

◆ _name_editable

Gtk::CellEditable* RegionListBase::_name_editable
protected

Definition at line 226 of file region_list_base.h.

◆ _no_redisplay

bool RegionListBase::_no_redisplay
protected

Definition at line 237 of file region_list_base.h.

◆ _old_focus

Gtk::Widget* RegionListBase::_old_focus
protected

Definition at line 228 of file region_list_base.h.

◆ _remove_region_connections

PBD::ScopedConnectionList RegionListBase::_remove_region_connections
protected

Definition at line 248 of file region_list_base.h.

◆ _scroller

Gtk::ScrolledWindow RegionListBase::_scroller
protected

Definition at line 230 of file region_list_base.h.

◆ _sort_col_id

int RegionListBase::_sort_col_id
protected

Definition at line 223 of file region_list_base.h.

◆ _sort_type

Gtk::SortType RegionListBase::_sort_type
protected

Definition at line 224 of file region_list_base.h.

◆ _tags_editable

Gtk::CellEditable* RegionListBase::_tags_editable
protected

Definition at line 227 of file region_list_base.h.

◆ region_row_map

RegionRowMap RegionListBase::region_row_map
protected

Definition at line 241 of file region_list_base.h.


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