fix mis-handling of button press events on rec-enable that ought to forward to Bindab...
[ardour2.git] / gtk2_ardour / ghostregion.h
blob1e32add7944199592d83b1221dcca2fbaad4f159
1 /*
2 Copyright (C) 2004 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __ardour_gtk_ghost_region_h__
21 #define __ardour_gtk_ghost_region_h__
23 #include <vector>
24 #include <sigc++/signal.h>
25 #include <libgnomecanvasmm.h>
26 #include "canvas.h"
27 #include "simplerect.h"
29 class AutomationTimeAxisView;
31 struct GhostRegion : public sigc::trackable
33 AutomationTimeAxisView& trackview;
34 ArdourCanvas::Group* group;
35 ArdourCanvas::SimpleRect* base_rect;
36 std::vector<ArdourCanvas::WaveView*> waves;
38 GhostRegion (AutomationTimeAxisView& tv, double initial_unit_pos);
39 ~GhostRegion ();
41 void set_samples_per_unit (double spu);
42 void set_duration (double units);
43 void set_height ();
44 void set_colors ();
46 sigc::signal<void,GhostRegion*> GoingAway;
49 #endif /* __ardour_gtk_ghost_region_h__ */