X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_regions.h;h=4b491e673dbea2e8b62254d6182034fead9db9fb;hb=360261f110566f7c6e95cb785706c7dbf03f8c43;hp=ae830b0e24f09eb87fee22b8864e0e2b5ab38603;hpb=f65c592567ace7efe1143e6ddb8a28a57a61ee14;p=ardour.git diff --git a/gtk2_ardour/editor_regions.h b/gtk2_ardour/editor_regions.h index ae830b0e24..4b491e673d 100644 --- a/gtk2_ardour/editor_regions.h +++ b/gtk2_ardour/editor_regions.h @@ -19,9 +19,15 @@ #ifndef __gtk_ardour_editor_regions_h__ #define __gtk_ardour_editor_regions_h__ -#include "editor_component.h" #include +#include +#include +#include +#include + +#include "editor_component.h" + class EditorRegions : public EditorComponent, public ARDOUR::SessionHandlePtr { public: @@ -127,9 +133,9 @@ private: bool selection_filter (const Glib::RefPtr& model, const Gtk::TreeModel::Path& path, bool yn); - Gtk::Widget* old_focus; - Gtk::CellEditable* name_editable; - void name_editing_started (Gtk::CellEditable*, const Glib::ustring&); + Gtk::Widget* old_focus; + Gtk::CellEditable* name_editable; + void name_editing_started (Gtk::CellEditable*, const Glib::ustring&); void name_edit (const std::string&, const std::string&); void locked_changed (std::string const &); @@ -140,33 +146,33 @@ private: bool key_press (GdkEventKey *); bool button_press (GdkEventButton *); - bool focus_in (GdkEventFocus*); - bool focus_out (GdkEventFocus*); - bool enter_notify (GdkEventCrossing*); - bool leave_notify (GdkEventCrossing*); + bool focus_in (GdkEventFocus*); + bool focus_out (GdkEventFocus*); + bool enter_notify (GdkEventCrossing*); + bool leave_notify (GdkEventCrossing*); void show_context_menu (int button, int time); int sorter (Gtk::TreeModel::iterator, Gtk::TreeModel::iterator); - void format_position (ARDOUR::framepos_t pos, char* buf, size_t bufsize, bool onoff = true); + void format_position (ARDOUR::samplepos_t pos, char* buf, size_t bufsize, bool onoff = true); void add_region (boost::shared_ptr); void populate_row (boost::shared_ptr, Gtk::TreeModel::Row const &, PBD::PropertyChange const &); - void populate_row_used (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_position (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_end (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_sync (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_fade_in (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used, boost::shared_ptr); - void populate_row_fade_out (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used, boost::shared_ptr); - void populate_row_locked (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_muted (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_glued (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_opaque (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); - void populate_row_length (boost::shared_ptr region, Gtk::TreeModel::Row const& row); - void populate_row_name (boost::shared_ptr region, Gtk::TreeModel::Row const& row); - void populate_row_source (boost::shared_ptr region, Gtk::TreeModel::Row const& row); + void populate_row_used (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_position (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_end (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_sync (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_fade_in (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used, boost::shared_ptr); + void populate_row_fade_out (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used, boost::shared_ptr); + void populate_row_locked (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_muted (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_glued (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_opaque (boost::shared_ptr region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_length (boost::shared_ptr region, Gtk::TreeModel::Row const& row); + void populate_row_name (boost::shared_ptr region, Gtk::TreeModel::Row const& row); + void populate_row_source (boost::shared_ptr region, Gtk::TreeModel::Row const& row); void update_row (boost::shared_ptr); void update_all_rows (); @@ -203,7 +209,7 @@ private: std::list > tmp_region_list; - typedef boost::unordered_map, Gtk::TreeModel::RowReference> RegionRowMap; + typedef boost::unordered_map, Gtk::TreeModel::iterator> RegionRowMap; typedef boost::unordered_map RegionSourceMap; RegionRowMap region_row_map; @@ -215,7 +221,7 @@ private: PBD::ScopedConnection editor_freeze_connection; PBD::ScopedConnection editor_thaw_connection; - bool expanded; + bool expanded; }; #endif /* __gtk_ardour_editor_regions_h__ */