MCPcopy Create free account
hub / github.com/MITK/MITK / AddEventConfig

Method AddEventConfig

Modules/Core/src/Interactions/mitkInteractionEventHandler.cpp:55–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool 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
76bool mitk::InteractionEventHandler::AddEventConfig(const EventConfig &config)
77{

Calls 3

emptyMethod · 0.45
IsValidMethod · 0.45
AddConfigMethod · 0.45

Tested by 1