* added 2 boxes to the wizard to allow access to sout-transcode-soverlay with the...
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 23 Feb 2007 20:09:13 +0000 (20:09 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 23 Feb 2007 20:09:13 +0000 (20:09 +0000)
extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib
extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib
extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib
modules/gui/macosx/wizard.h
modules/gui/macosx/wizard.m

index 684eb98..f2be8e7 100644 (file)
@@ -91,6 +91,7 @@
                 "o_t6_btn_mrInfo_ttl" = id; 
                 "o_t6_ckb_local" = id; 
                 "o_t6_ckb_sap" = id; 
+                "o_t6_ckb_soverlay" = id; 
                 "o_t6_fld_sap" = id; 
                 "o_t6_fld_ttl" = id; 
                 "o_t6_text" = id; 
                 "o_t7_btn_chooseFile" = id; 
                 "o_t7_btn_mrInfo_local" = id; 
                 "o_t7_ckb_local" = id; 
+                "o_t7_ckb_soverlay" = id; 
                 "o_t7_fld_filePath" = id; 
                 "o_t7_text" = id; 
                 "o_t7_title" = id; 
                 "o_t8_fld_partExtract" = id; 
                 "o_t8_fld_sap" = id; 
                 "o_t8_fld_saveFileTo" = id; 
+                "o_t8_fld_soverlay" = id; 
                 "o_t8_fld_strmgMthd" = id; 
                 "o_t8_fld_trnscdAudio" = id; 
                 "o_t8_fld_trnscdVideo" = id; 
                 "o_t8_txt_partExtract" = id; 
                 "o_t8_txt_sap" = id; 
                 "o_t8_txt_saveFileTo" = id; 
+                "o_t8_txt_soverlay" = id; 
                 "o_t8_txt_strmgMthd" = id; 
                 "o_t8_txt_text" = id; 
                 "o_t8_txt_title" = id; 
index e6df3fa..93444bb 100644 (file)
@@ -5,7 +5,7 @@
        <key>IBDocumentLocation</key>
        <string>255 498 356 241 0 0 1024 746 </string>
        <key>IBFramework Version</key>
-       <string>443.0</string>
+       <string>446.1</string>
        <key>IBLockedObjects</key>
        <array>
                <integer>6</integer>
@@ -17,6 +17,8 @@
                <integer>6</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>8H14</string>
+       <string>8L127</string>
+       <key>IBUsesTextArchiving</key>
+       <true/>
 </dict>
 </plist>
index ebf697c..752d8b4 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib and b/extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib differ
index 99359ea..9e12232 100644 (file)
     IBOutlet id o_t6_btn_mrInfo_ttl;
     IBOutlet id o_t6_btn_mrInfo_sap;
     IBOutlet id o_t6_btn_mrInfo_local;
+    IBOutlet id o_t6_ckb_soverlay;
     IBOutlet id o_t6_ckb_local;
     
     /* page seven ("Transcode 2") */
     IBOutlet id o_t7_title;
     IBOutlet id o_t7_txt_saveFileTo;
     IBOutlet id o_t7_btn_mrInfo_local;
+    IBOutlet id o_t7_ckb_soverlay;
     IBOutlet id o_t7_ckb_local;
     
     /* page eight ("Summary") */
     IBOutlet id o_t8_fld_strmgMthd;
     IBOutlet id o_t8_fld_trnscdAudio;
     IBOutlet id o_t8_fld_trnscdVideo;
+    IBOutlet id o_t8_fld_soverlay;
     IBOutlet id o_t8_fld_ttl;
     IBOutlet id o_t8_fld_mrl;
     IBOutlet id o_t8_fld_local;
     IBOutlet id o_t8_txt_title;
     IBOutlet id o_t8_txt_trnscdAudio;
     IBOutlet id o_t8_txt_trnscdVideo;
+    IBOutlet id o_t8_txt_soverlay;
     IBOutlet id o_t8_txt_ttl;
     IBOutlet id o_t8_txt_mrl;
     IBOutlet id o_t8_txt_local;
index 90e668f..710b064 100644 (file)
@@ -444,6 +444,7 @@ static VLCWizard *_o_sharedInstance = nil;
     [o_t6_btn_mrInfo_sap setTitle: _NS("More Info")];
     [o_t6_ckb_local setTitle: _NS("Local playback")];
     [o_t6_btn_mrInfo_local setTitle: _NS("More Info")];
+    [o_t6_ckb_soverlay setTitle: _NS("Add Subtitles to transcoded video")];
 
     /* page seven ("Transcode 2") */
     [o_t7_title setStringValue: _NS("Additional transcode options")];
@@ -452,6 +453,11 @@ static VLCWizard *_o_sharedInstance = nil;
     [o_t7_txt_saveFileTo setStringValue: _NS("Select the file to save to")];
     [o_t7_btn_chooseFile setTitle: _NS("Choose...")];
     [o_t7_ckb_local setTitle: _NS("Local playback")];
+    [o_t7_ckb_soverlay setTitle: _NS("Add Subtitles to transcoded video")];
+    [o_t7_ckb_soverlay setToolTip: _NS("Adds available subtitles directly to " \
+                                       "the video. These cannot be disabled " \
+                                       "by the receiving user as they become " \
+                                       "part of the image.")];
     [o_t7_btn_mrInfo_local setTitle: _NS("More Info")];
 
     /* page eight ("Summary") */
@@ -476,6 +482,8 @@ static VLCWizard *_o_sharedInstance = nil;
         stringByAppendingString: @":"]];
     [o_t8_txt_trnscdVideo setStringValue: [_NS("Transcode video") \
         stringByAppendingString: @":"]];
