ardour
time_info_box.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 Paul Davis
3 
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.
8 
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.
13 
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.
17 
18 */
19 
20 #ifndef __time_info_box_h__
21 #define __time_info_box_h__
22 
23 #include <map>
24 
25 #include <gtkmm/box.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/table.h>
28 
29 #include "gtkmm2ext/cairo_packer.h"
30 
31 #include "ardour/ardour.h"
32 #include "ardour/session_handle.h"
33 
34 #include "ardour_button.h"
35 
36 namespace ARDOUR {
37  class Session;
38  class Location;
39 }
40 
41 class AudioClock;
42 
44 {
45  public:
46  TimeInfoBox ();
47  ~TimeInfoBox ();
48 
50 
51  private:
52  Gtk::Table left;
53  Gtk::Table right;
54 
58 
61 
62  Gtk::Label selection_title;
63  Gtk::Label punch_title;
66 
73 
76 
77  void selection_changed ();
78 
81 
82  bool clock_button_release_event (GdkEventButton* ev, AudioClock* src);
83  void track_mouse_mode ();
85 };
86 
87 
88 #endif /* __time_info_box_h__ */
AudioClock * punch_end
Definition: time_info_box.h:60
void region_property_change(boost::shared_ptr< ARDOUR::Region > r, const PBD::PropertyChange &what_changed)
void set_session(ARDOUR::Session *)
void sync_punch_mode(AudioClock *)
PBD::ScopedConnectionList editor_connections
Definition: time_info_box.h:71
Gtk::Table right
Definition: time_info_box.h:53
void punch_changed(ARDOUR::Location *)
bool clock_button_release_event(GdkEventButton *ev, AudioClock *src)
bool syncing_selection
Definition: time_info_box.h:64
ArdourButton punch_out_button
Definition: time_info_box.h:75
AudioClock * selection_length
Definition: time_info_box.h:57
Definition: amp.h:29
PBD::ScopedConnectionList region_property_connections
Definition: time_info_box.h:72
PBD::ScopedConnectionList punch_connections
Definition: time_info_box.h:70
AudioClock * punch_start
Definition: time_info_box.h:59
void track_mouse_mode()
void selection_changed()
void punch_location_changed(ARDOUR::Location *)
ArdourButton punch_in_button
Definition: time_info_box.h:74
AudioClock * selection_end
Definition: time_info_box.h:56
AudioClock * selection_start
Definition: time_info_box.h:55
Gtk::Label selection_title
Definition: time_info_box.h:62
Gtk::Table left
Definition: time_info_box.h:52
void sync_selection_mode(AudioClock *)
Gtk::Label punch_title
Definition: time_info_box.h:63
void watch_punch(ARDOUR::Location *)
bool syncing_punch
Definition: time_info_box.h:65