s/stringcr_t/const string &/

git-svn-id: svn://localhost/trunk/ardour2@201 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Karsten Wiese 2005-12-22 12:23:54 +00:00
parent 541ff63201
commit 5c819462b8
51 changed files with 151 additions and 152 deletions

View file

@ -1102,7 +1102,7 @@ If you still wish to quit, please use the\n\n\
} }
int int
ARDOUR_UI::ask_about_saving_session (stringcr_t what) ARDOUR_UI::ask_about_saving_session (const string & what)
{ {
ArdourDialog window (_("ardour: save session?")); ArdourDialog window (_("ardour: save session?"));
Gtk::Label prompt_label; Gtk::Label prompt_label;
@ -2476,7 +2476,7 @@ ARDOUR_UI::snapshot_session ()
} }
void void
ARDOUR_UI::save_state (stringcr_t name) ARDOUR_UI::save_state (const string & name)
{ {
(void) save_state_canfail (name); (void) save_state_canfail (name);
} }
@ -2708,7 +2708,7 @@ ARDOUR_UI::new_session (bool startup, std::string predetermined_path)
} }
int int
ARDOUR_UI::load_session (stringcr_t path, stringcr_t snap_name, string* mix_template) ARDOUR_UI::load_session (const string & path, const string & snap_name, string* mix_template)
{ {
Session *new_session; Session *new_session;
int x; int x;
@ -2760,7 +2760,7 @@ ARDOUR_UI::make_session_clean ()
} }
int int
ARDOUR_UI::build_session (stringcr_t path, stringcr_t snap_name, ARDOUR_UI::build_session (const string & path, const string & snap_name,
uint32_t control_channels, uint32_t control_channels,
uint32_t master_channels, uint32_t master_channels,
Session::AutoConnectOption input_connect, Session::AutoConnectOption input_connect,
@ -2837,7 +2837,7 @@ ARDOUR_UI::hide_splash ()
} }
void void
ARDOUR_UI::display_cleanup_results (Session::cleanup_report& rep, const gchar* list_title, stringcr_t msg) ARDOUR_UI::display_cleanup_results (Session::cleanup_report& rep, const gchar* list_title, const string & msg)
{ {
size_t removed; size_t removed;

View file

@ -106,9 +106,9 @@ class ARDOUR_UI : public Gtkmm2ext::UI
void show_splash (); void show_splash ();
void hide_splash (); void hide_splash ();
int load_session (ARDOUR::stringcr_t path, ARDOUR::stringcr_t snapshot, string* mix_template = 0); int load_session (const string & path, const string & snapshot, string* mix_template = 0);
bool session_loaded; bool session_loaded;
int build_session (ARDOUR::stringcr_t path, ARDOUR::stringcr_t snapshot, int build_session (const string & path, const string & snapshot,
uint32_t ctl_chns, uint32_t ctl_chns,
uint32_t master_chns, uint32_t master_chns,
ARDOUR::Session::AutoConnectOption input_connect, ARDOUR::Session::AutoConnectOption input_connect,
@ -134,7 +134,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
void close_session() { unload_session(); } void close_session() { unload_session(); }
int save_state_canfail (string state_name = ""); int save_state_canfail (string state_name = "");
void save_state (ARDOUR::stringcr_t state_name = ""); void save_state (const string & state_name = "");
void restore_state (string state_name = ""); void restore_state (string state_name = "");
static double gain_to_slider_position (ARDOUR::gain_t g); static double gain_to_slider_position (ARDOUR::gain_t g);
@ -286,7 +286,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
void shutdown (); void shutdown ();
void finish(); void finish();
int ask_about_saving_session (ARDOUR::stringcr_t why); int ask_about_saving_session (const string & why);
gint ask_about_save_deleted (GdkEventAny*); gint ask_about_save_deleted (GdkEventAny*);
void save_session_choice_made (int); void save_session_choice_made (int);
int save_the_session; int save_the_session;
@ -630,7 +630,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
Gtk::MenuItem *cleanup_item; Gtk::MenuItem *cleanup_item;
void display_cleanup_results (ARDOUR::Session::cleanup_report& rep, const gchar* list_title, ARDOUR::stringcr_t msg); void display_cleanup_results (ARDOUR::Session::cleanup_report& rep, const gchar* list_title, const string & msg);
void cleanup (); void cleanup ();
void flush_trash (); void flush_trash ();

View file

@ -1937,7 +1937,7 @@ AudioTimeAxisView::route_active_changed ()
} }
XMLNode* XMLNode*
AudioTimeAxisView::get_child_xml_node (stringcr_t childname) AudioTimeAxisView::get_child_xml_node (const string & childname)
{ {
return RouteUI::get_child_xml_node (childname); return RouteUI::get_child_xml_node (childname);
} }

View file

@ -123,7 +123,7 @@ class AudioTimeAxisView : public RouteUI, public TimeAxisView
list<TimeAxisView*>get_child_list(); list<TimeAxisView*>get_child_list();
void set_state (const XMLNode&); void set_state (const XMLNode&);
XMLNode* get_child_xml_node (ARDOUR::stringcr_t childname); XMLNode* get_child_xml_node (const string & childname);
private: private:
friend class StreamView; friend class StreamView;

View file

@ -32,7 +32,7 @@
using namespace std; using namespace std;
using namespace ARDOUR; using namespace ARDOUR;
AutomationGainLine::AutomationGainLine (stringcr_t name, Session& s, TimeAxisView& tv, ArdourCanvas::Group& parent, Curve& c) AutomationGainLine::AutomationGainLine (const string & name, Session& s, TimeAxisView& tv, ArdourCanvas::Group& parent, Curve& c)
: AutomationLine (name, tv, parent, c), : AutomationLine (name, tv, parent, c),
session (s) session (s)

View file

@ -15,7 +15,7 @@ class TimeAxisView;
class AutomationGainLine : public AutomationLine class AutomationGainLine : public AutomationLine
{ {
public: public:
AutomationGainLine (ARDOUR::stringcr_t name, ARDOUR::Session&, TimeAxisView&, ArdourCanvas::Group& parent, ARDOUR::Curve&); AutomationGainLine (const string & name, ARDOUR::Session&, TimeAxisView&, ArdourCanvas::Group& parent, ARDOUR::Curve&);
void view_to_model_y (double&); void view_to_model_y (double&);
void model_to_view_y (double&); void model_to_view_y (double&);

View file

@ -217,7 +217,7 @@ ControlPoint::move_to (double x, double y, ShapeType shape)
/*****/ /*****/
AutomationLine::AutomationLine (stringcr_t name, TimeAxisView& tv, ArdourCanvas::Group& parent, AutomationList& al) AutomationLine::AutomationLine (const string & name, TimeAxisView& tv, ArdourCanvas::Group& parent, AutomationList& al)
: trackview (tv), : trackview (tv),
_name (name), _name (name),
alist (al), alist (al),

View file

@ -97,7 +97,7 @@ class ControlPoint
class AutomationLine : public sigc::trackable class AutomationLine : public sigc::trackable
{ {
public: public:
AutomationLine (ARDOUR::stringcr_t name, TimeAxisView&, ArdourCanvas::Group&, ARDOUR::AutomationList&); AutomationLine (const string & name, TimeAxisView&, ArdourCanvas::Group&, ARDOUR::AutomationList&);
virtual ~AutomationLine (); virtual ~AutomationLine ();
void queue_reset (); void queue_reset ();

View file

@ -32,7 +32,7 @@
using namespace ARDOUR; using namespace ARDOUR;
AutomationPanLine::AutomationPanLine (stringcr_t name, Session& s, TimeAxisView& tv, ArdourCanvas::Group& parent, Curve& c) AutomationPanLine::AutomationPanLine (const string & name, Session& s, TimeAxisView& tv, ArdourCanvas::Group& parent, Curve& c)
: AutomationLine (name, tv, parent, c), : AutomationLine (name, tv, parent, c),
session (s) session (s)

View file

@ -15,7 +15,7 @@ class TimeAxisView;
class AutomationPanLine : public AutomationLine class AutomationPanLine : public AutomationLine
{ {
public: public:
AutomationPanLine (ARDOUR::stringcr_t name, ARDOUR::Session&, TimeAxisView&, ArdourCanvas::Group& parent, ARDOUR::Curve&); AutomationPanLine (const string & name, ARDOUR::Session&, TimeAxisView&, ArdourCanvas::Group& parent, ARDOUR::Curve&);
void view_to_model_y (double&); void view_to_model_y (double&);
void model_to_view_y (double&); void model_to_view_y (double&);

View file

@ -35,8 +35,8 @@ static const gchar * small_x_xpm[] = {
" "}; " "};
AutomationTimeAxisView::AutomationTimeAxisView (Session& s, Route& r, PublicEditor& e, TimeAxisView& rent, AutomationTimeAxisView::AutomationTimeAxisView (Session& s, Route& r, PublicEditor& e, TimeAxisView& rent,
ArdourCanvas::Canvas& canvas, stringcr_t nom, ArdourCanvas::Canvas& canvas, const string & nom,
stringcr_t state_name, stringcr_t nomparent) const string & state_name, const string & nomparent)
: AxisView (s), : AxisView (s),
TimeAxisView (s, e, &rent, canvas), TimeAxisView (s, e, &rent, canvas),

View file

@ -35,9 +35,9 @@ class AutomationTimeAxisView : public TimeAxisView {
PublicEditor&, PublicEditor&,
TimeAxisView& parent, TimeAxisView& parent,
ArdourCanvas::Canvas& canvas, ArdourCanvas::Canvas& canvas,
ARDOUR::stringcr_t name, /* translatable */ const string & name, /* translatable */
ARDOUR::stringcr_t state_name, /* not translatable */ const string & state_name, /* not translatable */
ARDOUR::stringcr_t plug_name = ""); const string & plug_name = "");
~AutomationTimeAxisView(); ~AutomationTimeAxisView();

View file

@ -19,7 +19,7 @@ namespace Editing {
#undef SNAPTYPE #undef SNAPTYPE
#define SNAPTYPE(s) if (!strcmp(type, #s)) {return s;} #define SNAPTYPE(s) if (!strcmp(type, #s)) {return s;}
SnapType SnapType
str2snaptype (ARDOUR::stringcr_t str) { str2snaptype (const string & str) {
const char* type = str.c_str(); const char* type = str.c_str();
#include "editing_syms.h" #include "editing_syms.h"
return SnapToBar; return SnapToBar;
@ -31,7 +31,7 @@ str2snaptype (ARDOUR::stringcr_t str) {
#undef SNAPMODE #undef SNAPMODE
#define SNAPMODE(s) if (!strcmp(type, #s)) {return s;} #define SNAPMODE(s) if (!strcmp(type, #s)) {return s;}
SnapMode SnapMode
str2snapmode (ARDOUR::stringcr_t str) { str2snapmode (const string & str) {
const char* type = str.c_str(); const char* type = str.c_str();
#include "editing_syms.h" #include "editing_syms.h"
return SnapNormal; return SnapNormal;
@ -43,7 +43,7 @@ str2snapmode (ARDOUR::stringcr_t str) {
#undef REGIONLISTSORTTYPE #undef REGIONLISTSORTTYPE
#define REGIONLISTSORTTYPE(s) if (!strcmp(type, #s)) {return s;} #define REGIONLISTSORTTYPE(s) if (!strcmp(type, #s)) {return s;}
RegionListSortType RegionListSortType
str2regionlistsorttype (ARDOUR::stringcr_t str) { str2regionlistsorttype (const string & str) {
const char* type = str.c_str(); const char* type = str.c_str();
#include "editing_syms.h" #include "editing_syms.h"
return ByName; return ByName;
@ -55,7 +55,7 @@ str2regionlistsorttype (ARDOUR::stringcr_t str) {
#undef MOUSEMODE #undef MOUSEMODE
#define MOUSEMODE(s) if (!strcmp(type, #s)) {return s;} #define MOUSEMODE(s) if (!strcmp(type, #s)) {return s;}
MouseMode MouseMode
str2mousemode (ARDOUR::stringcr_t str) { str2mousemode (const string & str) {
const char* type = str.c_str(); const char* type = str.c_str();
#include "editing_syms.h" #include "editing_syms.h"
return MouseObject; return MouseObject;
@ -67,7 +67,7 @@ str2mousemode (ARDOUR::stringcr_t str) {
#undef ZOOMFOCUS #undef ZOOMFOCUS
#define ZOOMFOCUS(s) if (!strcmp(type, #s)) {return s;} #define ZOOMFOCUS(s) if (!strcmp(type, #s)) {return s;}
ZoomFocus ZoomFocus
str2zoomfocus (ARDOUR::stringcr_t str) { str2zoomfocus (const string & str) {
const char* type = str.c_str(); const char* type = str.c_str();
#include "editing_syms.h" #include "editing_syms.h"
return ZoomFocusPlayhead; return ZoomFocusPlayhead;
@ -79,7 +79,7 @@ str2zoomfocus (ARDOUR::stringcr_t str) {
#undef DISPLAYCONTROL #undef DISPLAYCONTROL
#define DISPLAYCONTROL(s) if (!strcmp(type, #s)) {return s;} #define DISPLAYCONTROL(s) if (!strcmp(type, #s)) {return s;}
DisplayControl DisplayControl
str2displaycontrol (ARDOUR::stringcr_t str) { str2displaycontrol (const string & str) {
const char* type = str.c_str(); const char* type = str.c_str();
#include "editing_syms.h" #include "editing_syms.h"
return FollowPlayhead; return FollowPlayhead;
@ -91,7 +91,7 @@ str2displaycontrol (ARDOUR::stringcr_t str) {
#undef COLORID #undef COLORID
#define COLORID(s) if (!strcmp(type, #s)) {return s;} #define COLORID(s) if (!strcmp(type, #s)) {return s;}
ColorID ColorID
str2color_id (ARDOUR::stringcr_t str) { str2color_id (const string & str) {
const char* type = str.c_str(); const char* type = str.c_str();
#include "editing_syms.h" #include "editing_syms.h"
return cFrameHandleEndOutline; return cFrameHandleEndOutline;

View file

@ -30,7 +30,7 @@ static const char *snaptypestrs[] = {
#include "editing_syms.h" #include "editing_syms.h"
}; };
inline const char* enum2str(SnapType m) {return snaptypestrs[m];} inline const char* enum2str(SnapType m) {return snaptypestrs[m];}
SnapType str2snaptype(ARDOUR::stringcr_t); SnapType str2snaptype(const std::string &);
#undef SNAPTYPE #undef SNAPTYPE
#define SNAPTYPE(a) /*empty*/ #define SNAPTYPE(a) /*empty*/
@ -48,7 +48,7 @@ static const char *snapmodestrs[] = {
#include "editing_syms.h" #include "editing_syms.h"
}; };
inline const char* enum2str(SnapMode m) {return snapmodestrs[m];} inline const char* enum2str(SnapMode m) {return snapmodestrs[m];}
SnapMode str2snapmode(ARDOUR::stringcr_t); SnapMode str2snapmode(const std::string &);
#undef SNAPMODE #undef SNAPMODE
#define SNAPMODE(a) /*empty*/ #define SNAPMODE(a) /*empty*/
@ -66,7 +66,7 @@ static const char *regionlistsorttypestrs[] = {
#include "editing_syms.h" #include "editing_syms.h"
}; };
inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];} inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
RegionListSortType str2regionlistsorttype(ARDOUR::stringcr_t); RegionListSortType str2regionlistsorttype(const std::string &);
#undef REGIONLISTSORTTYPE #undef REGIONLISTSORTTYPE
#define REGIONLISTSORTTYPE(a) /*empty*/ #define REGIONLISTSORTTYPE(a) /*empty*/
@ -84,7 +84,7 @@ static const char *mousemodestrs[] = {
#include "editing_syms.h" #include "editing_syms.h"
}; };
inline const char* enum2str(MouseMode m) {return mousemodestrs[m];} inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
MouseMode str2mousemode(ARDOUR::stringcr_t); MouseMode str2mousemode(const std::string &);
#undef MOUSEMODE #undef MOUSEMODE
#define MOUSEMODE(a) /*empty*/ #define MOUSEMODE(a) /*empty*/
@ -102,7 +102,7 @@ static const char *zoomfocusstrs[] = {
#include "editing_syms.h" #include "editing_syms.h"
}; };
inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];} inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
ZoomFocus str2zoomfocus(ARDOUR::stringcr_t); ZoomFocus str2zoomfocus(const std::string &);
#undef ZOOMFOCUS #undef ZOOMFOCUS
#define ZOOMFOCUS(a) /*empty*/ #define ZOOMFOCUS(a) /*empty*/
@ -120,7 +120,7 @@ static const char *displaycontrolstrs[] = {
#include "editing_syms.h" #include "editing_syms.h"
}; };
inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];} inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
DisplayControl str2displaycontrol (ARDOUR::stringcr_t); DisplayControl str2displaycontrol (const std::string &);
#undef DISPLAYCONTROL #undef DISPLAYCONTROL
#define DISPLAYCONTROL(a) /*empty*/ #define DISPLAYCONTROL(a) /*empty*/
@ -137,7 +137,7 @@ static const char *color_id_strs[] = {
#include "editing_syms.h" #include "editing_syms.h"
}; };
inline const char* enum2str(ColorID m) {return color_id_strs[m];} inline const char* enum2str(ColorID m) {return color_id_strs[m];}
ColorID str2color_id (ARDOUR::stringcr_t); ColorID str2color_id (const std::string &);
#undef COLORID #undef COLORID
#define COLORID(a) /*empty*/ #define COLORID(a) /*empty*/

View file

@ -1108,7 +1108,7 @@ Editor::handle_new_duration ()
} }
void void
Editor::update_title_s (stringcr_t snap_name) Editor::update_title_s (const string & snap_name)
{ {
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::update_title_s), snap_name)); ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::update_title_s), snap_name));
@ -3419,7 +3419,7 @@ Editor::hide_verbose_canvas_cursor ()
} }
void void
Editor::set_verbose_canvas_cursor (stringcr_t txt, double x, double y) Editor::set_verbose_canvas_cursor (const string & txt, double x, double y)
{ {
/* XXX get origin of canvas relative to root window, /* XXX get origin of canvas relative to root window,
add x and y and check compared to gdk_screen_{width,height} add x and y and check compared to gdk_screen_{width,height}
@ -3430,7 +3430,7 @@ Editor::set_verbose_canvas_cursor (stringcr_t txt, double x, double y)
} }
void void
Editor::set_verbose_canvas_cursor_text (stringcr_t txt) Editor::set_verbose_canvas_cursor_text (const string & txt)
{ {
verbose_canvas_cursor->property_text() = txt.c_str(); verbose_canvas_cursor->property_text() = txt.c_str();
} }

View file

@ -141,11 +141,11 @@ class Editor : public PublicEditor
void step_mouse_mode (bool next); void step_mouse_mode (bool next);
Editing::MouseMode current_mouse_mode () { return mouse_mode; } Editing::MouseMode current_mouse_mode () { return mouse_mode; }
void add_imageframe_time_axis(ARDOUR::stringcr_t track_name, void*) ; void add_imageframe_time_axis(const string & track_name, void*) ;
void add_imageframe_marker_time_axis(ARDOUR::stringcr_t track_name, TimeAxisView* marked_track, void*) ; void add_imageframe_marker_time_axis(const string & track_name, TimeAxisView* marked_track, void*) ;
void connect_to_image_compositor() ; void connect_to_image_compositor() ;
void scroll_timeaxis_to_imageframe_item(const TimeAxisViewItem* item) ; void scroll_timeaxis_to_imageframe_item(const TimeAxisViewItem* item) ;
TimeAxisView* get_named_time_axis(ARDOUR::stringcr_t name) ; TimeAxisView* get_named_time_axis(const string & name) ;
/* </CMT Additions> */ /* </CMT Additions> */
void consider_auditioning (ARDOUR::Region&); void consider_auditioning (ARDOUR::Region&);
@ -485,8 +485,8 @@ class Editor : public PublicEditor
bool track_canvas_motion (GdkEvent*); bool track_canvas_motion (GdkEvent*);
void set_verbose_canvas_cursor (ARDOUR::stringcr_t, double x, double y); void set_verbose_canvas_cursor (const string &, double x, double y);
void set_verbose_canvas_cursor_text (ARDOUR::stringcr_t); void set_verbose_canvas_cursor_text (const string &);
void show_verbose_canvas_cursor(); void show_verbose_canvas_cursor();
void hide_verbose_canvas_cursor(); void hide_verbose_canvas_cursor();
@ -744,7 +744,7 @@ class Editor : public PublicEditor
void name_selection(); void name_selection();
void named_selection_name_chosen (); void named_selection_name_chosen ();
void create_named_selection (ARDOUR::stringcr_t); void create_named_selection (const string &);
void paste_named_selection (float times); void paste_named_selection (float times);
void handle_new_named_selection (); void handle_new_named_selection ();
@ -896,7 +896,7 @@ class Editor : public PublicEditor
void temporal_zoom_selection (); void temporal_zoom_selection ();
void temporal_zoom_session (); void temporal_zoom_session ();
void temporal_zoom (gdouble scale); void temporal_zoom (gdouble scale);
void temporal_zoom_by_frame (jack_nframes_t start, jack_nframes_t end, ARDOUR::stringcr_t op); void temporal_zoom_by_frame (jack_nframes_t start, jack_nframes_t end, const string & op);
void temporal_zoom_to_frame (bool coarser, jack_nframes_t frame); void temporal_zoom_to_frame (bool coarser, jack_nframes_t frame);
void amplitude_zoom (gdouble scale); void amplitude_zoom (gdouble scale);
@ -907,14 +907,14 @@ class Editor : public PublicEditor
void insert_sndfile (bool as_tracks); void insert_sndfile (bool as_tracks);
void embed_audio (); // inserts into region list void embed_audio (); // inserts into region list
int reject_because_rate_differs (ARDOUR::stringcr_t path, SF_INFO& finfo, ARDOUR::stringcr_t action, bool multiple_pending); int reject_because_rate_differs (const string & path, SF_INFO& finfo, const string & action, bool multiple_pending);
void do_embed_sndfiles (vector<string> paths, bool split); void do_embed_sndfiles (vector<string> paths, bool split);
void embed_sndfile (string path, bool split, bool multiple_files, bool& check_sr); void embed_sndfile (string path, bool split, bool multiple_files, bool& check_sr);
void do_insert_sndfile (vector<string> path, bool multi, jack_nframes_t frame); void do_insert_sndfile (vector<string> path, bool multi, jack_nframes_t frame);
void insert_paths_as_new_tracks (std::vector<std::string> paths, bool multi); // inserts files as new tracks void insert_paths_as_new_tracks (std::vector<std::string> paths, bool multi); // inserts files as new tracks
void insert_sndfile_into (ARDOUR::stringcr_t path, bool multi, AudioTimeAxisView* tv, jack_nframes_t& frame, bool prompt=true); void insert_sndfile_into (const string & path, bool multi, AudioTimeAxisView* tv, jack_nframes_t& frame, bool prompt=true);
static void* _insert_sndfile_thread (void*); static void* _insert_sndfile_thread (void*);
void* insert_sndfile_thread (void*); void* insert_sndfile_thread (void*);
@ -1001,11 +1001,11 @@ class Editor : public PublicEditor
Editing::SnapMode snap_mode; Editing::SnapMode snap_mode;
double snap_threshold; double snap_threshold;
void soundfile_chosen_for_insert (ARDOUR::stringcr_t selection, bool split_channels); void soundfile_chosen_for_insert (const string & selection, bool split_channels);
void soundfile_chosen_for_embed (ARDOUR::stringcr_t selection, bool split_channels); void soundfile_chosen_for_embed (const string & selection, bool split_channels);
void soundfile_chosen_for_import (ARDOUR::stringcr_t selection, bool split_channels); void soundfile_chosen_for_import (const string & selection, bool split_channels);
void handle_gui_changes (ARDOUR::stringcr_t, void *); void handle_gui_changes (const string &, void *);
void hide_all_tracks (bool with_select); void hide_all_tracks (bool with_select);
@ -1574,11 +1574,11 @@ class Editor : public PublicEditor
UndoHistory visual_history; UndoHistory visual_history;
UndoCommand current_visual_command; UndoCommand current_visual_command;
void begin_reversible_visual_command (ARDOUR::stringcr_t cmd_name); void begin_reversible_visual_command (const string & cmd_name);
void commit_reversible_visual_command (); void commit_reversible_visual_command ();
void update_title (); void update_title ();
void update_title_s (ARDOUR::stringcr_t snapshot_name); void update_title_s (const string & snapshot_name);
struct State { struct State {
Selection* selection; Selection* selection;
@ -1678,8 +1678,8 @@ class Editor : public PublicEditor
bool _xfade_visibility; bool _xfade_visibility;
/* <CMT Additions> */ /* <CMT Additions> */
void handle_new_imageframe_time_axis_view(ARDOUR::stringcr_t track_name, void* src) ; void handle_new_imageframe_time_axis_view(const string & track_name, void* src) ;
void handle_new_imageframe_marker_time_axis_view(ARDOUR::stringcr_t track_name, TimeAxisView* marked_track) ; void handle_new_imageframe_marker_time_axis_view(const string & track_name, TimeAxisView* marked_track) ;
void start_imageframe_grab(ArdourCanvas::Item*, GdkEvent*) ; void start_imageframe_grab(ArdourCanvas::Item*, GdkEvent*) ;
void start_markerview_grab(ArdourCanvas::Item*, GdkEvent*) ; void start_markerview_grab(ArdourCanvas::Item*, GdkEvent*) ;

View file

@ -48,7 +48,7 @@ using namespace Gtk;
/* <CMT Additions file="editor.cc"> */ /* <CMT Additions file="editor.cc"> */
void void
Editor::add_imageframe_time_axis(ARDOUR::stringcr_t track_name, void* src) Editor::add_imageframe_time_axis(const string & track_name, void* src)
{ {
// check for duplicate name // check for duplicate name
if(get_named_time_axis(track_name)) if(get_named_time_axis(track_name))
@ -112,7 +112,7 @@ Editor::scroll_timeaxis_to_imageframe_item(const TimeAxisViewItem* item)
} }
void void
Editor::add_imageframe_marker_time_axis(ARDOUR::stringcr_t track_name, TimeAxisView* marked_track, void* src) Editor::add_imageframe_marker_time_axis(const string & track_name, TimeAxisView* marked_track, void* src)
{ {
// Can we only bind 2 data Items? // Can we only bind 2 data Items?
// @todo we really want to bind the src attribute too, for the moment tracks can only be added remotely, // @todo we really want to bind the src attribute too, for the moment tracks can only be added remotely,
@ -153,7 +153,7 @@ Editor::popup_marker_time_axis_edit_menu(int button, int32_t time, ArdourCanvas:
} }
TimeAxisView* TimeAxisView*
Editor::get_named_time_axis(ARDOUR::stringcr_t name) Editor::get_named_time_axis(const string & name)
{ {
TimeAxisView* tav = 0 ; TimeAxisView* tav = 0 ;
@ -1095,7 +1095,7 @@ Editor::markerview_end_handle_end_trim (ArdourCanvas::Item* item, GdkEvent* even
/* <CMT Additions file="editor_route_list.cc"> */ /* <CMT Additions file="editor_route_list.cc"> */
void void
Editor::handle_new_imageframe_time_axis_view(ARDOUR::stringcr_t track_name, void* src) Editor::handle_new_imageframe_time_axis_view(const string & track_name, void* src)
{ {
ImageFrameTimeAxis* iftav ; ImageFrameTimeAxis* iftav ;
iftav = new ImageFrameTimeAxis(track_name, *this, *session, track_canvas) ; iftav = new ImageFrameTimeAxis(track_name, *this, *session, track_canvas) ;
@ -1113,7 +1113,7 @@ Editor::handle_new_imageframe_time_axis_view(ARDOUR::stringcr_t track_name, void
} }
void void
Editor::handle_new_imageframe_marker_time_axis_view(ARDOUR::stringcr_t track_name, TimeAxisView* marked_track) Editor::handle_new_imageframe_marker_time_axis_view(const string & track_name, TimeAxisView* marked_track)
{ {
MarkerTimeAxis* mta = new MarkerTimeAxis (*this, *this->current_session(), track_canvas, track_name, marked_track) ; MarkerTimeAxis* mta = new MarkerTimeAxis (*this, *this->current_session(), track_canvas, track_name, marked_track) ;
((ImageFrameTimeAxis*)marked_track)->add_marker_time_axis(mta, this) ; ((ImageFrameTimeAxis*)marked_track)->add_marker_time_axis(mta, this) ;

View file

@ -1118,7 +1118,7 @@ Editor::temporal_zoom_session ()
} }
void void
Editor::temporal_zoom_by_frame (jack_nframes_t start, jack_nframes_t end, stringcr_t op) Editor::temporal_zoom_by_frame (jack_nframes_t start, jack_nframes_t end, const string & op)
{ {
if (!session) return; if (!session) return;
@ -1962,7 +1962,7 @@ Editor::do_import (vector<string> paths, bool split, bool as_tracks)
} }
int int
Editor::reject_because_rate_differs (stringcr_t path, SF_INFO& finfo, stringcr_t action, bool multiple_pending) Editor::reject_because_rate_differs (const string & path, SF_INFO& finfo, const string & action, bool multiple_pending)
{ {
if (!session) { if (!session) {
return 1; return 1;
@ -2252,7 +2252,7 @@ Editor::do_insert_sndfile (vector<string> paths, bool split, jack_nframes_t pos)
} }
void void
Editor::insert_sndfile_into (stringcr_t path, bool multi, AudioTimeAxisView* tv, jack_nframes_t& pos, bool prompt) Editor::insert_sndfile_into (const string & path, bool multi, AudioTimeAxisView* tv, jack_nframes_t& pos, bool prompt)
{ {
SndFileSource *source = 0; /* keep g++ quiet */ SndFileSource *source = 0; /* keep g++ quiet */
AudioRegion::SourceList sources; AudioRegion::SourceList sources;

View file

@ -85,7 +85,7 @@ Editor::handle_new_route (Route& route)
} }
void void
Editor::handle_gui_changes (stringcr_t what, void *src) Editor::handle_gui_changes (const string & what, void *src)
{ {
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::handle_gui_changes), what, src)); ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::handle_gui_changes), what, src));

View file

@ -130,7 +130,7 @@ Editor::named_selection_name_chosen ()
} }
void void
Editor::create_named_selection (stringcr_t name) Editor::create_named_selection (const string & name)
{ {
if (session == 0) { if (session == 0) {
return; return;

View file

@ -30,7 +30,7 @@
using namespace ARDOUR; using namespace ARDOUR;
using namespace Gtk; using namespace Gtk;
GainAutomationTimeAxisView::GainAutomationTimeAxisView (Session& s, Route& r, PublicEditor& e, TimeAxisView& parent, ArdourCanvas::Canvas& canvas, stringcr_t n, ARDOUR::Curve& c) GainAutomationTimeAxisView::GainAutomationTimeAxisView (Session& s, Route& r, PublicEditor& e, TimeAxisView& parent, ArdourCanvas::Canvas& canvas, const string & n, ARDOUR::Curve& c)
: AxisView (s), : AxisView (s),
AutomationTimeAxisView (s, r, e, parent, canvas, n, X_("gain"), ""), AutomationTimeAxisView (s, r, e, parent, canvas, n, X_("gain"), ""),

View file

@ -17,7 +17,7 @@ class GainAutomationTimeAxisView : public AutomationTimeAxisView
PublicEditor&, PublicEditor&,
TimeAxisView& parent_axis, TimeAxisView& parent_axis,
ArdourCanvas::Canvas& canvas, ArdourCanvas::Canvas& canvas,
ARDOUR::stringcr_t name, const string & name,
ARDOUR::Curve&); ARDOUR::Curve&);
~GainAutomationTimeAxisView(); ~GainAutomationTimeAxisView();

View file

@ -294,7 +294,7 @@ ImageFrameSocketHandler::get_socket_descriptor()
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
void void
ImageFrameSocketHandler::send_imageframe_time_axis_removed(stringcr_t track_id, void* src) ImageFrameSocketHandler::send_imageframe_time_axis_removed(const string & track_id, void* src)
{ {
if(this == src || src == 0) if(this == src || src == 0)
{ {
@ -329,7 +329,7 @@ ImageFrameSocketHandler::send_imageframe_time_axis_removed(stringcr_t track_id,
* @param time_axis the time axis that has changed * @param time_axis the time axis that has changed
*/ */
void void
ImageFrameSocketHandler::send_imageframe_time_axis_renamed(stringcr_t new_id, stringcr_t old_id, void* src, ImageFrameTimeAxis* time_axis) ImageFrameSocketHandler::send_imageframe_time_axis_renamed(const string & new_id, const string & old_id, void* src, ImageFrameTimeAxis* time_axis)
{ {
// ENSURE_GUI_THREAD(SigC::bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_renamed), new_id, old_id, src, time_axis)); // ENSURE_GUI_THREAD(SigC::bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_renamed), new_id, old_id, src, time_axis));
@ -371,7 +371,7 @@ ImageFrameSocketHandler::send_imageframe_time_axis_renamed(stringcr_t new_id, st
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
void void
ImageFrameSocketHandler::send_marker_time_axis_removed(stringcr_t track_id, void* src) ImageFrameSocketHandler::send_marker_time_axis_removed(const string & track_id, void* src)
{ {
if(this == src || src == 0) if(this == src || src == 0)
{ {
@ -406,7 +406,7 @@ ImageFrameSocketHandler::send_marker_time_axis_removed(stringcr_t track_id, void
* @param time_axis the time axis that has changed * @param time_axis the time axis that has changed
*/ */
void void
ImageFrameSocketHandler::send_marker_time_axis_renamed(stringcr_t new_id, stringcr_t old_id, void* src, MarkerTimeAxis* time_axis) ImageFrameSocketHandler::send_marker_time_axis_renamed(const string & new_id, const string & old_id, void* src, MarkerTimeAxis* time_axis)
{ {
// ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_marker_time_axis_renamed), new_id, old_id, src, time_axis)); // ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_marker_time_axis_renamed), new_id, old_id, src, time_axis));
@ -449,7 +449,7 @@ ImageFrameSocketHandler::send_marker_time_axis_renamed(stringcr_t new_id, string
* @param group the group that has changed * @param group the group that has changed
*/ */
void void
ImageFrameSocketHandler::send_imageframe_time_axis_group_removed(stringcr_t group_id, void* src, ImageFrameTimeAxisGroup* group) ImageFrameSocketHandler::send_imageframe_time_axis_group_removed(const string & group_id, void* src, ImageFrameTimeAxisGroup* group)
{ {
if(this == src || src == 0) if(this == src || src == 0)
{ {
@ -489,7 +489,7 @@ ImageFrameSocketHandler::send_imageframe_time_axis_group_removed(stringcr_t grou
* @param group the group that has changed * @param group the group that has changed
*/ */
void void
ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed(stringcr_t new_id, stringcr_t old_id, void* src, ImageFrameTimeAxisGroup* group) ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed(const string & new_id, const string & old_id, void* src, ImageFrameTimeAxisGroup* group)
{ {
// ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed), new_id, old_id, src, group)); // ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed), new_id, old_id, src, group));
@ -608,7 +608,7 @@ ImageFrameSocketHandler::send_imageframe_view_duration_change(jack_nframes_t dur
* @param item the renamed item * @param item the renamed item
*/ */
void void
ImageFrameSocketHandler::send_imageframe_view_renamed(stringcr_t new_id, stringcr_t old_id, void* src, ImageFrameView* item) ImageFrameSocketHandler::send_imageframe_view_renamed(const string & new_id, const string & old_id, void* src, ImageFrameView* item)
{ {
if(this == src || src == 0) if(this == src || src == 0)
{ {
@ -643,7 +643,7 @@ ImageFrameSocketHandler::send_imageframe_view_renamed(stringcr_t new_id, stringc
* @param item the removed item * @param item the removed item
*/ */
void void
ImageFrameSocketHandler::send_imageframe_view_removed(stringcr_t item_id, void* src, ImageFrameView* item) ImageFrameSocketHandler::send_imageframe_view_removed(const string & item_id, void* src, ImageFrameView* item)
{ {
if(this == src || src == 0) if(this == src || src == 0)
{ {
@ -756,7 +756,7 @@ ImageFrameSocketHandler::send_marker_view_duration_change(jack_nframes_t dur, vo
* @param item the MarkerView which has been renamed * @param item the MarkerView which has been renamed
*/ */
void void
ImageFrameSocketHandler::send_marker_view_renamed(stringcr_t new_id, stringcr_t old_id, void* src, MarkerView* item) ImageFrameSocketHandler::send_marker_view_renamed(const string & new_id, const string & old_id, void* src, MarkerView* item)
{ {
if(this == src || src == 0) if(this == src || src == 0)
{ {
@ -792,7 +792,7 @@ ImageFrameSocketHandler::send_marker_view_renamed(stringcr_t new_id, stringcr_t
* @param item the MarkerView which has been removed * @param item the MarkerView which has been removed
*/ */
void void
ImageFrameSocketHandler::send_marker_view_removed(stringcr_t item_id, void* src, MarkerView* item) ImageFrameSocketHandler::send_marker_view_removed(const string & item_id, void* src, MarkerView* item)
{ {
if(this == src || src == 0) if(this == src || src == 0)
{ {
@ -2239,7 +2239,7 @@ ImageFrameSocketHandler::compose_marker_item_desc(MarkerView* mv, std::ostringst
* @return the described item on success, 0 otherwise * @return the described item on success, 0 otherwise
*/ */
ImageFrameView* ImageFrameView*
ImageFrameSocketHandler::get_imageframe_view_from_desc(stringcr_t track_id, stringcr_t group_id, stringcr_t item_id, int& errcode, std::string& errmsg) ImageFrameSocketHandler::get_imageframe_view_from_desc(const string & track_id, const string & group_id, const string & item_id, int& errcode, std::string& errmsg)
{ {
ImageFrameView* item = 0 ; ImageFrameView* item = 0 ;
@ -2294,7 +2294,7 @@ ImageFrameSocketHandler::get_imageframe_view_from_desc(stringcr_t track_id, stri
* @return the return value of the socket call * @return the return value of the socket call
*/ */
int int
ImageFrameSocketHandler::send_message(stringcr_t msg) ImageFrameSocketHandler::send_message(const string & msg)
{ {
//std::cout << "Sending Message [" << msg << "]\n" ; //std::cout << "Sending Message [" << msg << "]\n" ;
int retcode = ::send(theArdourToCompositorSocket, msg.c_str(), msg.length(), MSG_NOSIGNAL) ; int retcode = ::send(theArdourToCompositorSocket, msg.c_str(), msg.length(), MSG_NOSIGNAL) ;

View file

@ -128,7 +128,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param track_id the unique id of the removed image frame time axis * @param track_id the unique id of the removed image frame time axis
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
void send_imageframe_time_axis_removed(ARDOUR::stringcr_t track_id, void* src) ; void send_imageframe_time_axis_removed(const string & track_id, void* src) ;
/** /**
* Sends a message indicating that an ImageFrameTimeAxis has been renamed * Sends a message indicating that an ImageFrameTimeAxis has been renamed
@ -138,7 +138,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param time_axis the time axis that has changed * @param time_axis the time axis that has changed
*/ */
void send_imageframe_time_axis_renamed(ARDOUR::stringcr_t new_id, ARDOUR::stringcr_t old_id, void* src, ImageFrameTimeAxis* time_axis) ; void send_imageframe_time_axis_renamed(const string & new_id, const string & old_id, void* src, ImageFrameTimeAxis* time_axis) ;
//------------------------ //------------------------
// MarkerTimeAxis Messages // MarkerTimeAxis Messages
@ -149,7 +149,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param track_id the unique id of the removed image frame time axis * @param track_id the unique id of the removed image frame time axis
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
void send_marker_time_axis_removed(ARDOUR::stringcr_t track_id, void* src) ; void send_marker_time_axis_removed(const string & track_id, void* src) ;
/** /**
* Sends a message indicating that an MarkerTimeAxis has been renamed * Sends a message indicating that an MarkerTimeAxis has been renamed
@ -159,7 +159,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param time_axis the time axis that has changed * @param time_axis the time axis that has changed
*/ */
void send_marker_time_axis_renamed(ARDOUR::stringcr_t new_id, ARDOUR::stringcr_t old_id, void* src, MarkerTimeAxis* time_axis) ; void send_marker_time_axis_renamed(const string & new_id, const string & old_id, void* src, MarkerTimeAxis* time_axis) ;
//--------------------------------- //---------------------------------
@ -172,7 +172,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param group the group that has changed * @param group the group that has changed
*/ */
void send_imageframe_time_axis_group_removed(ARDOUR::stringcr_t group_id, void* src, ImageFrameTimeAxisGroup* group) ; void send_imageframe_time_axis_group_removed(const string & group_id, void* src, ImageFrameTimeAxisGroup* group) ;
/** /**
* Send a message indicating that an ImageFrameTimeAxisGroup has been renamed * Send a message indicating that an ImageFrameTimeAxisGroup has been renamed
@ -182,7 +182,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param group the group that has changed * @param group the group that has changed
*/ */
void send_imageframe_time_axis_group_renamed(ARDOUR::stringcr_t new_id, ARDOUR::stringcr_t old_id, void* src, ImageFrameTimeAxisGroup* group) ; void send_imageframe_time_axis_group_renamed(const string & new_id, const string & old_id, void* src, ImageFrameTimeAxisGroup* group) ;
//--------------------------------- //---------------------------------
@ -213,7 +213,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param item the renamed item * @param item the renamed item
*/ */
void send_imageframe_view_renamed(ARDOUR::stringcr_t new_id, ARDOUR::stringcr_t old_id, void* src, ImageFrameView* item) ; void send_imageframe_view_renamed(const string & new_id, const string & old_id, void* src, ImageFrameView* item) ;
/** /**
* Send a message indicating that an ImageFrameView item has been removed message * Send a message indicating that an ImageFrameView item has been removed message
@ -222,7 +222,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param item the removed item * @param item the removed item
*/ */
void send_imageframe_view_removed(ARDOUR::stringcr_t item_id, void* src, ImageFrameView* item) ; void send_imageframe_view_removed(const string & item_id, void* src, ImageFrameView* item) ;
//--------------------------------- //---------------------------------
// MarkerView Messages // MarkerView Messages
@ -253,7 +253,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param item the MarkerView which has been renamed * @param item the MarkerView which has been renamed
*/ */
void send_marker_view_renamed(ARDOUR::stringcr_t new_id, ARDOUR::stringcr_t old_id, void* src, MarkerView* item) ; void send_marker_view_renamed(const string & new_id, const string & old_id, void* src, MarkerView* item) ;
/** /**
* Send a message indicating that a MarkerView item has been removed message * Send a message indicating that a MarkerView item has been removed message
@ -262,7 +262,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @param item the MarkerView which has been removed * @param item the MarkerView which has been removed
*/ */
void send_marker_view_removed(ARDOUR::stringcr_t item_id, void* src, MarkerView* item) ; void send_marker_view_removed(const string & item_id, void* src, MarkerView* item) ;
//---------------------------------------------------------------------------------------// //---------------------------------------------------------------------------------------//
@ -650,7 +650,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param errmsg populated with a description of the error on failure * @param errmsg populated with a description of the error on failure
* @return the described item on success, 0 otherwise * @return the described item on success, 0 otherwise
*/ */
ImageFrameView* get_imageframe_view_from_desc(ARDOUR::stringcr_t track_id, ARDOUR::stringcr_t group_ud, ARDOUR::stringcr_t item_id, int& errcode, std::string& errmsg) ; ImageFrameView* get_imageframe_view_from_desc(const string & track_id, const string & group_ud, const string & item_id, int& errcode, std::string& errmsg) ;
//---------------------------------------------------------------------------------------// //---------------------------------------------------------------------------------------//
// Convenince Message Send Methods // Convenince Message Send Methods
@ -661,7 +661,7 @@ class ImageFrameSocketHandler : public sigc::trackable
* @param msg the message to send * @param msg the message to send
* @return the return value of the socket call * @return the return value of the socket call
*/ */
int send_message(ARDOUR::stringcr_t msg) ; int send_message(const string & msg) ;
/** /**
* Reads a message from the Socket * Reads a message from the Socket

View file

@ -58,7 +58,7 @@ using namespace Gtk;
* @param sess the current session * @param sess the current session
* @param canvas the parent canvas item * @param canvas the parent canvas item
*/ */
ImageFrameTimeAxis::ImageFrameTimeAxis(stringcr_t track_id, PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas) ImageFrameTimeAxis::ImageFrameTimeAxis(const string & track_id, PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas)
: AxisView(sess), : AxisView(sess),
VisualTimeAxis(track_id, ed, sess, canvas) VisualTimeAxis(track_id, ed, sess, canvas)
{ {
@ -351,7 +351,7 @@ ImageFrameTimeAxis::add_marker_time_axis(MarkerTimeAxis* marker_track, void* src
* @return the named markerTimeAxis, or 0 if the named MarkerTimeAxis is not associated with this ImageFrameTimeAxis * @return the named markerTimeAxis, or 0 if the named MarkerTimeAxis is not associated with this ImageFrameTimeAxis
*/ */
MarkerTimeAxis* MarkerTimeAxis*
ImageFrameTimeAxis::get_named_marker_time_axis(stringcr_t track_id) ImageFrameTimeAxis::get_named_marker_time_axis(const string & track_id)
{ {
MarkerTimeAxis* mta = 0 ; MarkerTimeAxis* mta = 0 ;
@ -374,7 +374,7 @@ ImageFrameTimeAxis::get_named_marker_time_axis(stringcr_t track_id)
* @return the removed MarkerTimeAxis * @return the removed MarkerTimeAxis
*/ */
MarkerTimeAxis* MarkerTimeAxis*
ImageFrameTimeAxis::remove_named_marker_time_axis(stringcr_t track_id, void* src) ImageFrameTimeAxis::remove_named_marker_time_axis(const string & track_id, void* src)
{ {
MarkerTimeAxis* mta = 0 ; MarkerTimeAxis* mta = 0 ;

View file

@ -63,7 +63,7 @@ class ImageFrameTimeAxis : public VisualTimeAxis
* @param sess the current session * @param sess the current session
* @param canvas the parent canvas item * @param canvas the parent canvas item
*/ */
ImageFrameTimeAxis(ARDOUR::stringcr_t track_id, PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas) ; ImageFrameTimeAxis(const string & track_id, PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas) ;
/** /**
* Destructor * Destructor
@ -127,7 +127,7 @@ class ImageFrameTimeAxis : public VisualTimeAxis
* @param track_id the track_id of the MarkerTimeAxis to search for * @param track_id the track_id of the MarkerTimeAxis to search for
* @return the named markerTimeAxis, or 0 if the named MarkerTimeAxis is not associated with this ImageFrameTimeAxis * @return the named markerTimeAxis, or 0 if the named MarkerTimeAxis is not associated with this ImageFrameTimeAxis
*/ */
MarkerTimeAxis* get_named_marker_time_axis(ARDOUR::stringcr_t track_id) ; MarkerTimeAxis* get_named_marker_time_axis(const string & track_id) ;
/** /**
* Removes the named markerTimeAxis from those associated with this ImageFrameTimeAxis * Removes the named markerTimeAxis from those associated with this ImageFrameTimeAxis
@ -136,7 +136,7 @@ class ImageFrameTimeAxis : public VisualTimeAxis
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @return the removed MarkerTimeAxis * @return the removed MarkerTimeAxis
*/ */
MarkerTimeAxis* remove_named_marker_time_axis(ARDOUR::stringcr_t track_id, void* src) ; MarkerTimeAxis* remove_named_marker_time_axis(const string & track_id, void* src) ;
/** /**
* Removes tav from the list of MarkerTimaAxis associated with this ImageFrameTimeAxis * Removes tav from the list of MarkerTimaAxis associated with this ImageFrameTimeAxis

View file

@ -45,7 +45,7 @@ using namespace ARDOUR ;
* @param iftav the parent ImageFrameTimeAxis of this view helper * @param iftav the parent ImageFrameTimeAxis of this view helper
* @param group_id the unique name/id of this group * @param group_id the unique name/id of this group
*/ */
ImageFrameTimeAxisGroup::ImageFrameTimeAxisGroup(ImageFrameTimeAxisView& iftav, stringcr_t group_id) ImageFrameTimeAxisGroup::ImageFrameTimeAxisGroup(ImageFrameTimeAxisView& iftav, const string & group_id)
: _view_helper(iftav), _group_id(group_id) : _view_helper(iftav), _group_id(group_id)
{ {
selected_imageframe_item = 0 ; selected_imageframe_item = 0 ;
@ -89,7 +89,7 @@ ImageFrameTimeAxisGroup::~ImageFrameTimeAxisGroup()
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
void void
ImageFrameTimeAxisGroup::set_group_name(stringcr_t new_name, void* src) ImageFrameTimeAxisGroup::set_group_name(const string & new_name, void* src)
{ {
if(_group_id != new_name) if(_group_id != new_name)
{ {
@ -195,7 +195,7 @@ ImageFrameTimeAxisGroup::apply_item_color(Gdk::Color& color)
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
ImageFrameView* ImageFrameView*
ImageFrameTimeAxisGroup::add_imageframe_item(stringcr_t frame_id, jack_nframes_t start, jack_nframes_t duration, unsigned char* rgb_data, uint32_t width, uint32_t height, uint32_t num_channels, void* src) ImageFrameTimeAxisGroup::add_imageframe_item(const string & frame_id, jack_nframes_t start, jack_nframes_t duration, unsigned char* rgb_data, uint32_t width, uint32_t height, uint32_t num_channels, void* src)
{ {
ImageFrameView* ifv = 0 ; ImageFrameView* ifv = 0 ;
@ -233,7 +233,7 @@ ImageFrameTimeAxisGroup::add_imageframe_item(stringcr_t frame_id, jack_nframes_t
* @return the named ImageFrameView, or 0 if it is not held upon this view * @return the named ImageFrameView, or 0 if it is not held upon this view
*/ */
ImageFrameView* ImageFrameView*
ImageFrameTimeAxisGroup::get_named_imageframe_item(stringcr_t frame_id) ImageFrameTimeAxisGroup::get_named_imageframe_item(const string & frame_id)
{ {
ImageFrameView* ifv = 0 ; ImageFrameView* ifv = 0 ;
@ -293,7 +293,7 @@ ImageFrameTimeAxisGroup::remove_selected_imageframe_item(void* src)
* @see add_imageframe_view * @see add_imageframe_view
*/ */
ImageFrameView* ImageFrameView*
ImageFrameTimeAxisGroup::remove_named_imageframe_item(stringcr_t frame_id, void* src) ImageFrameTimeAxisGroup::remove_named_imageframe_item(const string & frame_id, void* src)
{ {
ImageFrameView* removed = 0 ; ImageFrameView* removed = 0 ;

View file

@ -54,7 +54,7 @@ class ImageFrameTimeAxisGroup : public sigc::trackable
* @param iftav the parent ImageFrameTimeAxis of this view helper * @param iftav the parent ImageFrameTimeAxis of this view helper
* @param group_id the unique name/id of this group * @param group_id the unique name/id of this group
*/ */
ImageFrameTimeAxisGroup(ImageFrameTimeAxisView& iftav, ARDOUR::stringcr_t group_id) ; ImageFrameTimeAxisGroup(ImageFrameTimeAxisView& iftav, const string & group_id) ;
/** /**
* Destructor * Destructor
@ -73,7 +73,7 @@ class ImageFrameTimeAxisGroup : public sigc::trackable
* @param new_name the new name of this group * @param new_name the new name of this group
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
void set_group_name(ARDOUR::stringcr_t new_name, void* src) ; void set_group_name(const string & new_name, void* src) ;
/** /**
* Returns the id of this group * Returns the id of this group
@ -139,7 +139,7 @@ class ImageFrameTimeAxisGroup : public sigc::trackable
* @param num_channels the number of channles within the rgb_data * @param num_channels the number of channles within the rgb_data
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
ImageFrameView* add_imageframe_item(ARDOUR::stringcr_t item_id, jack_nframes_t start, jack_nframes_t duration, unsigned char* rgb_data, uint32_t width, uint32_t height, uint32_t num_channels, void* src) ; ImageFrameView* add_imageframe_item(const string & item_id, jack_nframes_t start, jack_nframes_t duration, unsigned char* rgb_data, uint32_t width, uint32_t height, uint32_t num_channels, void* src) ;
/** /**
* Returns the named ImageFrameView or 0 if the named view does not exist on this view helper * Returns the named ImageFrameView or 0 if the named view does not exist on this view helper
@ -147,7 +147,7 @@ class ImageFrameTimeAxisGroup : public sigc::trackable
* @param item_id the unique id of the item to search for * @param item_id the unique id of the item to search for
* @return the named ImageFrameView, or 0 if it is not held upon this view * @return the named ImageFrameView, or 0 if it is not held upon this view
*/ */
ImageFrameView* get_named_imageframe_item(ARDOUR::stringcr_t item_id) ; ImageFrameView* get_named_imageframe_item(const string & item_id) ;
/** /**
* Removes the currently selected ImageFrameView * Removes the currently selected ImageFrameView
@ -164,7 +164,7 @@ class ImageFrameTimeAxisGroup : public sigc::trackable
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @see add_imageframe_view * @see add_imageframe_view
*/ */
ImageFrameView* remove_named_imageframe_item(ARDOUR::stringcr_t item_id, void* src) ; ImageFrameView* remove_named_imageframe_item(const string & item_id, void* src) ;
/** /**
* Removes ifv from the list of ImageFrameViews upon this TimeAxis. * Removes ifv from the list of ImageFrameViews upon this TimeAxis.
@ -254,7 +254,7 @@ class ImageFrameTimeAxisGroup : public sigc::trackable
sigc::signal<void, ImageFrameView*, void*> ImageFrameAdded ; sigc::signal<void, ImageFrameView*, void*> ImageFrameAdded ;
/** Emitted when an ImageFrameView is removed from this group */ /** Emitted when an ImageFrameView is removed from this group */
sigc::signal<void, ARDOUR::stringcr_t, ARDOUR::stringcr_t, ARDOUR::stringcr_t, void*> ImageFrameRemoved ; sigc::signal<void, const string &, const string &, const string &, void*> ImageFrameRemoved ;
protected: protected:

View file

@ -56,7 +56,7 @@ sigc::signal<void,ImageFrameView*> ImageFrameView::GoingAway;
* @param height the width of the origianl rgb_data image data * @param height the width of the origianl rgb_data image data
* @param num_channels the number of color channels within rgb_data * @param num_channels the number of color channels within rgb_data
*/ */
ImageFrameView::ImageFrameView(stringcr_t item_id, ImageFrameView::ImageFrameView(const string & item_id,
ArdourCanvas::Group *parent, ArdourCanvas::Group *parent,
ImageFrameTimeAxis* tv, ImageFrameTimeAxis* tv,
ImageFrameTimeAxisGroup* item_group, ImageFrameTimeAxisGroup* item_group,
@ -307,7 +307,7 @@ ImageFrameView::add_marker_view_item(MarkerView* item, void* src)
* @return the removed marker item * @return the removed marker item
*/ */
MarkerView* MarkerView*
ImageFrameView::remove_named_marker_view_item(stringcr_t markerId, void* src) ImageFrameView::remove_named_marker_view_item(const string & markerId, void* src)
{ {
MarkerView* mv = 0 ; MarkerView* mv = 0 ;
MarkerViewList::iterator i = marker_view_list.begin() ; MarkerViewList::iterator i = marker_view_list.begin() ;
@ -359,7 +359,7 @@ ImageFrameView::remove_marker_view_item(MarkerView* mv, void* src)
* @param markId the id/name of the item to search for * @param markId the id/name of the item to search for
*/ */
bool bool
ImageFrameView::has_marker_view_item(stringcr_t mname) ImageFrameView::has_marker_view_item(const string & mname)
{ {
bool result = false ; bool result = false ;

View file

@ -60,7 +60,7 @@ class ImageFrameView : public TimeAxisViewItem
* @param height the width of the origianl rgb_data image data * @param height the width of the origianl rgb_data image data
* @param num_channels the number of color channels within rgb_data * @param num_channels the number of color channels within rgb_data
*/ */
ImageFrameView(ARDOUR::stringcr_t item_id, ImageFrameView(const std::string & item_id,
ArdourCanvas::Group *parent, ArdourCanvas::Group *parent,
ImageFrameTimeAxis *tv, ImageFrameTimeAxis *tv,
ImageFrameTimeAxisGroup* group, ImageFrameTimeAxisGroup* group,
@ -150,7 +150,7 @@ class ImageFrameView : public TimeAxisViewItem
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
* @return the removed marker item * @return the removed marker item
*/ */
MarkerView* remove_named_marker_view_item(ARDOUR::stringcr_t markId, void* src) ; MarkerView* remove_named_marker_view_item(const std::string & markId, void* src) ;
/** /**
* Removes item from the list of marker views assocaited with this item * Removes item from the list of marker views assocaited with this item
@ -167,7 +167,7 @@ class ImageFrameView : public TimeAxisViewItem
* *
* @param markId the id/name of the item to search for * @param markId the id/name of the item to search for
*/ */
bool has_marker_view_item(ARDOUR::stringcr_t markId) ; bool has_marker_view_item(const std::string & markId) ;
//---------------------------------------------------------------------------------// //---------------------------------------------------------------------------------//

View file

@ -57,7 +57,7 @@ using namespace Gtk;
* @param name the name/id of this time axis * @param name the name/id of this time axis
* @param tav the associated track view that this MarkerTimeAxis is marking up * @param tav the associated track view that this MarkerTimeAxis is marking up
*/ */
MarkerTimeAxis::MarkerTimeAxis (PublicEditor& ed, ARDOUR::Session& sess, Canvas& canvas, stringcr_t name, TimeAxisView* tav) MarkerTimeAxis::MarkerTimeAxis (PublicEditor& ed, ARDOUR::Session& sess, Canvas& canvas, const string & name, TimeAxisView* tav)
: AxisView(sess), : AxisView(sess),
VisualTimeAxis(name, ed, sess, canvas) VisualTimeAxis(name, ed, sess, canvas)
{ {

View file

@ -66,7 +66,7 @@ class MarkerTimeAxis : public VisualTimeAxis
* @param name the name/id of this time axis * @param name the name/id of this time axis
* @param tav the associated track view that this MarkerTimeAxis is marking up * @param tav the associated track view that this MarkerTimeAxis is marking up
*/ */
MarkerTimeAxis(PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas, ARDOUR::stringcr_t name, TimeAxisView* tav) ; MarkerTimeAxis(PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas, const string & name, TimeAxisView* tav) ;
/** /**
* Destructor * Destructor

View file

@ -1295,7 +1295,7 @@ OptionEditor::click_browse_clicked ()
} }
void void
OptionEditor::click_chosen (stringcr_t path) OptionEditor::click_chosen (const string & path)
{ {
click_path_entry.set_text (path); click_path_entry.set_text (path);
click_sound_changed (); click_sound_changed ();
@ -1314,7 +1314,7 @@ OptionEditor::click_emphasis_browse_clicked ()
} }
void void
OptionEditor::click_emphasis_chosen (stringcr_t path) OptionEditor::click_emphasis_chosen (const string & path)
{ {
click_emphasis_path_entry.set_text (path); click_emphasis_path_entry.set_text (path);
click_emphasis_sound_changed (); click_emphasis_sound_changed ();

View file

@ -225,8 +225,8 @@ class OptionEditor : public Gtk::Dialog
void setup_click_editor (); void setup_click_editor ();
void clear_click_editor (); void clear_click_editor ();
void click_chosen (ARDOUR::stringcr_t paths); void click_chosen (const string & paths);
void click_emphasis_chosen (ARDOUR::stringcr_t paths); void click_emphasis_chosen (const string & paths);
void click_browse_clicked (); void click_browse_clicked ();
void click_emphasis_browse_clicked (); void click_emphasis_browse_clicked ();

View file

@ -68,11 +68,11 @@ class PublicEditor : public Gtk::Window, public Stateful {
virtual void set_mouse_mode (Editing::MouseMode, bool force = false) = 0; virtual void set_mouse_mode (Editing::MouseMode, bool force = false) = 0;
virtual void step_mouse_mode (bool next) = 0; virtual void step_mouse_mode (bool next) = 0;
virtual Editing::MouseMode current_mouse_mode () = 0; virtual Editing::MouseMode current_mouse_mode () = 0;
virtual void add_imageframe_time_axis(ARDOUR::stringcr_t track_name, void*) = 0; virtual void add_imageframe_time_axis(const string & track_name, void*) = 0;
virtual void add_imageframe_marker_time_axis(ARDOUR::stringcr_t track_name, TimeAxisView* marked_track, void*) = 0; virtual void add_imageframe_marker_time_axis(const string & track_name, TimeAxisView* marked_track, void*) = 0;
virtual void connect_to_image_compositor() = 0; virtual void connect_to_image_compositor() = 0;
virtual void scroll_timeaxis_to_imageframe_item(const TimeAxisViewItem* item) = 0; virtual void scroll_timeaxis_to_imageframe_item(const TimeAxisViewItem* item) = 0;
virtual TimeAxisView* get_named_time_axis(ARDOUR::stringcr_t name) = 0; virtual TimeAxisView* get_named_time_axis(const string & name) = 0;
virtual void consider_auditioning (ARDOUR::Region&) = 0; virtual void consider_auditioning (ARDOUR::Region&) = 0;
virtual void set_show_waveforms (bool yn) = 0; virtual void set_show_waveforms (bool yn) = 0;
virtual bool show_waveforms() const = 0; virtual bool show_waveforms() const = 0;

View file

@ -33,7 +33,7 @@
using namespace std; using namespace std;
using namespace ARDOUR; using namespace ARDOUR;
RedirectAutomationLine::RedirectAutomationLine (stringcr_t name, Redirect& rd, uint32_t port, Session& s, RedirectAutomationLine::RedirectAutomationLine (const string & name, Redirect& rd, uint32_t port, Session& s,
TimeAxisView& tv, ArdourCanvas::Group& parent, TimeAxisView& tv, ArdourCanvas::Group& parent,

View file

@ -35,7 +35,7 @@ class TimeAxisView;
class RedirectAutomationLine : public AutomationLine class RedirectAutomationLine : public AutomationLine
{ {
public: public:
RedirectAutomationLine (ARDOUR::stringcr_t name, ARDOUR::Redirect&, uint32_t port, ARDOUR::Session&, TimeAxisView&, RedirectAutomationLine (const string & name, ARDOUR::Redirect&, uint32_t port, ARDOUR::Session&, TimeAxisView&,
ArdourCanvas::Group& parent, ARDOUR::AutomationList&); ArdourCanvas::Group& parent, ARDOUR::AutomationList&);
uint32_t port() const { return _port; } uint32_t port() const { return _port; }

View file

@ -17,7 +17,7 @@
using namespace std; using namespace std;
using namespace ARDOUR; using namespace ARDOUR;
AudioRegionGainLine::AudioRegionGainLine (stringcr_t name, Session& s, AudioRegionView& r, ArdourCanvas::Group& parent, Curve& c) AudioRegionGainLine::AudioRegionGainLine (const string & name, Session& s, AudioRegionView& r, ArdourCanvas::Group& parent, Curve& c)
: AutomationLine (name, r.get_time_axis_view(), parent, c), : AutomationLine (name, r.get_time_axis_view(), parent, c),
session (s), session (s),
rv (r) rv (r)

View file

@ -16,7 +16,7 @@ class AudioRegionView;
class AudioRegionGainLine : public AutomationLine class AudioRegionGainLine : public AutomationLine
{ {
public: public:
AudioRegionGainLine (ARDOUR::stringcr_t name, ARDOUR::Session&, AudioRegionView&, ArdourCanvas::Group& parent, ARDOUR::Curve&); AudioRegionGainLine (const string & name, ARDOUR::Session&, AudioRegionView&, ArdourCanvas::Group& parent, ARDOUR::Curve&);
void view_to_model_y (double&); void view_to_model_y (double&);
void model_to_view_y (double&); void model_to_view_y (double&);

View file

@ -601,7 +601,7 @@ RouteUI::ensure_xml_node ()
} }
XMLNode* XMLNode*
RouteUI::get_child_xml_node (stringcr_t childname) RouteUI::get_child_xml_node (const string & childname)
{ {
XMLNode* child; XMLNode* child;

View file

@ -78,7 +78,7 @@ class RouteUI : public virtual AxisView
XMLNode *xml_node; XMLNode *xml_node;
void ensure_xml_node (); void ensure_xml_node ();
XMLNode* get_child_xml_node (ARDOUR::stringcr_t childname); XMLNode* get_child_xml_node (const string & childname);
gint mute_press(GdkEventButton*); gint mute_press(GdkEventButton*);
gint mute_release(GdkEventButton*); gint mute_release(GdkEventButton*);

View file

@ -12,7 +12,7 @@ using namespace Gtk;
using namespace Gtkmm2ext; using namespace Gtkmm2ext;
using namespace ARDOUR; using namespace ARDOUR;
TempoDialog::TempoDialog (TempoMap& map, jack_nframes_t frame, stringcr_t action) TempoDialog::TempoDialog (TempoMap& map, jack_nframes_t frame, const string & action)
: ArdourDialog ("tempo dialog"), : ArdourDialog ("tempo dialog"),
bpm_frame (_("Beats per minute")), bpm_frame (_("Beats per minute")),
ok_button (action), ok_button (action),
@ -29,7 +29,7 @@ TempoDialog::TempoDialog (TempoMap& map, jack_nframes_t frame, stringcr_t action
init (when, tempo.beats_per_minute(), true); init (when, tempo.beats_per_minute(), true);
} }
TempoDialog::TempoDialog (TempoSection& section, stringcr_t action) TempoDialog::TempoDialog (TempoSection& section, const string & action)
: ArdourDialog ("tempo dialog"), : ArdourDialog ("tempo dialog"),
bpm_frame (_("Beats per minute")), bpm_frame (_("Beats per minute")),
ok_button (action), ok_button (action),
@ -129,7 +129,7 @@ TempoDialog::get_bbt_time (BBT_Time& requested)
} }
MeterDialog::MeterDialog (TempoMap& map, jack_nframes_t frame, stringcr_t action) MeterDialog::MeterDialog (TempoMap& map, jack_nframes_t frame, const string & action)
: ArdourDialog ("meter dialog"), : ArdourDialog ("meter dialog"),
note_frame (_("Meter denominator")), note_frame (_("Meter denominator")),
bpb_frame (_("Beats per bar")), bpb_frame (_("Beats per bar")),
@ -147,7 +147,7 @@ MeterDialog::MeterDialog (TempoMap& map, jack_nframes_t frame, stringcr_t action
init (when, meter.beats_per_bar(), meter.note_divisor(), true); init (when, meter.beats_per_bar(), meter.note_divisor(), true);
} }
MeterDialog::MeterDialog (MeterSection& section, stringcr_t action) MeterDialog::MeterDialog (MeterSection& section, const string & action)
: ArdourDialog ("meter dialog"), : ArdourDialog ("meter dialog"),
note_frame (_("Meter denominator")), note_frame (_("Meter denominator")),
bpb_frame (_("Beats per bar")), bpb_frame (_("Beats per bar")),

View file

@ -33,8 +33,8 @@ struct TempoDialog : public ArdourDialog
Gtk::Frame when_frame; Gtk::Frame when_frame;
char buf[64]; char buf[64];
TempoDialog (ARDOUR::TempoMap&, jack_nframes_t, ARDOUR::stringcr_t action); TempoDialog (ARDOUR::TempoMap&, jack_nframes_t, const string & action);
TempoDialog (ARDOUR::TempoSection&, ARDOUR::stringcr_t action); TempoDialog (ARDOUR::TempoSection&, const string & action);
double get_bpm (); double get_bpm ();
bool get_bbt_time (ARDOUR::BBT_Time&); bool get_bbt_time (ARDOUR::BBT_Time&);
@ -64,8 +64,8 @@ struct MeterDialog : public ArdourDialog
Gtk::Frame when_frame; Gtk::Frame when_frame;
char buf[64]; char buf[64];
MeterDialog (ARDOUR::TempoMap&, jack_nframes_t, ARDOUR::stringcr_t action); MeterDialog (ARDOUR::TempoMap&, jack_nframes_t, const string & action);
MeterDialog (ARDOUR::MeterSection&, ARDOUR::stringcr_t action); MeterDialog (ARDOUR::MeterSection&, const string & action);
double get_bpb (); double get_bpb ();
double get_note_type (); double get_note_type ();

View file

@ -192,7 +192,7 @@ class TimeAxisView : public virtual AxisView
/* call this on the parent */ /* call this on the parent */
virtual XMLNode* get_child_xml_node (ARDOUR::stringcr_t childname) { return 0; } virtual XMLNode* get_child_xml_node (const string & childname) { return 0; }
protected: protected:

View file

@ -62,7 +62,7 @@ const double TimeAxisViewItem::GRAB_HANDLE_LENGTH = 6 ;
* @param start the start point of this item * @param start the start point of this item
* @param duration the duration of this item * @param duration the duration of this item
*/ */
TimeAxisViewItem::TimeAxisViewItem(ARDOUR::stringcr_t it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color, TimeAxisViewItem::TimeAxisViewItem(const string & it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
jack_nframes_t start, jack_nframes_t duration, jack_nframes_t start, jack_nframes_t duration,
Visibility visibility) Visibility visibility)
: trackview (tv) : trackview (tv)

View file

@ -340,7 +340,7 @@ class TimeAxisViewItem : public sigc::trackable, public Selectable
* @param start the start point of this item * @param start the start point of this item
* @param duration the duration of this item * @param duration the duration of this item
*/ */
TimeAxisViewItem(ARDOUR::stringcr_t it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color, TimeAxisViewItem(const std::string & it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
jack_nframes_t start, jack_nframes_t duration, Visibility v = Visibility (0)); jack_nframes_t start, jack_nframes_t duration, Visibility v = Visibility (0));
/** /**

View file

@ -105,7 +105,7 @@ short_version (string orig, string::size_type target_length)
} }
string string
fit_to_pixels (ARDOUR::stringcr_t str, int pixel_width, ARDOUR::stringcr_t font) fit_to_pixels (const string & str, int pixel_width, const string & font)
{ {
Label foo; Label foo;
int width; int width;

View file

@ -51,7 +51,7 @@ slider_position_to_gain (double pos)
} }
std::string short_version (std::string, std::string::size_type target_length); std::string short_version (std::string, std::string::size_type target_length);
std::string fit_to_pixels (ARDOUR::stringcr_t, int pixel_width, ARDOUR::stringcr_t font); std::string fit_to_pixels (const std::string &, int pixel_width, const std::string & font);
int atoi (const std::string&); int atoi (const std::string&);
double atof (const std::string&); double atof (const std::string&);

View file

@ -83,7 +83,7 @@ static const gchar* small_x_xpm[] = {
* @param sess the current session * @param sess the current session
* @param canvas the parent canvas object * @param canvas the parent canvas object
*/ */
VisualTimeAxis::VisualTimeAxis(stringcr_t name, PublicEditor& ed, ARDOUR::Session& sess, Canvas& canvas) VisualTimeAxis::VisualTimeAxis(const string & name, PublicEditor& ed, ARDOUR::Session& sess, Canvas& canvas)
: AxisView(sess), : AxisView(sess),
TimeAxisView(sess,ed,(TimeAxisView*) 0, canvas), TimeAxisView(sess,ed,(TimeAxisView*) 0, canvas),
visual_button (_("v")), visual_button (_("v")),
@ -141,7 +141,7 @@ VisualTimeAxis::~VisualTimeAxis()
// Name/Id Accessors/Mutators // Name/Id Accessors/Mutators
void void
VisualTimeAxis::set_time_axis_name(stringcr_t name, void* src) VisualTimeAxis::set_time_axis_name(const string & name, void* src)
{ {
std::string old_name = time_axis_name ; std::string old_name = time_axis_name ;

View file

@ -85,7 +85,7 @@ class VisualTimeAxis : public TimeAxisView
* @param name the new name of this TimeAxis * @param name the new name of this TimeAxis
* @param src the identity of the object that initiated the change * @param src the identity of the object that initiated the change
*/ */
virtual void set_time_axis_name(ARDOUR::stringcr_t name, void* src) ; virtual void set_time_axis_name(const string & name, void* src) ;
//---------------------------------------------------------------------------------------// //---------------------------------------------------------------------------------------//
@ -114,7 +114,7 @@ class VisualTimeAxis : public TimeAxisView
/** /**
* Emitted when we have changed the gui, and what we have shanged * Emitted when we have changed the gui, and what we have shanged
*/ */
sigc::signal<void,ARDOUR::stringcr_t,void*> gui_changed ; sigc::signal<void,const string &,void*> gui_changed ;
/** /**
* Emitted when this Visual Time Axis has been removed * Emitted when this Visual Time Axis has been removed
@ -123,12 +123,12 @@ class VisualTimeAxis : public TimeAxisView
* the destructor, this allows us to capture the source of the deletion * the destructor, this allows us to capture the source of the deletion
* event * event
*/ */
sigc::signal<void,ARDOUR::stringcr_t,void*> VisualTimeAxisRemoved ; sigc::signal<void,const string &,void*> VisualTimeAxisRemoved ;
/** /**
* Emitted when we have changed the name of this TimeAxis * Emitted when we have changed the name of this TimeAxis
*/ */
sigc::signal<void,ARDOUR::stringcr_t,ARDOUR::stringcr_t,void*> NameChanged ; sigc::signal<void,const string &,const string &,void*> NameChanged ;
/** /**
* Emitted when this time axis has been selected for removal * Emitted when this time axis has been selected for removal
@ -146,7 +146,7 @@ class VisualTimeAxis : public TimeAxisView
* @param sess the current session * @param sess the current session
* @param canvas the parent canvas object * @param canvas the parent canvas object
*/ */
VisualTimeAxis(ARDOUR::stringcr_t name, PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas) ; VisualTimeAxis(const string & name, PublicEditor& ed, ARDOUR::Session& sess, ArdourCanvas::Canvas& canvas) ;
//---------------------------------------------------------------------------------------// //---------------------------------------------------------------------------------------//

View file

@ -43,7 +43,6 @@ namespace ARDOUR {
typedef float gain_t; typedef float gain_t;
typedef uint32_t layer_t; typedef uint32_t layer_t;
typedef uint64_t id_t; typedef uint64_t id_t;
typedef const std::string & stringcr_t;
enum IOChange { enum IOChange {
NoChange = 0, NoChange = 0,