+    [o_t8_txt_soverlay setStringValue: [_NS("Include subtitles") \
+        stringByAppendingString: @":"]];
     [o_t8_txt_local setStringValue: [_NS("Local playback") \
         stringByAppendingString: @":"]];
 }
@@ -1143,6 +1151,11 @@ static VLCWizard *_o_sharedInstance = nil;
             [o_userSelections setObject:@"NO" forKey:@"localPb"];
         }
         
+        /* include subtitles? */
+        [o_userSelections setObject: 
+            [[NSNumber numberWithInt:[o_t6_ckb_soverlay state]] stringValue]
+                             forKey: @"soverlay"];
+        
         /* go to "Summary" */
         [self showSummary];
     }
@@ -1267,6 +1280,11 @@ static VLCWizard *_o_sharedInstance = nil;
                     [o_t7_fld_filePath stringValue]] forKey: @"trnscdFilePath"];
             }
 
+            /* include subtitles ? */
+            [o_userSelections setObject: 
+                [[NSNumber numberWithInt:[o_t7_ckb_soverlay state]] stringValue]
+                                 forKey: @"soverlay"];
+            
             /* go to "Summary" */
             [self showSummary];
         }
@@ -1405,6 +1423,12 @@ static VLCWizard *_o_sharedInstance = nil;
     {
         [o_t8_fld_trnscdVideo setStringValue: _NS("no")];
     }
+    
+    if ([[o_userSelections objectForKey:@"soverlay"] isEqualToString:@"1"])
+        [o_t8_fld_soverlay setStringValue: _NS("yes")];
+    else
+        [o_t8_fld_soverlay setStringValue: _NS("no")];
+    
     if ([[o_userSelections objectForKey:@"trnscdAudio"] isEqualToString:@"YES"])
     {
         [o_t8_fld_trnscdAudio setStringValue: [NSString stringWithFormat:
@@ -1418,7 +1442,6 @@ static VLCWizard *_o_sharedInstance = nil;
         [o_t8_fld_trnscdAudio setStringValue: _NS("no")];
     }
 
-
     if ([[o_userSelections objectForKey:@"trnscdOrStrmg"] isEqualToString:@"strmg"])
     {
         /* we are streaming and perhaps also transcoding */
@@ -1493,7 +1516,7 @@ static VLCWizard *_o_sharedInstance = nil;
                 [o_trnscdCmd appendString: @"}:"];
             }
         }
-    
+            
         /* check whether the user requested local playback. if yes, prepare the
          * string, if not, let it empty */
         if ([[o_userSelections objectForKey:@"localPb"] isEqualToString:@"YES"])
@@ -1572,6 +1595,10 @@ static VLCWizard *_o_sharedInstance = nil;
         {
             [o_opts_string appendString: @"\"}"];
         }
+        
+        /* add subtitles to the video if desired */
+        [o_opts_string appendFormat: @":sout-transcode-soverlay=%@", 
+                [o_userSelections objectForKey:@"soverlay"]];
 
         [tempArray addObject: o_opts_string];