39 MITK_ERROR <<
"Test needs configuration test file as parameter.";
62 std::string prop1, prop2;
64 properties->GetStringProperty(
"scrollModus", prop2) && prop2 ==
"leftright",
65 "02 Check Global Properties");
99 "03 Check Mouse- and Key-Events ");
102 std::ifstream configStream(argv[1]);
112 properties->GetStringProperty(
"scrollModus", prop2) && prop2 ==
"leftright",
113 "02 Check Global Properties");
119 newConfig2.
GetMappedEvent(standard1.GetPointer()) ==
"Standard1" &&
124 "03 Check Mouse- and Key-Events ");
129 std::vector<mitk::PropertyList::Pointer> configDescription;
134 "MousePressEventVariant");
135 propertyList1->SetStringProperty(
"Modifiers",
"CTRL,ALT");
136 configDescription.push_back(propertyList1);
141 "MouseReleaseEventVariant");
142 propertyList2->SetStringProperty(
"Modifiers",
"SHIFT");
143 configDescription.push_back(propertyList2);
148 "MouseReleaseEventVariant");
149 propertyList3->SetStringProperty(
"Modifiers",
"ALT");
150 configDescription.push_back(propertyList3);
168 newConfig3.
GetMappedEvent(mouseRelease1.GetPointer()) ==
"MouseReleaseEventVariant" &&
169 newConfig3.
GetMappedEvent(mouseRelease2.GetPointer()) ==
"MouseReleaseEventVariant",
170 "04 Check Mouseevents from PropertyLists");
static Pointer New(BaseRenderer *_arga, const Point2D &_argb, MouseButtons _argc, ModifierKeys _argd, MouseButtons _arge)
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
PropertyList::Pointer GetAttributes() const
static const std::string xmlParameterEventClass()
static const std::string xmlParameterEventVariant()
static Pointer New(BaseRenderer *_arga, const Point2D &_argb, MouseButtons _argc, ModifierKeys _argd, int _arge)
std::string GetMappedEvent(const EventType &interactionEvent) const
static Pointer New(BaseRenderer *_arga, const std::string &_argb, ModifierKeys _argc)
Module * GetModule() const
int mitkEventConfigTest(int argc, char *argv[])
bool IsValid() const
Checks wether this EventConfig object is valid.
static Pointer New(BaseRenderer *_arga, const Point2D &_argb, MouseButtons _argc, ModifierKeys _argd)
static Pointer New(BaseRenderer *_arga, const Point2D &_argb, MouseButtons _argc, ModifierKeys _argd, MouseButtons _arge)
Configuration Object for Statemachines.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.