Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
23 
24 #include <list>
25 #include <cmath>
26 
27 #include "ardour/location.h"
28 #include "enums.h"
29 #include "streamview.h"
30 #include "time_axis_view_item.h"
31 #include "route_time_axis.h"
32 #include "automation_controller.h"
33 
34 namespace Gdk {
35  class Color;
36 }
37 
38 class PublicEditor;
39 class Selectable;
40 class Selection;
42 
44 {
45 public:
48 
51 
52  void redisplay_track ();
53 
54  double contents_height() const {
56  }
57 
58  bool has_automation () const;
59 
62 
63  void clear ();
64 
65  void _get_selectables (Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list<Selectable*> &, bool within);
67 
68  std::list<std::shared_ptr<AutomationLine> > get_lines () const;
69 
70  bool paste (Temporal::timepos_t const & pos,
71  unsigned paste_count,
72  float times,
73  std::shared_ptr<ARDOUR::AutomationList> list);
74 
75 private:
76  void setup_rec_box ();
77 
78  RegionView* add_region_view_internal (std::shared_ptr<ARDOUR::Region>, bool wait_for_data, bool recording = false);
79  void display_region (RegionView* region_view);
80 
81  void color_handler ();
82 
86 };
87 
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
void _get_selectables(Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list< Selectable * > &, bool within)
AutomationStreamView(AutomationTimeAxisView &tv)
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:164
static double NAME_HIGHLIGHT_SIZE
uint32_t current_height() const
uint32_t Color
Definition: colors.h:33