show() widgets explicitly, one little file at a time
[ardour.git] / gtk2_ardour / ghostregion.h
index 0abb1b9b914067360c4f471e25b3966f12d59ef0..16d945f5439eb93fe7b575b37d3143f8a3f2d000 100644 (file)
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_gtk_ghost_region_h__
 #define __ardour_gtk_ghost_region_h__
 
 #include <vector>
-#include <sigc++/signal_system.h>
-#include <gtk-canvas.h>
+#include <sigc++/signal.h>
+#include <libgnomecanvasmm.h>
+#include <ardour/configuration.h>
+#include "canvas.h"
+#include "simplerect.h"
 
 class AutomationTimeAxisView;
 
-struct GhostRegion : public SigC::Object
+struct GhostRegion : public sigc::trackable
 {
     AutomationTimeAxisView& trackview;
-    GtkCanvasItem* group;
-    GtkCanvasItem* base_rect;
-    std::vector<GtkCanvasItem*> waves;
+    ArdourCanvas::Group* group;
+    ArdourCanvas::SimpleRect* base_rect;
+    std::vector<ArdourCanvas::WaveView*> waves;
 
     GhostRegion (AutomationTimeAxisView& tv, double initial_unit_pos);
     ~GhostRegion ();
@@ -40,8 +42,9 @@ struct GhostRegion : public SigC::Object
     void set_samples_per_unit (double spu);
     void set_duration (double units);
     void set_height ();
+    void set_colors ();
 
-    SigC::Signal1<void,GhostRegion*> GoingAway;
+    sigc::signal<void,GhostRegion*> GoingAway;
 };
 
 #endif /* __ardour_gtk_ghost_region_h__ */