| 2061 | } |
| 2062 | |
| 2063 | void |
| 2064 | AbstractMenu::collect_configure_actions (std::vector<lay::ConfigureAction *> &ca, AbstractMenuItem &item) |
| 2065 | { |
| 2066 | for (std::list<AbstractMenuItem>::iterator c = item.children.begin (); c != item.children.end (); ++c) { |
| 2067 | ConfigureAction *cca = dynamic_cast<ConfigureAction *> (c->action ()); |
| 2068 | if (cca) { |
| 2069 | ca.push_back (cca); |
| 2070 | } |
| 2071 | collect_configure_actions (ca, *c); |
| 2072 | } |
| 2073 | } |
| 2074 | |
| 2075 | void |
| 2076 | AbstractMenu::get_shortcuts (const std::string &root, std::map<std::string, std::string> &bindings, bool with_defaults) |