#include <gtkmm2ext/utils.h>
#include <gtkmm2ext/selector.h>
#include <gtkmm2ext/gtk_ui.h>
-#include <gtkmm2ext/stop_signal.h>
#include <gtkmm2ext/choice.h>
#include "ardour/session.h"
size_button.signal_button_release_event().connect (sigc::mem_fun (*this, &VisualTimeAxis::size_click)) ;
visual_button.signal_clicked().connect (sigc::mem_fun (*this, &VisualTimeAxis::visual_click)) ;
hide_button.signal_clicked().connect (sigc::mem_fun (*this, &VisualTimeAxis::hide_click)) ;
- ARDOUR_UI::instance()->tooltips().set_tip(size_button,_("Display Height")) ;
- ARDOUR_UI::instance()->tooltips().set_tip(visual_button, _("Visual options")) ;
- ARDOUR_UI::instance()->tooltips().set_tip(hide_button, _("Hide this track")) ;
+ ARDOUR_UI::instance()->set_tip(size_button,_("Display Height")) ;
+ ARDOUR_UI::instance()->set_tip(visual_button, _("Visual options")) ;
+ ARDOUR_UI::instance()->set_tip(hide_button, _("Hide this track")) ;
controls_table.attach (hide_button, 0, 1, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
controls_table.attach (visual_button, 1, 2, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
current[3] = 1.0 ;
current_color.set_rgb_p (current[0],current[1],current[2]);
- color = Gtkmm2ext::UI::instance()->get_color(_("ardour: color selection"),picked, ¤t_color) ;
+ color = Gtkmm2ext::UI::instance()->get_color(_("Color Selection"),picked, ¤t_color) ;
if (picked)
{
{
vector<string> choices;
- std::string prompt = string_compose (_("Do you really want to remove track \"%1\" ?\n(cannot be undone)"), time_axis_name);
+ std::string prompt = string_compose (_("Do you really want to remove track \"%1\" ?\n\nYou may also lose the playlist used by this track.\n\n(This action cannot be undone, and the session file will be overwritten)"), time_axis_name);
choices.push_back (_("No, do nothing."));
choices.push_back (_("Yes, remove it."));
{
name_label.set_text(time_axis_name) ;
name_entry.set_text(time_axis_name) ;
- ARDOUR_UI::instance()->tooltips().set_tip(name_entry, time_axis_name) ;
+ ARDOUR_UI::instance()->set_tip(name_entry, time_axis_name) ;
}
}
}
-gint
+bool
VisualTimeAxis::name_entry_button_press_handler(GdkEventButton *ev)
{
if (ev->button == 3) {
- return stop_signal (name_entry, "button_press_event");
+ return true;
}
- return FALSE;
+ return false
}
-gint
+bool
VisualTimeAxis::name_entry_button_release_handler(GdkEventButton *ev)
{
- return FALSE;
+ return false;
}
-gint
+bool
VisualTimeAxis::name_entry_key_release_handler(GdkEventKey* ev)
{
switch (ev->keyval) {
case GDK_Up:
case GDK_Down:
name_entry_changed ();
- return TRUE;
+ return true;
default:
- return FALSE;
+ break;
}
+
+ return false;
}
// Super class methods not handled by VisualTimeAxis
void
-VisualTimeAxis::show_timestretch (nframes_t start, nframes_t end)
+VisualTimeAxis::show_timestretch (framepos_t start, framepos_t end, int layers, int layer)
{
- // Not handled by purely visual TimeAxis
+ // Not handled by purely visual TimeAxis
}
void
VisualTimeAxis::hide_timestretch()
{
- // Not handled by purely visual TimeAxis
+ // Not handled by purely visual TimeAxis
}