mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
convert all mixer strip buttons to ArdourButton; not entirely finished because colors in the name and comments buttons don't work as intended - needs a bit of thinking
git-svn-id: svn://localhost/ardour2/branches/3.0@10830 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eee1151e55
commit
a296820caf
7 changed files with 106 additions and 99 deletions
|
|
@ -495,6 +495,21 @@
|
||||||
<Option name="send alert button: text" value="ccccccff"/>
|
<Option name="send alert button: text" value="ccccccff"/>
|
||||||
<Option name="send alert button: text active" value="000000ff"/>
|
<Option name="send alert button: text active" value="000000ff"/>
|
||||||
<Option name="send alert button: text mid" value="00000000"/>
|
<Option name="send alert button: text mid" value="00000000"/>
|
||||||
|
<Option name="midi input button: border start" value="9e9e9eff"/>
|
||||||
|
<Option name="midi input button: border end" value="070707ff"/>
|
||||||
|
<Option name="midi input button: border start selected" value="00000000"/>
|
||||||
|
<Option name="midi input button: border end selected" value="00000000"/>
|
||||||
|
<Option name="midi input button: fill start" value="656867ff"/>
|
||||||
|
<Option name="midi input button: fill end" value="333333ff"/>
|
||||||
|
<Option name="midi input button: fill start active" value="a1ff43ff"/>
|
||||||
|
<Option name="midi input button: fill end active" value="00a300ff"/>
|
||||||
|
<Option name="midi input button: fill start mid" value="000000ff"/>
|
||||||
|
<Option name="midi input button: fill end mid" value="00000000"/>
|
||||||
|
<Option name="midi input button: led" value="00000000"/>
|
||||||
|
<Option name="midi input button: led active" value="00000000"/>
|
||||||
|
<Option name="midi input button: led mid" value="00000000"/>
|
||||||
|
<Option name="midi input button: text" value="00000000"/>
|
||||||
|
<Option name="midi input button: text active" value="00000000"/>
|
||||||
<Option name="transport button: border start" value="9e9e9eff"/>
|
<Option name="transport button: border start" value="9e9e9eff"/>
|
||||||
<Option name="transport button: border end" value="070707ff"/>
|
<Option name="transport button: border end" value="070707ff"/>
|
||||||
<Option name="transport button: border start selected" value="00000000"/>
|
<Option name="transport button: border start selected" value="00000000"/>
|
||||||
|
|
@ -639,6 +654,38 @@
|
||||||
<Option name="route button: text" value="c7c7d8ff"/>
|
<Option name="route button: text" value="c7c7d8ff"/>
|
||||||
<Option name="route button: text active" value="c8c8d9ff"/>
|
<Option name="route button: text active" value="c8c8d9ff"/>
|
||||||
<Option name="route button: text mid" value="000000ff"/>
|
<Option name="route button: text mid" value="000000ff"/>
|
||||||
|
<Option name="mixer strip button: border start" value="b7b7d2ff"/>
|
||||||
|
<Option name="mixer strip button: border end" value="000000ff"/>
|
||||||
|
<Option name="mixer strip button: border start selected" value="8e8e9aff"/>
|
||||||
|
<Option name="mixer strip button: border end selected" value="5b5b67ff"/>
|
||||||
|
<Option name="mixer strip button: fill start" value="56565dff"/>
|
||||||
|
<Option name="mixer strip button: fill end" value="484856ff"/>
|
||||||
|
<Option name="mixer strip button: fill start active" value="4d4d4dff"/>
|
||||||
|
<Option name="mixer strip button: fill end active" value="121212ff"/>
|
||||||
|
<Option name="mixer strip button: fill start mid" value="57565dff"/>
|
||||||
|
<Option name="mixer strip button: fill end mid" value="484856ff"/>
|
||||||
|
<Option name="mixer strip button: led" value="4f3300ff"/>
|
||||||
|
<Option name="mixer strip button: led active" value="ffa500ff"/>
|
||||||
|
<Option name="mixer strip button: led mid" value="b87700ff"/>
|
||||||
|
<Option name="mixer strip button: text" value="c7c7d8ff"/>
|
||||||
|
<Option name="mixer strip button: text active" value="c8c8d9ff"/>
|
||||||
|
<Option name="mixer strip button: text mid" value="000000ff"/>
|
||||||
|
<Option name="mixer strip name button: border start" value="b7b7d2ff"/>
|
||||||
|
<Option name="mixer strip name button: border end" value="000000ff"/>
|
||||||
|
<Option name="mixer strip name button: border start selected" value="8e8e9aff"/>
|
||||||
|
<Option name="mixer strip name button: border end selected" value="5b5b67ff"/>
|
||||||
|
<Option name="mixer strip name button: fill start" value="56565dff"/>
|
||||||
|
<Option name="mixer strip name button: fill end" value="484856ff"/>
|
||||||
|
<Option name="mixer strip name button: fill start active" value="4d4d4dff"/>
|
||||||
|
<Option name="mixer strip name button: fill end active" value="121212ff"/>
|
||||||
|
<Option name="mixer strip name button: fill start mid" value="57565dff"/>
|
||||||
|
<Option name="mixer strip name button: fill end mid" value="484856ff"/>
|
||||||
|
<Option name="mixer strip name button: led" value="4f3300ff"/>
|
||||||
|
<Option name="mixer strip name button: led active" value="ffa500ff"/>
|
||||||
|
<Option name="mixer strip name button: led mid" value="b87700ff"/>
|
||||||
|
<Option name="mixer strip name button: text" value="c7c7d8ff"/>
|
||||||
|
<Option name="mixer strip name button: text active" value="c8c8d9ff"/>
|
||||||
|
<Option name="mixer strip name button: text mid" value="000000ff"/>
|
||||||
<Option name="transport clock: background" value="000000ff"/>
|
<Option name="transport clock: background" value="000000ff"/>
|
||||||
<Option name="transport clock: text" value="6bb620ff"/>
|
<Option name="transport clock: text" value="6bb620ff"/>
|
||||||
<Option name="transport clock: edited text" value="ffa500ff"/>
|
<Option name="transport clock: edited text" value="ffa500ff"/>
|
||||||
|
|
|
||||||
|
|
@ -35,16 +35,9 @@ widget "*TrackVisualButton*" style:highest "default_button"
|
||||||
widget "*TrackRemoveButton*" style:highest "default_button"
|
widget "*TrackRemoveButton*" style:highest "default_button"
|
||||||
widget "*BaseButton" style:highest "default_button"
|
widget "*BaseButton" style:highest "default_button"
|
||||||
widget "*TakeButtonLabel" style:highest "default_button"
|
widget "*TakeButtonLabel" style:highest "default_button"
|
||||||
widget "*MixerWidthButton" style:highest "default_button"
|
|
||||||
widget "*MixerHideButton" style:highest "default_button"
|
widget "*mixer strip button" style:highest "very_small_button"
|
||||||
widget "*MixerSendButton" style:highest "default_button"
|
|
||||||
widget "*MixerSendButtonLabel" style:highest "default_button"
|
|
||||||
widget "*MixerSendSwitch" style:highest "default_button"
|
|
||||||
widget "*MixerInsertButton" style:highest "default_button"
|
|
||||||
widget "*MixerInsertButtonLabel" style:highest "default_button"
|
|
||||||
widget "*MixerInsertSwitch" style:highest "default_button"
|
|
||||||
widget "*MixerIOButton" style:highest "very_small_button"
|
|
||||||
widget "*MixerIOButtonLabel" style:highest "very_small_button"
|
|
||||||
widget "*AddRouteDialogSpinner" style:highest "ardour_adjusters"
|
widget "*AddRouteDialogSpinner" style:highest "ardour_adjusters"
|
||||||
widget "*AddRouteDialogRadioButton*" style:highest "preferences"
|
widget "*AddRouteDialogRadioButton*" style:highest "preferences"
|
||||||
widget "*OptionsNotebook" style:highest "preferences"
|
widget "*OptionsNotebook" style:highest "preferences"
|
||||||
|
|
@ -367,7 +360,6 @@ widget "*TimeInfoPunchTitle" style:highest "very_small_text"
|
||||||
widget "*TimeInfoPunchButton" style:highest "very_small_text"
|
widget "*TimeInfoPunchButton" style:highest "very_small_text"
|
||||||
widget "*RouteNameEditorEntry" style:highest "text_cell_entry"
|
widget "*RouteNameEditorEntry" style:highest "text_cell_entry"
|
||||||
widget "*RegionNameEditorEntry" style:highest "text_cell_entry"
|
widget "*RegionNameEditorEntry" style:highest "text_cell_entry"
|
||||||
widget "*MixerMidiInputEnableButton" style:highest "mouse_mode_button"
|
|
||||||
widget "*EditorRouteGroupsAllGroupButton" style:highest "default_toggle_button"
|
widget "*EditorRouteGroupsAllGroupButton" style:highest "default_toggle_button"
|
||||||
widget "*MidiSoundNotesButton" style:highest "default_toggle_button"
|
widget "*MidiSoundNotesButton" style:highest "default_toggle_button"
|
||||||
widget "*MeasureLatencyButton" style:highest "default_toggle_button"
|
widget "*MeasureLatencyButton" style:highest "default_toggle_button"
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,9 @@ BUTTON_VARS(PunchButton, "punch button")
|
||||||
BUTTON_VARS(MouseModeButton, "mouse mode button")
|
BUTTON_VARS(MouseModeButton, "mouse mode button")
|
||||||
BUTTON_VARS(ZoomButton, "zoom button")
|
BUTTON_VARS(ZoomButton, "zoom button")
|
||||||
BUTTON_VARS(RouteButton, "route button")
|
BUTTON_VARS(RouteButton, "route button")
|
||||||
|
BUTTON_VARS(MixerStripButton, "mixer strip button")
|
||||||
|
BUTTON_VARS(MixerStripNameButton, "mixer strip name button")
|
||||||
|
BUTTON_VARS(MidiInputButton, "midi input button")
|
||||||
|
|
||||||
#define CLOCK_VARS(root,name) \
|
#define CLOCK_VARS(root,name) \
|
||||||
CANVAS_VARIABLE(canvasvar_ ## root ## Background, name ": background") \
|
CANVAS_VARIABLE(canvasvar_ ## root ## Background, name ": background") \
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, bool in_mixer)
|
||||||
, top_button_table (1, 2)
|
, top_button_table (1, 2)
|
||||||
, middle_button_table (1, 2)
|
, middle_button_table (1, 2)
|
||||||
, bottom_button_table (1, 2)
|
, bottom_button_table (1, 2)
|
||||||
, meter_point_label (_("pre"))
|
, meter_point_button (_("pre"))
|
||||||
, midi_input_enable_button (0)
|
, midi_input_enable_button (0)
|
||||||
, _comment_button (_("Comments"))
|
, _comment_button (_("Comments"))
|
||||||
, _visibility (X_("mixer-strip-visibility"))
|
, _visibility (X_("mixer-strip-visibility"))
|
||||||
|
|
@ -119,7 +119,7 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, boost::shared_ptr<Route> rt
|
||||||
, button_table (3, 1)
|
, button_table (3, 1)
|
||||||
, middle_button_table (1, 2)
|
, middle_button_table (1, 2)
|
||||||
, bottom_button_table (1, 2)
|
, bottom_button_table (1, 2)
|
||||||
, meter_point_label (_("pre"))
|
, meter_point_button (_("pre"))
|
||||||
, midi_input_enable_button (0)
|
, midi_input_enable_button (0)
|
||||||
, _comment_button (_("Comments"))
|
, _comment_button (_("Comments"))
|
||||||
, _visibility (X_("mixer-strip-visibility"))
|
, _visibility (X_("mixer-strip-visibility"))
|
||||||
|
|
@ -145,43 +145,29 @@ MixerStrip::init ()
|
||||||
/* the length of this string determines the width of the mixer strip when it is set to `wide' */
|
/* the length of this string determines the width of the mixer strip when it is set to `wide' */
|
||||||
longest_label = "longest label";
|
longest_label = "longest label";
|
||||||
|
|
||||||
Gtk::Image* img;
|
|
||||||
|
|
||||||
img = manage (new Gtk::Image (::get_icon("strip_width")));
|
|
||||||
img->show ();
|
|
||||||
|
|
||||||
string t = _("Click to toggle the width of this mixer strip.");
|
string t = _("Click to toggle the width of this mixer strip.");
|
||||||
if (_mixer_owned) {
|
if (_mixer_owned) {
|
||||||
t += string_compose (_("\n%1-click to toggle the width of all strips."), Keyboard::tertiary_modifier_name ());
|
t += string_compose (_("\n%1-click to toggle the width of all strips."), Keyboard::tertiary_modifier_name ());
|
||||||
}
|
}
|
||||||
|
|
||||||
width_button.add (*img);
|
width_button.set_image (::get_icon("strip_width"));
|
||||||
ARDOUR_UI::instance()->set_tip (width_button, t);
|
ARDOUR_UI::instance()->set_tip (width_button, t);
|
||||||
|
|
||||||
img = manage (new Gtk::Image (::get_icon("hide")));
|
hide_button.set_image(::get_icon("hide"));
|
||||||
img->show ();
|
|
||||||
|
|
||||||
hide_button.add (*img);
|
|
||||||
ARDOUR_UI::instance()->set_tip (&hide_button, _("Hide this mixer strip"));
|
ARDOUR_UI::instance()->set_tip (&hide_button, _("Hide this mixer strip"));
|
||||||
|
|
||||||
input_label.set_text (_("Input"));
|
input_button.set_text (_("Input"));
|
||||||
ARDOUR_UI::instance()->set_tip (&input_button, _("Button 1 to choose inputs from a port matrix, button 3 to select inputs from a menu"), "");
|
ARDOUR_UI::instance()->set_tip (&input_button, _("Button 1 to choose inputs from a port matrix, button 3 to select inputs from a menu"), "");
|
||||||
input_button.add (input_label);
|
input_button.set_name ("mixer strip button");
|
||||||
input_button.set_name ("MixerIOButton");
|
|
||||||
input_label.set_name ("MixerIOButtonLabel");
|
|
||||||
input_button_box.pack_start (input_button, true, true);
|
input_button_box.pack_start (input_button, true, true);
|
||||||
|
|
||||||
output_label.set_text (_("Output"));
|
output_button.set_text (_("Output"));
|
||||||
ARDOUR_UI::instance()->set_tip (&output_button, _("Button 1 to choose outputs from a port matrix, button 3 to select inputs from a menu"), "");
|
ARDOUR_UI::instance()->set_tip (&output_button, _("Button 1 to choose outputs from a port matrix, button 3 to select inputs from a menu"), "");
|
||||||
output_button.add (output_label);
|
output_button.set_name ("mixer strip button");
|
||||||
output_button.set_name ("MixerIOButton");
|
|
||||||
output_label.set_name ("MixerIOButtonLabel");
|
|
||||||
Gtkmm2ext::set_size_request_to_display_given_text (output_button, longest_label.c_str(), 4, 4);
|
Gtkmm2ext::set_size_request_to_display_given_text (output_button, longest_label.c_str(), 4, 4);
|
||||||
|
|
||||||
ARDOUR_UI::instance()->set_tip (&meter_point_button, _("Select metering point"), "");
|
ARDOUR_UI::instance()->set_tip (&meter_point_button, _("Select metering point"), "");
|
||||||
meter_point_button.add (meter_point_label);
|
meter_point_button.set_name ("mixer strip button");
|
||||||
meter_point_button.set_name ("MixerStripMeterPreButton");
|
|
||||||
meter_point_label.set_name ("MixerStripMeterPreButton");
|
|
||||||
|
|
||||||
/* TRANSLATORS: this string should be longest of the strings
|
/* TRANSLATORS: this string should be longest of the strings
|
||||||
used to describe meter points. In english, it's "input".
|
used to describe meter points. In english, it's "input".
|
||||||
|
|
@ -262,29 +248,25 @@ MixerStrip::init ()
|
||||||
bottom_button_table.set_homogeneous (true);
|
bottom_button_table.set_homogeneous (true);
|
||||||
bottom_button_table.attach (group_button, 0, 1, 0, 1);
|
bottom_button_table.attach (group_button, 0, 1, 0, 1);
|
||||||
|
|
||||||
name_button.add (name_label);
|
name_button.set_name ("mixer strip name button");
|
||||||
name_button.set_name ("MixerNameButton");
|
|
||||||
Gtkmm2ext::set_size_request_to_display_given_text (name_button, longest_label.c_str(), 2, 2);
|
Gtkmm2ext::set_size_request_to_display_given_text (name_button, longest_label.c_str(), 2, 2);
|
||||||
|
|
||||||
name_label.set_name ("MixerNameButtonLabel");
|
|
||||||
ARDOUR_UI::instance()->set_tip (&group_button, _("Mix group"), "");
|
ARDOUR_UI::instance()->set_tip (&group_button, _("Mix group"), "");
|
||||||
group_button.add (group_label);
|
group_button.set_name ("mixer strip button");
|
||||||
group_button.set_name ("MixerGroupButton");
|
|
||||||
Gtkmm2ext::set_size_request_to_display_given_text (group_button, "Group", 2, 2);
|
Gtkmm2ext::set_size_request_to_display_given_text (group_button, "Group", 2, 2);
|
||||||
group_label.set_name ("MixerGroupButtonLabel");
|
|
||||||
|
|
||||||
_comment_button.set_name (X_("MixerCommentButton"));
|
_comment_button.set_name (X_("mixer strip button"));
|
||||||
_comment_button.signal_clicked().connect (sigc::mem_fun (*this, &MixerStrip::toggle_comment_editor));
|
_comment_button.signal_clicked.connect (sigc::mem_fun (*this, &MixerStrip::toggle_comment_editor));
|
||||||
|
|
||||||
global_vpacker.set_border_width (0);
|
global_vpacker.set_border_width (0);
|
||||||
global_vpacker.set_spacing (0);
|
global_vpacker.set_spacing (0);
|
||||||
|
|
||||||
width_button.set_name ("MixerWidthButton");
|
width_button.set_name ("mixer strip button");
|
||||||
hide_button.set_name ("MixerHideButton");
|
hide_button.set_name ("mixer strip button");
|
||||||
top_event_box.set_name ("MixerTopEventBox");
|
top_event_box.set_name ("mixer strip button");
|
||||||
|
|
||||||
width_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::width_button_pressed), false);
|
width_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::width_button_pressed), false);
|
||||||
hide_button.signal_clicked().connect (sigc::mem_fun(*this, &MixerStrip::hide_clicked));
|
hide_button.signal_clicked.connect (sigc::mem_fun(*this, &MixerStrip::hide_clicked));
|
||||||
|
|
||||||
width_hide_box.pack_start (width_button, false, true);
|
width_hide_box.pack_start (width_button, false, true);
|
||||||
width_hide_box.pack_start (top_event_box, true, true);
|
width_hide_box.pack_start (top_event_box, true, true);
|
||||||
|
|
@ -456,10 +438,9 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
||||||
|
|
||||||
if (is_midi_track()) {
|
if (is_midi_track()) {
|
||||||
if (midi_input_enable_button == 0) {
|
if (midi_input_enable_button == 0) {
|
||||||
Image* img = manage (new Image (get_icon (X_("midi_socket_small"))));
|
midi_input_enable_button = manage (new ArdourButton);
|
||||||
midi_input_enable_button = manage (new StatefulToggleButton);
|
midi_input_enable_button->set_name ("midi input button");
|
||||||
midi_input_enable_button->set_name ("MixerMidiInputEnableButton");
|
midi_input_enable_button->set_image (::get_icon (X_("midi_socket_small")));
|
||||||
midi_input_enable_button->set_image (*img);
|
|
||||||
midi_input_enable_button->signal_button_press_event().connect (sigc::mem_fun (*this, &MixerStrip::input_active_button_press), false);
|
midi_input_enable_button->signal_button_press_event().connect (sigc::mem_fun (*this, &MixerStrip::input_active_button_press), false);
|
||||||
midi_input_enable_button->signal_button_release_event().connect (sigc::mem_fun (*this, &MixerStrip::input_active_button_release), false);
|
midi_input_enable_button->signal_button_release_event().connect (sigc::mem_fun (*this, &MixerStrip::input_active_button_release), false);
|
||||||
ARDOUR_UI::instance()->set_tip (midi_input_enable_button, _("Enable/Disable MIDI input"));
|
ARDOUR_UI::instance()->set_tip (midi_input_enable_button, _("Enable/Disable MIDI input"));
|
||||||
|
|
@ -506,7 +487,7 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
meter_point_label.set_text (meter_point_string (_route->meter_point()));
|
meter_point_button.set_text (meter_point_string (_route->meter_point()));
|
||||||
|
|
||||||
delete route_ops_menu;
|
delete route_ops_menu;
|
||||||
route_ops_menu = 0;
|
route_ops_menu = 0;
|
||||||
|
|
@ -561,20 +542,12 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
||||||
middle_button_table.show();
|
middle_button_table.show();
|
||||||
bottom_button_table.show();
|
bottom_button_table.show();
|
||||||
gpm.show_all ();
|
gpm.show_all ();
|
||||||
gain_unit_button.show();
|
|
||||||
gain_unit_label.show();
|
|
||||||
meter_point_button.show();
|
meter_point_button.show();
|
||||||
meter_point_label.show();
|
|
||||||
diskstream_button.show();
|
|
||||||
diskstream_label.show();
|
|
||||||
input_button_box.show_all();
|
input_button_box.show_all();
|
||||||
output_button.show();
|
output_button.show();
|
||||||
output_label.show();
|
|
||||||
name_label.show();
|
|
||||||
name_button.show();
|
name_button.show();
|
||||||
_comment_button.show();
|
_comment_button.show();
|
||||||
group_button.show();
|
group_button.show();
|
||||||
group_label.show();
|
|
||||||
|
|
||||||
parameter_changed ("mixer-strip-visibility");
|
parameter_changed ("mixer-strip-visibility");
|
||||||
|
|
||||||
|
|
@ -1231,9 +1204,9 @@ MixerStrip::update_io_button (boost::shared_ptr<ARDOUR::Route> route, Width widt
|
||||||
}
|
}
|
||||||
|
|
||||||
if (for_input) {
|
if (for_input) {
|
||||||
input_label.set_text (label_string);
|
input_button.set_text (label_string);
|
||||||
} else {
|
} else {
|
||||||
output_label.set_text (label_string);
|
output_button.set_text (label_string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1289,20 +1262,20 @@ MixerStrip::setup_comment_button ()
|
||||||
case Wide:
|
case Wide:
|
||||||
if (_route->comment().empty ()) {
|
if (_route->comment().empty ()) {
|
||||||
_comment_button.unset_bg (STATE_NORMAL);
|
_comment_button.unset_bg (STATE_NORMAL);
|
||||||
((Gtk::Label *) _comment_button.get_child ())->set_text (_("Comments"));
|
_comment_button.set_text (_("Comments"));
|
||||||
} else {
|
} else {
|
||||||
_comment_button.modify_bg (STATE_NORMAL, color ());
|
_comment_button.modify_bg (STATE_NORMAL, color ());
|
||||||
((Gtk::Label *) _comment_button.get_child ())->set_text (_("*Comments*"));
|
_comment_button.set_text (_("*Comments*"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Narrow:
|
case Narrow:
|
||||||
if (_route->comment().empty ()) {
|
if (_route->comment().empty ()) {
|
||||||
_comment_button.unset_bg (STATE_NORMAL);
|
_comment_button.unset_bg (STATE_NORMAL);
|
||||||
((Gtk::Label *) _comment_button.get_child ())->set_text (_("Cmt"));
|
_comment_button.set_text (_("Cmt"));
|
||||||
} else {
|
} else {
|
||||||
_comment_button.modify_bg (STATE_NORMAL, color ());
|
_comment_button.modify_bg (STATE_NORMAL, color ());
|
||||||
((Gtk::Label *) _comment_button.get_child ())->set_text (_("*Cmt*"));
|
_comment_button.set_text (_("*Cmt*"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -1421,14 +1394,14 @@ MixerStrip::route_group_changed ()
|
||||||
RouteGroup *rg = _route->route_group();
|
RouteGroup *rg = _route->route_group();
|
||||||
|
|
||||||
if (rg) {
|
if (rg) {
|
||||||
group_label.set_text (PBD::short_version (rg->name(), 5));
|
group_button.set_text (PBD::short_version (rg->name(), 5));
|
||||||
} else {
|
} else {
|
||||||
switch (_width) {
|
switch (_width) {
|
||||||
case Wide:
|
case Wide:
|
||||||
group_label.set_text (_("Grp"));
|
group_button.set_text (_("Grp"));
|
||||||
break;
|
break;
|
||||||
case Narrow:
|
case Narrow:
|
||||||
group_label.set_text (_("~G"));
|
group_button.set_text (_("~G"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1529,10 +1502,10 @@ MixerStrip::name_changed ()
|
||||||
{
|
{
|
||||||
switch (_width) {
|
switch (_width) {
|
||||||
case Wide:
|
case Wide:
|
||||||
RouteUI::property_changed (PropertyChange (ARDOUR::Properties::name));
|
name_button.set_text (_route->name());
|
||||||
break;
|
break;
|
||||||
case Narrow:
|
case Narrow:
|
||||||
name_label.set_text (PBD::short_version (_route->name(), 5));
|
name_button.set_text (PBD::short_version (_route->name(), 5));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1716,7 +1689,7 @@ MixerStrip::meter_point_string (MeterPoint mp)
|
||||||
void
|
void
|
||||||
MixerStrip::meter_changed ()
|
MixerStrip::meter_changed ()
|
||||||
{
|
{
|
||||||
meter_point_label.set_text (meter_point_string (_route->meter_point()));
|
meter_point_button.set_text (meter_point_string (_route->meter_point()));
|
||||||
gpm.setup_meters ();
|
gpm.setup_meters ();
|
||||||
// reset peak when meter point changes
|
// reset peak when meter point changes
|
||||||
gpm.reset_peak_display();
|
gpm.reset_peak_display();
|
||||||
|
|
|
||||||
|
|
@ -149,8 +149,8 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
|
||||||
Width _width;
|
Width _width;
|
||||||
void* _width_owner;
|
void* _width_owner;
|
||||||
|
|
||||||
Gtk::Button hide_button;
|
ArdourButton hide_button;
|
||||||
Gtk::Button width_button;
|
ArdourButton width_button;
|
||||||
Gtk::HBox width_hide_box;
|
Gtk::HBox width_hide_box;
|
||||||
Gtk::VBox whvbox;
|
Gtk::VBox whvbox;
|
||||||
Gtk::EventBox top_event_box;
|
Gtk::EventBox top_event_box;
|
||||||
|
|
@ -174,22 +174,15 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
|
||||||
Gtk::Table middle_button_table;
|
Gtk::Table middle_button_table;
|
||||||
Gtk::Table bottom_button_table;
|
Gtk::Table bottom_button_table;
|
||||||
|
|
||||||
Gtk::Button gain_unit_button;
|
ArdourButton meter_point_button;
|
||||||
Gtk::Label gain_unit_label;
|
|
||||||
Gtk::Button meter_point_button;
|
|
||||||
Gtk::Label meter_point_label;
|
|
||||||
|
|
||||||
void meter_changed ();
|
void meter_changed ();
|
||||||
|
|
||||||
Gtk::Button diskstream_button;
|
ArdourButton input_button;
|
||||||
Gtk::Label diskstream_label;
|
ArdourButton output_button;
|
||||||
|
|
||||||
Gtk::Button input_button;
|
ArdourButton* midi_input_enable_button;
|
||||||
Gtkmm2ext::StatefulToggleButton* midi_input_enable_button;
|
|
||||||
Gtk::HBox input_button_box;
|
Gtk::HBox input_button_box;
|
||||||
Gtk::Label input_label;
|
|
||||||
Gtk::Button output_button;
|
|
||||||
Gtk::Label output_label;
|
|
||||||
|
|
||||||
std::string longest_label;
|
std::string longest_label;
|
||||||
|
|
||||||
|
|
@ -200,11 +193,11 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
|
||||||
gint mark_update_safe ();
|
gint mark_update_safe ();
|
||||||
guint32 mode_switch_in_progress;
|
guint32 mode_switch_in_progress;
|
||||||
|
|
||||||
Gtk::Button name_button;
|
ArdourButton name_button;
|
||||||
|
|
||||||
ArdourWindow* comment_window;
|
ArdourWindow* comment_window;
|
||||||
Gtk::TextView* comment_area;
|
Gtk::TextView* comment_area;
|
||||||
Gtk::Button _comment_button;
|
ArdourButton _comment_button;
|
||||||
|
|
||||||
void comment_editor_done_editing ();
|
void comment_editor_done_editing ();
|
||||||
void setup_comment_editor ();
|
void setup_comment_editor ();
|
||||||
|
|
@ -212,8 +205,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
|
||||||
void toggle_comment_editor ();
|
void toggle_comment_editor ();
|
||||||
void setup_comment_button ();
|
void setup_comment_button ();
|
||||||
|
|
||||||
Gtk::Button group_button;
|
ArdourButton group_button;
|
||||||
Gtk::Label group_label;
|
|
||||||
RouteGroupMenu *group_menu;
|
RouteGroupMenu *group_menu;
|
||||||
|
|
||||||
gint input_press (GdkEventButton *);
|
gint input_press (GdkEventButton *);
|
||||||
|
|
|
||||||
|
|
@ -1765,7 +1765,7 @@ void
|
||||||
RouteUI::setup_invert_buttons ()
|
RouteUI::setup_invert_buttons ()
|
||||||
{
|
{
|
||||||
/* remove old invert buttons */
|
/* remove old invert buttons */
|
||||||
for (list<BindableToggleButton*>::iterator i = _invert_buttons.begin(); i != _invert_buttons.end(); ++i) {
|
for (list<ArdourButton*>::iterator i = _invert_buttons.begin(); i != _invert_buttons.end(); ++i) {
|
||||||
_invert_button_box.remove (**i);
|
_invert_button_box.remove (**i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1780,15 +1780,15 @@ RouteUI::setup_invert_buttons ()
|
||||||
uint32_t const to_add = (N <= _max_invert_buttons) ? N : 1;
|
uint32_t const to_add = (N <= _max_invert_buttons) ? N : 1;
|
||||||
|
|
||||||
for (uint32_t i = 0; i < to_add; ++i) {
|
for (uint32_t i = 0; i < to_add; ++i) {
|
||||||
BindableToggleButton* b = manage (new BindableToggleButton);
|
ArdourButton* b = manage (new ArdourButton);
|
||||||
b->signal_toggled().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::invert_toggled), i, b));
|
b->StateChanged.connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::invert_toggled), i, b));
|
||||||
b->signal_button_press_event().connect (sigc::mem_fun (*this, &RouteUI::invert_press));
|
b->signal_button_press_event().connect (sigc::mem_fun (*this, &RouteUI::invert_press));
|
||||||
|
|
||||||
b->set_name (X_("MixerInvertButton"));
|
b->set_name (X_("mixer strip button"));
|
||||||
if (to_add == 1) {
|
if (to_add == 1) {
|
||||||
b->add (*manage (new Label (X_("Ø"))));
|
b->set_text (X_("Ø"));
|
||||||
} else {
|
} else {
|
||||||
b->add (*manage (new Label (string_compose (X_("Ø%1"), i + 1))));
|
b->set_text (string_compose (X_("Ø%1"), i + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (N <= 4) {
|
if (N <= 4) {
|
||||||
|
|
@ -1817,7 +1817,7 @@ RouteUI::set_invert_button_state ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int j = 0;
|
int j = 0;
|
||||||
for (list<BindableToggleButton*>::iterator i = _invert_buttons.begin(); i != _invert_buttons.end(); ++i, ++j) {
|
for (list<ArdourButton*>::iterator i = _invert_buttons.begin(); i != _invert_buttons.end(); ++i, ++j) {
|
||||||
(*i)->set_active (_route->phase_invert (j));
|
(*i)->set_active (_route->phase_invert (j));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1825,7 +1825,7 @@ RouteUI::set_invert_button_state ()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
RouteUI::invert_toggled (uint32_t i, BindableToggleButton* b)
|
RouteUI::invert_toggled (uint32_t i, ArdourButton* b)
|
||||||
{
|
{
|
||||||
if (_i_am_the_modifier) {
|
if (_i_am_the_modifier) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -1884,7 +1884,7 @@ RouteUI::invert_menu_toggled (uint32_t c)
|
||||||
void
|
void
|
||||||
RouteUI::set_invert_sensitive (bool yn)
|
RouteUI::set_invert_sensitive (bool yn)
|
||||||
{
|
{
|
||||||
for (list<BindableToggleButton*>::iterator b = _invert_buttons.begin(); b != _invert_buttons.end(); ++b) {
|
for (list<ArdourButton*>::iterator b = _invert_buttons.begin(); b != _invert_buttons.end(); ++b) {
|
||||||
(*b)->set_sensitive (yn);
|
(*b)->set_sensitive (yn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -271,12 +271,12 @@ class RouteUI : public virtual AxisView
|
||||||
|
|
||||||
void setup_invert_buttons ();
|
void setup_invert_buttons ();
|
||||||
void set_invert_button_state ();
|
void set_invert_button_state ();
|
||||||
void invert_toggled (uint32_t, BindableToggleButton *);
|
void invert_toggled (uint32_t, ArdourButton *);
|
||||||
void invert_menu_toggled (uint32_t);
|
void invert_menu_toggled (uint32_t);
|
||||||
bool invert_press (GdkEventButton *);
|
bool invert_press (GdkEventButton *);
|
||||||
|
|
||||||
int _i_am_the_modifier;
|
int _i_am_the_modifier;
|
||||||
std::list<BindableToggleButton*> _invert_buttons;
|
std::list<ArdourButton*> _invert_buttons;
|
||||||
Gtk::Menu* _invert_menu;
|
Gtk::Menu* _invert_menu;
|
||||||
|
|
||||||
static void set_showing_sends_to (boost::shared_ptr<ARDOUR::Route>);
|
static void set_showing_sends_to (boost::shared_ptr<ARDOUR::Route>);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue