summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-17 02:31:41 +0100
committerRobin Gareus <robin@gareus.org>2016-12-17 02:43:42 +0100
commit85e4b1d98ff72afe8b3acaf38e9c269749093207 (patch)
tree5e9eadbe74f3f551a4f8b08c1ec42c43a56628ff /gtk2_ardour/editor.cc
parent1a25b906b3ad73b8636909ab6562b0c97374aa14 (diff)
Move selection/punch clocks to editor Sidebar
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 875d249207..598a46ad4e 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -132,6 +132,7 @@
#include "sfdb_ui.h"
#include "tempo_lines.h"
#include "time_axis_view.h"
+#include "time_info_box.h"
#include "timers.h"
#include "tooltips.h"
#include "ui_config.h"
@@ -242,6 +243,7 @@ Editor::Editor ()
, editor_mixer_strip_width (Wide)
, constructed (false)
, _playlist_selector (0)
+ , _time_info_box (0)
, no_save_visual (false)
, leftmost_frame (0)
, samples_per_pixel (2048)
@@ -643,6 +645,7 @@ Editor::Editor ()
_regions = new EditorRegions (this);
_snapshots = new EditorSnapshots (this);
_locations = new EditorLocations (this);
+ _time_info_box = new TimeInfoBox ();
/* these are static location signals */
@@ -722,11 +725,14 @@ Editor::Editor ()
edit_pane.set_check_divider_position (true);
edit_pane.add (editor_summary_pane);
if (!ARDOUR::Profile->get_trx()) {
- edit_pane.add (_the_notebook);
+ VBox* editor_list_vbox = manage (new VBox);
+ editor_list_vbox->pack_start (*_time_info_box, false, false, 0);
+ editor_list_vbox->pack_start (_the_notebook);
+ edit_pane.add (*editor_list_vbox);
+ edit_pane.set_child_minsize (*editor_list_vbox, 30); /* rough guess at width of notebook tabs */
}
edit_pane.set_drag_cursor (*_cursors->expand_left_right);
- edit_pane.set_child_minsize (_the_notebook, 30); /* rough guess at width of notebook tabs */
editor_summary_pane.set_drag_cursor (*_cursors->expand_up_down);
float fract;
@@ -875,6 +881,7 @@ Editor::~Editor()
delete _snapshots;
delete _locations;
delete _playlist_selector;
+ delete _time_info_box;
for (list<XMLNode *>::iterator i = selection_op_history.begin(); i != selection_op_history.end(); ++i) {
delete *i;
@@ -1312,6 +1319,7 @@ Editor::set_session (Session *t)
_snapshots->set_session (_session);
_routes->set_session (_session);
_locations->set_session (_session);
+ _time_info_box->set_session (_session);
if (rhythm_ferret) {
rhythm_ferret->set_session (_session);