mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Use Transport Bar in top-level pages
This commit is contained in:
parent
b2e4dd91b9
commit
1b18c3e76c
8 changed files with 16 additions and 23 deletions
|
|
@ -1225,6 +1225,7 @@ Editor::set_session (Session *t)
|
||||||
* before the visible state has been loaded from instant.xml */
|
* before the visible state has been loaded from instant.xml */
|
||||||
_leftmost_sample = session_gui_extents().first.samples();
|
_leftmost_sample = session_gui_extents().first.samples();
|
||||||
|
|
||||||
|
_application_bar.set_session (_session);
|
||||||
nudge_clock->set_session (_session);
|
nudge_clock->set_session (_session);
|
||||||
_summary->set_session (_session);
|
_summary->set_session (_session);
|
||||||
_group_tabs->set_session (_session);
|
_group_tabs->set_session (_session);
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@
|
||||||
#include "widgets/ardour_spacer.h"
|
#include "widgets/ardour_spacer.h"
|
||||||
#include "widgets/pane.h"
|
#include "widgets/pane.h"
|
||||||
|
|
||||||
|
#include "application_bar.h"
|
||||||
#include "ardour_dialog.h"
|
#include "ardour_dialog.h"
|
||||||
#include "public_editor.h"
|
#include "public_editor.h"
|
||||||
#include "editing.h"
|
#include "editing.h"
|
||||||
|
|
@ -773,6 +774,7 @@ private:
|
||||||
Gdk::Cursor* which_trim_cursor (bool left_side) const;
|
Gdk::Cursor* which_trim_cursor (bool left_side) const;
|
||||||
Gdk::Cursor* which_canvas_cursor (ItemType type) const;
|
Gdk::Cursor* which_canvas_cursor (ItemType type) const;
|
||||||
|
|
||||||
|
ApplicationBar _application_bar;
|
||||||
ArdourCanvas::GtkCanvas* _track_canvas;
|
ArdourCanvas::GtkCanvas* _track_canvas;
|
||||||
ArdourCanvas::GtkCanvasViewport* _track_canvas_viewport;
|
ArdourCanvas::GtkCanvasViewport* _track_canvas_viewport;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1280,6 +1280,8 @@ Mixer_UI::set_session (Session* sess)
|
||||||
|
|
||||||
_group_tabs->set_session (sess);
|
_group_tabs->set_session (sess);
|
||||||
|
|
||||||
|
_application_bar.set_session (_session);
|
||||||
|
|
||||||
update_scene_buttons();
|
update_scene_buttons();
|
||||||
|
|
||||||
RefPtr<ToggleAction> surround_action = ActionManager::get_toggle_action (X_("Mixer"), "ToggleSurroundMaster");
|
RefPtr<ToggleAction> surround_action = ActionManager::get_toggle_action (X_("Mixer"), "ToggleSurroundMaster");
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@
|
||||||
#include "widgets/tabbable.h"
|
#include "widgets/tabbable.h"
|
||||||
#include "widgets/ardour_dropdown.h"
|
#include "widgets/ardour_dropdown.h"
|
||||||
|
|
||||||
|
#include "application_bar.h"
|
||||||
#include "axis_provider.h"
|
#include "axis_provider.h"
|
||||||
#include "enums.h"
|
#include "enums.h"
|
||||||
#include "monitor_section.h"
|
#include "monitor_section.h"
|
||||||
|
|
@ -334,6 +335,8 @@ private:
|
||||||
void track_column_click (gint);
|
void track_column_click (gint);
|
||||||
void build_track_menu ();
|
void build_track_menu ();
|
||||||
|
|
||||||
|
ApplicationBar _application_bar;
|
||||||
|
|
||||||
MonitorSection _monitor_section;
|
MonitorSection _monitor_section;
|
||||||
PluginSelector* _plugin_selector;
|
PluginSelector* _plugin_selector;
|
||||||
SurroundStrip* _surround_strip;
|
SurroundStrip* _surround_strip;
|
||||||
|
|
|
||||||
|
|
@ -101,12 +101,6 @@ RecorderUI::RecorderUI ()
|
||||||
load_bindings ();
|
load_bindings ();
|
||||||
register_actions ();
|
register_actions ();
|
||||||
|
|
||||||
_transport_ctrl.setup (ARDOUR_UI::instance ());
|
|
||||||
_transport_ctrl.map_actions ();
|
|
||||||
_transport_ctrl.set_no_show_all ();
|
|
||||||
|
|
||||||
signal_tabbed_changed.connect (sigc::mem_fun (*this, &RecorderUI::tabbed_changed));
|
|
||||||
|
|
||||||
/* monitoring */
|
/* monitoring */
|
||||||
_auto_input_button.set_related_action (ActionManager::get_action ("Transport", "ToggleAutoInput"));
|
_auto_input_button.set_related_action (ActionManager::get_action ("Transport", "ToggleAutoInput"));
|
||||||
_auto_input_button.set_name ("transport option button");
|
_auto_input_button.set_name ("transport option button");
|
||||||
|
|
@ -209,9 +203,6 @@ RecorderUI::RecorderUI ()
|
||||||
int spacepad = 3;
|
int spacepad = 3;
|
||||||
int col = 0;
|
int col = 0;
|
||||||
|
|
||||||
_button_table.attach (_transport_ctrl, col, col + 1, 0, 1, FILL, FILL, hpadding, vpadding);
|
|
||||||
col += 1;
|
|
||||||
|
|
||||||
_button_table.attach (_duration_info_box, col, col + 1, 0, 1, FILL, FILL, hpadding, vpadding);
|
_button_table.attach (_duration_info_box, col, col + 1, 0, 1, FILL, FILL, hpadding, vpadding);
|
||||||
_button_table.attach (_xrun_info_box, col + 1, col + 2, 0, 1, FILL, FILL, hpadding, vpadding);
|
_button_table.attach (_xrun_info_box, col + 1, col + 2, 0, 1, FILL, FILL, hpadding, vpadding);
|
||||||
_button_table.attach (_btn_rec_forget, col, col + 2, 1, 2, FILL, SHRINK, hpadding, vpadding);
|
_button_table.attach (_btn_rec_forget, col, col + 2, 1, 2, FILL, SHRINK, hpadding, vpadding);
|
||||||
|
|
@ -356,16 +347,6 @@ RecorderUI::use_own_window (bool and_fill_it)
|
||||||
return win;
|
return win;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
RecorderUI::tabbed_changed (bool tabbed)
|
|
||||||
{
|
|
||||||
if (tabbed) {
|
|
||||||
_transport_ctrl.hide ();
|
|
||||||
} else {
|
|
||||||
_transport_ctrl.show ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
XMLNode&
|
XMLNode&
|
||||||
RecorderUI::get_state () const
|
RecorderUI::get_state () const
|
||||||
{
|
{
|
||||||
|
|
@ -408,7 +389,7 @@ RecorderUI::set_session (Session* s)
|
||||||
_duration_info_box.set_session (s);
|
_duration_info_box.set_session (s);
|
||||||
_xrun_info_box.set_session (s);
|
_xrun_info_box.set_session (s);
|
||||||
_remain_info_box.set_session (s);
|
_remain_info_box.set_session (s);
|
||||||
_transport_ctrl.set_session (s);
|
_application_bar.set_session (s);
|
||||||
_rec_group_tabs->set_session (s);
|
_rec_group_tabs->set_session (s);
|
||||||
|
|
||||||
update_sensitivity ();
|
update_sensitivity ();
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,10 @@
|
||||||
#include "widgets/pane.h"
|
#include "widgets/pane.h"
|
||||||
#include "widgets/tabbable.h"
|
#include "widgets/tabbable.h"
|
||||||
|
|
||||||
|
#include "application_bar.h"
|
||||||
#include "input_port_monitor.h"
|
#include "input_port_monitor.h"
|
||||||
#include "rec_info_box.h"
|
#include "rec_info_box.h"
|
||||||
#include "shuttle_control.h"
|
#include "shuttle_control.h"
|
||||||
#include "transport_control_ui.h"
|
|
||||||
|
|
||||||
namespace ARDOUR {
|
namespace ARDOUR {
|
||||||
class SoloMuteRelease;
|
class SoloMuteRelease;
|
||||||
|
|
@ -99,7 +99,6 @@ private:
|
||||||
void tra_name_edit (TrackRecordAxis*, bool);
|
void tra_name_edit (TrackRecordAxis*, bool);
|
||||||
void update_rec_table_layout ();
|
void update_rec_table_layout ();
|
||||||
void update_spacer_width (Gtk::Allocation&, TrackRecordAxis*);
|
void update_spacer_width (Gtk::Allocation&, TrackRecordAxis*);
|
||||||
void tabbed_changed (bool);
|
|
||||||
|
|
||||||
void set_connections (std::string const&);
|
void set_connections (std::string const&);
|
||||||
void port_connected_or_disconnected (std::string, std::string);
|
void port_connected_or_disconnected (std::string, std::string);
|
||||||
|
|
@ -154,7 +153,7 @@ private:
|
||||||
DurationInfoBox _duration_info_box;
|
DurationInfoBox _duration_info_box;
|
||||||
XrunInfoBox _xrun_info_box;
|
XrunInfoBox _xrun_info_box;
|
||||||
RemainInfoBox _remain_info_box;
|
RemainInfoBox _remain_info_box;
|
||||||
TransportControlUI _transport_ctrl;
|
ApplicationBar _application_bar;
|
||||||
Glib::RefPtr<Gtk::SizeGroup> _toolbar_button_height;
|
Glib::RefPtr<Gtk::SizeGroup> _toolbar_button_height;
|
||||||
Glib::RefPtr<Gtk::SizeGroup> _toolbar_recarm_width;
|
Glib::RefPtr<Gtk::SizeGroup> _toolbar_recarm_width;
|
||||||
Glib::RefPtr<Gtk::SizeGroup> _toolbar_monitoring_width;
|
Glib::RefPtr<Gtk::SizeGroup> _toolbar_monitoring_width;
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@
|
||||||
#include "ardour/stripable.h"
|
#include "ardour/stripable.h"
|
||||||
|
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
|
#include "application_bar.h"
|
||||||
#include "ardour_ui.h"
|
#include "ardour_ui.h"
|
||||||
#include "editor.h"
|
#include "editor.h"
|
||||||
#include "gui_thread.h"
|
#include "gui_thread.h"
|
||||||
|
|
@ -256,6 +257,7 @@ TriggerPage::set_session (Session* s)
|
||||||
{
|
{
|
||||||
SessionHandlePtr::set_session (s);
|
SessionHandlePtr::set_session (s);
|
||||||
|
|
||||||
|
_application_bar.set_session (_session);
|
||||||
_cue_box.set_session (s);
|
_cue_box.set_session (s);
|
||||||
_trigger_clip_picker.set_session (s);
|
_trigger_clip_picker.set_session (s);
|
||||||
_master.set_session (s);
|
_master.set_session (s);
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
#include "widgets/pane.h"
|
#include "widgets/pane.h"
|
||||||
#include "widgets/tabbable.h"
|
#include "widgets/tabbable.h"
|
||||||
|
|
||||||
|
#include "application_bar.h"
|
||||||
#include "audio_region_operations_box.h"
|
#include "audio_region_operations_box.h"
|
||||||
#include "audio_region_properties_box.h"
|
#include "audio_region_properties_box.h"
|
||||||
#include "audio_trigger_properties_box.h"
|
#include "audio_trigger_properties_box.h"
|
||||||
|
|
@ -104,6 +105,8 @@ private:
|
||||||
gint stop_updating ();
|
gint stop_updating ();
|
||||||
void fast_update_strips ();
|
void fast_update_strips ();
|
||||||
|
|
||||||
|
ApplicationBar _application_bar;
|
||||||
|
|
||||||
Gtkmm2ext::Bindings* bindings;
|
Gtkmm2ext::Bindings* bindings;
|
||||||
ArdourWidgets::VPane _content;
|
ArdourWidgets::VPane _content;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue