]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/about.m
Removes trailing spaces. Removes tabs.
[vlc] / modules / gui / macosx / about.m
index 49f48b6432fede5514a8e65dfe3acc666a8fb00b..95e2bdfbe015aa954e4658df60f5a2259a174885 100644 (file)
@@ -10,7 +10,7 @@
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -28,7 +28,7 @@
 #include "about.h"
 
 /*****************************************************************************
- * VLAboutBox implementation 
+ * VLAboutBox implementation
  *****************************************************************************/
 @implementation VLAboutBox
 
@@ -39,42 +39,42 @@ static VLAboutBox *_o_sharedInstance = nil;
     return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init];
 }
 
-- (id)init 
+- (id)init
 {
     if (_o_sharedInstance) {
         [self dealloc];
     } else {
         _o_sharedInstance = [super init];
     }
-    
     return _o_sharedInstance;
 }
 
 - (void)showPanel
-{    
+{
     if (!o_credits_path)
     {
         NSString *o_name;
         NSString *o_version;
         NSString *o_thanks_path;
-               
+        
         /* Get the info dictionary (Info.plist) */
         o_info_dict = [[NSBundle mainBundle] infoDictionary];
-        
         /* Get the localized info dictionary (InfoPlist.strings) */
         localInfoBundle = CFBundleGetMainBundle();
         o_local_dict = (NSDictionary *)
                         CFBundleGetLocalInfoDictionary( localInfoBundle );
-        
         /* Setup the name field */
         o_name = [o_local_dict objectForKey:@"CFBundleName"];
-        
         /* Set the about box title */
         [o_about_window setTitle:_NS("About VLC media player")];
-        
         /* Setup the version field */
         o_version = [o_info_dict objectForKey:@"CFBundleVersion"];
-        
         /* setup the creator / revision field */
         if( VLC_Changeset() != "exported" )
         [o_revision_field setStringValue: [NSString stringWithFormat: \
@@ -83,30 +83,30 @@ static VLAboutBox *_o_sharedInstance = nil;
         else
         [o_revision_field setStringValue: [NSString stringWithFormat: \
             _NS("Compiled by %s"), VLC_CompileBy()]];
-    
         /* Setup the nameversion field */
         o_name_version = [NSString stringWithFormat:@"Version %@", o_version];
         [o_name_version_field setStringValue: o_name_version];
-        
         /* Setup our credits */
         o_credits_path = [[NSBundle mainBundle] pathForResource:@"AUTHORS" ofType:nil];
         o_credits = [[NSString alloc] initWithData: [NSData dataWithContentsOfFile: o_credits_path ] encoding:NSUTF8StringEncoding];
-        
         /* Parse the authors string */
         NSMutableString *o_outString = [NSMutableString stringWithFormat: @"%@\n\n", _NS(INTF_ABOUT_MSG)];
         NSScanner *o_scan_credits = [NSScanner scannerWithString: o_credits];
         NSCharacterSet *o_stopSet = [NSCharacterSet characterSetWithCharactersInString:@"\n\r"];
-        
         while( ![o_scan_credits isAtEnd] )
         {
             NSString *o_person;
             NSScanner *o_scan_person;
-            
             [o_scan_credits scanUpToString:@"N:" intoString: nil];
             [o_scan_credits scanString:@"N:" intoString: nil];
             [o_scan_credits scanUpToString:@"N:" intoString: &o_person];
             o_scan_person = [NSScanner scannerWithString: o_person];
-            
             NSString *o_name;
             NSString *o_email;
             NSMutableString *o_jobs = [NSMutableString string];
@@ -118,7 +118,7 @@ static VLAboutBox *_o_sharedInstance = nil;
             [o_scan_person scanUpToString:@"D:" intoString: &o_next];
             [o_scan_person scanUpToString:@":" intoString: &o_next];
             [o_scan_person scanString:@":" intoString: nil];
-    
             while ( [o_next characterAtIndex:[o_next length] - 1] == 'D' )
             {
                 NSString *o_job;
@@ -127,30 +127,30 @@ static VLAboutBox *_o_sharedInstance = nil;
                 [o_scan_person scanUpToString:@":" intoString: &o_next];
                 [o_scan_person scanString:@":" intoString: nil];
             }
-            
             [o_outString appendFormat: @"%@ <%@>\n%@\n\n", o_name, o_email, o_jobs];
         }
-        
         /* Parse the thanks string */
         o_thanks_path = [[NSBundle mainBundle] pathForResource:@"THANKS" ofType:nil];
-        o_thanks = [[NSString alloc] initWithData: [NSData dataWithContentsOfFile: 
+        o_thanks = [[NSString alloc] initWithData: [NSData dataWithContentsOfFile:
                         o_thanks_path ] encoding:NSUTF8StringEncoding];
-        
         NSScanner *o_scan_thanks = [NSScanner scannerWithString: o_thanks];
         [o_scan_thanks scanUpToCharactersFromSet: o_stopSet intoString: nil];
-        
         while( ![o_scan_thanks isAtEnd] )
         {
             NSString *o_person;
             NSString *o_job;
-            
             [o_scan_thanks scanUpToString:@" - " intoString: &o_person];
             [o_scan_thanks scanString:@" - " intoString: nil];
             [o_scan_thanks scanUpToCharactersFromSet: o_stopSet intoString: &o_job];
             [o_outString appendFormat: @"%@\n%@\n\n", o_person, o_job];
         }
         [o_credits_textview setString:o_outString];
-        
         /* Setup the copyright field */
         o_copyright = [o_local_dict objectForKey:@"NSHumanReadableCopyright"];
         [o_copyright_field setStringValue:o_copyright];
@@ -162,7 +162,7 @@ static VLAboutBox *_o_sharedInstance = nil;
         [o_about_window setMenu:nil];
         [o_about_window center];
     }
-    
     /* Show the window */
     b_restart = YES;
     [o_about_window makeKeyAndOrderFront:nil];
@@ -171,9 +171,9 @@ static VLAboutBox *_o_sharedInstance = nil;
 - (void)windowDidBecomeKey:(NSNotification *)notification
 {
     o_scroll_timer = [NSTimer scheduledTimerWithTimeInterval:1/6
-                           target:self 
-                           selector:@selector(scrollCredits:) 
-                           userInfo:nil 
+                           target:self
+                           selector:@selector(scrollCredits:)
+                           userInfo:nil
                            repeats:YES];
 }
 
@@ -197,10 +197,10 @@ static VLAboutBox *_o_sharedInstance = nil;
     {
         /* Scroll to the position */
         [o_credits_textview scrollPoint:NSMakePoint( 0, f_current )];
-        
         /* Increment the scroll position */
         f_current += 0.005;
-        
         /* If at end, restart at the top */
         if ( f_current >= f_end )
         {