| 53 | } |
| 54 | |
| 55 | bool mitk::InteractionEventHandler::AddEventConfig(const std::string &filename, const us::Module *module) |
| 56 | { |
| 57 | if (filename.empty()) |
| 58 | { |
| 59 | return false; |
| 60 | } |
| 61 | |
| 62 | if (!m_EventConfig.IsValid()) |
| 63 | { |
| 64 | MITK_ERROR << "SetEventConfig has to be called before AddEventConfig can be used."; |
| 65 | return false; |
| 66 | } |
| 67 | // notify sub-classes that new config is set |
| 68 | bool success = m_EventConfig.AddConfig(filename, module); |
| 69 | if (success) |
| 70 | { |
| 71 | ConfigurationChanged(); |
| 72 | } |
| 73 | return success; |
| 74 | } |
| 75 | |
| 76 | bool mitk::InteractionEventHandler::AddEventConfig(const EventConfig &config) |
| 77 | { |