Ardour  8.12
automation_streamview.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2014 David Robillard <d@drobilla.net>
3  * Copyright (C) 2008-2017 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
5  * Copyright (C) 2017-2019 Robin Gareus <robin@gareus.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #ifndef __ardour_automation_streamview_h__
23 #define __ardour_automation_streamview_h__
24 
25 #include <list>
26 #include <cmath>
27 
28 #include "ardour/location.h"
29 #include "enums.h"
30 #include "streamview.h"
31 #include "time_axis_view_item.h"
32 #include "route_time_axis.h"
33 #include "automation_controller.h"
34 
35 namespace Gdk {
36  class Color;
37 }
38 
39 class PublicEditor;
40 class Selectable;
41 class Selection;
43 
45 {
46 public:
49 
52 
53  void redisplay_track ();
54 
55  inline double contents_height() const {
57  }
58 
59  bool has_automation () const;
60 
63 
64  void clear ();
65 
66  void get_selectables (Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list<Selectable*> &, bool within = false);
68 
69  std::list<std::shared_ptr<AutomationLine> > get_lines () const;
70 
71  bool paste (Temporal::timepos_t const & pos,
72  unsigned paste_count,
73  float times,
74  std::shared_ptr<ARDOUR::AutomationList> list);
75 
76 private:
77  void setup_rec_box ();
78 
79  RegionView* add_region_view_internal (std::shared_ptr<ARDOUR::Region>, bool wait_for_data, bool recording = false);
80  void display_region (RegionView* region_view);
81 
82  void color_handler ();
83 
87 };
88 
89 #endif /* __ardour_automation_streamview_h__ */
double contents_height() const
void set_automation_state(ARDOUR::AutoState state)
ARDOUR::AutomationList::InterpolationStyle interpolation() const
void set_selected_points(PointSelection &)
RegionView * add_region_view_internal(std::shared_ptr< ARDOUR::Region >, bool wait_for_data, bool recording=false)
bool paste(Temporal::timepos_t const &pos, unsigned paste_count, float times, std::shared_ptr< ARDOUR::AutomationList > list)
std::list< std::shared_ptr< AutomationLine > > get_lines() const
AutomationTimeAxisView & _automation_view
bool has_automation() const
ARDOUR::AutoState _pending_automation_state
ARDOUR::AutoState automation_state() const
AutomationStreamView(AutomationTimeAxisView &tv)
void get_selectables(Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list< Selectable * > &, bool within=false)
void set_interpolation(ARDOUR::AutomationList::InterpolationStyle)
void display_region(RegionView *region_view)
Representation of the interface of the Editor class.
Lists of selected things.
RouteTimeAxisView & _trackview
Definition: streamview.h:163
static double NAME_HIGHLIGHT_SIZE
uint32_t current_height() const
uint32_t Color
Definition: colors.h:33