| 22 | } |
| 23 | |
| 24 | bool mitk::InteractionEventHandler::SetEventConfig(const std::string &filename, const us::Module *module) |
| 25 | { |
| 26 | EventConfig newConfig(filename, module); |
| 27 | if (newConfig.IsValid()) |
| 28 | { |
| 29 | m_EventConfig = newConfig; |
| 30 | // notify sub-classes that new config is set |
| 31 | ConfigurationChanged(); |
| 32 | return true; |
| 33 | } |
| 34 | MITK_ERROR << "InteractionEventHandler: Failed to load EventConfiguration"; |
| 35 | return false; |
| 36 | } |
| 37 | |
| 38 | bool mitk::InteractionEventHandler::SetEventConfig(const EventConfig &config) |
| 39 | { |