Fix some stray tabs and style violations.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 7 Mar 2013 10:07:07 +0000 (11:07 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 7 Mar 2013 10:07:07 +0000 (11:07 +0100)
EnjoyableApplicationDelegate.m
NJDeviceController.h
NJMappingsController.m
NJOutputMouseButton.m
NJOutputMouseMove.m
NJOutputMouseScroll.m

index 59c3025e5d137cf6bc5353eb4df501d868f3a6cc..c477511686b30a9db005603dd3fc0bdac24c6300 100644 (file)
     return proposedMax - OUTPUT_PANE_MIN_WIDTH;
 }
 
--(void)splitView:(NSSplitView *)splitView resizeSubviewsWithOldSize:(NSSize)oldSize {
+- (void)splitView:(NSSplitView *)splitView resizeSubviewsWithOldSize:(NSSize)oldSize {
     NSView *inputView = splitView.subviews[0];
     NSView *outputView = splitView.subviews[1];
     if (outputView.frame.size.width < OUTPUT_PANE_MIN_WIDTH) {
index f9221c0883433e611769b49051710f6525caca5b..7658c64afc615bc3c78aca4daf649aa40d4c97f1 100644 (file)
@@ -12,9 +12,9 @@
 @class NJOutputController;
 
 @interface NJDeviceController : NSObject <NSOutlineViewDataSource, NSOutlineViewDelegate> {
-       IBOutlet NSOutlineView *outlineView;
-       IBOutlet NJOutputController *outputController;
-       IBOutlet NJMappingsController *mappingsController;
+    IBOutlet NSOutlineView *outlineView;
+    IBOutlet NJOutputController *outputController;
+    IBOutlet NJMappingsController *mappingsController;
     IBOutlet NSButton *translatingEventsButton;
     IBOutlet NSMenuItem *translatingEventsMenu;
 }
index 2063d24d8272e100ad4246b0b9400796ec1652d3..45085b5c79dc56abb97c1c7f2e494c753e9a276c 100644 (file)
     [self mappingsChanged];
 }
 
--(void)tableViewSelectionDidChange:(NSNotification *)notify {
+- (void)tableViewSelectionDidChange:(NSNotification *)notify {
     [self activateMapping:self[tableView.selectedRow]];
 }
 
index ad44b39db2b820dacdff0726b962d960d2930031..d5b1f16e940baade744c9dddcaed2699decf49a3 100644 (file)
 
 + (NJOutput *)outputDeserialize:(NSDictionary *)serialization
                   withMappings:(NSArray *)mappings {
-       NJOutputMouseButton *output = [[NJOutputMouseButton alloc] init];
+    NJOutputMouseButton *output = [[NJOutputMouseButton alloc] init];
     output.button = [serialization[@"button"] intValue];
-       return output;
+    return output;
 }
 
--(void) trigger {
+- (void)trigger {
     CGFloat height = NSScreen.mainScreen.frame.size.height;
     NSPoint mouseLoc = NSEvent.mouseLocation;
     CGEventType eventType = (_button == kCGMouseButtonLeft) ? kCGEventLeftMouseDown : kCGEventRightMouseDown;
@@ -36,7 +36,7 @@
     CFRelease(click);
 }
 
--(void) untrigger {
+- (void)untrigger {
     CGFloat height = NSScreen.mainScreen.frame.size.height;
     NSPoint mouseLoc = NSEvent.mouseLocation;
     CGEventType eventType = (_button == kCGMouseButtonLeft) ? kCGEventLeftMouseUp : kCGEventRightMouseUp;
index 4cafb1c58be70e2ad99c0a8792c751588d903149..884a3d3cf8d358c53f9ead6a17d6b10870b03e50 100644 (file)
 
 @implementation NJOutputMouseMove
 
--(BOOL) isContinuous {
-    return YES;
-}
-
 + (NSString *)serializationCode {
     return @"mouse move";
 }
 
 + (NJOutput *)outputDeserialize:(NSDictionary *)serialization
                   withMappings:(NSArray *)mappings {
-       NJOutputMouseMove *output = [[NJOutputMouseMove alloc] init];
+    NJOutputMouseMove *output = [[NJOutputMouseMove alloc] init];
     output.axis = [serialization[@"axis"] intValue];
     output.speed = [serialization[@"speed"] floatValue];
     if (!output.speed)
         output.speed = 4;
-       return output;
+    return output;
+}
+
+- (BOOL)isContinuous {
+    return YES;
 }
 
 - (BOOL)update:(NJDeviceController *)jc {
index 7bbf4f80c37973f2add69a609932fc2b8f1ebeea..812685f527de245846749a33bd9b42d5a37fb4b0 100644 (file)
 
 + (NJOutput *)outputDeserialize:(NSDictionary *)serialization
                   withMappings:(NSArray *)mappings {
-       NJOutputMouseScroll *output = [[NJOutputMouseScroll alloc] init];
+    NJOutputMouseScroll *output = [[NJOutputMouseScroll alloc] init];
     output.direction = [serialization[@"direction"] intValue];
     output.speed = [serialization[@"direction"] floatValue];
-       return output;
+    return output;
 }
 
 - (BOOL)isContinuous {