I am become death, destroyer of boilerplate.

git-svn-id: svn://localhost/ardour2/branches/3.0@4630 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-19 00:15:54 +00:00
parent e209e0d471
commit df329436ea
4 changed files with 19 additions and 48 deletions

View file

@ -100,8 +100,9 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Ro
_base_rect->set_data ("trackview", this);
_base_rect->signal_event().connect (bind (mem_fun (_editor, &PublicEditor::canvas_automation_track_event),
_base_rect, this));
_base_rect->signal_event().connect (bind (
mem_fun (_editor, &PublicEditor::canvas_automation_track_event),
_base_rect, this));
_base_rect->lower_to_bottom();

View file

@ -2356,12 +2356,6 @@ public:
void fit_tracks ();
void set_track_height (uint32_t h);
void set_track_height_largest ();
void set_track_height_large ();
void set_track_height_larger ();
void set_track_height_normal ();
void set_track_height_smaller ();
void set_track_height_small ();
void remove_tracks ();
void toggle_tracks_active ();

View file

@ -20,12 +20,13 @@
#include <ardour/ardour.h>
#include <ardour/profile.h>
#include "utils.h"
#include "editor.h"
#include "editing.h"
#include "actions.h"
#include "ardour_ui.h"
#include "editing.h"
#include "editor.h"
#include "gui_thread.h"
#include "time_axis_view.h"
#include "utils.h"
#include "i18n.h"
using namespace Gtk;
@ -617,23 +618,29 @@ Editor::register_actions ()
act = ActionManager::register_action (editor_actions, "fit-tracks", _("Fit Selected Tracks"), (mem_fun(*this, &Editor::fit_tracks)));
ActionManager::session_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "track-height-largest", _("Largest"), (mem_fun(*this, &Editor::set_track_height_largest)));
act = ActionManager::register_action (editor_actions, "track-height-largest", _("Largest"), bind (
mem_fun(*this, &Editor::set_track_height), TimeAxisView::hLargest));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::track_selection_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "track-height-larger", _("Larger"), (mem_fun(*this, &Editor::set_track_height_larger)));
act = ActionManager::register_action (editor_actions, "track-height-larger", _("Larger"), bind (
mem_fun(*this, &Editor::set_track_height), TimeAxisView::hLarger));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::track_selection_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "track-height-large", _("Large"), (mem_fun(*this, &Editor::set_track_height_large)));
act = ActionManager::register_action (editor_actions, "track-height-large", _("Large"), bind (
mem_fun(*this, &Editor::set_track_height), TimeAxisView::hLarge));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::track_selection_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "track-height-normal", _("Normal"), (mem_fun(*this, &Editor::set_track_height_normal)));
act = ActionManager::register_action (editor_actions, "track-height-normal", _("Normal"), bind (
mem_fun(*this, &Editor::set_track_height), TimeAxisView::hNormal));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::track_selection_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "track-height-small", _("Small"), (mem_fun(*this, &Editor::set_track_height_small)));
act = ActionManager::register_action (editor_actions, "track-height-small", _("Small"), bind (
mem_fun(*this, &Editor::set_track_height), TimeAxisView::hSmall));
ActionManager::track_selection_sensitive_actions.push_back (act);
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::track_selection_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "track-height-smaller", _("Smaller"), (mem_fun(*this, &Editor::set_track_height_smaller)));
act = ActionManager::register_action (editor_actions, "track-height-smaller", _("Smaller"), bind (
mem_fun(*this, &Editor::set_track_height), TimeAxisView::hSmaller));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::track_selection_sensitive_actions.push_back (act);

View file

@ -5866,37 +5866,6 @@ Editor::set_track_height (uint32_t h)
}
}
void
Editor::set_track_height_largest ()
{
set_track_height (TimeAxisView::hLargest);
}
void
Editor::set_track_height_large ()
{
set_track_height (TimeAxisView::hLarge);
}
void
Editor::set_track_height_larger ()
{
set_track_height (TimeAxisView::hLarger);
}
void
Editor::set_track_height_normal ()
{
set_track_height (TimeAxisView::hNormal);
}
void
Editor::set_track_height_smaller ()
{
set_track_height (TimeAxisView::hSmaller);
}
void
Editor::set_track_height_small ()
{
set_track_height (TimeAxisView::hSmall);
}
void
Editor::toggle_tracks_active ()
{