diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-03-30 11:02:06 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-03-30 11:02:06 -0500 |
commit | 6e4eed51ca5c3bb44974dc74e9a8ddfa13f040ff (patch) | |
tree | 3f316f50c1285bbac0f22a66e738b4efc009c16b /libs/gtkmm2ext/bindings.cc | |
parent | 02080a434f9b60c40c7d49700e196c45eddc4437 (diff) |
Shortcut editor: include a raw list of the currently-available actions in the printout.
Diffstat (limited to 'libs/gtkmm2ext/bindings.cc')
-rw-r--r-- | libs/gtkmm2ext/bindings.cc | 31 |
1 files changed, 31 insertions, 0 deletions
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 << "</tr>\n\n"; ostr << "</tbody></table>\n\n"; + ostr << "</br></br>\n\n"; + ostr << "<table border=\"2\" cellpadding=\"6\"><tbody>\n\n"; + ostr << "<tr>\n\n"; + ostr << "<td>\n\n"; + ostr << "<h2><u> Partial List of Available Actions { => with current shortcut, where applicable } </u></h2>\n\n"; + { + vector<string> paths; + vector<string> labels; + vector<string> tooltips; + vector<string> keys; + vector<Glib::RefPtr<Gtk::Action> > actions; + + Gtkmm2ext::ActionMap::get_all_actions (paths, labels, tooltips, keys, actions); + + vector<string>::iterator k; + vector<string>::iterator p; + vector<string>::iterator l; + + for (p = paths.begin(), k = keys.begin(), l = labels.begin(); p != paths.end(); ++k, ++p, ++l) { + + if ((*k).empty()) { + ostr << *p << " ( " << *l << " ) " << "</br>" << endl; + } else { + ostr << *p << " ( " << *l << " ) " << " => " << *k << "</br>" << endl; + } + } + } + ostr << "</td>\n\n"; + ostr << "</tr>\n\n"; + ostr << "</tbody></table>\n\n"; + ostr << "</body>\n"; ostr << "</html>\n"; } |