Ardour  9.5-48-g5dddcbb6a8
editor_vsummary.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2009-2017 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2012-2017 Robin Gareus <robin@gareus.org>
5  * Copyright (C) 2017-2019 Ben Loftis <ben@harrisonconsoles.com>
6  * Copyright (C) 2026-2026 Jean-Emmanuel Doucet <jean-emmanuel.doucet@groolot.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #pragma once
24 
25 #include "ardour/session_handle.h"
26 #include "ardour/types.h"
27 #include "gtkmm2ext/cairo_widget.h"
28 #include "pbd/property_basics.h"
29 
30 #include "editor_component.h"
31 
32 namespace ARDOUR {
33  class Session;
34 }
35 
36 class Editor;
37 class RegionView;
38 class RouteTimeAxisView;
39 
43 {
44 public:
47 
51  void routes_added (std::list<RouteTimeAxisView*> const &);
52 
53 private:
54  void parameter_changed (std::string);
58 
62 
63  void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
64  void get_editor (std::pair<double, double>* y) const;
65  void set_editor (double const y);
66  double editor_y_to_summary (double) const;
67 
68  int _last_y;
69  int _offset_y;
71 
73 
74  std::pair<double, double> _view_rectangle;
75 
76  void set_colors ();
77 
78  uint32_t _viewrect_color;
80  uint32_t _basetrack_color;
82  uint32_t _miditrack_color;
83  uint32_t _bus_color;
84  uint32_t _vca_color;
85 
87 
88  cairo_surface_t* _image;
91 
94 };
void routes_added(std::list< RouteTimeAxisView * > const &)
void render(Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *)
void set_background_dirty()
bool on_motion_notify_event(GdkEventMotion *)
This is a default handler for the signal signal_motion_notify_event().
void on_size_allocate(Gtk::Allocation &alloc)
This is a default handler for the signal signal_size_allocate().
cairo_surface_t * _image
PBD::ScopedConnectionList session_connections
void presentation_info_changed(PBD::PropertyChange const &)
void parameter_changed(std::string)
PBD::ScopedConnection route_ctrl_id_connection
bool on_button_press_event(GdkEventButton *)
This is a default handler for the signal signal_button_press_event().
void set_session(ARDOUR::Session *)
uint32_t _bus_color
void render_background_image()
void set_editor(double const y)
uint32_t _vca_color
double editor_y_to_summary(double) const
bool on_button_release_event(GdkEventButton *)
This is a default handler for the signal signal_button_release_event().
uint32_t _basetrack_color
uint32_t _background_color
uint32_t _miditrack_color
uint32_t _audiotrack_color
std::pair< double, double > _view_rectangle
void get_editor(std::pair< double, double > *y) const
void set_overlays_dirty()
uint32_t _viewrect_color
void route_group_property_changed(PBD::PropertyChange const &)
EditorVSummary(Editor &)
Definition: editor.h:160