Ignore:
Timestamp:
10/26/12 10:15:00 (12 years ago)
Author:
pharms
Message:
  • added support for mouse click coordinates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/eventcore/MFCEventTypeFactory.java

    r927 r946  
    7575     */ 
    7676    public IEventType getEventType(String eventName, Map<String, String> messageParameters) { 
     77        // TODO create scrolls were necessary and correct the coordinates of scrolls and mouse 
     78        // clicks 
    7779        if ("LeftClickButton".equals(eventName)) { 
    78             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     80            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    7981        } 
    8082        else if ("LeftClickListBox".equals(eventName)) { 
     
    8284        } 
    8385        else if ("TabChange".equals(eventName)) { 
    84             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     86            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    8587        } 
    8688        else if ("LeftClickCommand".equals(eventName)) { 
    87             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     89            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    8890        } 
    8991        else if ("LeftClickSysCommand".equals(eventName)) { 
    90             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     92            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    9193        } 
    9294        else if ("NCLeftClickSysCommand".equals(eventName)) { 
    93             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     95            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    9496        } 
    9597        else if ("LeftClickMenuItemCmd".equals(eventName)) { 
    96             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     98            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    9799        } 
    98100        else if ("HScroll_TrackBar".equals(eventName)) { 
     
    103105        } 
    104106        else if ("HScroll_ScrollBar".equals(eventName)) { 
    105             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     107            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    106108        } 
    107109        else if ("VScroll_ScrollBar".equals(eventName)) { 
    108             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     110            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    109111        } 
    110112        else if ("VScrollNC".equals(eventName)) { 
    111             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     113            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    112114        } 
    113115        else if ("LeftClickSetFocus".equals(eventName)) { 
     
    130132        } 
    131133        else if ("LeftClickCoordinates".equals(eventName)) { 
    132             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     134            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    133135        } 
    134136        else if ("NCLeftClickCoordinates".equals(eventName)) { 
    135             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     137            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    136138        } 
    137139        else if ("NCLeftClickCoordinates2".equals(eventName)) { 
    138             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     140            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    139141        } 
    140142        else if ("LeftClickCoordinatesTargetChanged".equals(eventName)) { 
    141             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     143            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    142144        } 
    143145        else if ("LeftClickCoordinatesTargetChanged2".equals(eventName)) { 
    144             return new MouseClick(MouseButtonInteraction.Button.LEFT); 
     146            return new MouseClick(MouseButtonInteraction.Button.LEFT, -1, -1); 
    145147        } 
    146148        else { 
Note: See TracChangeset for help on using the changeset viewer.