Use FOUNDCFG* instead of setting the configuration by hand
[ardour.git] / gtk2_ardour / editor_snapshots.h
index 30cde55b2865ae2dc3e1c759b78bb069d599841c..48626a5368852e556086014a817fba1d1b91d7c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2009 Paul Davis 
+    Copyright (C) 2000-2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 #include <gtkmm/treeview.h>
 #include "editor_component.h"
 
-class EditorSnapshots : public EditorComponent
+class EditorSnapshots : public EditorComponent, public ARDOUR::SessionHandlePtr
 {
 public:
        EditorSnapshots (Editor *);
 
-       void connect_to_session (ARDOUR::Session *);
+       void set_session (ARDOUR::Session *);
 
        Gtk::Widget& widget () {
                return _scroller;
@@ -37,16 +37,18 @@ public:
        void redisplay ();
 
 private:
-       
+
        Gtk::ScrolledWindow _scroller;
-       
+
        struct Columns : public Gtk::TreeModel::ColumnRecord {
-               Columns () { 
+               Columns () {
                        add (visible_name);
                        add (real_name);
+                       add (time_formatted);
                }
-               Gtk::TreeModelColumn<Glib::ustring> visible_name;
-               Gtk::TreeModelColumn<Glib::ustring> real_name;
+               Gtk::TreeModelColumn<std::string> visible_name;
+               Gtk::TreeModelColumn<std::string> real_name;
+               Gtk::TreeModelColumn<std::string> time_formatted;
        };
 
        Columns _columns;
@@ -56,7 +58,7 @@ private:
 
        bool button_press (GdkEventButton *);
        void selection_changed ();
-       void popup_context_menu (int, int32_t, Glib::ustring);
-       void remove (Glib::ustring);
-       void rename (Glib::ustring);
+       void popup_context_menu (int, int32_t, std::string);
+       void remove (std::string);
+       void rename (std::string);
 };