#endif
#include <map>
+#include <fstream>
#include <boost/algorithm/string.hpp>
, unbind_box (BUTTONBOX_END)
, filter_entry (_("Search..."), true)
, filter_string("")
+ , print_button (_("Print"))
, sort_column(0)
, sort_type(Gtk::SORT_ASCENDING)
{
reset_button.add (reset_label);
reset_label.set_markup (string_compose ("<span size=\"large\" weight=\"bold\">%1</span>", _("Reset Bindings to Defaults")));
+ print_button.signal_clicked().connect (sigc::mem_fun (*this, &KeyEditor::print));
+
reset_box.pack_start (reset_button, true, false);
+ reset_box.pack_start (print_button, true, false);
reset_box.show ();
reset_button.show ();
reset_label.show ();
+ print_button.show ();
reset_button.signal_clicked().connect (sigc::mem_fun (*this, &KeyEditor::reset));
vpacker.pack_start (reset_box, false, false);
tab->filter->refilter ();
}
}
+
+void
+KeyEditor::print () const
+{
+ char templ[14];
+
+ snprintf (templ, sizeof (templ), "akprintXXXXXX");
+
+ int fd = mkstemp (templ);
+ ofstream f;
+ //f.open (fd);
+
+ Bindings::save_all_bindings_as_html (cerr);
+
+ f.close ();
+ close (fd);
+}
Gtk::Label reset_label;
Gtkmm2ext::SearchBar filter_entry;
std::string filter_string;
+ Gtk::Button print_button;
typedef std::vector<Tab*> Tabs;
Gtk::SortType sort_type;
void toggle_sort_type ();
void search_string_updated (const std::string&);
+ void print () const;
};
#endif /* __ardour_gtk_key_editor_h__ */