mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Move object+range button up with the rest of the tool buttons (bringing edit toolbar back to correct height).
git-svn-id: svn://localhost/ardour2/branches/3.0@6660 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f6c30de0cc
commit
cf32bf81b8
3 changed files with 17 additions and 27 deletions
|
|
@ -2749,36 +2749,25 @@ Editor::setup_toolbar ()
|
||||||
|
|
||||||
/* table containing mode buttons */
|
/* table containing mode buttons */
|
||||||
|
|
||||||
Table* mouse_mode_button_table = manage (new Table (Profile->get_sae() ? 4 : 6, 2));
|
HBox* mouse_mode_button_box = manage (new HBox ());
|
||||||
|
|
||||||
int c = 0;
|
|
||||||
|
|
||||||
if (Profile->get_sae()) {
|
if (Profile->get_sae()) {
|
||||||
mouse_mode_button_table->attach (mouse_move_button, c, c + 1, 0, 1);
|
mouse_mode_button_box->pack_start (mouse_move_button);
|
||||||
++c;
|
|
||||||
} else {
|
} else {
|
||||||
mouse_mode_button_table->attach (mouse_move_button, c, c + 1, 0, 1);
|
mouse_mode_button_box->pack_start (mouse_move_button);
|
||||||
mouse_mode_button_table->attach (mouse_select_button, c + 1, c + 2, 0, 1);
|
mouse_mode_button_box->pack_start (join_object_range_button);
|
||||||
mouse_mode_button_table->attach (join_object_range_button, c, c + 2, 1, 2);
|
mouse_mode_button_box->pack_start (mouse_select_button);
|
||||||
c += 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mouse_mode_button_table->attach (mouse_zoom_button, c, c + 1, 0, 1);
|
mouse_mode_button_box->pack_start (mouse_zoom_button);
|
||||||
++c;
|
|
||||||
|
|
||||||
if (!Profile->get_sae()) {
|
if (!Profile->get_sae()) {
|
||||||
mouse_mode_button_table->attach (mouse_gain_button, c, c + 1, 0, 1);
|
mouse_mode_button_box->pack_start (mouse_gain_button);
|
||||||
++c;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mouse_mode_button_table->attach (mouse_timefx_button, c, c + 1, 0, 1);
|
mouse_mode_button_box->pack_start (mouse_timefx_button);
|
||||||
++c;
|
mouse_mode_button_box->pack_start (mouse_audition_button);
|
||||||
|
mouse_mode_button_box->pack_start (internal_edit_button);
|
||||||
mouse_mode_button_table->attach (mouse_audition_button, c, c + 1, 0, 1);
|
|
||||||
++c;
|
|
||||||
|
|
||||||
mouse_mode_button_table->attach (internal_edit_button, c, c + 1, 0, 1);
|
|
||||||
++c;
|
|
||||||
|
|
||||||
vector<string> edit_mode_strings;
|
vector<string> edit_mode_strings;
|
||||||
edit_mode_strings.push_back (edit_mode_to_string (Slide));
|
edit_mode_strings.push_back (edit_mode_to_string (Slide));
|
||||||
|
|
@ -2792,7 +2781,7 @@ Editor::setup_toolbar ()
|
||||||
edit_mode_selector.signal_changed().connect (sigc::mem_fun(*this, &Editor::edit_mode_selection_done));
|
edit_mode_selector.signal_changed().connect (sigc::mem_fun(*this, &Editor::edit_mode_selection_done));
|
||||||
|
|
||||||
mode_box->pack_start (edit_mode_selector);
|
mode_box->pack_start (edit_mode_selector);
|
||||||
mode_box->pack_start (*mouse_mode_button_table);
|
mode_box->pack_start (*mouse_mode_button_box);
|
||||||
|
|
||||||
mouse_mode_tearoff = manage (new TearOff (*mode_box));
|
mouse_mode_tearoff = manage (new TearOff (*mode_box));
|
||||||
mouse_mode_tearoff->set_name ("MouseModeBase");
|
mouse_mode_tearoff->set_name ("MouseModeBase");
|
||||||
|
|
|
||||||
|
|
@ -626,9 +626,10 @@ Editor::register_actions ()
|
||||||
mouse_select_button.set_name ("MouseModeButton");
|
mouse_select_button.set_name ("MouseModeButton");
|
||||||
mouse_select_button.get_image ()->show ();
|
mouse_select_button.get_image ()->show ();
|
||||||
|
|
||||||
join_object_range_button.set_image (*(manage (new Image (::get_icon ("join_tools")))));
|
join_object_range_button.set_image (*(manage (new Image (::get_icon ("tool_object_range")))));
|
||||||
|
join_object_range_button.set_label ("");
|
||||||
join_object_range_button.set_name ("MouseModeButton");
|
join_object_range_button.set_name ("MouseModeButton");
|
||||||
join_object_range_button.get_image()->show ();
|
join_object_range_button.get_image ()->show ();
|
||||||
|
|
||||||
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-gain", _("Gain Tool"), sigc::bind (mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseGain));
|
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-gain", _("Gain Tool"), sigc::bind (mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseGain));
|
||||||
act->connect_proxy (mouse_gain_button);
|
act->connect_proxy (mouse_gain_button);
|
||||||
|
|
|
||||||
BIN
gtk2_ardour/icons/tool_object_range.png
Normal file
BIN
gtk2_ardour/icons/tool_object_range.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 362 B |
Loading…
Add table
Add a link
Reference in a new issue