blob: 4fe0c15a928bf2848fbc8ad1113fe4fcdee4526e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/*
Copyright (C) 1999-2002 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id$
*/
#ifndef __ardour_meter_bridge_h__
#define __ardour_meter_bridge_h__
#include <list>
#include <gtkmm/eventbox.h>
#include <gtkmm/viewport.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/box.h>
#include <gtkmm/fixed.h>
#include <gtkmm/frame.h>
#include "keyboard_target.h"
#include "ardour_dialog.h"
class MeterBridgeStrip;
namespace ARDOUR {
class Session;
class Route;
}
class MeterBridge : public ArdourDialog
{
public:
MeterBridge ();
~MeterBridge ();
void set_session (ARDOUR::Session*);
void clear_all_meters ();
void start_metering ();
void stop_metering ();
void toggle_metering ();
protected:
gint on_map (GdkEventAny *);
gint on_unmap (GdkEventAny *);
private:
/* diskstream/recorder display */
Gtk::Viewport meter_viewport;
Gtk::ScrolledWindow meter_scroller;
Gtk::EventBox meter_scroll_base;
Gtk::HBox meter_scroller_hpacker;
Gtk::VBox meter_scroller_vpacker;
Gtk::VBox metering_vpacker;
Gtk::VBox metering_hpacker;
Gtk::VBox metering_vbox;
Gtk::HBox metering_hbox;
Gtk::Fixed upper_metering_box;
Gtk::Fixed lower_metering_box;
Gtk::Fixed meter_base;
Gtk::Frame meter_frame;
list<MeterBridgeStrip*> meters;
bool metering;
sigc::connection metering_connection;
void update ();
void add_route (ARDOUR::Route*);
void remove_route (ARDOUR::Route*);
void session_gone(); /* overrides ArdourDialog::session_gone() */
};
#endif /* __ardour_meter_bridge_h__ (*/
|