Use labs() for long instead of abs()
[ardour.git] / gtk2_ardour / editor_sources.h
index 5b9f6698349caba647548f1a0cb4b082cafd696a..109ba82b3bd2e8d6262a8f797a498b43b60a8c7c 100644 (file)
@@ -69,6 +69,7 @@ private:
        struct Columns : public Gtk::TreeModel::ColumnRecord {
                Columns () {
                        add (name);
+                       add (tags);
                        add (take_id);
                        add (natural_pos);
                        add (path);
@@ -78,6 +79,7 @@ private:
                }
 
                Gtk::TreeModelColumn<std::string> name;
+               Gtk::TreeModelColumn<std::string> tags;
                Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::Region> > region;
                Gtk::TreeModelColumn<Gdk::Color> color_;
                Gtk::TreeModelColumn<std::string> natural_pos;
@@ -98,10 +100,12 @@ private:
 
        sigc::connection _change_connection;
 
-       bool selection_filter (const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::Path& path, bool yn);
-
        Gtk::Widget* old_focus;
 
+       Gtk::CellEditable* tags_editable;
+       void tag_editing_started (Gtk::CellEditable*, const Glib::ustring&);
+       void tag_edit (const std::string&, const std::string&);
+
        bool key_press (GdkEventKey *);
        bool button_press (GdkEventButton *);
 
@@ -152,7 +156,6 @@ private:
        Selection* _selection;
        
        bool _no_redisplay;
-
 };
 
 #endif /* __gtk_ardour_editor_regions_h__ */