#include <iostream>
-#include "pbd/filesystem.h"
#include "pbd/file_utils.h"
#include "gtkmm2ext/keyboard.h"
}
StepEntry::StepEntry (StepEditor& seditor)
- : ArdourDialog (string_compose (_("Step Entry: %1"), seditor.name()))
+ : ArdourWindow (string_compose (_("Step Entry: %1"), seditor.name()))
, _current_note_length (1.0)
, _current_note_velocity (64)
, triplet_button ("3")
packer.pack_start (*piano, false, false);
packer.show_all ();
- get_vbox()->add (packer);
+ add (packer);
/* initial settings: quarter note and mezzo forte */
void
StepEntry::on_show ()
{
- ArdourDialog::on_show ();
+ ArdourWindow::on_show ();
//piano->grab_focus ();
}
bindings.set_action_map (myactions);
- sys::path binding_file;
- SearchPath spath = ardour_search_path() + user_config_directory() + system_config_search_path();
+ std::string binding_file;
- if (find_file_in_search_path (spath, "step_editing.bindings", binding_file)) {
- bindings.load (binding_file.to_string());
+ if (find_file_in_search_path (ardour_config_search_path(), "step_editing.bindings", binding_file)) {
+ bindings.load (binding_file);
}
}