35 MITK_ERROR <<
"Test needs configuration test file as parameter.";
58 std::string prop1, prop2;
60 properties->GetStringProperty(
"scrollModus", prop2) && prop2 ==
"leftright",
61 "02 Check Global Properties");
95 "03 Check Mouse- and Key-Events ");
98 std::ifstream configStream(argv[1]);
108 properties->GetStringProperty(
"scrollModus", prop2) && prop2 ==
"leftright",
109 "02 Check Global Properties");
115 newConfig2.
GetMappedEvent(standard1.GetPointer()) ==
"Standard1" &&
120 "03 Check Mouse- and Key-Events ");
125 std::vector<mitk::PropertyList::Pointer> configDescription;
130 "MousePressEventVariant");
131 propertyList1->SetStringProperty(
"Modifiers",
"CTRL,ALT");
132 configDescription.push_back(propertyList1);
137 "MouseReleaseEventVariant");
138 propertyList2->SetStringProperty(
"Modifiers",
"SHIFT");
139 configDescription.push_back(propertyList2);
144 "MouseReleaseEventVariant");
145 propertyList3->SetStringProperty(
"Modifiers",
"ALT");
146 configDescription.push_back(propertyList3);
164 newConfig3.
GetMappedEvent(mouseRelease1.GetPointer()) ==
"MouseReleaseEventVariant" &&
165 newConfig3.
GetMappedEvent(mouseRelease2.GetPointer()) ==
"MouseReleaseEventVariant",
166 "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)
std::string GetMappedEvent(const EventType &interactionEvent) const
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
static const std::string xmlParameterEventClass()
static const std::string xmlParameterEventVariant()
static Pointer New(BaseRenderer *_arga, const Point2D &_argb, MouseButtons _argc, ModifierKeys _argd, int _arge)
static Pointer New(BaseRenderer *_arga, const std::string &_argb, ModifierKeys _argc)
bool IsValid() const
Checks wether this EventConfig object is valid.
Module * GetModule() const
int mitkEventConfigTest(int argc, char *argv[])
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.
PropertyList::Pointer GetAttributes() const