From 6e4eed51ca5c3bb44974dc74e9a8ddfa13f040ff Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 30 Mar 2017 11:02:06 -0500 Subject: Shortcut editor: include a raw list of the currently-available actions in the printout. --- libs/gtkmm2ext/bindings.cc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'libs/gtkmm2ext/bindings.cc') diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc index 16b0b004bd..b8da028a95 100644 --- a/libs/gtkmm2ext/bindings.cc +++ b/libs/gtkmm2ext/bindings.cc @@ -805,6 +805,37 @@ Bindings::save_all_bindings_as_html (ostream& ostr) ostr << "\n\n"; ostr << "\n\n"; + ostr << "

\n\n"; + ostr << "\n\n"; + ostr << "\n\n"; + ostr << "\n\n"; + ostr << "\n\n"; + ostr << "
\n\n"; + ostr << "

Partial List of Available Actions { => with current shortcut, where applicable }

\n\n"; + { + vector paths; + vector labels; + vector tooltips; + vector keys; + vector > actions; + + Gtkmm2ext::ActionMap::get_all_actions (paths, labels, tooltips, keys, actions); + + vector::iterator k; + vector::iterator p; + vector::iterator l; + + for (p = paths.begin(), k = keys.begin(), l = labels.begin(); p != paths.end(); ++k, ++p, ++l) { + + if ((*k).empty()) { + ostr << *p << " ( " << *l << " ) " << "
" << endl; + } else { + ostr << *p << " ( " << *l << " ) " << " => " << *k << "
" << endl; + } + } + } + ostr << "
\n\n"; + ostr << "\n"; ostr << "\n"; } -- cgit v1.2.3