OSDN Git Service

merge 0.9.4 to jp
authorhylom <hylom@mbwhite.local>
Mon, 7 Dec 2009 10:38:54 +0000 (19:38 +0900)
committerhylom <hylom@mbwhite.local>
Mon, 7 Dec 2009 10:38:54 +0000 (19:38 +0900)
28 files changed:
1  2 
configure
macosx/HBAdvancedController.m
macosx/HBOutputPanelController.m
macosx/HBPreferencesController.m
macosx/HBQueueController.mm
macosx/HandBrake.xcodeproj/project.pbxproj
scripts/manicure.rb
win/C#/Functions/Main.cs
win/C#/HandBrakeCS.csproj
win/C#/Presets/PresetsHandler.cs
win/C#/Properties/Settings.Designer.cs
win/C#/Properties/Settings.settings
win/C#/app.config
win/C#/frmAbout.Designer.cs
win/C#/frmActivityWindow.Designer.cs
win/C#/frmActivityWindow.cs
win/C#/frmAddPreset.Designer.cs
win/C#/frmDownload.Designer.cs
win/C#/frmDownload.cs
win/C#/frmMain.Designer.cs
win/C#/frmMain.cs
win/C#/frmMain.resx
win/C#/frmOptions.Designer.cs
win/C#/frmOptions.cs
win/C#/frmQueue.Designer.cs
win/C#/frmQueue.cs
win/C#/frmUpdater.Designer.cs
win/C#/frmUpdater.cs

diff --cc configure
index 224b2b2,09c80b7..09c80b7
mode 100644,100755..100644
+++ b/configure
      /*B-Frames fX264optBframesPopUp*/
      int i;
      [fX264optBframesPopUp removeAllItems];
++    /*
 +    [fX264optBframesPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Default (0)", @"Advanced", @"")];
++    */
+     [fX264optBframesPopUp addItemWithTitle:@"Default (3)"];
      for (i=0; i<17;i++)
      {
          [fX264optBframesPopUp addItemWithTitle:[NSString stringWithFormat:@"%d",i]];
      
      /*Reference Frames fX264optRefPopUp*/
      [fX264optRefPopUp removeAllItems];
++    /*
 +    [fX264optRefPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Default (1)", @"Advanced", @"")];
++    */
+     [fX264optRefPopUp addItemWithTitle:@"Default (3)"];
      for (i=0; i<17;i++)
      {
          [fX264optRefPopUp addItemWithTitle:[NSString stringWithFormat:@"%d",i]];
      
      /*Sub Me fX264optSubmePopUp*/
      [fX264optSubmePopUp removeAllItems];
++    /*
 +    [fX264optSubmePopUp addItemWithTitle:NSLocalizedStringFromTable(@"Default (6)", @"Advanced", @"")];
+     [fX264optSubmePopUp addItemWithTitle:@"Default (7)"];
++    */
      for (i=0; i<10;i++)
      {
          [fX264optSubmePopUp addItemWithTitle:[NSString stringWithFormat:@"%d",i]];
      
      /*Trellis fX264optTrellisPopUp*/
      [fX264optTrellisPopUp removeAllItems];
++    /*
 +    [fX264optTrellisPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Default (0)", @"Advanced", @"")];
++    */
+     [fX264optTrellisPopUp addItemWithTitle:@"Default (1)"];
      for (i=0; i<3;i++)
      {
          [fX264optTrellisPopUp addItemWithTitle:[NSString stringWithFormat:@"%d",i]];
      
      /*Motion Estimation fX264optMotionEstPopUp*/
      [fX264optMotionEstPopUp removeAllItems];
++    /*
 +    [fX264optMotionEstPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Default (Hexagon)", @"Advanced", @"")];
 +    [fX264optMotionEstPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Diamond", @"Advanced", @"")];
 +    [fX264optMotionEstPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Hexagon", @"Advanced", @"")];
 +    [fX264optMotionEstPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Uneven Multi-Hexagon", @"Advanced", @"")];
 +    [fX264optMotionEstPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Exhaustive", @"Advanced", @"")];
++    */
+     [fX264optMotionEstPopUp addItemWithTitle:@"Default (Hexagon)"];
+     [fX264optMotionEstPopUp addItemWithTitle:@"Diamond"];
+     [fX264optMotionEstPopUp addItemWithTitle:@"Hexagon"];
+     [fX264optMotionEstPopUp addItemWithTitle:@"Uneven Multi-Hexagon"];
+     [fX264optMotionEstPopUp addItemWithTitle:@"Exhaustive"];
+     [fX264optMotionEstPopUp addItemWithTitle:@"Transformed Exhaustive"];
+     toolTip =
+         @"Controls the motion estimation method. Motion estimation is how the encoder decides how each block of pixels in a frame has moved, compared to most similar blocks in the other frames it references. There are many ways of finding the most similar blocks, with varying speeds and accuracy.\n\nAt the most basic setting, dia, x264 will only consider a diamond-shaped region around each pixel.\n\nThe default setting, hex, is similar to dia but uses a hexagon shape.\n\nUneven multi-hexagon, umh, searches a number of different patterns across a wider area and thus is slower than hex and dia but further increases compression efficiency and quality.\n\nesa, an exhaustive search of a square around each pixel (whose size is controlled by the me-range parameter), is much slower and offers only minimal quality gains.\n\ntesa, transformed exhaustive search, which performs just as thorough a search, is slower still but offers further slight improvements to quality.";
+     [fX264optMotionEstPopUp setToolTip: toolTip];
+     [fX264optMotionEstLabel setToolTip: toolTip];
      
      /*Motion Estimation range fX264optMERangePopUp*/
      [fX264optMERangePopUp removeAllItems];
      
      /*Direct B-Frame Prediction Mode fX264optDirectPredPopUp*/
      [fX264optDirectPredPopUp removeAllItems];
 -    [fX264optDirectPredPopUp addItemWithTitle:@"Default (Spatial)"];
 -    [fX264optDirectPredPopUp addItemWithTitle:@"None"];
 -    [fX264optDirectPredPopUp addItemWithTitle:@"Spatial"];
 -    [fX264optDirectPredPopUp addItemWithTitle:@"Temporal"];
 -    [fX264optDirectPredPopUp addItemWithTitle:@"Automatic"];
 +    [fX264optDirectPredPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Default (Spatial)", @"Advanced", @"")];
 +    [fX264optDirectPredPopUp addItemWithTitle:NSLocalizedStringFromTable(@"None", @"Advanced", @"")];
 +    [fX264optDirectPredPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Spatial", @"Advanced", @"")];
 +    [fX264optDirectPredPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Temporal", @"Advanced", @"")];
 +    [fX264optDirectPredPopUp addItemWithTitle:NSLocalizedStringFromTable(@"Automatic", @"Advanced", @"")];
      [fX264optDirectPredPopUp setWantsLayer:YES];
+     toolTip =
+         @"Direct prediction tells x264 what method to use when guessing motion for certain parts of a B-frame. It can either look at other parts of the current frame (spatial) or compare against the following P-frameframe (temporal). You're best off setting this to automatic, so x264 decides which method is best on its own. Don't select none assuming it will be faster; instead it will take longer and look worse. If you're going to choose between spatial and temporal, spatial is usually better.";
+     [fX264optDirectPredPopUp setToolTip: toolTip];
+     [fX264optDirectPredLabel setToolTip: toolTip];
+     
+     /* Adaptive B-Frames Mode fX264optBAdaptPopUp */
+     [fX264optBAdaptPopUp removeAllItems];
+     [fX264optBAdaptPopUp addItemWithTitle:@"Default (Fast)"];
+     [fX264optBAdaptPopUp addItemWithTitle:@"Off"];
+     [fX264optBAdaptPopUp addItemWithTitle:@"Fast"];
+     [fX264optBAdaptPopUp addItemWithTitle:@"Optimal"];
+     [fX264optBAdaptPopUp setWantsLayer:YES];
+     toolTip =
+         @"When adaptive B-Frames are disabled, the number of B-Frames you specify is the constant length of every B-Frame sequence. When one of the adaptive modes is enabled, the number of B-Frames is treated as a maximum, with the length of each sequence varying, but never exceeding the max.\n\nFast mode takes the same amount of time no matter how many B-frames you specify. However, it doesn't always make the best decisions on how many B-Frames to use in a sequence.\n\nOptimal mode gets slower as the maximum number of B-Frames increases, but does a much better job at deciding sequence length, which can mean smaller file sizes and better quality.";
+     [fX264optBAdaptPopUp setToolTip: toolTip];
+     [fX264optBAdaptLabel setToolTip: toolTip];
      
      /*Alpha Deblock*/
      [fX264optAlphaDeblockPopUp removeAllItems];
  
      /* Analysis fX264optAnalysePopUp */
      [fX264optAnalysePopUp removeAllItems];
++    /*
 +    [fX264optAnalysePopUp addItemWithTitle:NSLocalizedStringFromTable(@"Default (some)", @"Advanced", @"")]; /* 0=default */
 +    [fX264optAnalysePopUp addItemWithTitle:[NSString stringWithFormat:NSLocalizedStringFromTable(@"None", @"Advanced", @"")]]; /* 1=none */
 +    [fX264optAnalysePopUp addItemWithTitle:[NSString stringWithFormat:NSLocalizedStringFromTable(@"All", @"Advanced", @"")]]; /* 2=all */
++    */
+     [fX264optAnalysePopUp addItemWithTitle:@"Default (some)"]; /* 0=default */
+     [fX264optAnalysePopUp addItemWithTitle:[NSString stringWithFormat:@"None"]]; /* 1=none */
+     [fX264optAnalysePopUp addItemWithTitle:[NSString stringWithFormat:@"All"]]; /* 2=all */
+     toolTip =
+         @"Analysis controls how finely x264 divides up a frame to capture detail. Full macroblocks are 16x16 pixels, but x264 can go down all the way to 4x4 blocks if it judges it necessary. By default it only breaks up key frames that much. To give x264 the freedom to make the best decisions for all frames, use \"all\" analysis. If you want to create a high profile H.264 video (which is less compatible with the world at large than main profile), also check the \"8x8 DCT blocks\" box to add yet another block size for analysis.";
+     [fX264optAnalysePopUp setToolTip: toolTip];
+     [fX264optAnalyseLabel setToolTip: toolTip];
  
      /* 8x8 DCT fX264op8x8dctSwitch */
-     [fX264opt8x8dctSwitch setState:0];
+     [fX264opt8x8dctSwitch setState:1];
      [fX264opt8x8dctSwitch setWantsLayer:YES];
+     toolTip =
+         @"Checking this box lets x264 break key frames down into 8x8 blocks of pixels for analysis. This is a high profile feature of H.264, which makes it less compatible. It should slightly decrease bitrate or improve quality. Turn it on whenever possible.";
+     [fX264opt8x8dctSwitch setToolTip: toolTip];
+     [fX264opt8x8dctLabel setToolTip: toolTip];
  
      /* CABAC fX264opCabacSwitch */
      [fX264optCabacSwitch setState:1];
                  /*Motion Estimation NSPopUpButton*/
                  if ([optName isEqualToString:@"me"])
                  {
 -                    if ([optValue isEqualToString:@"dia"])
 +                    if ([optValue isEqualToString:NSLocalizedStringFromTable(@"dia", @"Advanced", @"")])
                          [fX264optMotionEstPopUp selectItemAtIndex:1];
 -                    else if ([optValue isEqualToString:@"hex"])
 +                    else if ([optValue isEqualToString:NSLocalizedStringFromTable(@"hex", @"Advanced", @"")])
                          [fX264optMotionEstPopUp selectItemAtIndex:2];
 -                    else if ([optValue isEqualToString:@"umh"])
 +                    else if ([optValue isEqualToString:NSLocalizedStringFromTable(@"umh", @"Advanced", @"")])
                          [fX264optMotionEstPopUp selectItemAtIndex:3];
++                  /*
 +                    else if ([optValue isEqualToString:NSLocalizedStringFromTable(@"esa", @"Advanced", @"")])
 +                        [fX264optMotionEstPopUp selectItemAtIndex:4];                        
++                  */
+                     else if ([optValue isEqualToString:@"esa"])
+                         [fX264optMotionEstPopUp selectItemAtIndex:4];
+                     else if ([optValue isEqualToString:@"tesa"])
+                         [fX264optMotionEstPopUp selectItemAtIndex:5];
                  }
                  /*ME Range NSPopUpButton*/
                  if ([optName isEqualToString:@"merange"])
      [fileManager createFileAtPath:outputLogFileForEncode contents:nil attributes:nil];
      
      /* Similar to the regular activity log, we print a header containing the date and time of the encode as well as what directory it was encoded to */
++    /*
 +    NSString *versionStringFull = [[NSString stringWithFormat: NSLocalizedStringFromTable(@"Handbrake Version: %@", @"OutputPanel", @""), [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleGetInfoString"]] stringByAppendingString: [NSString stringWithFormat: @" (%@)\n\n", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]];
 +    NSString *startOutputLogString = [NSString stringWithFormat: NSLocalizedStringFromTable(@"HandBrake Activity Log for %@: %@\n%@", @"OutputPanel", @""),outputFileForEncode, [[NSDate  date] descriptionWithCalendarFormat:nil timeZone:nil locale:nil],versionStringFull];
++    */
+     NSString *versionStringFull = [[NSString stringWithFormat: @"Handbrake Version: %@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]] stringByAppendingString: [NSString stringWithFormat: @" (%@)\n\n", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]];
+     NSString *startOutputLogString = [NSString stringWithFormat: @"HandBrake Activity Log for %@: %@\n%@",outputFileForEncode, [[NSDate  date] descriptionWithCalendarFormat:nil timeZone:nil locale:nil],versionStringFull];
      [startOutputLogString writeToFile:outputLogFileForEncode atomically:YES encoding:NSUTF8StringEncoding error:NULL];
  
  
  {
        [outputTextStorage deleteCharactersInRange:NSMakeRange(0, [outputTextStorage length])];
      /* We want to rewrite the app version info to the top of the activity window so it is always present */
++      /*
 +    NSString *versionStringFull = [[NSString stringWithFormat: NSLocalizedStringFromTable(@"Handbrake Version: %@", @"OutputPanel", @""), [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleGetInfoString"]] stringByAppendingString: [NSString stringWithFormat: @" (%@)", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]];
++      */
+     NSString *versionStringFull = [[NSString stringWithFormat: @"Handbrake Version: %@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]] stringByAppendingString: [NSString stringWithFormat: @" (%@)\n\n", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]];
      time_t _now = time( NULL );
      struct tm * now  = localtime( &_now );
      fprintf(stderr, "[%02d:%02d:%02d] macgui: %s\n", now->tm_hour, now->tm_min, now->tm_sec, [versionStringFull UTF8String]);
      if( ![[NSFileManager defaultManager] fileExistsAtPath:encodeLogDirectory] )
      {
          [[NSFileManager defaultManager] createDirectoryAtPath:encodeLogDirectory
-                                                    attributes:nil];
+                                             withIntermediateDirectories:NO
+                                             attributes:nil
+                                             error:nil];
      }
      
 -    NSAppleScript *myScript = [[NSAppleScript alloc] initWithSource: [NSString stringWithFormat: @"%@%@%@", @"tell application \"Finder\" to open (POSIX file \"", encodeLogDirectory, @"\")"]];
 +    NSAppleScript *myScript = [[NSAppleScript alloc] initWithSource: [NSString stringWithFormat: @"%@%@%@", NSLocalizedStringFromTable(@"tell application \"Finder\" to open (POSIX file \"", @"OutputPanel", @""), encodeLogDirectory, @"\")"]];
      [myScript executeAndReturnError: nil];
      [myScript release];
  }
          [startOutputLogString writeToFile:outputLogFile atomically:NO encoding:NSUTF8StringEncoding error:NULL];
          
          /* We want to rewrite the app version info to the top of the activity window so it is always present */
++      /*
 +        NSString *versionStringFull = [[NSString stringWithFormat: NSLocalizedStringFromTable(@"macgui: Handbrake Version: %@", @"OutputPanel", @""), [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleGetInfoString"]] stringByAppendingString: [NSString stringWithFormat: @" (%@)", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]];
++      */
+         NSString *versionStringFull = [[NSString stringWithFormat: @"macgui: Handbrake Version: %@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]] stringByAppendingString: [NSString stringWithFormat: @" (%@)\n\n", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]];
          [versionStringFull writeToFile:outputLogFile atomically:NO encoding:NSUTF8StringEncoding error:NULL];
          
  }
      [self setPrefView:nil];
  }
  
- - (NSToolbarItem *) toolbar: (NSToolbar *) toolbar itemForItemIdentifier: (NSString *) ident
-                     willBeInsertedIntoToolbar: (BOOL) flag
+ - (NSToolbarItem *)toolbar: (NSToolbar *)toolbar
+      itemForItemIdentifier: (NSString *)ident
+  willBeInsertedIntoToolbar: (BOOL)flag
  {
++    /*
 +    NSToolbarItem * item;
 +    item = [[[NSToolbarItem alloc] initWithItemIdentifier: ident] autorelease];
 +
 +    if ([ident isEqualToString: TOOLBAR_GENERAL])
 +    {
 +        [item setLabel: NSLocalizedStringFromTable(@"General", @"Preferences", "General")];
 +        [item setImage: [NSImage imageNamed: @"NSPreferencesGeneral"]];
 +        [item setTarget: self];
 +        [item setAction: @selector(setPrefView:)];
 +        [item setAutovalidates: NO];
 +    }
 +    else if ([ident isEqualToString: TOOLBAR_PICTURE])
 +    {
 +        [item setLabel: NSLocalizedStringFromTable(@"Picture", @"Preferences", "Picture")];
 +        [item setImage: [NSImage imageNamed: @"pref-picture"]];
 +        [item setTarget: self];
 +        [item setAction: @selector(setPrefView:)];
 +        [item setAutovalidates: NO];
++    */
+     if ( [ident isEqualToString:TOOLBAR_GENERAL] )
+     {
+         return [self toolbarItemWithIdentifier:ident
+                                          label:NSLocalizedString(@"General", @"Preferences General Toolbar Item")
+                                          image:[NSImage imageNamed:NSImageNamePreferencesGeneral]];
      }
-     else if ([ident isEqualToString: TOOLBAR_AUDIO])
+     else if ( [ident isEqualToString:TOOLBAR_PICTURE] )
      {
++      /*
 +        [item setLabel: NSLocalizedStringFromTable(@"Audio", @"Preferences", "Audio")];
 +        [item setImage: [NSImage imageNamed: @"pref-audio"]];
 +        [item setTarget: self];
 +        [item setAction: @selector(setPrefView:)];
 +        [item setAutovalidates: NO];
++      */
+         return [self toolbarItemWithIdentifier:ident
+                                          label:NSLocalizedString(@"Picture", @"Preferences Picture Toolbar Item")
+                                          image:[NSImage imageNamed:@"pref-picture"]];
      }
-     else if ([ident isEqualToString: TOOLBAR_ADVANCED])
+     else if ( [ident isEqualToString:TOOLBAR_AUDIO] )
      {
++      /*
 +        [item setLabel: NSLocalizedStringFromTable(@"Advanced", @"Preferences", "Advanced")];
 +        [item setImage: [NSImage imageNamed: @"NSAdvanced"]];
 +        [item setTarget: self];
 +        [item setAction: @selector(setPrefView:)];
 +        [item setAutovalidates: NO];
++      */
+         return [self toolbarItemWithIdentifier:ident
+                                          label:NSLocalizedString(@"Audio", @"Preferences Audio Toolbar Item")
+                                          image:[NSImage imageNamed:@"pref-audio"]];
      }
-     else
+     else if ( [ident isEqualToString:TOOLBAR_ADVANCED] )
      {
-         return nil;
+         return [self toolbarItemWithIdentifier:ident
+                                          label:NSLocalizedString(@"Advanced", @"Preferences Advanced Toolbar Item")
+                                          image:[NSImage imageNamed:NSImageNameAdvanced]];
      }
  
-     return item;
+     return nil;
  }
  
  - (NSArray *) toolbarSelectableItemIdentifiers: (NSToolbar *) toolbar
@@@ -489,9 -489,9 +489,9 @@@ static NSString*    HBQueuePauseResumeT
          * screw up the sync while the window is open
          */
         [fHBController Pause:NULL];
 -         NSString * alertTitle = [NSString stringWithFormat:NSLocalizedString(@"Stop This Encode and Remove It ?", nil)];
 +         NSString * alertTitle = [NSString stringWithFormat:NSLocalizedStringFromTable(@"Stop This Encode and Remove It ?", @"Queue", nil)];
          // Which window to attach the sheet to?
-         NSWindow * docWindow;
+         NSWindow * docWindow = nil;
          if ([sender respondsToSelector: @selector(window)])
              docWindow = [sender window];
          
@@@ -849,26 -961,31 +961,41 @@@ return ![(HBQueueOutlineView*)outlineVi
          //finalDescription = [finalDescription stringByAppendingString:[NSString stringWithFormat:@"Source: %@ Output: %@\n", [item objectForKey:@"SourceName"],[item objectForKey:@"DestinationPath"]]];
          NSString * summaryInfo;
          
 -        NSString * titleString = [NSString stringWithFormat:@"Title %d", [[item objectForKey:@"TitleNumber"] intValue]];
 +        NSString * titleString = [NSString stringWithFormat:NSLocalizedStringFromTable(@"Title %d", @"Queue",@""), [[item objectForKey:@"TitleNumber"] intValue]];
          
          NSString * chapterString = ([[item objectForKey:@"ChapterStart"] intValue] == [[item objectForKey:@"ChapterEnd"] intValue]) ?
 -        [NSString stringWithFormat:@"Chapter %d", [[item objectForKey:@"ChapterStart"] intValue]] :
 -        [NSString stringWithFormat:@"Chapters %d through %d", [[item objectForKey:@"ChapterStart"] intValue], [[item objectForKey:@"ChapterEnd"] intValue]];
 +        [NSString stringWithFormat:NSLocalizedStringFromTable(@"Chapter %d", @"Queue",@""), [[item objectForKey:@"ChapterStart"] intValue]] :
 +        [NSString stringWithFormat:NSLocalizedStringFromTable(@"Chapters %d through %d", @"Queue",@""), [[item objectForKey:@"ChapterStart"] intValue], [[item objectForKey:@"ChapterEnd"] intValue]];
          
-         NSString * passesString;
+         NSString * passesString = @"";
+         /* check to see if our first subtitle track is Foreign Language Search, in which case there is an in depth scan */
+         if ([item objectForKey:@"SubtitleList"] && [[[[item objectForKey:@"SubtitleList"] objectAtIndex:0] objectForKey:@"subtitleSourceTrackNum"] intValue] == 1)
+         {
+           passesString = [passesString stringByAppendingString:@"1 Foreign Language Search Pass - "];
+         }
          if ([[item objectForKey:@"VideoTwoPass"] intValue] == 0)
          {
++          /*
 +            passesString = [NSString stringWithFormat:NSLocalizedStringFromTable(@"1 Video Pass", @"Queue",@"")];
++          */
+             passesString = [passesString stringByAppendingString:@"1 Video Pass"];
          }
          else
          {
              if ([[item objectForKey:@"VideoTurboTwoPass"] intValue] == 1)
              {
++              /*
 +                passesString = [NSString stringWithFormat:NSLocalizedStringFromTable(@"2 Video Passes Turbo", @"Queue",@"")];
 +            }
 +            else
 +            {
 +                passesString = [NSString stringWithFormat:NSLocalizedStringFromTable(@"2 Video Passes", @"Queue",@"")];
++              */
+                 passesString = [passesString stringByAppendingString:@"2 Video Passes First Turbo"];
+             }
+             else
+             {
+                 passesString = [passesString stringByAppendingString:@"2 Video Passes"];
              }
          }
          
                              [item objectForKey:@"Audio1Samplerate"],
                              [item objectForKey:@"Audio1Bitrate"]];
              
-             if ([[item objectForKey:@"Audio1TrackDRCSlider"] floatValue] > 1.00)
+             if ([[item objectForKey:@"Audio1TrackDRCSlider"] floatValue] > 0.00)
              {
 -                audioDetail1 = [NSString stringWithFormat:@"%@, DRC: %@",audioDetail1,[item objectForKey:@"Audio1TrackDRCSlider"]];
 +                audioDetail1 = [NSString stringWithFormat:NSLocalizedStringFromTable(@"%@, DRC: %@", @"Queue",@""),audioDetail1,[item objectForKey:@"Audio1TrackDRCSlider"]];
              }
              else
              {
                              [item objectForKey:@"Audio2Samplerate"],
                              [item objectForKey:@"Audio2Bitrate"]];
              
-             if ([[item objectForKey:@"Audio2TrackDRCSlider"] floatValue] > 1.00)
+             if ([[item objectForKey:@"Audio2TrackDRCSlider"] floatValue] > 0.00)
              {
 -                audioDetail2 = [NSString stringWithFormat:@"%@, DRC: %@",audioDetail2,[item objectForKey:@"Audio2TrackDRCSlider"]];
 +                audioDetail2 = [NSString stringWithFormat:NSLocalizedStringFromTable(@"%@, DRC: %@", @"Queue",@""),audioDetail2,[item objectForKey:@"Audio2TrackDRCSlider"]];
              }
              else
              {
                              [item objectForKey:@"Audio3Samplerate"],
                              [item objectForKey:@"Audio3Bitrate"]];
              
-             if ([[item objectForKey:@"Audio3TrackDRCSlider"] floatValue] > 1.00)
+             if ([[item objectForKey:@"Audio3TrackDRCSlider"] floatValue] > 0.00)
              {
 -                audioDetail3 = [NSString stringWithFormat:@"%@, DRC: %@",audioDetail3,[item objectForKey:@"Audio3TrackDRCSlider"]];
 +                audioDetail3 = [NSString stringWithFormat:NSLocalizedStringFromTable(@"%@, DRC: %@", @"Queue",@""),audioDetail3,[item objectForKey:@"Audio3TrackDRCSlider"]];
              }
              else
              {
                              [item objectForKey:@"Audio4Samplerate"],
                              [item objectForKey:@"Audio4Bitrate"]];
              
-             if ([[item objectForKey:@"Audio4TrackDRCSlider"] floatValue] > 1.00)
+             if ([[item objectForKey:@"Audio4TrackDRCSlider"] floatValue] > 0.00)
              {
 -                audioDetail4 = [NSString stringWithFormat:@"%@, DRC: %@",audioDetail4,[item objectForKey:@"Audio4TrackDRCSlider"]];
 +                audioDetail4 = [NSString stringWithFormat:NSLocalizedStringFromTable(@"%@, DRC: %@", @"Queue",@""),audioDetail4,[item objectForKey:@"Audio4TrackDRCSlider"]];
              }
              else
              {
          
          NSString * pictureFilters = @"";
          BOOL pictureFiltersPresent = NO;
-         }
++      /*
 +        if( [[item objectForKey:@"VFR"] intValue] == 1)
 +        {
 +            pictureFiltersPresent = YES;
 +            pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - VFR", @"Queue",@"")];
 +        }
 +        if( [[item objectForKey:@"PictureDetelecine"] intValue] == 1 )
 +        {
 +            pictureFiltersPresent = YES;
 +            pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Detelecine", @"Queue",@"")];
++      */
          
-         if( [[item objectForKey:@"PictureDecomb"] intValue] == 1)
+         if( [[item objectForKey:@"PictureDetelecine"] intValue] == 1)
+         {
+             pictureFiltersPresent = YES;
+             pictureFilters = [pictureFilters stringByAppendingString:[NSString stringWithFormat:@" - Detelecine (%@)",[item objectForKey:@"PictureDetelecineCustom"]]];
+         }
+         else if( [[item objectForKey:@"PictureDetelecine"] intValue] == 2)
          {
              pictureFiltersPresent = YES;
++          /*
 +            pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Decomb ", @"Queue",@"")];
++          */
+             pictureFilters = [pictureFilters stringByAppendingString:@" - Detelecine (Default)"];
          }
          
-         if ([[item objectForKey:@"PictureDeinterlace"] intValue] != 0)
+         if( [[item objectForKey:@"PictureDecombDeinterlace"] intValue] == 1)
          {
-             pictureFiltersPresent = YES;
-             if ([[item objectForKey:@"PictureDeinterlace"] intValue] == 1)
+             if ([[item objectForKey:@"PictureDecomb"] intValue] != 0)
              {
++              /*
 +                pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Deinterlace: Fast ", @"Queue",@"")];
 +            }
 +            else if ([[item objectForKey:@"PictureDeinterlace"] intValue] == 2)
 +            {
 +                pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Deinterlace: Slow ", @"Queue",@"")];           
 +            }
 +            else if ([[item objectForKey:@"PictureDeinterlace"] intValue] == 3)
 +            {
 +                pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Deinterlace: Slower ", @"Queue",@"")];            
++              */
+                 pictureFiltersPresent = YES;
+                 if( [[item objectForKey:@"PictureDecomb"] intValue] == 1)
+                 {
+                     pictureFiltersPresent = YES;
+                     pictureFilters = [pictureFilters stringByAppendingString:[NSString stringWithFormat:@" - Decomb (%@)",[item objectForKey:@"PictureDecombCustom"]]];
+                 }
+                 else if( [[item objectForKey:@"PictureDecomb"] intValue] == 2)
+                 {
+                     pictureFiltersPresent = YES;
+                     pictureFilters = [pictureFilters stringByAppendingString:@" - Decomb (Default)"];
+                 }
+             }
+         }
+         else
+         {
+             if ([[item objectForKey:@"PictureDeinterlace"] intValue] != 0)
+             {
+                 pictureFiltersPresent = YES;
+                 if ([[item objectForKey:@"PictureDeinterlace"] intValue] == 1)
+                 {
+                     pictureFilters = [pictureFilters stringByAppendingString:[NSString stringWithFormat:@" - Deinterlace (%@)",[item objectForKey:@"PictureDeinterlaceCustom"]]];            
+                 }
+                 else if ([[item objectForKey:@"PictureDeinterlace"] intValue] == 2)
+                 {
+                     pictureFilters = [pictureFilters stringByAppendingString:@" - Deinterlace (Fast)"];
+                 }
+                 else if ([[item objectForKey:@"PictureDeinterlace"] intValue] == 3)
+                 {
+                     pictureFilters = [pictureFilters stringByAppendingString:@" - Deinterlace (Slow)"];           
+                 }
+                 else if ([[item objectForKey:@"PictureDeinterlace"] intValue] == 4)
+                 {
+                     pictureFilters = [pictureFilters stringByAppendingString:@" - Deinterlace (Slower)"];            
+                 }
+                 
              }
-             
          }
          if ([[item objectForKey:@"PictureDenoise"] intValue] != 0)
          {
              pictureFiltersPresent = YES;
              if ([[item objectForKey:@"PictureDenoise"] intValue] == 1)
              {
++              /*
 +                pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Denoise: Weak ", @"Queue",@"")];
 +            }
 +            else if ([[item objectForKey:@"PictureDenoise"] intValue] == 2)
 +            {
 +                pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Denoise: Medium ", @"Queue",@"")];           
 +            }
 +            else if ([[item objectForKey:@"PictureDenoise"] intValue] == 3)
 +            {
 +                pictureFilters = [pictureFilters stringByAppendingString:NSLocalizedStringFromTable(@" - Denoise: Strong ", @"Queue",@"")];            
++              */
+                 pictureFilters = [pictureFilters stringByAppendingString:[NSString stringWithFormat:@" - Denoise (%@)",[item objectForKey:@"PictureDenoiseCustom"]]];            
+             }
+             else if ([[item objectForKey:@"PictureDenoise"] intValue] == 2)
+             {
+                 pictureFilters = [pictureFilters stringByAppendingString:@" - Denoise (Weak)"];
+             }
+             else if ([[item objectForKey:@"PictureDenoise"] intValue] == 3)
+             {
+                 pictureFilters = [pictureFilters stringByAppendingString:@" - Denoise (Medium)"];           
+             }
+             else if ([[item objectForKey:@"PictureDenoise"] intValue] == 4)
+             {
+                 pictureFilters = [pictureFilters stringByAppendingString:@" - Denoise (Strong)"];            
              }
              
          }
          if ([[item objectForKey:@"PictureDeblock"] intValue] != 0)
          {
              pictureFiltersPresent = YES;
 -            pictureFilters = [pictureFilters stringByAppendingString: [NSString stringWithFormat:@" - Deblock (pp7) (%d)",[[item objectForKey:@"PictureDeblock"] intValue]]];
++          /*
 +            pictureFilters = [pictureFilters stringByAppendingString: [NSString stringWithFormat:NSLocalizedStringFromTable(@" - Deblock (pp7) (%d) ", @"Queue",@""),[[item objectForKey:@"PictureDeblock"] intValue]]];
++          */
++          pictureFilters = [pictureFilters stringByAppendingString: [NSString stringWithFormat:@" - Deblock (pp7) (%d)",[[item objectForKey:@"PictureDeblock"] intValue]]];
+         }
+         
+         if ([[item objectForKey:@"VideoGrayScale"] intValue] == 1)
+         {
+             pictureFiltersPresent = YES;
+             pictureFilters = [pictureFilters stringByAppendingString:@" - Grayscale"];
          }
+         
          if (pictureFiltersPresent == YES)
          {
 -            [finalString appendString: @"Filters: " withAttributes:detailBoldAttr];
 +            [finalString appendString: NSLocalizedStringFromTable(@"Filters: ", @"Queue",@"") withAttributes:detailBoldAttr];
              [finalString appendString: pictureFilters withAttributes:detailAttr];
              [finalString appendString:@"\n" withAttributes:detailAttr];
          }
          }
          else // CRF
          {
++          /*
 +            videoInfo = [NSString stringWithFormat:NSLocalizedStringFromTable(@"%@ Constant Quality: %.0f %%", @"Queue",@""), videoInfo ,[[item objectForKey:@"VideoQualitySlider"] floatValue] * 100];
++          */
+             videoInfo = [NSString stringWithFormat:@"%@ Constant Quality: %.2f", videoInfo ,[[item objectForKey:@"VideoQualitySlider"] floatValue]];
          }
          
 -        [finalString appendString: @"Video: " withAttributes:detailBoldAttr];
 +        [finalString appendString: NSLocalizedStringFromTable(@"Video: ", @"Queue",@"") withAttributes:detailBoldAttr];
          [finalString appendString: videoInfo withAttributes:detailAttr];
          [finalString appendString:@"\n" withAttributes:detailAttr];
          
          }
          
          
+         
          /* Seventh Line Audio Details*/
++      /*
 +        [finalString appendString: NSLocalizedStringFromTable(@"Audio Track 1: ", @"Queue",@"") withAttributes:detailBoldAttr];
 +        [finalString appendString: audioDetail1 withAttributes:detailAttr];
 +        [finalString appendString:@"\n" withAttributes:detailAttr];
 +        
 +        [finalString appendString: NSLocalizedStringFromTable(@"Audio Track 2: ", @"Queue",@"") withAttributes:detailBoldAttr];
 +        [finalString appendString: audioDetail2 withAttributes:detailAttr];
 +        [finalString appendString:@"\n" withAttributes:detailAttr];
 +        
 +        [finalString appendString: NSLocalizedStringFromTable(@"Audio Track 3: ", @"Queue",@"") withAttributes:detailBoldAttr];
 +        [finalString appendString: audioDetail3 withAttributes:detailAttr];
 +        [finalString appendString:@"\n" withAttributes:detailAttr];
 +        
 +        [finalString appendString: NSLocalizedStringFromTable(@"Audio Track 4: ", @"Queue",@"") withAttributes:detailBoldAttr];
 +        [finalString appendString: audioDetail4 withAttributes:detailAttr];
++      */
+         if ([audioDetail1 length] != 0)
+         {
+             [finalString appendString: @"Audio Track 1: " withAttributes:detailBoldAttr];
+             [finalString appendString: audioDetail1 withAttributes:detailAttr];
+             [finalString appendString:@"\n" withAttributes:detailAttr];
+         }
+         
+         if ([audioDetail2 length] != 0)
+         {
+             [finalString appendString: @"Audio Track 2: " withAttributes:detailBoldAttr];
+             [finalString appendString: audioDetail2 withAttributes:detailAttr];
+             [finalString appendString:@"\n" withAttributes:detailAttr];
+         }
+         
+         if ([audioDetail3 length] != 0)
+         {
+             [finalString appendString: @"Audio Track 3: " withAttributes:detailBoldAttr];
+             [finalString appendString: audioDetail3 withAttributes:detailAttr];
+             [finalString appendString:@"\n" withAttributes:detailAttr];
+         }
+         
+         if ([audioDetail4 length] != 0)
+         {
+             [finalString appendString: @"Audio Track 4: " withAttributes:detailBoldAttr];
+             [finalString appendString: audioDetail4 withAttributes:detailAttr];
+             [finalString appendString:@"\n" withAttributes:detailAttr];
+         }
+         /* Eighth Line Subtitle Details */
+         
+         int i = 0;
+         NSEnumerator *enumerator = [[item objectForKey:@"SubtitleList"] objectEnumerator];
+         id tempObject;
+         while (tempObject = [enumerator nextObject])
+         {
+             /* since the subtitleSourceTrackNum 0 is "None" in our array of the subtitle popups,
+              * we want to ignore it for display as well as encoding.
+              */
+             if ([[tempObject objectForKey:@"subtitleSourceTrackNum"] intValue] > 0)
+             { 
+                 /* remember that index 0 of Subtitles can contain "Foreign Audio Search*/
+                 [finalString appendString: @"Subtitle: " withAttributes:detailBoldAttr];
+                 [finalString appendString: [tempObject objectForKey:@"subtitleSourceTrackName"] withAttributes:detailAttr];
+                 if ([[tempObject objectForKey:@"subtitleTrackForced"] intValue] == 1)
+                 {
+                     [finalString appendString: @" - Forced Only" withAttributes:detailAttr];
+                 }
+                 if ([[tempObject objectForKey:@"subtitleTrackBurned"] intValue] == 1)
+                 {
+                     [finalString appendString: @" - Burned In" withAttributes:detailAttr];
+                 }
+                 if ([[tempObject objectForKey:@"subtitleTrackDefault"] intValue] == 1)
+                 {
+                     [finalString appendString: @" - Default" withAttributes:detailAttr];
+                 }
+                 [finalString appendString:@"\n" withAttributes:detailAttr];
+             }
+             i++;
+         }      
          
          return finalString;
      }
index ce5c63f,32ea30e..32ea30e
mode 100644,100755..100644
@@@ -148,208 -81,254 +81,279 @@@ namespace Handbrake.Function
          }\r
  \r
          /// <summary>\r
-         /// Set's up the DataGridView on the Chapters tab (frmMain)\r
+         /// Import a CSV file which contains Chapter Names\r
          /// </summary>\r
-         /// <param name="mainWindow"></param>\r
-         public DataGridView chapterNaming(DataGridView data_chpt, string chapter_start, string chapter_end)\r
+         /// <param name="dataChpt"></param>\r
+         /// <param name="filename"></param>\r
+         /// <returns></returns>\r
+         public static DataGridView importChapterNames(DataGridView dataChpt, string filename)\r
          {\r
+             IDictionary<int, string> chapterMap = new Dictionary<int, string>();\r
              try\r
              {\r
-                 int i = 0;\r
-                 int rowCount = 0;\r
-                 int start = 0;\r
-                 int finish = 0;\r
-                 if (chapter_end != "Auto")\r
-                     finish = int.Parse(chapter_end);\r
\r
-                 if (chapter_start != "Auto")\r
-                     start = int.Parse(chapter_start);\r
\r
-                 rowCount = finish - (start - 1);\r
\r
-                 while (i < rowCount)\r
+                 StreamReader sr = new StreamReader(filename);\r
+                 string csv = sr.ReadLine();\r
+                 while (csv != null)\r
                  {\r
++/*\r
 +                    DataGridViewRow row = new DataGridViewRow();\r
 +\r
 +                    data_chpt.Rows.Insert(i, row);\r
 +                    data_chpt.Rows[i].Cells[0].Value = (i + 1);\r
 +                    data_chpt.Rows[i].Cells[1].Value = "\83`\83\83\83v\83^\81[ " + (i + 1);\r
 +                    i++;\r
++*/\r
+                     if (csv.Trim() != "")\r
+                     {\r
+                         string[] contents = csv.Split(',');\r
+                         int chapter;\r
+                         int.TryParse(contents[0], out chapter);\r
+                         chapterMap.Add(chapter, contents[1]);\r
+                     }\r
+                     csv = sr.ReadLine();\r
                  }\r
-                 return data_chpt;\r
              }\r
-             catch (Exception exc)\r
+             catch (Exception)\r
              {\r
-                 MessageBox.Show("chapterNaming() Error has occured: \n" + exc.ToString());\r
                  return null;\r
              }\r
\r
+             foreach (DataGridViewRow item in dataChpt.Rows)\r
+             {\r
+                 string name;\r
+                 chapterMap.TryGetValue((int)item.Cells[0].Value, out name);\r
+                 item.Cells[1].Value = name ?? "Chapter " + item.Cells[0].Value;\r
+             }\r
\r
+             return dataChpt;\r
          }\r
  \r
          /// <summary>\r
          /// Function which generates the filename and path automatically based on \r
          /// the Source Name, DVD title and DVD Chapters\r
          /// </summary>\r
-         /// <param name="mainWindow"></param>\r
-         public string autoName(ComboBox drp_dvdtitle, string chapter_start, string chatper_end, string source, string dest, int format)\r
+         public static string autoName(frmMain mainWindow) //ComboBox drpDvdtitle, string chapter_start, string chatper_end, string source, string dest, int format, Boolean chapters)\r
          {\r
\r
              string AutoNamePath = string.Empty;\r
\r
-             if (drp_dvdtitle.Text != "Automatic")\r
+             if (mainWindow.drp_dvdtitle.Text != "Automatic")\r
              {\r
-                 // Todo: This code is a tad messy. Clean it up at some point.\r
-                 // Get the Source Name\r
-                 string[] sourceName = source.Split('\\');\r
-                 source = sourceName[sourceName.Length - 1].Replace(".iso", "").Replace(".mpg", "").Replace(".ts", "").Replace(".ps", "");\r
+                 // Get the Source Name \r
+                 string sourceName = mainWindow.SourceName;\r
  \r
                  // Get the Selected Title Number\r
-                 string title = drp_dvdtitle.Text;\r
-                 string[] titlesplit = title.Split(' ');\r
-                 title = titlesplit[0];\r
+                 string[] titlesplit = mainWindow.drp_dvdtitle.Text.Split(' ');\r
+                 string dvdTitle = titlesplit[0].Replace("Automatic", "");\r
  \r
                  // Get the Chapter Start and Chapter End Numbers\r
-                 string cs = chapter_start;\r
-                 string cf = chatper_end;\r
\r
-                 // Just incase the above are set to their default Automatic values, set the varible to ""\r
-                 if (title == "Automatic")\r
-                     title = "";\r
-                 if (cs == "Auto")\r
-                     cs = "";\r
-                 if (cf == "Auto")\r
-                     cf = "";\r
\r
-                 // If both CS and CF are populated, set the dash varible\r
-                 string dash = "";\r
-                 if (cf != "Auto")\r
-                     dash = "-";\r
+                 string chapterStart = mainWindow.drop_chapterStart.Text.Replace("Auto", "");\r
+                 string chapterFinish = mainWindow.drop_chapterFinish.Text.Replace("Auto", "");\r
+                 string combinedChapterTag = chapterStart;\r
+                 if (chapterFinish != chapterStart && chapterFinish != "")\r
+                     combinedChapterTag = chapterStart + "-" + chapterFinish;\r
  \r
                  // Get the destination filename.\r
-                 string destination_filename = "";\r
+                 string destinationFilename;\r
                  if (Properties.Settings.Default.autoNameFormat != "")\r
                  {\r
-                     destination_filename = Properties.Settings.Default.autoNameFormat;\r
-                     destination_filename = destination_filename.Replace("{source}", source).Replace("{title}", title).Replace("{chapters}", cs + dash + cf);\r
+                     destinationFilename = Properties.Settings.Default.autoNameFormat;\r
+                     destinationFilename = destinationFilename.Replace("{source}", sourceName).Replace("{title}", dvdTitle).Replace("{chapters}", combinedChapterTag);\r
                  }\r
                  else\r
-                     destination_filename = source + "_T" + title + "_C" + cs + dash + cf;\r
+                     destinationFilename = sourceName + "_T" + dvdTitle + "_C" + combinedChapterTag;\r
  \r
-                 // If the text box is blank\r
-                 if (!dest.Contains("\\"))\r
+                 // Add the appropriate file extension\r
+                 if (mainWindow.drop_format.SelectedIndex == 0)\r
                  {\r
++/*\r
 +                    string filePath = "";\r
 +                    if (Properties.Settings.Default.autoNamePath.Trim() != "")\r
 +                    {\r
 +                        if (Properties.Settings.Default.autoNamePath.Trim() != "\83u\83\89\83E\83Y\83{\83^\83\93\82Å\83f\83t\83H\83\8b\83g\82Ì\95Û\91\90æ\82ð\8ew\92è...")\r
 +                            filePath = Properties.Settings.Default.autoNamePath + "\\";\r
 +                    }\r
++*/\r
+                     if (Properties.Settings.Default.useM4v || mainWindow.Check_ChapterMarkers.Checked || mainWindow.AudioSettings.RequiresM4V() || mainWindow.Subtitles.RequiresM4V())\r
+                         destinationFilename += ".m4v";\r
+                     else\r
+                         destinationFilename += ".mp4";\r
+                 }\r
+                 else if (mainWindow.drop_format.SelectedIndex == 1)\r
+                     destinationFilename += ".mkv";\r
  \r
-                     if (format == 0)\r
-                         AutoNamePath = filePath + destination_filename + ".mp4";\r
-                     else if (format == 1)\r
-                         AutoNamePath = filePath + destination_filename + ".m4v";\r
-                     else if (format == 2)\r
-                         AutoNamePath = filePath + destination_filename + ".mkv";\r
-                     else if (format == 3)\r
-                         AutoNamePath = filePath + destination_filename + ".avi";\r
-                     else if (format == 4)\r
-                         AutoNamePath = filePath + destination_filename + ".ogm";\r
+                 // Now work out the path where the file will be stored.\r
+                 // First case: If the destination box doesn't already contain a path, make one.\r
+                 if (!mainWindow.text_destination.Text.Contains(Path.DirectorySeparatorChar.ToString()))\r
+                 {\r
+                     // If there is an auto name path, use it...\r
+                     if (Properties.Settings.Default.autoNamePath.Trim() != "" && Properties.Settings.Default.autoNamePath.Trim() != "Click 'Browse' to set the default location")\r
+                         AutoNamePath = Path.Combine(Properties.Settings.Default.autoNamePath, destinationFilename);\r
+                     else // ...otherwise, output to the source directory\r
+                         AutoNamePath = null;\r
                  }\r
-                 else // If the text box already has a path and file\r
+                 else // Otherwise, use the path that is already there.\r
                  {\r
-                     string destination = AutoNamePath;\r
-                     string[] destName = dest.Split('\\');\r
-                     string[] extension = dest.Split('.');\r
-                     string ext = extension[extension.Length - 1];\r
+                     // Use the path and change the file extension to match the previous destination\r
+                     AutoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.text_destination.Text), destinationFilename);\r
  \r
-                     destName[destName.Length - 1] = destination_filename + "." + ext;\r
\r
-                     string fullDest = "";\r
-                     foreach (string part in destName)\r
-                     {\r
-                         if (fullDest != "")\r
-                             fullDest = fullDest + "\\" + part;\r
-                         else\r
-                             fullDest = fullDest + part;\r
-                     }\r
-                     return fullDest;\r
+                     if (Path.HasExtension(mainWindow.text_destination.Text))\r
+                         AutoNamePath = Path.ChangeExtension(AutoNamePath, Path.GetExtension(mainWindow.text_destination.Text));\r
                  }\r
              }\r
\r
              return AutoNamePath;\r
          }\r
  \r
          /// <summary>\r
-         /// Checks for updates and returns true if an update is available.\r
+         /// Get's HandBrakes version data from the CLI.\r
          /// </summary>\r
-         /// <param name="debug">Turns on debug mode. Don't use on program startup</param>\r
-         /// <returns>Boolean True = Update available</returns>\r
-         public Boolean updateCheck(Boolean debug)\r
+         /// <returns>Arraylist of Version Data. 0 = hb_version 1 = hb_build</returns>\r
+         public static void setCliVersionData()\r
          {\r
+             String line;\r
\r
+             // 0 = SVN Build / Version\r
+             // 1 = Build Date\r
\r
+             DateTime lastModified = File.GetLastWriteTime("HandBrakeCLI.exe");\r
\r
\r
+             if (Properties.Settings.Default.cliLastModified == lastModified && Properties.Settings.Default.hb_build != 0)\r
+                 return;\r
\r
+             Properties.Settings.Default.cliLastModified = lastModified;\r
+             \r
+             Process cliProcess = new Process();\r
+             ProcessStartInfo handBrakeCLI = new ProcessStartInfo("HandBrakeCLI.exe", " -u")\r
+                                                 {\r
+                                                     UseShellExecute = false,\r
+                                                     RedirectStandardError = true,\r
+                                                     RedirectStandardOutput = true,\r
+                                                     CreateNoWindow = true\r
+                                                 };\r
+             cliProcess.StartInfo = handBrakeCLI;\r
\r
              try\r
              {\r
-                 Functions.AppcastReader rssRead = new Functions.AppcastReader();\r
-                 rssRead.getInfo(); // Initializes the class.\r
-                 string build = rssRead.build();\r
\r
-                 int latest = int.Parse(build);\r
-                 int current = Properties.Settings.Default.hb_build;\r
-                 int skip = Properties.Settings.Default.skipversion;\r
+                 cliProcess.Start();\r
+                 // Retrieve standard output and report back to parent thread until the process is complete\r
+                 TextReader stdOutput = cliProcess.StandardError;\r
  \r
-                 if (latest == skip)\r
-                     return false;\r
-                 else\r
+                 while (!cliProcess.HasExited)\r
                  {\r
-                     Boolean update = (latest > current);\r
-                     return update;\r
+                     line = stdOutput.ReadLine() ?? "";\r
+                     Match m = Regex.Match(line, @"HandBrake ([0-9.]*)(svn[0-9M]*) \([0-9]*\)");\r
+                     Match platform = Regex.Match(line, @"- ([A-Za-z0-9\s ]*) -");\r
\r
+                     if (m.Success)\r
+                     {\r
+                         string data = line.Replace("(", "").Replace(")", "").Replace("HandBrake ", "");\r
+                         string[] arr = data.Split(' ');\r
\r
+                         Properties.Settings.Default.hb_build = int.Parse(arr[1]);\r
+                         Properties.Settings.Default.hb_version = arr[0];\r
+                     }\r
+                     if (platform.Success)\r
+                         Properties.Settings.Default.hb_platform = platform.Value.Replace("-", "").Trim();\r
\r
+                     if (cliProcess.TotalProcessorTime.Seconds > 10) // Don't wait longer than 10 seconds.\r
+                     {\r
+                         Process cli = Process.GetProcessById(cliProcess.Id);\r
+                         if (!cli.HasExited)\r
+                             cli.Kill();\r
+                     }\r
                  }\r
+                 Properties.Settings.Default.Save();\r
              }\r
-             catch (Exception exc)\r
+             catch (Exception e)\r
              {\r
++/*\r
 +                if (debug == true)\r
 +                    MessageBox.Show("\83A\83b\83v\83f\81[\83g\82Ì\8am\94F\82ª\82Å\82«\82Ü\82¹\82ñ\82Å\82µ\82½\81B\n" + exc.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
++*/\r
+                 MessageBox.Show("Unable to retrieve version information from the CLI. \nError:\n" + e);\r
+             }\r
+         }\r
\r
+         /// <summary>\r
+         /// Check if the queue recovery file contains records.\r
+         /// If it does, it means the last queue did not complete before HandBrake closed.\r
+         /// So, return a boolean if true. \r
+         /// </summary>\r
+         public static Boolean checkQueueRecovery()\r
+         {\r
+             try\r
+             {\r
+                 string tempPath = Path.Combine(Path.GetTempPath(), "hb_queue_recovery.xml");\r
+                 if (File.Exists(tempPath))\r
+                 {\r
+                     using (FileStream strm = new FileStream(tempPath, FileMode.Open, FileAccess.Read))\r
+                     {\r
+                         List<Job> list = ser.Deserialize(strm) as List<Job>;\r
+                         if (list != null)\r
+                             if (list.Count != 0)\r
+                                 return true;\r
+                     }\r
+                 }\r
                  return false;\r
              }\r
+             catch (Exception)\r
+             {\r
+                 return false; // Keep quiet about the error.\r
+             }\r
          }\r
  \r
          /// <summary>\r
-         /// Get's HandBrakes version data from the CLI.\r
+         /// Get the Process ID of HandBrakeCLI for the current instance.\r
          /// </summary>\r
-         /// <returns>Arraylist of Version Data. 0 = hb_version 1 = hb_build</returns>\r
-         public ArrayList getCliVersionData()\r
+         /// <param name="before">List of processes before the new process was started</param>\r
+         /// <returns>Int - Process ID</returns>\r
+         public static int getCliProcess(Process[] before)\r
          {\r
-             ArrayList cliVersionData = new ArrayList();\r
-             // 0 = SVN Build / Version\r
-             // 1 = Build Date\r
+             // This is a bit of a cludge. Maybe someone has a better idea on how to impliment this.\r
+             // Since we used CMD to start HandBrakeCLI, we don't get the process ID from hbProc.\r
+             // Instead we take the processes before and after, and get the ID of HandBrakeCLI.exe\r
+             // avoiding any previous instances of HandBrakeCLI.exe in before.\r
+             // Kill the current process.\r
  \r
-             Process cliProcess = new Process();\r
-             ProcessStartInfo handBrakeCLI = new ProcessStartInfo("HandBrakeCLI.exe", " -u");\r
-             handBrakeCLI.UseShellExecute = false;\r
-             handBrakeCLI.RedirectStandardError = true;\r
-             handBrakeCLI.RedirectStandardOutput = true;\r
-             handBrakeCLI.CreateNoWindow = true;\r
-             cliProcess.StartInfo = handBrakeCLI;\r
-             cliProcess.Start();\r
+             DateTime startTime = DateTime.Now;\r
+             TimeSpan duration;\r
  \r
-             // Retrieve standard output and report back to parent thread until the process is complete\r
-             String line;\r
-             TextReader stdOutput = cliProcess.StandardError;\r
+             Process[] hbProcesses = Process.GetProcessesByName("HandBrakeCLI");\r
+             while (hbProcesses.Length == 0)\r
+             {\r
+                 hbProcesses = Process.GetProcessesByName("HandBrakeCLI");\r
+                 duration = DateTime.Now - startTime;\r
+                 if (duration.Seconds > 5 && hbProcesses.Length == 0) // Make sure we don't wait forever if the process doesn't start\r
+                     return -1;\r
+             }\r
  \r
-             while (!cliProcess.HasExited)\r
+             Process hbProcess = null;\r
+             foreach (Process process in hbProcesses)\r
              {\r
++/*\r
 +                line = stdOutput.ReadLine();\r
 +                if (line == null) line = "";\r
 +                Match m = Regex.Match(line, @"HandBrake ([0-9\.a-zA-Z-]*)*(svn[0-9]*[M]*)* \([0-9]*\)");\r
++*/\r
+                 Boolean found = false;\r
+                 // Check if the current CLI instance was running before we started the current one\r
+                 foreach (Process bprocess in before)\r
+                 {\r
+                     if (process.Id == bprocess.Id)\r
+                         found = true;\r
+                 }\r
  \r
-                 if (m.Success != false)\r
+                 // If it wasn't running before, we found the process we want.\r
+                 if (!found)\r
                  {\r
-                     string data = line.Replace("(", "").Replace(")", "").Replace("HandBrake ", "");\r
-                     string[] arr = data.Split(' ');\r
-                     cliVersionData.Add(arr[0]);\r
-                     cliVersionData.Add(arr[1]);\r
-                     return cliVersionData;\r
+                     hbProcess = process;\r
+                     break;\r
                  }\r
              }\r
-             return null;\r
+             if (hbProcess != null)\r
+                 return hbProcess.Id;\r
\r
+             return -1;\r
          }\r
  \r
          /// <summary>\r
      <Compile Include="frmSplashScreen.Designer.cs">\r
        <DependentUpon>frmSplashScreen.cs</DependentUpon>\r
      </Compile>\r
+     <Compile Include="EncodeQueue\Job.cs" />\r
    </ItemGroup>\r
    <ItemGroup>\r
+     <Content Include="Changelog.html" />\r
      <Content Include="handbrakepineapple.ico" />\r
 +    <None Include="HandBrakeCS_TemporaryKey.pfx" />\r
      <None Include="Resources\logo64.png" />\r
      <None Include="Resources\logo128.png" />\r
      <None Include="Resources\ActivityWindow.png" />\r
@@@ -20,22 -27,17 +27,24 @@@ namespace Handbrake.Preset
          /// </summary>\r
          /// <param name="presetName">String, The name of the new preset</param>\r
          /// <param name="query">String, the CLI query for the new preset</param>\r
-         public Boolean addPreset(string presetName, string query)\r
+         /// <param name="pictureSettings"> Bool, store crop/picture sizes in the _presets</param>\r
+         public Boolean Add(string presetName, string query, Boolean pictureSettings)\r
          {\r
-             if (checkIfPresetExists(presetName) == false)\r
+             if (CheckIfPresetExists(presetName) == false)\r
              {\r
-                 Preset newPreset = new Preset();\r
-                 newPreset.Name = presetName;\r
-                 newPreset.Query = query;\r
-                 user_presets.Add(newPreset);\r
-                 updateUserPresetsFile();\r
+                 Preset newPreset = new Preset { Name = presetName, Query = query, PictureSettings = pictureSettings, Version = Properties.Settings.Default.hb_version };\r
+                 _userPresets.Add(newPreset);\r
+                 UpdatePresetFiles();\r
                  return true;\r
              }\r
++/*\r
 +            else\r
 +            {\r
 +                MessageBox.Show("そのプリセット名はすでに存在しています。 別の名前を選択してください", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
 +                return false;\r
 +            }\r
++*/\r
+             return false;\r
          }\r
  \r
          /// <summary>\r
          }\r
  \r
          /// <summary>\r
-         /// Updates the presets.xml file which contains the built in presets\r
-         /// It takes the List of Presets and converts them into XML which is stored in presets.xml\r
+         /// Setup the frmMain preset panel\r
          /// </summary>\r
-         private void updatePresetsFile()\r
+         /// <param name="presetPanel"></param>\r
+         public void GetPresetPanel(ref TreeView presetPanel)\r
          {\r
-             string userPresets = Application.StartupPath.ToString() + "\\presets.xml";\r
-             try\r
+             this.LoadPresetData();\r
+             presetPanel.Nodes.Clear();\r
\r
+             if (_presets.Count != 0) // Built In Presets\r
              {\r
-                 using (FileStream strm = new FileStream(userPresets, FileMode.Create, FileAccess.Write))\r
+                 string category = string.Empty;\r
+                 TreeNode rootNode = null;\r
\r
+                 foreach (Preset preset in _presets)\r
                  {\r
-                     ser.Serialize(strm, presets);\r
-                     strm.Close();\r
-                     strm.Dispose();\r
+                     if (preset.Category != category)\r
+                     {\r
+                         rootNode = new TreeNode(preset.Category);\r
+                         presetPanel.Nodes.Add(rootNode);\r
+                         category = preset.Category;\r
+                     }\r
\r
+                     if (preset.Category == category && rootNode != null)\r
+                         rootNode.Nodes.Add(preset.Name);\r
                  }\r
              }\r
-             catch (Exception exc)\r
\r
+             foreach (Preset preset in _userPresets) // User Presets\r
              {\r
++/*\r
 +                MessageBox.Show("ファイルの書き込みに失敗しました。\n Error Information: \n\n" + exc.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
++*/\r
+                 TreeNode presetTreeview = new TreeNode(preset.Name) { ForeColor = Color.Black };\r
+                 presetPanel.Nodes.Add(presetTreeview);\r
              }\r
          }\r
  \r
              }\r
              catch (Exception exc)\r
              {\r
-                 MessageBox.Show("ファイルの書き込みに失敗しました。\n Error Information: \n\n" + exc.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
 -                MessageBox.Show("Unable to write to the file. Please make sure the location has the correct permissions for file writing.\n Error Information: \n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
++                MessageBox.Show("ファイルの書き込みに失敗しました。\n Error Information: \n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
              }\r
          }\r
  \r
@@@ -1,10 -1,10 +1,10 @@@
  //------------------------------------------------------------------------------\r
  // <auto-generated>\r
- //     このコードはツールによって生成されました。\r
- //     ランタイム バージョン:2.0.50727.3053\r
+ //     This code was generated by a tool.\r
+ //     Runtime Version:2.0.50727.4927\r
  //\r
 -//     Changes to this file may cause incorrect behavior and will be lost if\r
 -//     the code is regenerated.\r
 +//     このファイルへの変更は、以下の状況下で不正な動作の原因になったり、\r
 +//     コードが再生成されるときに損失したりします。\r
  // </auto-generated>\r
  //------------------------------------------------------------------------------\r
  \r
        <Value Profile="(Default)" />\r
      </Setting>\r
      <Setting Name="appcast" Type="System.String" Scope="User">\r
 -      <Value Profile="(Default)">http://handbrake.fr/appcast.xml</Value>\r
 +      <Value Profile="(Default)">http://sourceforge.jp/projects/handbrake-jp/docs/appcast.xml</Value>\r
      </Setting>\r
      <Setting Name="appcast_unstable" Type="System.String" Scope="User">\r
 -      <Value Profile="(Default)">http://handbrake.fr/appcast_unstable.xml</Value>\r
 +      <Value Profile="(Default)">http://sourceforge.jp/projects/handbrake-jp/docs/appcast_unstable.xml</Value>\r
      </Setting>\r
-     <Setting Name="drive_detection" Type="System.String" Scope="User">\r
-       <Value Profile="(Default)">Checked</Value>\r
+     <Setting Name="cli_minimized" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
      </Setting>\r
-     <Setting Name="cli_minimized" Type="System.String" Scope="User">\r
-       <Value Profile="(Default)" />\r
+     <Setting Name="autoNameFormat" Type="System.String" Scope="User">\r
+       <Value Profile="(Default)">{source}-{title}</Value>\r
+     </Setting>\r
+     <Setting Name="saveLogToSpecifiedPath" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
      </Setting>\r
-     <Setting Name="checkSnapshot" Type="System.String" Scope="User">\r
+     <Setting Name="saveLogPath" Type="System.String" Scope="User">\r
        <Value Profile="(Default)" />\r
      </Setting>\r
-     <Setting Name="decomb" Type="System.String" Scope="User">\r
-       <Value Profile="(Default)">4:10:15:9:10:35:9</Value>\r
+     <Setting Name="saveLogWithVideo" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
      </Setting>\r
-     <Setting Name="default_decomb" Type="System.String" Scope="User">\r
-       <Value Profile="(Default)">4:10:15:9:10:35:9</Value>\r
+     <Setting Name="VLC_Path" Type="System.String" Scope="User">\r
+       <Value Profile="(Default)">C:\Program Files\VideoLAN\vlc\vlc.exe</Value>\r
      </Setting>\r
-     <Setting Name="autoNameFormat" Type="System.String" Scope="User">\r
-       <Value Profile="(Default)">{source}-{title}-{chapters}</Value>\r
+     <Setting Name="MainWindowMinimize" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">True</Value>\r
+     </Setting>\r
+     <Setting Name="QueryEditorTab" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
+     </Setting>\r
+     <Setting Name="x264cqstep" Type="System.Double" Scope="User">\r
+       <Value Profile="(Default)">0.25</Value>\r
+     </Setting>\r
+     <Setting Name="verboseLevel" Type="System.Int32" Scope="User">\r
+       <Value Profile="(Default)">1</Value>\r
+     </Setting>\r
+     <Setting Name="noDvdNav" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
+     </Setting>\r
+     <Setting Name="presetNotification" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
      </Setting>\r
-     <Setting Name="saveLog" Type="System.String" Scope="User">\r
+     <Setting Name="enocdeStatusInGui" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
+     </Setting>\r
+     <Setting Name="trayIconAlerts" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">True</Value>\r
+     </Setting>\r
+     <Setting Name="lastUpdateCheckDate" Type="System.DateTime" Scope="User">\r
        <Value Profile="(Default)" />\r
      </Setting>\r
-     <Setting Name="saveLogPath" Type="System.String" Scope="User">\r
+     <Setting Name="daysBetweenUpdateCheck" Type="System.Int32" Scope="User">\r
+       <Value Profile="(Default)">7</Value>\r
+     </Setting>\r
+     <Setting Name="useM4v" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">True</Value>\r
+     </Setting>\r
+     <Setting Name="PromptOnUnmatchingQueries" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">True</Value>\r
+     </Setting>\r
+     <Setting Name="NativeLanguage" Type="System.String" Scope="User">\r
+       <Value Profile="(Default)">Any</Value>\r
+     </Setting>\r
+     <Setting Name="DubAudio" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
+     </Setting>\r
+     <Setting Name="hb_platform" Type="System.String" Scope="User">\r
        <Value Profile="(Default)" />\r
      </Setting>\r
-     <Setting Name="saveLogWithVideo" Type="System.String" Scope="User">\r
+     <Setting Name="disableResCalc" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
+     </Setting>\r
+     <Setting Name="growlQueue" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
+     </Setting>\r
+     <Setting Name="growlEncode" Type="System.Boolean" Scope="User">\r
+       <Value Profile="(Default)">False</Value>\r
+     </Setting>\r
+     <Setting Name="cliLastModified" Type="System.DateTime" Scope="User">\r
        <Value Profile="(Default)" />\r
      </Setting>\r
    </Settings>\r
                  <value />\r
              </setting>\r
              <setting name="appcast" serializeAs="String">\r
 -                <value>http://handbrake.fr/appcast.xml</value>\r
 +                <value>http://sourceforge.jp/projects/handbrake-jp/docs/appcast.xml</value>\r
              </setting>\r
              <setting name="appcast_unstable" serializeAs="String">\r
 -                <value>http://handbrake.fr/appcast_unstable.xml</value>\r
 +                <value>http://sourceforge.jp/projects/handbrake-jp/docs/appcast_unstable.xml</value>\r
              </setting>\r
-             <setting name="drive_detection" serializeAs="String">\r
-                 <value>Checked</value>\r
-             </setting>\r
              <setting name="cli_minimized" serializeAs="String">\r
-                 <value />\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="autoNameFormat" serializeAs="String">\r
+                 <value>{source}-{title}</value>\r
+             </setting>\r
+             <setting name="saveLogToSpecifiedPath" serializeAs="String">\r
+                 <value>False</value>\r
              </setting>\r
-             <setting name="checkSnapshot" serializeAs="String">\r
+             <setting name="saveLogPath" serializeAs="String">\r
                  <value />\r
              </setting>\r
-             <setting name="decomb" serializeAs="String">\r
-                 <value>4:10:15:9:10:35:9</value>\r
+             <setting name="saveLogWithVideo" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="VLC_Path" serializeAs="String">\r
+                 <value>C:\Program Files\VideoLAN\vlc\vlc.exe</value>\r
              </setting>\r
-             <setting name="default_decomb" serializeAs="String">\r
-                 <value>4:10:15:9:10:35:9</value>\r
+             <setting name="MainWindowMinimize" serializeAs="String">\r
+                 <value>True</value>\r
              </setting>\r
-             <setting name="autoNameFormat" serializeAs="String">\r
-                 <value>{source}-{title}-{chapters}</value>\r
+             <setting name="QueryEditorTab" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="x264cqstep" serializeAs="String">\r
+                 <value>0.25</value>\r
+             </setting>\r
+             <setting name="verboseLevel" serializeAs="String">\r
+                 <value>1</value>\r
+             </setting>\r
+             <setting name="noDvdNav" serializeAs="String">\r
+                 <value>False</value>\r
              </setting>\r
-             <setting name="saveLog" serializeAs="String">\r
+             <setting name="presetNotification" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="enocdeStatusInGui" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="trayIconAlerts" serializeAs="String">\r
+                 <value>True</value>\r
+             </setting>\r
+             <setting name="lastUpdateCheckDate" serializeAs="String">\r
                  <value />\r
              </setting>\r
-             <setting name="saveLogPath" serializeAs="String">\r
+             <setting name="daysBetweenUpdateCheck" serializeAs="String">\r
+                 <value>7</value>\r
+             </setting>\r
+             <setting name="useM4v" serializeAs="String">\r
+                 <value>True</value>\r
+             </setting>\r
+             <setting name="PromptOnUnmatchingQueries" serializeAs="String">\r
+                 <value>True</value>\r
+             </setting>\r
+             <setting name="NativeLanguage" serializeAs="String">\r
+                 <value>Any</value>\r
+             </setting>\r
+             <setting name="DubAudio" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="hb_platform" serializeAs="String">\r
                  <value />\r
              </setting>\r
-             <setting name="saveLogWithVideo" serializeAs="String">\r
+             <setting name="disableResCalc" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="growlQueue" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="growlEncode" serializeAs="String">\r
+                 <value>False</value>\r
+             </setting>\r
+             <setting name="cliLastModified" serializeAs="String">\r
                  <value />\r
              </setting>\r
          </Handbrake.Properties.Settings>\r
@@@ -46,39 -43,6 +43,41 @@@ namespace Handbrak
              ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).BeginInit();\r
              this.SuspendLayout();\r
              // \r
++/*\r
 +            // Label4\r
 +            // \r
 +            this.Label4.AutoSize = true;\r
 +            this.Label4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label4.Location = new System.Drawing.Point(168, 58);\r
 +            this.Label4.Name = "Label4";\r
 +            this.Label4.Size = new System.Drawing.Size(329, 26);\r
 +            this.Label4.TabIndex = 28;\r
 +            this.Label4.Text = "HandBrake\82Í\83}\83\8b\83`\83v\83\89\83b\83g\83t\83H\81[\83\80\82¨\82æ\82Ñ\83}\83\8b\83`\83X\83\8c\83b\83h\91Î\89\9e\82Ì\93®\89æ\95Ï\8a·\83c\81[\83\8b\r\n\82Å\82·\81BGPL\83\89\83C\83Z\83\93\83X\82Å\92ñ\8b\9f\82³\82ê\82Ä\82¢\82Ü\82·\81B";\r
 +            // \r
 +            // btn_close\r
 +            // \r
 +            this.btn_close.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
 +            this.btn_close.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.btn_close.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
 +            this.btn_close.Location = new System.Drawing.Point(402, 114);\r
 +            this.btn_close.Name = "btn_close";\r
 +            this.btn_close.Size = new System.Drawing.Size(115, 22);\r
 +            this.btn_close.TabIndex = 27;\r
 +            this.btn_close.Text = "\95Â\82\82é";\r
 +            this.btn_close.UseVisualStyleBackColor = true;\r
 +            this.btn_close.Click += new System.EventHandler(this.btn_close_Click);\r
 +            // \r
 +            // Version\r
 +            // \r
 +            this.Version.AutoSize = true;\r
 +            this.Version.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Version.Location = new System.Drawing.Point(266, 13);\r
 +            this.Version.Name = "Version";\r
 +            this.Version.Size = new System.Drawing.Size(72, 13);\r
 +            this.Version.TabIndex = 26;\r
 +            this.Version.Text = "{Version}";\r
 +            // \r
++*/\r
              // Label3\r
              // \r
              this.Label3.AutoSize = true;\r
              this.MaximizeBox = false;\r
              this.MinimizeBox = false;\r
              this.Name = "frmAbout";\r
+             this.ShowIcon = false;\r
+             this.ShowInTaskbar = false;\r
              this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;\r
 -            this.Text = "About HandBrake";\r
 +            this.Text = "HandBrake\82É\82Â\82¢\82Ä";\r
              ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).EndInit();\r
              this.ResumeLayout(false);\r
              this.PerformLayout();\r
@@@ -38,7 -38,8 +38,11 @@@ namespace Handbrak
              System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmActivityWindow));\r
              this.rtf_actLog = new System.Windows.Forms.RichTextBox();\r
              this.rightClickMenu = new System.Windows.Forms.ContextMenuStrip(this.components);\r
++/*\r
 +            this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\r
++*/\r
+             this.mnu_copy_log = new System.Windows.Forms.ToolStripMenuItem();\r
+             this.mnu_openLogFolder = new System.Windows.Forms.ToolStripMenuItem();\r
              this.ToolTip = new System.Windows.Forms.ToolTip(this.components);\r
              this.toolStrip1 = new System.Windows.Forms.ToolStrip();\r
              this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();\r
              // rightClickMenu\r
              // \r
              this.rightClickMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
++/*\r
 +            this.copyToolStripMenuItem});\r
 +            this.rightClickMenu.Name = "rightClickMenu";\r
 +            this.rightClickMenu.Size = new System.Drawing.Size(106, 26);\r
 +            // \r
 +            // copyToolStripMenuItem\r
 +            // \r
 +            this.copyToolStripMenuItem.Image = global::Handbrake.Properties.Resources.copy;\r
 +            this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";\r
 +            this.copyToolStripMenuItem.Size = new System.Drawing.Size(105, 22);\r
 +            this.copyToolStripMenuItem.Text = "Copy";\r
 +            this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);\r
++*/\r
+             this.mnu_copy_log,\r
+             this.mnu_openLogFolder});\r
+             this.rightClickMenu.Name = "rightClickMenu";\r
+             this.rightClickMenu.Size = new System.Drawing.Size(254, 48);\r
+             // \r
+             // mnu_copy_log\r
+             // \r
+             this.mnu_copy_log.Image = global::Handbrake.Properties.Resources.copy;\r
+             this.mnu_copy_log.Name = "mnu_copy_log";\r
+             this.mnu_copy_log.Size = new System.Drawing.Size(253, 22);\r
+             this.mnu_copy_log.Text = "Copy";\r
+             this.mnu_copy_log.Click += new System.EventHandler(this.mnu_copy_log_Click);\r
+             // \r
+             // mnu_openLogFolder\r
+             // \r
+             this.mnu_openLogFolder.Image = global::Handbrake.Properties.Resources.folder;\r
+             this.mnu_openLogFolder.Name = "mnu_openLogFolder";\r
+             this.mnu_openLogFolder.Size = new System.Drawing.Size(253, 22);\r
+             this.mnu_openLogFolder.Text = "Open Individual Log File Directory";\r
+             this.mnu_openLogFolder.Click += new System.EventHandler(this.mnu_openLogFolder_Click);\r
              // \r
              // ToolTip\r
              // \r
              this.toolStripDropDownButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";\r
-             this.toolStripDropDownButton1.Size = new System.Drawing.Size(97, 22);\r
+             this.toolStripDropDownButton1.Size = new System.Drawing.Size(90, 22);\r
 -            this.toolStripDropDownButton1.Text = "Select Log";\r
 +            this.toolStripDropDownButton1.Text = "\83\8d\83O\82ð\91I\91ð";\r
              // \r
              // btn_encode_log\r
              // \r
              this.btn_encode_log.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
              this.btn_encode_log.Name = "btn_encode_log";\r
-             this.btn_encode_log.Size = new System.Drawing.Size(160, 22);\r
+             this.btn_encode_log.Size = new System.Drawing.Size(152, 22);\r
 -            this.btn_encode_log.Text = "Encode Log";\r
 +            this.btn_encode_log.Text = "\83G\83\93\83R\81[\83h\83\8d\83O";\r
              this.btn_encode_log.Click += new System.EventHandler(this.btn_encode_log_Click);\r
              // \r
              // btn_scan_log\r
              // \r
              this.btn_scan_log.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
              this.btn_scan_log.Name = "btn_scan_log";\r
-             this.btn_scan_log.Size = new System.Drawing.Size(160, 22);\r
+             this.btn_scan_log.Size = new System.Drawing.Size(152, 22);\r
 -            this.btn_scan_log.Text = "Scan Log";\r
 +            this.btn_scan_log.Text = "\83X\83L\83\83\83\93\83\8d\83O";\r
              this.btn_scan_log.Click += new System.EventHandler(this.btn_scan_log_Click);\r
              // \r
              // btn_copy\r
              this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
              this.lbl_slb,\r
              this.txt_log});\r
 -            this.statusStrip1.Location = new System.Drawing.Point(0, 555);\r
 +            this.statusStrip1.Location = new System.Drawing.Point(0, 554);\r
              this.statusStrip1.Name = "statusStrip1";\r
-             this.statusStrip1.Size = new System.Drawing.Size(471, 23);\r
+             this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 12, 0);\r
+             this.statusStrip1.Size = new System.Drawing.Size(404, 22);\r
              this.statusStrip1.TabIndex = 98;\r
              this.statusStrip1.Text = "statusStrip1";\r
              // \r
              // lbl_slb\r
              // \r
-             this.lbl_slb.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.lbl_slb.BackColor = System.Drawing.Color.Transparent;\r
+             this.lbl_slb.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.lbl_slb.Name = "lbl_slb";\r
-             this.lbl_slb.Size = new System.Drawing.Size(84, 18);\r
+             this.lbl_slb.Size = new System.Drawing.Size(85, 17);\r
 -            this.lbl_slb.Text = "Selected Log: ";\r
 +            this.lbl_slb.Text = "\91I\91ð\92\86\82Ì\83\8d\83O\81F";\r
              // \r
              // txt_log\r
              // \r
@@@ -22,39 -18,38 +18,44 @@@ namespace Handbrak
  {\r
      public partial class frmActivityWindow : Form\r
      {\r
-         delegate void SetTextCallback(string text);\r
-         String read_file;\r
-         Thread monitor;\r
-         frmMain mainWindow;\r
-         frmQueue queueWindow;\r
-         int position = 0;  // Position in the arraylist reached by the current log output in the rtf box.\r
\r
-         /// <summary>\r
-         /// This window should be used to display the RAW output of the handbrake CLI which is produced during an encode.\r
-         /// </summary>\r
-         public frmActivityWindow(string file, frmMain fm, frmQueue fq)\r
+         private delegate void setTextCallback(string text);\r
+         private String _readFile;\r
+         private readonly EncodeAndQueueHandler _encodeQueue;\r
+         private int _position;  // Position in the arraylist reached by the current log output in the rtf box.\r
+         private readonly frmMain _mainWin;\r
+         private Boolean _lastUpdate;\r
+         private Boolean fileNotFoundQuickFix;\r
\r
+         public frmActivityWindow(string file, EncodeAndQueueHandler eh, frmMain mw)\r
          {\r
              InitializeComponent();\r
-             this.rtf_actLog.Text = string.Empty;\r
  \r
-             // When the window closes, we want to abort the monitor thread.\r
-             this.Disposed += new EventHandler(forceQuit);\r
+             _encodeQueue = eh;\r
+             _mainWin = mw;\r
  \r
-             mainWindow = fm;\r
-             queueWindow = fq;\r
-             read_file = file;\r
-             position = 0;\r
\r
-             // Print the Log header in the Rich text box.\r
-             displayLogHeader();\r
+             fileNotFoundQuickFix = false;\r
  \r
++/*\r
 +            if (file == "dvdinfo.dat")\r
 +                txt_log.Text = "\83X\83L\83\83\83\93\83\8d\83O";\r
 +            else if (file == "hb_encode_log.dat")\r
 +                txt_log.Text = "\83G\83\93\83R\81[\83h\83\8d\83O";\r
++*/\r
+             if (file == "last_scan_log.txt")\r
+                 SetLogView(true);\r
+             else\r
+                 SetLogView(false);\r
  \r
              // Start a new thread which will montior and keep the log window up to date if required/\r
-             startLogThread(read_file);            \r
+             try\r
+             {\r
+                 Thread monitor = new Thread(AutoUpdate) { IsBackground = true };\r
+                 monitor.Start();\r
+             }\r
+             catch (Exception exc)\r
+             {\r
+                 MessageBox.Show("startLogThread(): Exception: \n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+             }\r
          }\r
  \r
          /// <summary>\r
              rtf_actLog.AppendText(String.Format("### Install Dir: {0} \n", Application.StartupPath));\r
              rtf_actLog.AppendText(String.Format("### Data Dir: {0} \n", Application.UserAppDataPath));\r
              rtf_actLog.AppendText("#########################################\n\n");\r
-         }\r
  \r
-         /// <summary>\r
-         /// Starts a new thread which runs the autoUpdate function.\r
-         /// </summary>\r
-         /// <param name="file"> File which will be used to populate the Rich text box.</param>\r
-         private void startLogThread(string file)\r
-         {\r
-             try\r
+             // Seutp the log file\r
+             if (scan)\r
              {\r
-                 string logFile = Path.Combine(Path.GetTempPath(), file);\r
-                 if (File.Exists(logFile))\r
-                 {\r
-                     // Start a new thread to run the autoUpdate process\r
-                     monitor = new Thread(autoUpdate);\r
-                     monitor.IsBackground = true;\r
-                     monitor.Start();\r
-                 }\r
-                 else\r
-                     rtf_actLog.AppendText("\n\n\nERROR: The log file could not be found. \nMaybe you cleared your system's tempory folder or maybe you just havn't run an encode yet. \nTried to find the log file in: " + logFile);\r
\r
+                 txt_log.Text = "Scan Log";\r
+                 _readFile = "last_scan_log.txt";\r
              }\r
-             catch (Exception exc)\r
+             else\r
              {\r
-                 MessageBox.Show("startLogThread(): Exception: \n" + exc);\r
+                 _readFile = "last_encode_log.txt";\r
+                 txt_log.Text = "Encode Log";\r
+                 if (_encodeQueue.isEncoding)\r
+                     if ((!_encodeQueue.LastEncode.IsEmpty) && _encodeQueue.LastEncode.Query != String.Empty)\r
+                     {\r
+                         rtf_actLog.AppendText("### CLI Query: " + _encodeQueue.LastEncode.Query + "\n");\r
+                         rtf_actLog.AppendText("### Custom Query: " + _encodeQueue.LastEncode.CustomQuery + "\n\n");\r
+                         rtf_actLog.AppendText("#########################################\n\n");\r
+                     }\r
              }\r
+             _lastUpdate = false;\r
          }\r
  \r
++/*\r
 +        /// <summary>\r
 +        /// Change the log file to be displayed to hb_encode_log.dat\r
 +        /// </summary>\r
 +        /// <param name="sender"></param>\r
 +        /// <param name="e"></param>\r
 +        private void btn_scan_log_Click(object sender, EventArgs e)\r
 +        {\r
 +            if (monitor != null)\r
 +                monitor.Abort();\r
 +\r
 +            rtf_actLog.Clear();\r
 +            read_file = "dvdinfo.dat";\r
 +            displayLogHeader();\r
 +            startLogThread(read_file);\r
 +            txt_log.Text = "\83X\83L\83\83\83\93\83\8d\83O";\r
 +        }\r
 +\r
 +        /// <summary>\r
 +        /// Change the log file to be displayed to dvdinfo.dat\r
 +        /// </summary>\r
 +        /// <param name="sender"></param>\r
 +        /// <param name="e"></param>\r
 +        private void btn_encode_log_Click(object sender, EventArgs e)\r
 +        {\r
 +            if (monitor != null)\r
 +                monitor.Abort();\r
 +\r
 +            rtf_actLog.Clear();\r
 +            read_file = "hb_encode_log.dat";\r
 +            position = 0;\r
 +            displayLogHeader();\r
 +            startLogThread(read_file);\r
 +            txt_log.Text = "\83G\83\93\83R\81[\83h\83\8d\83O";\r
 +        }\r
 +\r
 +        /// <summary>\r
 +        /// Copy to Clipboard\r
 +        /// </summary>\r
 +        /// <param name="sender"></param>\r
 +        /// <param name="e"></param>\r
 +        private void btn_copy_Click(object sender, EventArgs e)\r
 +        {\r
 +            if (rtf_actLog.SelectedText != "")\r
 +                Clipboard.SetDataObject(rtf_actLog.SelectedText, true);\r
 +            else\r
 +                Clipboard.SetDataObject(rtf_actLog.Text, true);\r
 +        }\r
 +\r
 +        /// <summary>\r
 +        /// Updates the log window with any new data which is in the log file.\r
 +        /// This is done every 5 seconds.\r
 +        /// </summary>\r
 +        /// <param name="state"></param>\r
 +        private void autoUpdate(object state)\r
++*/\r
+         private void AutoUpdate(object state)\r
          {\r
              try\r
              {\r
@@@ -43,13 -49,13 +49,13 @@@ namespace Handbrak
              // \r
              // lbl_name\r
              // \r
+             this.lbl_name.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.lbl_name.AutoSize = true;\r
-             this.lbl_name.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.lbl_name.Location = new System.Drawing.Point(14, 20);\r
+             this.lbl_name.Location = new System.Drawing.Point(3, 7);\r
              this.lbl_name.Name = "lbl_name";\r
-             this.lbl_name.Size = new System.Drawing.Size(57, 13);\r
+             this.lbl_name.Size = new System.Drawing.Size(75, 13);\r
              this.lbl_name.TabIndex = 1;\r
 -            this.lbl_name.Text = "Preset Name: ";\r
 +            this.lbl_name.Text = "プリセット名:";\r
              // \r
              // txt_preset_name\r
              // \r
              // \r
              // btn_add\r
              // \r
-             this.btn_add.BackColor = System.Drawing.SystemColors.Control;\r
+             this.btn_add.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.btn_add.BackColor = System.Drawing.Color.Transparent;\r
              this.btn_add.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_add.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_add.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_add.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_add.Location = new System.Drawing.Point(284, 44);\r
+             this.btn_add.Location = new System.Drawing.Point(172, 72);\r
              this.btn_add.Name = "btn_add";\r
-             this.btn_add.Size = new System.Drawing.Size(66, 22);\r
-             this.btn_add.TabIndex = 0;\r
-             this.btn_add.TabStop = false;\r
+             this.btn_add.Size = new System.Drawing.Size(57, 22);\r
+             this.btn_add.TabIndex = 2;\r
 -            this.btn_add.Text = "Add";\r
 +            this.btn_add.Text = "追加";\r
              this.btn_add.UseVisualStyleBackColor = false;\r
              this.btn_add.Click += new System.EventHandler(this.btn_add_Click);\r
              // \r
              // btn_cancel\r
              // \r
-             this.btn_cancel.BackColor = System.Drawing.SystemColors.Control;\r
+             this.btn_cancel.BackColor = System.Drawing.Color.Transparent;\r
              this.btn_cancel.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_cancel.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_cancel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_cancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_cancel.Location = new System.Drawing.Point(212, 44);\r
+             this.btn_cancel.Location = new System.Drawing.Point(235, 72);\r
              this.btn_cancel.Name = "btn_cancel";\r
-             this.btn_cancel.Size = new System.Drawing.Size(66, 22);\r
+             this.btn_cancel.Size = new System.Drawing.Size(57, 22);\r
              this.btn_cancel.TabIndex = 3;\r
-             this.btn_cancel.TabStop = false;\r
 -            this.btn_cancel.Text = "Cancel";\r
 +            this.btn_cancel.Text = "キャンセル";\r
              this.btn_cancel.UseVisualStyleBackColor = false;\r
              this.btn_cancel.Click += new System.EventHandler(this.btn_cancel_Click);\r
              // \r
              this.ShowInTaskbar = false;\r
              this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;\r
              this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;\r
 -            this.Text = "Add Preset";\r
 +            this.Text = "プリセットを追加";\r
              this.TopMost = true;\r
+             this.tableLayoutPanel1.ResumeLayout(false);\r
+             this.tableLayoutPanel1.PerformLayout();\r
              this.ResumeLayout(false);\r
              this.PerformLayout();\r
  \r
@@@ -45,12 -47,11 +47,11 @@@ namespace Handbrak
              // lblProgress\r
              // \r
              this.lblProgress.AutoSize = true;\r
-             this.lblProgress.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.lblProgress.Location = new System.Drawing.Point(93, 38);\r
+             this.lblProgress.Location = new System.Drawing.Point(73, 29);\r
              this.lblProgress.Name = "lblProgress";\r
-             this.lblProgress.Size = new System.Drawing.Size(78, 13);\r
+             this.lblProgress.Size = new System.Drawing.Size(98, 13);\r
              this.lblProgress.TabIndex = 10;\r
 -            this.lblProgress.Text = "Awaiting Download";\r
 +            this.lblProgress.Text = "\83_\83E\83\93\83\8d\81[\83h\82Ì\90i\92»";\r
              // \r
              // progress_download\r
              // \r
              this.progress_download.Style = System.Windows.Forms.ProgressBarStyle.Continuous;\r
              this.progress_download.TabIndex = 9;\r
              // \r
-             // PictureBox1\r
-             // \r
-             this.PictureBox1.Image = global::Handbrake.Properties.Resources.logo64;\r
-             this.PictureBox1.InitialImage = null;\r
-             this.PictureBox1.Location = new System.Drawing.Point(12, 12);\r
-             this.PictureBox1.Name = "PictureBox1";\r
-             this.PictureBox1.Size = new System.Drawing.Size(75, 64);\r
-             this.PictureBox1.TabIndex = 25;\r
-             this.PictureBox1.TabStop = false;\r
-             // \r
              // btn_cancel\r
              // \r
+             this.btn_cancel.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
              this.btn_cancel.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_cancel.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_cancel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_cancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_cancel.Location = new System.Drawing.Point(321, 54);\r
+             this.btn_cancel.Location = new System.Drawing.Point(275, 45);\r
              this.btn_cancel.Name = "btn_cancel";\r
-             this.btn_cancel.Size = new System.Drawing.Size(90, 22);\r
-             this.btn_cancel.TabIndex = 56;\r
+             this.btn_cancel.Size = new System.Drawing.Size(71, 22);\r
+             this.btn_cancel.TabIndex = 26;\r
+             this.btn_cancel.TabStop = false;\r
 -            this.btn_cancel.Text = "Cancel";\r
 +            this.btn_cancel.Text = "\83L\83\83\83\93\83Z\83\8b";\r
-             this.btn_cancel.UseVisualStyleBackColor = false;\r
+             this.btn_cancel.UseVisualStyleBackColor = true;\r
              this.btn_cancel.Click += new System.EventHandler(this.btn_cancel_Click);\r
              // \r
+             // tableLayoutPanel1\r
+             // \r
+             this.tableLayoutPanel1.ColumnCount = 2;\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.Controls.Add(this.PictureBox1, 0, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.btn_cancel, 1, 2);\r
+             this.tableLayoutPanel1.Controls.Add(this.progress_download, 1, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.lblProgress, 1, 1);\r
+             this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;\r
+             this.tableLayoutPanel1.Location = new System.Drawing.Point(9, 9);\r
+             this.tableLayoutPanel1.Name = "tableLayoutPanel1";\r
+             this.tableLayoutPanel1.RowCount = 3;\r
+             this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel1.Size = new System.Drawing.Size(349, 70);\r
+             this.tableLayoutPanel1.TabIndex = 27;\r
+             // \r
+             // PictureBox1\r
+             // \r
+             this.PictureBox1.Image = global::Handbrake.Properties.Resources.logo64;\r
+             this.PictureBox1.InitialImage = null;\r
+             this.PictureBox1.Location = new System.Drawing.Point(3, 3);\r
+             this.PictureBox1.Name = "PictureBox1";\r
+             this.tableLayoutPanel1.SetRowSpan(this.PictureBox1, 3);\r
+             this.PictureBox1.Size = new System.Drawing.Size(64, 64);\r
+             this.PictureBox1.TabIndex = 25;\r
+             this.PictureBox1.TabStop = false;\r
+             // \r
              // frmDownload\r
              // \r
-             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F);\r
+             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
              this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
-             this.ClientSize = new System.Drawing.Size(426, 87);\r
-             this.Controls.Add(this.btn_cancel);\r
-             this.Controls.Add(this.PictureBox1);\r
-             this.Controls.Add(this.lblProgress);\r
-             this.Controls.Add(this.progress_download);\r
-             this.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.AutoSize = true;\r
+             this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;\r
+             this.ClientSize = new System.Drawing.Size(367, 88);\r
+             this.Controls.Add(this.tableLayoutPanel1);\r
+             this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;\r
              this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));\r
+             this.MaximizeBox = false;\r
+             this.MinimizeBox = false;\r
              this.Name = "frmDownload";\r
+             this.Padding = new System.Windows.Forms.Padding(9);\r
              this.ShowIcon = false;\r
+             this.ShowInTaskbar = false;\r
              this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
 -            this.Text = "Downloading Update";\r
 +            this.Text = "\83A\83b\83v\83f\81[\83g\82Ì\83_\83E\83\93\83\8d\81[\83h";\r
+             this.tableLayoutPanel1.ResumeLayout(false);\r
+             this.tableLayoutPanel1.PerformLayout();\r
              ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).EndInit();\r
              this.ResumeLayout(false);\r
-             this.PerformLayout();\r
  \r
          }\r
  \r
@@@ -98,12 -97,11 +97,11 @@@ namespace Handbrak
  \r
          private void downloadComplete()\r
          {\r
 -            lblProgress.Text = "Download Complete";\r
 -            btn_cancel.Text = "Close";\r
 +            lblProgress.Text = "\83_\83E\83\93\83\8d\81[\83h\8a®\97¹";\r
 +            btn_cancel.Text = "\95Â\82\82é";\r
  \r
              string tempPath = Path.Combine(Path.GetTempPath(), "handbrake-setup.exe");\r
\r
-             Process startInstall = Process.Start(tempPath);\r
+             Process.Start(tempPath);\r
              this.Close();\r
              Application.Exit();\r
          }\r
@@@ -35,22 -38,14 +38,14 @@@ namespace Handbrak
          private void InitializeComponent()\r
          {\r
              this.components = new System.ComponentModel.Container();\r
-             System.Windows.Forms.Label Label38;\r
              System.Windows.Forms.ContextMenuStrip notifyIconMenu;\r
              System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));\r
 -            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();\r
 +            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();\r
              this.btn_restore = new System.Windows.Forms.ToolStripMenuItem();\r
              this.DVD_Save = new System.Windows.Forms.SaveFileDialog();\r
-             this.File_Save = new System.Windows.Forms.SaveFileDialog();\r
              this.ToolTip = new System.Windows.Forms.ToolTip(this.components);\r
-             this.drop_chapterFinish = new System.Windows.Forms.ComboBox();\r
-             this.drop_chapterStart = new System.Windows.Forms.ComboBox();\r
-             this.drp_dvdtitle = new System.Windows.Forms.ComboBox();\r
-             this.text_source = new System.Windows.Forms.TextBox();\r
              this.text_destination = new System.Windows.Forms.TextBox();\r
              this.drp_videoEncoder = new System.Windows.Forms.ComboBox();\r
-             this.drp_audbit_1 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audsr_1 = new System.Windows.Forms.ComboBox();\r
              this.check_largeFile = new System.Windows.Forms.CheckBox();\r
              this.check_turbo = new System.Windows.Forms.CheckBox();\r
              this.drp_videoFramerate = new System.Windows.Forms.ComboBox();\r
              this.data_chpt = new System.Windows.Forms.DataGridView();\r
              this.number = new System.Windows.Forms.DataGridViewTextBoxColumn();\r
              this.name = new System.Windows.Forms.DataGridViewTextBoxColumn();\r
+             this.ChaptersMenu = new System.Windows.Forms.ContextMenuStrip(this.components);\r
+             this.mnu_resetChapters = new System.Windows.Forms.ToolStripMenuItem();\r
              this.btn_addPreset = new System.Windows.Forms.Button();\r
              this.btn_removePreset = new System.Windows.Forms.Button();\r
-             this.drp_audmix_2 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audenc_1 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audenc_2 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audbit_2 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audsr_2 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audsr_3 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audbit_3 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audenc_3 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audmix_3 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audsr_4 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audbit_4 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audenc_4 = new System.Windows.Forms.ComboBox();\r
-             this.drp_audmix_4 = new System.Windows.Forms.ComboBox();\r
              this.drop_format = new System.Windows.Forms.ComboBox();\r
++/*\r
 +            this.check_customCrop = new System.Windows.Forms.RadioButton();\r
 +            this.check_autoCrop = new System.Windows.Forms.RadioButton();\r
 +            this.check_Cabac = new System.Windows.Forms.CheckBox();\r
 +            this.check_noDCTDecimate = new System.Windows.Forms.CheckBox();\r
 +            this.check_noFastPSkip = new System.Windows.Forms.CheckBox();\r
 +            this.drop_trellis = new System.Windows.Forms.ComboBox();\r
 +            this.drop_deblockBeta = new System.Windows.Forms.ComboBox();\r
 +            this.drop_deblockAlpha = new System.Windows.Forms.ComboBox();\r
 +            this.check_8x8DCT = new System.Windows.Forms.CheckBox();\r
 +            this.drop_analysis = new System.Windows.Forms.ComboBox();\r
 +            this.drop_subpixelMotionEstimation = new System.Windows.Forms.ComboBox();\r
 +            this.drop_MotionEstimationRange = new System.Windows.Forms.ComboBox();\r
 +            this.drop_MotionEstimationMethod = new System.Windows.Forms.ComboBox();\r
 +            this.check_pyrmidalBFrames = new System.Windows.Forms.CheckBox();\r
 +            this.check_weightedBFrames = new System.Windows.Forms.CheckBox();\r
 +            this.drop_directPrediction = new System.Windows.Forms.ComboBox();\r
 +            this.drop_bFrames = new System.Windows.Forms.ComboBox();\r
 +            this.drop_refFrames = new System.Windows.Forms.ComboBox();\r
 +            this.check_mixedReferences = new System.Windows.Forms.CheckBox();\r
 +            this.check_forced = new System.Windows.Forms.CheckBox();\r
 +            this.lbl_src_res = new System.Windows.Forms.Label();\r
 +            this.lbl_duration = new System.Windows.Forms.Label();\r
 +            this.label_duration = new System.Windows.Forms.Label();\r
 +            this.label7 = new System.Windows.Forms.Label();\r
++*/\r
+             this.drop_chapterFinish = new System.Windows.Forms.ComboBox();\r
+             this.drop_chapterStart = new System.Windows.Forms.ComboBox();\r
+             this.drop_angle = new System.Windows.Forms.ComboBox();\r
+             this.drp_dvdtitle = new System.Windows.Forms.ComboBox();\r
              this.DVD_Open = new System.Windows.Forms.FolderBrowserDialog();\r
              this.File_Open = new System.Windows.Forms.OpenFileDialog();\r
              this.ISO_Open = new System.Windows.Forms.OpenFileDialog();\r
              this.label5 = new System.Windows.Forms.Label();\r
              this.Label47 = new System.Windows.Forms.Label();\r
              this.Label3 = new System.Windows.Forms.Label();\r
++/*\r
 +            this.TabPage2 = new System.Windows.Forms.TabPage();\r
 +            this.lbl_drc4 = new System.Windows.Forms.Label();\r
 +            this.lbl_drc3 = new System.Windows.Forms.Label();\r
 +            this.lbl_drc2 = new System.Windows.Forms.Label();\r
 +            this.lbl_drc1 = new System.Windows.Forms.Label();\r
 +            this.trackBar4 = new System.Windows.Forms.TrackBar();\r
 +            this.drp_track4Audio = new System.Windows.Forms.ComboBox();\r
 +            this.lbl_t4 = new System.Windows.Forms.Label();\r
 +            this.trackBar3 = new System.Windows.Forms.TrackBar();\r
 +            this.drp_track3Audio = new System.Windows.Forms.ComboBox();\r
 +            this.lbl_t3 = new System.Windows.Forms.Label();\r
 +            this.trackBar2 = new System.Windows.Forms.TrackBar();\r
 +            this.label16 = new System.Windows.Forms.Label();\r
 +            this.trackBar1 = new System.Windows.Forms.TrackBar();\r
 +            this.groupBox5 = new System.Windows.Forms.GroupBox();\r
 +            this.groupBox3 = new System.Windows.Forms.GroupBox();\r
 +            this.label68 = new System.Windows.Forms.Label();\r
 +            this.label67 = new System.Windows.Forms.Label();\r
 +            this.label66 = new System.Windows.Forms.Label();\r
 +            this.label65 = new System.Windows.Forms.Label();\r
 +            this.label14 = new System.Windows.Forms.Label();\r
 +            this.drp_track2Audio = new System.Windows.Forms.ComboBox();\r
 +            this.label28 = new System.Windows.Forms.Label();\r
 +            this.label27 = new System.Windows.Forms.Label();\r
 +            this.Label19 = new System.Windows.Forms.Label();\r
 +            this.Label20 = new System.Windows.Forms.Label();\r
 +            this.drp_track1Audio = new System.Windows.Forms.ComboBox();\r
 +            this.Label32 = new System.Windows.Forms.Label();\r
 +            this.TabPage3 = new System.Windows.Forms.TabPage();\r
++*/\r
+             this.tab_audio = new System.Windows.Forms.TabPage();\r
+             this.AudioSettings = new Handbrake.Controls.AudioPanel();\r
+             this.AudioMenuRowHeightHack = new System.Windows.Forms.ImageList(this.components);\r
+             this.tab_video = new System.Windows.Forms.TabPage();\r
+             this.radio_cq = new System.Windows.Forms.RadioButton();\r
+             this.radio_avgBitrate = new System.Windows.Forms.RadioButton();\r
+             this.radio_targetFilesize = new System.Windows.Forms.RadioButton();\r
              this.label25 = new System.Windows.Forms.Label();\r
-             this.check_grayscale = new System.Windows.Forms.CheckBox();\r
-             this.Label22 = new System.Windows.Forms.Label();\r
              this.check_2PassEncode = new System.Windows.Forms.CheckBox();\r
              this.Label2 = new System.Windows.Forms.Label();\r
-             this.Label42 = new System.Windows.Forms.Label();\r
              this.SliderValue = new System.Windows.Forms.Label();\r
              this.Label46 = new System.Windows.Forms.Label();\r
-             this.Label40 = new System.Windows.Forms.Label();\r
-             this.TabPage1 = new System.Windows.Forms.TabPage();\r
-             this.slider_deblock = new System.Windows.Forms.TrackBar();\r
-             this.label8 = new System.Windows.Forms.Label();\r
-             this.lbl_deblockVal = new System.Windows.Forms.Label();\r
-             this.check_decomb = new System.Windows.Forms.CheckBox();\r
-             this.label6 = new System.Windows.Forms.Label();\r
-             this.drp_anamorphic = new System.Windows.Forms.ComboBox();\r
-             this.text_bottom = new System.Windows.Forms.NumericUpDown();\r
-             this.text_top = new System.Windows.Forms.NumericUpDown();\r
-             this.text_left = new System.Windows.Forms.NumericUpDown();\r
-             this.text_right = new System.Windows.Forms.NumericUpDown();\r
-             this.label26 = new System.Windows.Forms.Label();\r
-             this.Label56 = new System.Windows.Forms.Label();\r
-             this.lbl_Aspect = new System.Windows.Forms.Label();\r
-             this.Label91 = new System.Windows.Forms.Label();\r
-             this.Label55 = new System.Windows.Forms.Label();\r
-             this.label24 = new System.Windows.Forms.Label();\r
-             this.drp_deNoise = new System.Windows.Forms.ComboBox();\r
-             this.label11 = new System.Windows.Forms.Label();\r
-             this.check_detelecine = new System.Windows.Forms.CheckBox();\r
-             this.label4 = new System.Windows.Forms.Label();\r
-             this.drp_deInterlace_option = new System.Windows.Forms.ComboBox();\r
-             this.Label1 = new System.Windows.Forms.Label();\r
-             this.Label53 = new System.Windows.Forms.Label();\r
-             this.Label52 = new System.Windows.Forms.Label();\r
-             this.Label51 = new System.Windows.Forms.Label();\r
-             this.Label15 = new System.Windows.Forms.Label();\r
+             this.tab_picture = new System.Windows.Forms.TabPage();\r
+             this.PictureSettings = new Handbrake.Controls.PictureSettings();\r
              this.Check_ChapterMarkers = new System.Windows.Forms.CheckBox();\r
-             this.advancedOptions = new System.Windows.Forms.TabControl();\r
+             this.tabs_panel = new System.Windows.Forms.TabControl();\r
+             this.tab_filters = new System.Windows.Forms.TabPage();\r
+             this.Filters = new Handbrake.Controls.Filters();\r
+             this.tab_subtitles = new System.Windows.Forms.TabPage();\r
+             this.Subtitles = new Handbrake.Controls.Subtitles();\r
              this.tab_chapters = new System.Windows.Forms.TabPage();\r
+             this.btn_importChapters = new System.Windows.Forms.Button();\r
              this.label31 = new System.Windows.Forms.Label();\r
-             this.h264Tab = new System.Windows.Forms.TabPage();\r
-             this.label43 = new System.Windows.Forms.Label();\r
-             this.btn_reset = new System.Windows.Forms.Button();\r
-             this.rtf_x264Query = new System.Windows.Forms.RichTextBox();\r
-             this.lbl_trellis = new System.Windows.Forms.Label();\r
-             this.label41 = new System.Windows.Forms.Label();\r
-             this.panel3 = new System.Windows.Forms.Panel();\r
-             this.panel1 = new System.Windows.Forms.Panel();\r
-             this.panel2 = new System.Windows.Forms.Panel();\r
-             this.label45 = new System.Windows.Forms.Label();\r
-             this.label48 = new System.Windows.Forms.Label();\r
-             this.label49 = new System.Windows.Forms.Label();\r
-             this.label54 = new System.Windows.Forms.Label();\r
-             this.lbl_direct_prediction = new System.Windows.Forms.Label();\r
-             this.label62 = new System.Windows.Forms.Label();\r
-             this.label64 = new System.Windows.Forms.Label();\r
-             this.tabPage4 = new System.Windows.Forms.TabPage();\r
+             this.tab_advanced = new System.Windows.Forms.TabPage();\r
+             this.x264Panel = new Handbrake.Controls.x264Panel();\r
+             this.tab_query = new System.Windows.Forms.TabPage();\r
              this.btn_clear = new System.Windows.Forms.Button();\r
              this.label34 = new System.Windows.Forms.Label();\r
              this.btn_generate_Query = new System.Windows.Forms.Button();\r
              this.presets_menu.SuspendLayout();\r
              this.toolStrip1.SuspendLayout();\r
              this.StatusStrip.SuspendLayout();\r
+             this.tableLayoutPanel2.SuspendLayout();\r
+             this.tableLayoutPanel3.SuspendLayout();\r
+             this.tableLayoutPanel1.SuspendLayout();\r
+             this.flowLayoutPanel1.SuspendLayout();\r
              this.SuspendLayout();\r
              // \r
++/*\r
 +            // Label38\r
 +            // \r
 +            Label38.AutoSize = true;\r
 +            Label38.BackColor = System.Drawing.Color.Transparent;\r
 +            Label38.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            Label38.Location = new System.Drawing.Point(334, 35);\r
 +            Label38.Name = "Label38";\r
 +            Label38.Size = new System.Drawing.Size(82, 13);\r
 +            Label38.TabIndex = 11;\r
 +            Label38.Text = "\8fo\97Í\83T\83C\83Y(MB):";\r
 +            // \r
++*/\r
              // notifyIconMenu\r
              // \r
              notifyIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
              this.ToolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;\r
              this.ToolTip.ToolTipTitle = "Tooltip";\r
              // \r
++/*\r
 +            // drop_chapterFinish\r
 +            // \r
 +            this.drop_chapterFinish.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drop_chapterFinish.FormattingEnabled = true;\r
 +            this.drop_chapterFinish.Location = new System.Drawing.Point(398, 48);\r
 +            this.drop_chapterFinish.Name = "drop_chapterFinish";\r
 +            this.drop_chapterFinish.Size = new System.Drawing.Size(69, 21);\r
 +            this.drop_chapterFinish.TabIndex = 10;\r
 +            this.drop_chapterFinish.Text = "Auto";\r
 +            this.ToolTip.SetToolTip(this.drop_chapterFinish, "\83G\83\93\83R\81[\83h\82·\82é\83`\83\83\83v\83^\81[\82ð\91I\91ð\82µ\82Ü\82·\81B\83f\83t\83H\83\8b\83g\82Å\82Í\82·\82×\82Ä\82Ì\83`\83\83\83v\83^\81[\82ª\91I\91ð\82³\82ê\82Ü\82·");\r
 +            this.drop_chapterFinish.SelectedIndexChanged += new System.EventHandler(this.drop_chapterFinish_SelectedIndexChanged);\r
 +            // \r
 +            // drop_chapterStart\r
 +            // \r
 +            this.drop_chapterStart.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drop_chapterStart.FormattingEnabled = true;\r
 +            this.drop_chapterStart.Location = new System.Drawing.Point(295, 48);\r
 +            this.drop_chapterStart.Name = "drop_chapterStart";\r
 +            this.drop_chapterStart.Size = new System.Drawing.Size(69, 21);\r
 +            this.drop_chapterStart.TabIndex = 9;\r
 +            this.drop_chapterStart.Text = "Auto";\r
 +            this.ToolTip.SetToolTip(this.drop_chapterStart, "\83G\83\93\83R\81[\83h\82·\82é\83`\83\83\83v\83^\81[\82ð\91I\91ð\82µ\82Ü\82·\81B\83f\83t\83H\83\8b\83g\82Å\82Í\82·\82×\82Ä\82Ì\83`\83\83\83v\83^\81[\82ª\91I\91ð\82³\82ê\82Ü\82·");\r
 +            this.drop_chapterStart.SelectedIndexChanged += new System.EventHandler(this.drop_chapterStart_SelectedIndexChanged);\r
 +            // \r
 +            // drp_dvdtitle\r
 +            // \r
 +            this.drp_dvdtitle.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_dvdtitle.FormattingEnabled = true;\r
 +            this.drp_dvdtitle.Items.AddRange(new object[] {\r
 +            "Automatic"});\r
 +            this.drp_dvdtitle.Location = new System.Drawing.Point(99, 48);\r
 +            this.drp_dvdtitle.Name = "drp_dvdtitle";\r
 +            this.drp_dvdtitle.Size = new System.Drawing.Size(119, 21);\r
 +            this.drp_dvdtitle.TabIndex = 7;\r
 +            this.drp_dvdtitle.Text = "Automatic";\r
 +            this.ToolTip.SetToolTip(this.drp_dvdtitle, "\83G\83\93\83R\81[\83h\82·\82é\83^\83C\83g\83\8b\82ð\91I\91ð\82µ\82Ü\82·\81B\83f\83t\83H\83\8b\83g\82Å\82Í\8dÅ\82à\92·\82¢\83^\83C\83g\83\8b\82ª\91I\91ð\82³\82ê\82Ü\82·");\r
 +            this.drp_dvdtitle.SelectedIndexChanged += new System.EventHandler(this.drp_dvdtitle_SelectedIndexChanged);\r
 +            this.drp_dvdtitle.Click += new System.EventHandler(this.drp_dvdtitle_Click);\r
 +            // \r
 +            // text_source\r
 +            // \r
 +            this.text_source.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.text_source.Location = new System.Drawing.Point(99, 18);\r
 +            this.text_source.Name = "text_source";\r
 +            this.text_source.Size = new System.Drawing.Size(584, 21);\r
 +            this.text_source.TabIndex = 1;\r
 +            this.text_source.Text = "\81u\95Ï\8a·\8c³\81v\82ð\83N\83\8a\83b\83N\82µ\82Ä\8ew\92è";\r
 +            this.ToolTip.SetToolTip(this.text_source, "\95Ï\8a·\8c³\82Ì\83t\83@\83C\83\8b\82â\83t\83H\83\8b\83_\81ADVD\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // text_destination\r
 +            // \r
 +            this.text_destination.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.text_destination.Location = new System.Drawing.Point(99, 18);\r
++*/\r
+             // text_destination\r
+             // \r
+             this.text_destination.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)\r
+                         | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.text_destination.Location = new System.Drawing.Point(36, 3);\r
              this.text_destination.Name = "text_destination";\r
-             this.text_destination.Size = new System.Drawing.Size(503, 21);\r
+             this.text_destination.Size = new System.Drawing.Size(603, 21);\r
              this.text_destination.TabIndex = 1;\r
 -            this.ToolTip.SetToolTip(this.text_destination, "Location where the encoded file will be saved.");\r
 +            this.ToolTip.SetToolTip(this.text_destination, "\83G\83\93\83R\81[\83h\82µ\82½\83t\83@\83C\83\8b\82Ì\95Û\91\90æ\82ð\8ew\92è\82µ\82Ü\82·");\r
              this.text_destination.TextChanged += new System.EventHandler(this.text_destination_TextChanged);\r
              // \r
              // drp_videoEncoder\r
              this.drp_videoEncoder.FormattingEnabled = true;\r
              this.drp_videoEncoder.Items.AddRange(new object[] {\r
              "MPEG-4 (FFmpeg)",\r
-             "MPEG-4 (XviD)",\r
              "H.264 (x264)",\r
              "VP3 (Theora)"});\r
 -            this.drp_videoEncoder.Location = new System.Drawing.Point(125, 35);\r
 +            this.drp_videoEncoder.Location = new System.Drawing.Point(125, 32);\r
              this.drp_videoEncoder.Name = "drp_videoEncoder";\r
              this.drp_videoEncoder.Size = new System.Drawing.Size(126, 21);\r
              this.drp_videoEncoder.TabIndex = 1;\r
 -            this.ToolTip.SetToolTip(this.drp_videoEncoder, "Select a video encoder");\r
 +            this.ToolTip.SetToolTip(this.drp_videoEncoder, "\93®\89æ\83G\83\93\83R\81[\83_\82ð\91I\91ð\82µ\82Ü\82·");\r
              this.drp_videoEncoder.SelectedIndexChanged += new System.EventHandler(this.drp_videoEncoder_SelectedIndexChanged);\r
              // \r
++/*\r
 +            // drp_audbit_1\r
 +            // \r
 +            this.drp_audbit_1.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audbit_1.FormattingEnabled = true;\r
 +            this.drp_audbit_1.Items.AddRange(new object[] {\r
 +            "32",\r
 +            "40",\r
 +            "48",\r
 +            "56",\r
 +            "64",\r
 +            "80",\r
 +            "86",\r
 +            "112",\r
 +            "128",\r
 +            "160"});\r
 +            this.drp_audbit_1.Location = new System.Drawing.Point(546, 49);\r
 +            this.drp_audbit_1.Name = "drp_audbit_1";\r
 +            this.drp_audbit_1.Size = new System.Drawing.Size(70, 20);\r
 +            this.drp_audbit_1.TabIndex = 11;\r
 +            this.drp_audbit_1.Text = "160";\r
 +            this.ToolTip.SetToolTip(this.drp_audbit_1, "\89¹\90º\82Ì\83r\83b\83g\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // drp_audsr_1\r
 +            // \r
 +            this.drp_audsr_1.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audsr_1.FormattingEnabled = true;\r
 +            this.drp_audsr_1.Items.AddRange(new object[] {\r
 +            "Auto",\r
 +            "48",\r
 +            "44.1",\r
 +            "32",\r
 +            "24",\r
 +            "22.05"});\r
 +            this.drp_audsr_1.Location = new System.Drawing.Point(488, 49);\r
 +            this.drp_audsr_1.Name = "drp_audsr_1";\r
 +            this.drp_audsr_1.Size = new System.Drawing.Size(55, 20);\r
 +            this.drp_audsr_1.TabIndex = 9;\r
 +            this.drp_audsr_1.Text = "Auto";\r
 +            this.ToolTip.SetToolTip(this.drp_audsr_1, "\89¹\90º\82Ì\83T\83\93\83v\83\8a\83\93\83O\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
++*/\r
              // check_largeFile\r
              // \r
+             this.check_largeFile.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.check_largeFile.AutoSize = true;\r
              this.check_largeFile.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.check_largeFile.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_largeFile.Location = new System.Drawing.Point(193, 20);\r
 +            this.check_largeFile.Name = "check_largeFile";\r
 +            this.check_largeFile.Size = new System.Drawing.Size(83, 17);\r
++*/\r
+             this.check_largeFile.Location = new System.Drawing.Point(179, 5);\r
+             this.check_largeFile.Name = "check_largeFile";\r
+             this.check_largeFile.Size = new System.Drawing.Size(91, 17);\r
              this.check_largeFile.TabIndex = 4;\r
 -            this.check_largeFile.Text = "Large file size";\r
 -            this.ToolTip.SetToolTip(this.check_largeFile, "Caution: This option will likely break device compatibility with all but the Appl" +\r
 -                    "eTV Take 2.\r\nChecking this box enables a 64bit mp4 file which can be over 4GB.");\r
 +            this.check_largeFile.Text = "64\83r\83b\83gMP4";\r
 +            this.ToolTip.SetToolTip(this.check_largeFile, "64\83r\83b\83gMP4\82ð\8dì\90¬\82·\82é\82±\82Æ\82Å\81A4GB\88È\8fã\82Ì\83T\83C\83Y\82Ì\93®\89æ\83t\83@\83C\83\8b\82ª\8dì\90¬\89Â\94\\82É\82È\82è\82Ü\82·\81B\r\n\82½\82¾\82µ\81AAppleTV Take 2\88È\8aO\82Å\82Ì\8dÄ\90\8cÝ\8a·\90«\82ª\96³\82­\82È\82é\89Â\94\\90«" +\r
 +                    "\82ª\82 \82è\82Ü\82·");\r
              this.check_largeFile.UseVisualStyleBackColor = false;\r
              // \r
              // check_turbo\r
              this.check_turbo.AutoSize = true;\r
              this.check_turbo.BackColor = System.Drawing.Color.Transparent;\r
              this.check_turbo.Enabled = false;\r
++/*\r
 +            this.check_turbo.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_turbo.Location = new System.Drawing.Point(37, 170);\r
++*/\r
+             this.check_turbo.Location = new System.Drawing.Point(146, 123);\r
              this.check_turbo.Name = "check_turbo";\r
-             this.check_turbo.Size = new System.Drawing.Size(115, 17);\r
+             this.check_turbo.Size = new System.Drawing.Size(101, 17);\r
              this.check_turbo.TabIndex = 7;\r
              this.check_turbo.Text = "Turbo first Pass";\r
 -            this.ToolTip.SetToolTip(this.check_turbo, "Makes the first pass of a 2 pass encode faster.");\r
 +            this.ToolTip.SetToolTip(this.check_turbo, "\83`\83F\83b\83N\82ð\93ü\82ê\82é\82Æ\81A2\83p\83X\83G\83\93\83R\81[\83h\82Ì\8eg\97p\8e\9e\82É1\89ñ\96Ú\82Ì\83p\83X\82ð\8d\82\91¬\82É\8ds\82¢\82Ü\82·");\r
              this.check_turbo.UseVisualStyleBackColor = false;\r
              // \r
              // drp_videoFramerate\r
              this.drp_videoFramerate.Name = "drp_videoFramerate";\r
              this.drp_videoFramerate.Size = new System.Drawing.Size(126, 21);\r
              this.drp_videoFramerate.TabIndex = 2;\r
 -            this.ToolTip.SetToolTip(this.drp_videoFramerate, "Can be left to \"Same as source\" in most cases.");\r
++/*\r
 +            this.drp_videoFramerate.Text = "Same as source";\r
 +            this.ToolTip.SetToolTip(this.drp_videoFramerate, "\92Ê\8fí\82Í\81uSame as source\81v\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // slider_videoQuality\r
 +            // \r
 +            this.slider_videoQuality.Location = new System.Drawing.Point(468, 84);\r
++*/\r
++            this.ToolTip.SetToolTip(this.drp_videoFramerate, "\92Ê\8fí\82Í\81uSame as source\81v\82ð\91I\91ð\82µ\82Ü\82·");\r
+             // \r
+             // slider_videoQuality\r
+             // \r
+             this.slider_videoQuality.Enabled = false;\r
+             this.slider_videoQuality.Location = new System.Drawing.Point(347, 120);\r
+             this.slider_videoQuality.Margin = new System.Windows.Forms.Padding(0);\r
              this.slider_videoQuality.Maximum = 100;\r
              this.slider_videoQuality.Name = "slider_videoQuality";\r
-             this.slider_videoQuality.Size = new System.Drawing.Size(167, 42);\r
+             this.slider_videoQuality.Size = new System.Drawing.Size(322, 45);\r
              this.slider_videoQuality.TabIndex = 14;\r
              this.slider_videoQuality.TickFrequency = 17;\r
 -            this.ToolTip.SetToolTip(this.slider_videoQuality, "Set the quality level of the video. Typical sane values are between 59~63%. \r\n>70" +\r
 -                    "% will likely result in the output file being larger than the input file.");\r
++/*\r
 +            this.ToolTip.SetToolTip(this.slider_videoQuality, "\93®\89æ\82Ì\95i\8e¿\83\8c\83x\83\8b\82ð\91I\91ð\82µ\82Ü\82·\81B70\81\93\92ö\93x\82ª\91½\82­\82Ì\83P\81[\83X\82Å\97Ç\8dD\82Å\82·");\r
 +            this.slider_videoQuality.Scroll += new System.EventHandler(this.slider_videoQuality_Scroll);\r
 +            // \r
 +            // text_filesize\r
 +            // \r
 +            this.text_filesize.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.text_filesize.Location = new System.Drawing.Point(476, 33);\r
 +            this.text_filesize.Name = "text_filesize";\r
 +            this.text_filesize.Size = new System.Drawing.Size(81, 21);\r
 +            this.text_filesize.TabIndex = 12;\r
 +            this.ToolTip.SetToolTip(this.text_filesize, "\83G\83\93\83R\81[\83h\8cã\82Ì\8aó\96]\83t\83@\83C\83\8b\83T\83C\83Y\82ð\8ew\92è\82µ\82Ü\82·");\r
 +            this.text_filesize.TextChanged += new System.EventHandler(this.text_filesize_TextChanged);\r
 +            // \r
 +            // text_bitrate\r
 +            // \r
 +            this.text_bitrate.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.text_bitrate.Location = new System.Drawing.Point(476, 58);\r
 +            this.text_bitrate.Name = "text_bitrate";\r
 +            this.text_bitrate.Size = new System.Drawing.Size(81, 21);\r
 +            this.text_bitrate.TabIndex = 10;\r
 +            this.ToolTip.SetToolTip(this.text_bitrate, "\93®\89æ\82Ì\83r\83b\83g\83\8c\81[\83g\82ð\90Ý\92è\82µ\82Ü\82·");\r
 +            this.text_bitrate.TextChanged += new System.EventHandler(this.text_bitrate_TextChanged);\r
 +            // \r
 +            // drp_subtitle\r
 +            // \r
 +            this.drp_subtitle.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_subtitle.FormattingEnabled = true;\r
 +            this.drp_subtitle.Items.AddRange(new object[] {\r
 +            "None",\r
 +            "Autoselect"});\r
 +            this.drp_subtitle.Location = new System.Drawing.Point(79, 225);\r
 +            this.drp_subtitle.Name = "drp_subtitle";\r
 +            this.drp_subtitle.Size = new System.Drawing.Size(138, 21);\r
 +            this.drp_subtitle.TabIndex = 43;\r
 +            this.drp_subtitle.Text = "None";\r
 +            this.ToolTip.SetToolTip(this.drp_subtitle, "\8e\9a\96\8b\82Ì\8c¾\8cê\82ð\8ew\92è\82µ\82Ü\82·\81B\r\nAutoselect\82ð\91I\91ð\82µ\82½\8fê\8d\87\81A1\89ñ\96Ú\82Ì\83p\83X\82Å\8e\9a\96\8b\82ð\83X\83L\83\83\83\93\82µ\81A\82»\82Ì\82¤\82¿\r\n\8e\9e\8aÔ\93I\82É10\81\93\88È\89º\82µ\82©\8eg\82í\82ê\82Ä\82¢\82È\82¢\82à\82Ì\82ð\91I\91ð\82µ\82Ü\82·\81B" +\r
 +                    "\r\n\82±\82ê\82É\82æ\82è\81A\92Z\82¢\8c¾\8cê\83Z\83O\83\81\83\93\83g\82Ì\82½\82ß\82É\8e\9a\96\8b\82ð\94z\92u\82·\82é\82±\82Æ\82ª\82Å\82«\82Ü\82·\81B\82±\82ê\82Í\r\n\81u\8b­\90§\93I\82É\8e\9a\96\8b\82Ì\82Ý\82É\82·\82é\81v\82Æ\95¹\97p\82·\82é\82Ì\82ª\8dD\82Ü\82µ\82¢\82æ\82¤\82Å\82·");\r
 +            this.drp_subtitle.SelectedIndexChanged += new System.EventHandler(this.drp_subtitle_SelectedIndexChanged);\r
++*/\r
++            this.ToolTip.SetToolTip(this.slider_videoQuality, "\93®\89æ\82Ì\95i\8e¿\83\8c\83x\83\8b\82ð\91I\91ð\82µ\82Ü\82·\81B59\81`63\81\93\82ª\93K\90Ø\82È\92l\82Å\82·\81B70\81\93\82æ\82è\91å\82«\82¢\92l\82ð\91I\91ð\82·\82é\82Æ\81A\8fo\97Í\83t\83@\83C\83\8b\82ª\93ü\97Í\83t\83@\83C\83\8b\82æ\82è\82à\91å\82«\82­\82È\82é\82©\82à\82µ\82ê\82Ü\82¹\82ñ\81B");\r
+             this.slider_videoQuality.ValueChanged += new System.EventHandler(this.slider_videoQuality_Scroll);\r
+             // \r
+             // text_filesize\r
+             // \r
+             this.text_filesize.Enabled = false;\r
+             this.text_filesize.Location = new System.Drawing.Point(482, 36);\r
+             this.text_filesize.Name = "text_filesize";\r
+             this.text_filesize.Size = new System.Drawing.Size(81, 21);\r
+             this.text_filesize.TabIndex = 12;\r
 -            this.ToolTip.SetToolTip(this.text_filesize, "Set the file size you wish the encoded file to be.");\r
++            this.ToolTip.SetToolTip(this.text_filesize, "\83G\83\93\83R\81[\83h\8cã\82Ì\83t\83@\83C\83\8b\83T\83C\83Y\81i\96Ú\88À\81j\82ð\8ew\92è\82µ\82Ü\82·");\r
+             // \r
+             // text_bitrate\r
+             // \r
+             this.text_bitrate.Location = new System.Drawing.Point(482, 63);\r
+             this.text_bitrate.Name = "text_bitrate";\r
+             this.text_bitrate.Size = new System.Drawing.Size(81, 21);\r
+             this.text_bitrate.TabIndex = 10;\r
 -            this.ToolTip.SetToolTip(this.text_bitrate, "Set the bitrate of the video");\r
++            this.ToolTip.SetToolTip(this.text_bitrate, "\93®\89æ\82Ì\83r\83b\83g\83\8c\81[\83g\82ð\8ew\92è\82µ\82Ü\82·");\r
              // \r
              // btn_setDefault\r
              // \r
              this.btn_setDefault.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_setDefault.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_setDefault.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_setDefault.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_setDefault.Location = new System.Drawing.Point(108, 7);\r
+             this.btn_setDefault.Location = new System.Drawing.Point(135, 8);\r
              this.btn_setDefault.Name = "btn_setDefault";\r
-             this.btn_setDefault.Size = new System.Drawing.Size(81, 20);\r
+             this.btn_setDefault.Size = new System.Drawing.Size(101, 22);\r
              this.btn_setDefault.TabIndex = 1;\r
              this.btn_setDefault.TabStop = false;\r
 -            this.btn_setDefault.Text = "Set Default";\r
 -            this.ToolTip.SetToolTip(this.btn_setDefault, "Set current settings as program defaults.\r\nRequires option to be enabled in Tools" +\r
 -                    " > Options");\r
 +            this.btn_setDefault.Text = "\83f\83t\83H\83\8b\83g\82É\90Ý\92è";\r
 +            this.ToolTip.SetToolTip(this.btn_setDefault, "\8c»\8dÝ\82Ì\90Ý\92è\82ð\83f\83t\83H\83\8b\83g\90Ý\92è\82Æ\82µ\82Ä\95Û\91¶");\r
              this.btn_setDefault.UseVisualStyleBackColor = true;\r
              this.btn_setDefault.Click += new System.EventHandler(this.btn_setDefault_Click);\r
              // \r
++/*\r
 +            // drp_audmix_1\r
 +            // \r
 +            this.drp_audmix_1.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audmix_1.FormattingEnabled = true;\r
 +            this.drp_audmix_1.Items.AddRange(new object[] {\r
 +            "Automatic",\r
 +            "Mono",\r
 +            "Stereo",\r
 +            "Dolby Surround",\r
 +            "Dolby Pro Logic II",\r
 +            "6 Channel Discrete"});\r
 +            this.drp_audmix_1.Location = new System.Drawing.Point(353, 49);\r
 +            this.drp_audmix_1.Name = "drp_audmix_1";\r
 +            this.drp_audmix_1.Size = new System.Drawing.Size(129, 20);\r
 +            this.drp_audmix_1.TabIndex = 7;\r
 +            this.drp_audmix_1.Text = "Automatic";\r
 +            this.ToolTip.SetToolTip(this.drp_audmix_1, "\92\8d\88Ó:\82¢\82­\82Â\82©\82Ì\83I\83v\83V\83\87\83\93\82Í5.1\89¹\90º\83`\83\83\83\93\83l\83\8b\82ª\95K\97v\82Å\82·");\r
 +            this.drp_audmix_1.SelectedIndexChanged += new System.EventHandler(this.drp_audmix_1_SelectedIndexChanged);\r
 +            // \r
 +            // text_height\r
 +            // \r
 +            this.text_height.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.text_height.ForeColor = System.Drawing.SystemColors.InfoText;\r
 +            this.text_height.Location = new System.Drawing.Point(498, 75);\r
 +            this.text_height.Name = "text_height";\r
 +            this.text_height.Size = new System.Drawing.Size(64, 21);\r
 +            this.text_height.TabIndex = 19;\r
 +            this.ToolTip.SetToolTip(this.text_height, "\93®\89æ\82Ì\89ð\91\9c\93x(\8d\82\82³)\81F\r\n\81u\83\8f\83C\83h\83X\83N\83\8a\81[\83\93\89»\81v\82ð\81uNone\81v\82É\82µ\82½\8fê\8d\87\82Ì\82Ý\95Ï\8dX\89Â\94\\82Å\82·");\r
 +            this.text_height.TextChanged += new System.EventHandler(this.text_height_TextChanged);\r
 +            // \r
 +            // text_width\r
 +            // \r
 +            this.text_width.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.text_width.Location = new System.Drawing.Point(407, 75);\r
 +            this.text_width.Name = "text_width";\r
 +            this.text_width.Size = new System.Drawing.Size(64, 21);\r
 +            this.text_width.TabIndex = 17;\r
 +            this.ToolTip.SetToolTip(this.text_width, "\93®\89æ\82Ì\89ð\91\9c\93x(\95\9d)\81F\r\n\81u\83\8f\83C\83h\89»\81v\82ð\81uNone\81v\82à\82µ\82­\82Í\81uLoose\81v\82É\82µ\82½\8fê\8d\87\82Ì\82Ý\95Ï\8dX\89Â\94\\82Å\82·");\r
 +            this.text_width.TextChanged += new System.EventHandler(this.text_width_TextChanged);\r
 +            // \r
++*/\r
              // check_optimiseMP4\r
              // \r
+             this.check_optimiseMP4.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.check_optimiseMP4.AutoSize = true;\r
              this.check_optimiseMP4.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.check_optimiseMP4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_optimiseMP4.Location = new System.Drawing.Point(304, 20);\r
 +            this.check_optimiseMP4.Name = "check_optimiseMP4";\r
 +            this.check_optimiseMP4.Size = new System.Drawing.Size(99, 17);\r
++*/\r
+             this.check_optimiseMP4.Location = new System.Drawing.Point(276, 5);\r
+             this.check_optimiseMP4.Name = "check_optimiseMP4";\r
+             this.check_optimiseMP4.Size = new System.Drawing.Size(96, 17);\r
              this.check_optimiseMP4.TabIndex = 25;\r
 -            this.check_optimiseMP4.Text = "Web optimized";\r
 -            this.ToolTip.SetToolTip(this.check_optimiseMP4, "MP4 files can be optimized for progressive downloads over the Web,\r\nbut note that" +\r
 -                    " QuickTime can only read the files as long as the file extension is .mp4\r\nCan on" +\r
 -                    "ly be used with H.264 ");\r
 +            this.check_optimiseMP4.Text = "Web\97p\82É\8dÅ\93K\89»";\r
 +            this.ToolTip.SetToolTip(this.check_optimiseMP4, "Web\82©\82ç\82Ì\83_\83E\83\93\83\8d\81[\83h\8dÄ\90\82É\8dÅ\93K\89»\82³\82ê\82½\83v\83\8d\83O\83\8c\83b\83V\83u\8c`\8e®MP4\83t\83@\83C\83\8b\82ð\8dì\90¬\82Å\82«\82Ü\82·\81B\r\n\82½\82¾\82µ\81AQuickTime\82Å\82Í\8ag\92£\8eq\82ª.mp4\82Ì\8fê\8d\87\82É\82Ì\82Ý\8dÄ\90\89Â\94\\82Å" +\r
 +                    "\82·\81B\r\nH.264\82Å\82Ì\82Ý\97\98\97p\89Â\94\\82Å\82·");\r
              this.check_optimiseMP4.UseVisualStyleBackColor = false;\r
              // \r
              // check_iPodAtom\r
              // \r
+             this.check_iPodAtom.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.check_iPodAtom.AutoSize = true;\r
              this.check_iPodAtom.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.check_iPodAtom.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_iPodAtom.Location = new System.Drawing.Point(420, 20);\r
 +            this.check_iPodAtom.Name = "check_iPodAtom";\r
 +            this.check_iPodAtom.Size = new System.Drawing.Size(98, 17);\r
++*/\r
+             this.check_iPodAtom.Location = new System.Drawing.Point(378, 5);\r
+             this.check_iPodAtom.Name = "check_iPodAtom";\r
+             this.check_iPodAtom.Size = new System.Drawing.Size(102, 17);\r
              this.check_iPodAtom.TabIndex = 26;\r
 -            this.check_iPodAtom.Text = "iPod 5G support";\r
 -            this.ToolTip.SetToolTip(this.check_iPodAtom, "Support for legacy 5th Generation iPods.\r\nEncodes will not sync if this option is" +\r
 -                    " not enabled for H.264 encodes.");\r
 +            this.check_iPodAtom.Text = "iPod 5G\82É\91Î\89\9e";\r
 +            this.ToolTip.SetToolTip(this.check_iPodAtom, "iPod 5G\82É\91Î\89\9e\82µ\82½\93®\89æ\82ð\8dì\90¬\82·\82é\8fê\8d\87\81A\83`\83F\83b\83N\82ð\93ü\82ê\82Ü\82·");\r
              this.check_iPodAtom.UseVisualStyleBackColor = false;\r
              // \r
              // data_chpt\r
              this.data_chpt.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {\r
              this.number,\r
              this.name});\r
++/*\r
 +            this.data_chpt.Location = new System.Drawing.Point(16, 51);\r
 +            this.data_chpt.Name = "data_chpt";\r
 +            this.data_chpt.RowTemplate.Height = 21;\r
 +            this.data_chpt.Size = new System.Drawing.Size(661, 216);\r
++*/\r
+             this.data_chpt.ContextMenuStrip = this.ChaptersMenu;\r
+             this.data_chpt.Location = new System.Drawing.Point(16, 55);\r
+             this.data_chpt.MultiSelect = false;\r
+             this.data_chpt.Name = "data_chpt";\r
+             this.data_chpt.RowHeadersVisible = false;\r
+             this.data_chpt.Size = new System.Drawing.Size(684, 236);\r
              this.data_chpt.TabIndex = 3;\r
              this.ToolTip.SetToolTip(this.data_chpt, resources.GetString("data_chpt.ToolTip"));\r
              // \r
              // number\r
              // \r
++/*\r
 +            dataGridViewCellStyle10.Format = "N0";\r
 +            dataGridViewCellStyle10.NullValue = null;\r
 +            this.number.DefaultCellStyle = dataGridViewCellStyle10;\r
++*/\r
+             dataGridViewCellStyle1.Format = "N0";\r
+             dataGridViewCellStyle1.NullValue = null;\r
+             this.number.DefaultCellStyle = dataGridViewCellStyle1;\r
+             this.number.Frozen = true;\r
              this.number.HeaderText = "Chapter Number";\r
              this.number.MaxInputLength = 3;\r
              this.number.Name = "number";\r
              // btn_addPreset\r
              // \r
              this.btn_addPreset.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_addPreset.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_addPreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_addPreset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
 -            this.btn_addPreset.Location = new System.Drawing.Point(3, 8);\r
 +            this.btn_addPreset.Location = new System.Drawing.Point(3, 7);\r
              this.btn_addPreset.Name = "btn_addPreset";\r
-             this.btn_addPreset.Size = new System.Drawing.Size(35, 20);\r
+             this.btn_addPreset.Size = new System.Drawing.Size(49, 22);\r
              this.btn_addPreset.TabIndex = 3;\r
              this.btn_addPreset.TabStop = false;\r
 -            this.btn_addPreset.Text = "Add";\r
 -            this.ToolTip.SetToolTip(this.btn_addPreset, "Add a preset to the preset panel");\r
 +            this.btn_addPreset.Text = "\92Ç\89Á";\r
 +            this.ToolTip.SetToolTip(this.btn_addPreset, "\83v\83\8a\83Z\83b\83g\90Ý\92è\82ð\92Ç\89Á");\r
              this.btn_addPreset.UseVisualStyleBackColor = true;\r
              this.btn_addPreset.Click += new System.EventHandler(this.btn_addPreset_Click);\r
              // \r
              // btn_removePreset\r
              // \r
              this.btn_removePreset.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_removePreset.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_removePreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_removePreset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_removePreset.Location = new System.Drawing.Point(44, 7);\r
+             this.btn_removePreset.Location = new System.Drawing.Point(58, 8);\r
              this.btn_removePreset.Name = "btn_removePreset";\r
-             this.btn_removePreset.Size = new System.Drawing.Size(58, 20);\r
+             this.btn_removePreset.Size = new System.Drawing.Size(71, 22);\r
              this.btn_removePreset.TabIndex = 4;\r
              this.btn_removePreset.TabStop = false;\r
 -            this.btn_removePreset.Text = "Remove";\r
 -            this.ToolTip.SetToolTip(this.btn_removePreset, "Remove a preset from the panel above.");\r
 +            this.btn_removePreset.Text = "\8dí\8f\9c";\r
 +            this.ToolTip.SetToolTip(this.btn_removePreset, "\83v\83\8a\83Z\83b\83g\90Ý\92è\82ð\8dí\8f\9c");\r
              this.btn_removePreset.UseVisualStyleBackColor = true;\r
              this.btn_removePreset.Click += new System.EventHandler(this.btn_removePreset_Click);\r
              // \r
++/*\r
 +            // drp_audmix_2\r
 +            // \r
 +            this.drp_audmix_2.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audmix_2.FormattingEnabled = true;\r
 +            this.drp_audmix_2.Items.AddRange(new object[] {\r
 +            "Automatic",\r
 +            "Mono",\r
 +            "Stereo",\r
 +            "Dolby Surround",\r
 +            "Dolby Pro Logic II",\r
 +            "6 Channel Discrete"});\r
 +            this.drp_audmix_2.Location = new System.Drawing.Point(353, 85);\r
 +            this.drp_audmix_2.Name = "drp_audmix_2";\r
 +            this.drp_audmix_2.Size = new System.Drawing.Size(129, 20);\r
 +            this.drp_audmix_2.TabIndex = 19;\r
 +            this.drp_audmix_2.Text = "Automatic";\r
 +            this.ToolTip.SetToolTip(this.drp_audmix_2, "\92\8d\88Ó:\82¢\82­\82Â\82©\82Ì\83I\83v\83V\83\87\83\93\82Í5.1\89¹\90º\83`\83\83\83\93\83l\83\8b\82ª\95K\97v\82Å\82·");\r
 +            this.drp_audmix_2.SelectedIndexChanged += new System.EventHandler(this.drp_audmix_2_SelectedIndexChanged);\r
 +            // \r
 +            // drp_audenc_1\r
 +            // \r
 +            this.drp_audenc_1.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audenc_1.FormattingEnabled = true;\r
 +            this.drp_audenc_1.Items.AddRange(new object[] {\r
 +            "AAC",\r
 +            "MP3",\r
 +            "Vorbis",\r
 +            "AC3"});\r
 +            this.drp_audenc_1.Location = new System.Drawing.Point(236, 49);\r
 +            this.drp_audenc_1.Name = "drp_audenc_1";\r
 +            this.drp_audenc_1.Size = new System.Drawing.Size(111, 20);\r
 +            this.drp_audenc_1.TabIndex = 5;\r
 +            this.drp_audenc_1.Text = "AAC";\r
 +            this.ToolTip.SetToolTip(this.drp_audenc_1, "\89¹\90º\83R\81[\83f\83b\83N\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            this.drp_audenc_1.SelectedIndexChanged += new System.EventHandler(this.drp_audenc_1_SelectedIndexChanged);\r
 +            // \r
 +            // drp_audenc_2\r
 +            // \r
 +            this.drp_audenc_2.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audenc_2.FormattingEnabled = true;\r
 +            this.drp_audenc_2.Items.AddRange(new object[] {\r
 +            "AAC",\r
 +            "MP3",\r
 +            "Vorbis",\r
 +            "AC3"});\r
 +            this.drp_audenc_2.Location = new System.Drawing.Point(236, 85);\r
 +            this.drp_audenc_2.Name = "drp_audenc_2";\r
 +            this.drp_audenc_2.Size = new System.Drawing.Size(111, 20);\r
 +            this.drp_audenc_2.TabIndex = 18;\r
 +            this.drp_audenc_2.Text = "AAC";\r
 +            this.ToolTip.SetToolTip(this.drp_audenc_2, "\89¹\90º\83R\81[\83f\83b\83N\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            this.drp_audenc_2.SelectedIndexChanged += new System.EventHandler(this.drp_audenc_2_SelectedIndexChanged);\r
 +            // \r
 +            // drp_audbit_2\r
 +            // \r
 +            this.drp_audbit_2.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audbit_2.FormattingEnabled = true;\r
 +            this.drp_audbit_2.Items.AddRange(new object[] {\r
 +            "32",\r
 +            "40",\r
 +            "48",\r
 +            "56",\r
 +            "64",\r
 +            "80",\r
 +            "86",\r
 +            "112",\r
 +            "128",\r
 +            "160"});\r
 +            this.drp_audbit_2.Location = new System.Drawing.Point(546, 85);\r
 +            this.drp_audbit_2.Name = "drp_audbit_2";\r
 +            this.drp_audbit_2.Size = new System.Drawing.Size(71, 20);\r
 +            this.drp_audbit_2.TabIndex = 21;\r
 +            this.drp_audbit_2.Text = "160";\r
 +            this.ToolTip.SetToolTip(this.drp_audbit_2, "\89¹\90º\82Ì\83r\83b\83g\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // drp_audsr_2\r
 +            // \r
 +            this.drp_audsr_2.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audsr_2.FormattingEnabled = true;\r
 +            this.drp_audsr_2.Items.AddRange(new object[] {\r
 +            "Auto",\r
 +            "48",\r
 +            "44.1",\r
 +            "32",\r
 +            "24",\r
 +            "22.05"});\r
 +            this.drp_audsr_2.Location = new System.Drawing.Point(488, 85);\r
 +            this.drp_audsr_2.Name = "drp_audsr_2";\r
 +            this.drp_audsr_2.Size = new System.Drawing.Size(52, 20);\r
 +            this.drp_audsr_2.TabIndex = 20;\r
 +            this.drp_audsr_2.Text = "Auto";\r
 +            this.ToolTip.SetToolTip(this.drp_audsr_2, "\89¹\90º\82Ì\83T\83\93\83v\83\8a\83\93\83O\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // drp_audsr_3\r
 +            // \r
 +            this.drp_audsr_3.Enabled = false;\r
 +            this.drp_audsr_3.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audsr_3.FormattingEnabled = true;\r
 +            this.drp_audsr_3.Items.AddRange(new object[] {\r
 +            "Auto",\r
 +            "48",\r
 +            "44.1",\r
 +            "32",\r
 +            "24",\r
 +            "22.05"});\r
 +            this.drp_audsr_3.Location = new System.Drawing.Point(488, 123);\r
 +            this.drp_audsr_3.Name = "drp_audsr_3";\r
 +            this.drp_audsr_3.Size = new System.Drawing.Size(52, 20);\r
 +            this.drp_audsr_3.TabIndex = 28;\r
 +            this.drp_audsr_3.Text = "Auto";\r
 +            this.ToolTip.SetToolTip(this.drp_audsr_3, "\89¹\90º\82Ì\83T\83\93\83v\83\8a\83\93\83O\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // drp_audbit_3\r
 +            // \r
 +            this.drp_audbit_3.Enabled = false;\r
 +            this.drp_audbit_3.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audbit_3.FormattingEnabled = true;\r
 +            this.drp_audbit_3.Items.AddRange(new object[] {\r
 +            "32",\r
 +            "40",\r
 +            "48",\r
 +            "56",\r
 +            "64",\r
 +            "80",\r
 +            "86",\r
 +            "112",\r
 +            "128",\r
 +            "160"});\r
 +            this.drp_audbit_3.Location = new System.Drawing.Point(546, 123);\r
 +            this.drp_audbit_3.Name = "drp_audbit_3";\r
 +            this.drp_audbit_3.Size = new System.Drawing.Size(71, 20);\r
 +            this.drp_audbit_3.TabIndex = 29;\r
 +            this.drp_audbit_3.Text = "160";\r
 +            this.ToolTip.SetToolTip(this.drp_audbit_3, "\89¹\90º\82Ì\83r\83b\83g\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // drp_audenc_3\r
 +            // \r
 +            this.drp_audenc_3.Enabled = false;\r
 +            this.drp_audenc_3.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audenc_3.FormattingEnabled = true;\r
 +            this.drp_audenc_3.Items.AddRange(new object[] {\r
 +            "AAC",\r
 +            "MP3",\r
 +            "Vorbis",\r
 +            "AC3"});\r
 +            this.drp_audenc_3.Location = new System.Drawing.Point(236, 123);\r
 +            this.drp_audenc_3.Name = "drp_audenc_3";\r
 +            this.drp_audenc_3.Size = new System.Drawing.Size(111, 20);\r
 +            this.drp_audenc_3.TabIndex = 26;\r
 +            this.drp_audenc_3.Text = "AAC";\r
 +            this.ToolTip.SetToolTip(this.drp_audenc_3, "\89¹\90º\83R\81[\83f\83b\83N\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            this.drp_audenc_3.SelectedIndexChanged += new System.EventHandler(this.drp_audenc_3_SelectedIndexChanged);\r
 +            // \r
 +            // drp_audmix_3\r
 +            // \r
 +            this.drp_audmix_3.Enabled = false;\r
 +            this.drp_audmix_3.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audmix_3.FormattingEnabled = true;\r
 +            this.drp_audmix_3.Items.AddRange(new object[] {\r
 +            "Automatic",\r
 +            "Mono",\r
 +            "Stereo",\r
 +            "Dolby Surround",\r
 +            "Dolby Pro Logic II",\r
 +            "6 Channel Discrete"});\r
 +            this.drp_audmix_3.Location = new System.Drawing.Point(353, 123);\r
 +            this.drp_audmix_3.Name = "drp_audmix_3";\r
 +            this.drp_audmix_3.Size = new System.Drawing.Size(129, 20);\r
 +            this.drp_audmix_3.TabIndex = 27;\r
 +            this.drp_audmix_3.Text = "Automatic";\r
 +            this.ToolTip.SetToolTip(this.drp_audmix_3, "\92\8d\88Ó:\82¢\82­\82Â\82©\82Ì\83I\83v\83V\83\87\83\93\82Í5.1\89¹\90º\83`\83\83\83\93\83l\83\8b\82ª\95K\97v\82Å\82·");\r
 +            this.drp_audmix_3.SelectedIndexChanged += new System.EventHandler(this.drp_audmix_3_SelectedIndexChanged);\r
 +            // \r
 +            // drp_audsr_4\r
 +            // \r
 +            this.drp_audsr_4.Enabled = false;\r
 +            this.drp_audsr_4.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audsr_4.FormattingEnabled = true;\r
 +            this.drp_audsr_4.Items.AddRange(new object[] {\r
 +            "Auto",\r
 +            "48",\r
 +            "44.1",\r
 +            "32",\r
 +            "24",\r
 +            "22.05"});\r
 +            this.drp_audsr_4.Location = new System.Drawing.Point(488, 162);\r
 +            this.drp_audsr_4.Name = "drp_audsr_4";\r
 +            this.drp_audsr_4.Size = new System.Drawing.Size(52, 20);\r
 +            this.drp_audsr_4.TabIndex = 36;\r
 +            this.drp_audsr_4.Text = "Auto";\r
 +            this.ToolTip.SetToolTip(this.drp_audsr_4, "\89¹\90º\82Ì\83T\83\93\83v\83\8a\83\93\83O\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // drp_audbit_4\r
 +            // \r
 +            this.drp_audbit_4.Enabled = false;\r
 +            this.drp_audbit_4.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audbit_4.FormattingEnabled = true;\r
 +            this.drp_audbit_4.Items.AddRange(new object[] {\r
 +            "32",\r
 +            "40",\r
 +            "48",\r
 +            "56",\r
 +            "64",\r
 +            "80",\r
 +            "86",\r
 +            "112",\r
 +            "128",\r
 +            "160"});\r
 +            this.drp_audbit_4.Location = new System.Drawing.Point(546, 162);\r
 +            this.drp_audbit_4.Name = "drp_audbit_4";\r
 +            this.drp_audbit_4.Size = new System.Drawing.Size(70, 20);\r
 +            this.drp_audbit_4.TabIndex = 37;\r
 +            this.drp_audbit_4.Text = "160";\r
 +            this.ToolTip.SetToolTip(this.drp_audbit_4, "\89¹\90º\82Ì\83r\83b\83g\83\8c\81[\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            // \r
 +            // drp_audenc_4\r
 +            // \r
 +            this.drp_audenc_4.Enabled = false;\r
 +            this.drp_audenc_4.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audenc_4.FormattingEnabled = true;\r
 +            this.drp_audenc_4.Items.AddRange(new object[] {\r
 +            "AAC",\r
 +            "MP3",\r
 +            "Vorbis",\r
 +            "AC3"});\r
 +            this.drp_audenc_4.Location = new System.Drawing.Point(236, 162);\r
 +            this.drp_audenc_4.Name = "drp_audenc_4";\r
 +            this.drp_audenc_4.Size = new System.Drawing.Size(111, 20);\r
 +            this.drp_audenc_4.TabIndex = 34;\r
 +            this.drp_audenc_4.Text = "AAC";\r
 +            this.ToolTip.SetToolTip(this.drp_audenc_4, "\89¹\90º\83R\81[\83f\83b\83N\82ð\91I\91ð\82µ\82Ü\82·");\r
 +            this.drp_audenc_4.SelectedIndexChanged += new System.EventHandler(this.drp_audenc_4_SelectedIndexChanged);\r
 +            // \r
 +            // drp_audmix_4\r
 +            // \r
 +            this.drp_audmix_4.Enabled = false;\r
 +            this.drp_audmix_4.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_audmix_4.FormattingEnabled = true;\r
 +            this.drp_audmix_4.Items.AddRange(new object[] {\r
 +            "Automatic",\r
 +            "Mono",\r
 +            "Stereo",\r
 +            "Dolby Surround",\r
 +            "Dolby Pro Logic II",\r
 +            "6 Channel Discrete"});\r
 +            this.drp_audmix_4.Location = new System.Drawing.Point(353, 162);\r
 +            this.drp_audmix_4.Name = "drp_audmix_4";\r
 +            this.drp_audmix_4.Size = new System.Drawing.Size(129, 20);\r
 +            this.drp_audmix_4.TabIndex = 35;\r
 +            this.drp_audmix_4.Text = "Automatic";\r
 +            this.ToolTip.SetToolTip(this.drp_audmix_4, "\92\8d\88Ó:\82¢\82­\82Â\82©\82Ì\83I\83v\83V\83\87\83\93\82Í5.1\89¹\90º\83`\83\83\83\93\83l\83\8b\82ª\95K\97v\82Å\82·");\r
 +            this.drp_audmix_4.SelectedIndexChanged += new System.EventHandler(this.drp_audmix_4_SelectedIndexChanged);\r
 +            // \r
++*/\r
              // drop_format\r
              // \r
              this.drop_format.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
              this.drop_format.FormattingEnabled = true;\r
              this.drop_format.Items.AddRange(new object[] {\r
              "MP4 File",\r
++/*\r
 +            "M4V File",\r
 +            "MKV File",\r
 +            "AVI File",\r
 +            "OGM File"});\r
 +            this.drop_format.Location = new System.Drawing.Point(75, 18);\r
++*/\r
+             "MKV File"});\r
+             this.drop_format.Location = new System.Drawing.Point(67, 3);\r
              this.drop_format.Name = "drop_format";\r
              this.drop_format.Size = new System.Drawing.Size(106, 21);\r
              this.drop_format.TabIndex = 28;\r
 -            this.ToolTip.SetToolTip(this.drop_format, "Select the file container format.");\r
 +            this.ToolTip.SetToolTip(this.drop_format, "\83R\83\93\83e\83i\83t\83H\81[\83}\83b\83g\82ð\91I\91ð\82µ\82Ü\82·");\r
              this.drop_format.SelectedIndexChanged += new System.EventHandler(this.drop_format_SelectedIndexChanged);\r
              // \r
++/*\r
 +            // check_customCrop\r
 +            // \r
 +            this.check_customCrop.AutoSize = true;\r
 +            this.check_customCrop.ForeColor = System.Drawing.Color.Black;\r
 +            this.check_customCrop.Location = new System.Drawing.Point(16, 54);\r
 +            this.check_customCrop.Name = "check_customCrop";\r
 +            this.check_customCrop.Size = new System.Drawing.Size(60, 17);\r
 +            this.check_customCrop.TabIndex = 34;\r
 +            this.check_customCrop.Text = "\83J\83X\83^\83\80:";\r
 +            this.ToolTip.SetToolTip(this.check_customCrop, "\83g\83\8a\83~\83\93\83O\82·\82é\95\9d\82ð\8eè\93®\82Å\8ew\92è\82µ\82Ü\82·");\r
 +            this.check_customCrop.UseVisualStyleBackColor = true;\r
 +            this.check_customCrop.CheckedChanged += new System.EventHandler(this.check_customCrop_CheckedChanged);\r
 +            // \r
 +            // check_autoCrop\r
 +            // \r
 +            this.check_autoCrop.AutoSize = true;\r
 +            this.check_autoCrop.Checked = true;\r
 +            this.check_autoCrop.Location = new System.Drawing.Point(16, 31);\r
 +            this.check_autoCrop.Name = "check_autoCrop";\r
 +            this.check_autoCrop.Size = new System.Drawing.Size(45, 17);\r
 +            this.check_autoCrop.TabIndex = 33;\r
 +            this.check_autoCrop.TabStop = true;\r
 +            this.check_autoCrop.Text = "\8e©\93®";\r
 +            this.ToolTip.SetToolTip(this.check_autoCrop, "\83g\83\8a\83~\83\93\83O\83T\83C\83Y\82ð\8e©\93®\90Ý\92è\82µ\82Ü\82·");\r
 +            this.check_autoCrop.UseVisualStyleBackColor = true;\r
 +            this.check_autoCrop.CheckedChanged += new System.EventHandler(this.check_autoCrop_CheckedChanged);\r
 +            // \r
 +            // check_Cabac\r
 +            // \r
 +            this.check_Cabac.AutoSize = true;\r
 +            this.check_Cabac.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.check_Cabac.Checked = true;\r
 +            this.check_Cabac.CheckState = System.Windows.Forms.CheckState.Checked;\r
 +            this.check_Cabac.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
 +            this.check_Cabac.Location = new System.Drawing.Point(547, 198);\r
 +            this.check_Cabac.Name = "check_Cabac";\r
 +            this.check_Cabac.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
 +            this.check_Cabac.Size = new System.Drawing.Size(132, 16);\r
 +            this.check_Cabac.TabIndex = 40;\r
 +            this.check_Cabac.Text = "CABAC\83G\83\93\83g\83\8d\83s\81[\95\84\8d\86\89»:";\r
 +            this.check_Cabac.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.ToolTip.SetToolTip(this.check_Cabac, resources.GetString("check_Cabac.ToolTip"));\r
 +            this.check_Cabac.UseVisualStyleBackColor = true;\r
 +            this.check_Cabac.CheckStateChanged += new System.EventHandler(this.check_Cabac_CheckedChanged);\r
 +            // \r
 +            // check_noDCTDecimate\r
 +            // \r
 +            this.check_noDCTDecimate.AutoSize = true;\r
 +            this.check_noDCTDecimate.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.check_noDCTDecimate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
 +            this.check_noDCTDecimate.Location = new System.Drawing.Point(539, 177);\r
 +            this.check_noDCTDecimate.Name = "check_noDCTDecimate";\r
 +            this.check_noDCTDecimate.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
 +            this.check_noDCTDecimate.Size = new System.Drawing.Size(140, 16);\r
 +            this.check_noDCTDecimate.TabIndex = 39;\r
 +            this.check_noDCTDecimate.Text = "DCT-Decimate\82ð\8eg\82í\82È\82¢:";\r
 +            this.check_noDCTDecimate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.ToolTip.SetToolTip(this.check_noDCTDecimate, "On\82É\82·\82é\82Æ\81A\95i\8e¿\82É\91å\82«\82­\89e\8b¿\82µ\82È\82¢DCT\83u\83\8d\83b\83N\82ð\96³\8e\8b\82µ\82È\82­\82È\82è\82Ü\82·\81B\r\n\88ê\92è\95i\8e¿\82Å\82Ì\83G\83\93\83R\81[\83h\82ð\91I\91ð\82·\82é\8fê\8d\87\82É\82Ì\82Ý\97\98\97p\89Â\94\\82Å\82·\81B\r\n\83t\83@\83C\83\8b\83T\83C\83Y\82 \82½\82è\82Ì\93®\89æ" +\r
 +                    "\95i\8e¿\82ð\8eá\8a±\8cü\8fã\82Å\82«\82Ü\82·");\r
 +            this.check_noDCTDecimate.UseVisualStyleBackColor = true;\r
 +            this.check_noDCTDecimate.CheckStateChanged += new System.EventHandler(this.check_noDCTDecimate_CheckedChanged);\r
 +            // \r
 +            // check_noFastPSkip\r
 +            // \r
 +            this.check_noFastPSkip.AutoSize = true;\r
 +            this.check_noFastPSkip.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.check_noFastPSkip.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
 +            this.check_noFastPSkip.Location = new System.Drawing.Point(406, 177);\r
 +            this.check_noFastPSkip.Name = "check_noFastPSkip";\r
 +            this.check_noFastPSkip.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
 +            this.check_noFastPSkip.Size = new System.Drawing.Size(125, 16);\r
 +            this.check_noFastPSkip.TabIndex = 38;\r
 +            this.check_noFastPSkip.Text = "Fast-P-Skip\82ð\8eg\82í\82È\82¢:";\r
 +            this.check_noFastPSkip.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.ToolTip.SetToolTip(this.check_noFastPSkip, "On\82É\82·\82é\82Æ\81AP\83t\83\8c\81[\83\80\82Ì\8d\82\91¬\83X\83L\83b\83v\82ð\8eg\97p\82µ\82È\82­\82È\82è\82Ü\82·\81B\r\nOff\82É\82·\82é\82Æ\90Â\8bó\82Ì\82æ\82¤\82È\92P\90F\95\94\95ª\82Ì\83u\83\8d\83b\83N\83m\83C\83Y\82ð\89ü\91P\82Å\82«\82Ü\82·\82ª\81A\r\n\83G\83\93\83R\81[\83h\91¬\93x\82Í\8eá\8a±\92á\89º\82µ" +\r
 +                    "\82Ü\82·");\r
 +            this.check_noFastPSkip.UseVisualStyleBackColor = true;\r
 +            this.check_noFastPSkip.CheckStateChanged += new System.EventHandler(this.check_noFastPSkip_CheckedChanged);\r
 +            // \r
 +            // drop_trellis\r
 +            // \r
 +            this.drop_trellis.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_trellis.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_trellis.FormattingEnabled = true;\r
 +            this.drop_trellis.Items.AddRange(new object[] {\r
 +            "Default (0)",\r
 +            "0",\r
 +            "1",\r
 +            "2"});\r
 +            this.drop_trellis.Location = new System.Drawing.Point(537, 153);\r
 +            this.drop_trellis.Name = "drop_trellis";\r
 +            this.drop_trellis.Size = new System.Drawing.Size(143, 20);\r
 +            this.drop_trellis.TabIndex = 37;\r
 +            this.ToolTip.SetToolTip(this.drop_trellis, "Trellis\82ð\97\98\97p\82·\82é\82±\82Æ\82Å\81A\89æ\8e¿\97ò\89»\82ª\96Ú\97§\82Â\82Æ\8ev\82í\82ê\82é\97Ì\88æ\82Ì\83f\81[\83^\97Ê\82ð\94÷\92²\90®\82Å\82«\82Ü\82·\81B\r\n\83t\83@\83C\83\8b\83T\83C\83Y/\83r\83b\83g\83\8c\81[\83g\82Ì\97}\90§\81A\82à\82µ\82­\82Í\93®\89æ\95i\8e¿\82Ì\8cü\8fã\82ª\8aú\91Ò\82Å\82«" +\r
 +                    "\82Ü\82·\81B\r\n1\82É\90Ý\92è\82·\82é\82Æ\81A\8dÅ\8fI\83G\83\93\83R\81[\83h\8e\9e\82Ì\82Ý\82ÅTrellis\82ð\97\98\97p\82µ\82Ü\82·\81B\r\n2\82É\90Ý\92è\82·\82é\82Æ\81A\82·\82×\82Ä\82Ì\83\82\81[\83h\8c\88\92è\8e\9e\82ÉTrellis\82ð\97\98\97p\82µ\82Ü\82·\81B\82½\82¾\82µ\81ATre" +\r
 +                    "llis\82ð\8eg\97p\82·\82é\82Æ\83G\83\93\83R\81[\83h\82ª\92x\82­\82È\82è\82Ü\82·\81B");\r
 +            this.drop_trellis.SelectedIndexChanged += new System.EventHandler(this.drop_trellis_SelectedIndexChanged);\r
 +            // \r
 +            // drop_deblockBeta\r
 +            // \r
 +            this.drop_deblockBeta.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_deblockBeta.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_deblockBeta.FormattingEnabled = true;\r
 +            this.drop_deblockBeta.Items.AddRange(new object[] {\r
 +            "Default (0)",\r
 +            "-6",\r
 +            "-5",\r
 +            "-4",\r
 +            "-3",\r
 +            "-2",\r
 +            "-1",\r
 +            "0",\r
 +            "1",\r
 +            "2",\r
 +            "3",\r
 +            "4",\r
 +            "5",\r
 +            "6"});\r
 +            this.drop_deblockBeta.Location = new System.Drawing.Point(611, 128);\r
 +            this.drop_deblockBeta.Name = "drop_deblockBeta";\r
 +            this.drop_deblockBeta.Size = new System.Drawing.Size(69, 20);\r
 +            this.drop_deblockBeta.TabIndex = 36;\r
 +            this.ToolTip.SetToolTip(this.drop_deblockBeta, resources.GetString("drop_deblockBeta.ToolTip"));\r
 +            this.drop_deblockBeta.SelectedIndexChanged += new System.EventHandler(this.drop_deblockBeta_SelectedIndexChanged);\r
 +            // \r
 +            // drop_deblockAlpha\r
 +            // \r
 +            this.drop_deblockAlpha.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_deblockAlpha.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_deblockAlpha.FormattingEnabled = true;\r
 +            this.drop_deblockAlpha.Items.AddRange(new object[] {\r
 +            "Default (0)",\r
 +            "-6",\r
 +            "-5",\r
 +            "-4",\r
 +            "-3",\r
 +            "-2",\r
 +            "-1",\r
 +            "0",\r
 +            "1",\r
 +            "2",\r
 +            "3",\r
 +            "4",\r
 +            "5",\r
 +            "6"});\r
 +            this.drop_deblockAlpha.Location = new System.Drawing.Point(537, 128);\r
 +            this.drop_deblockAlpha.Name = "drop_deblockAlpha";\r
 +            this.drop_deblockAlpha.Size = new System.Drawing.Size(68, 20);\r
 +            this.drop_deblockAlpha.TabIndex = 35;\r
 +            this.ToolTip.SetToolTip(this.drop_deblockAlpha, resources.GetString("drop_deblockAlpha.ToolTip"));\r
 +            this.drop_deblockAlpha.SelectedIndexChanged += new System.EventHandler(this.drop_deblockAlpha_SelectedIndexChanged);\r
 +            // \r
 +            // check_8x8DCT\r
 +            // \r
 +            this.check_8x8DCT.AutoSize = true;\r
 +            this.check_8x8DCT.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.check_8x8DCT.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
 +            this.check_8x8DCT.Location = new System.Drawing.Point(608, 98);\r
 +            this.check_8x8DCT.Name = "check_8x8DCT";\r
 +            this.check_8x8DCT.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
 +            this.check_8x8DCT.Size = new System.Drawing.Size(71, 16);\r
 +            this.check_8x8DCT.TabIndex = 34;\r
 +            this.check_8x8DCT.Text = "8x8 DCT:";\r
 +            this.check_8x8DCT.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.ToolTip.SetToolTip(this.check_8x8DCT, "\81uAnalysis\81v\82ð\81uAll\81v\82É\90Ý\92è\82µ\82½\8fê\8d\87\81A\82±\82ê\82ðOn\82É\82·\82é\82Æ8x8\83s\83N\83Z\83\8b\82Ì\83}\83N\83\8d\83u\83\8d\83b\83N\82ª\97\98\97p\89Â\94\\82É\82È\82è\82Ü\82·\81B\r\n\82±\82ê\82ÍH.264\82ÌHigh Profil" +\r
 +                    "e\82Ì\8b@\94\\82Å\82 \82é\82½\82ß\81A\8cÝ\8a·\90«\82ª\8eá\8a±\92á\89º\82µ\82Ü\82·\82ª\81A\83r\83b\83g\83\8c\81[\83g\82 \82½\82è\82Ì\95i\8e¿\82Í\8cü\8fã\82µ\82Ü\82·");\r
 +            this.check_8x8DCT.UseVisualStyleBackColor = true;\r
 +            this.check_8x8DCT.CheckStateChanged += new System.EventHandler(this.check_8x8DCT_CheckedChanged);\r
 +            // \r
 +            // drop_analysis\r
 +            // \r
 +            this.drop_analysis.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_analysis.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_analysis.FormattingEnabled = true;\r
 +            this.drop_analysis.Items.AddRange(new object[] {\r
 +            "Default (some)",\r
 +            "None",\r
 +            "All"});\r
 +            this.drop_analysis.Location = new System.Drawing.Point(537, 97);\r
 +            this.drop_analysis.Name = "drop_analysis";\r
 +            this.drop_analysis.Size = new System.Drawing.Size(63, 20);\r
 +            this.drop_analysis.TabIndex = 33;\r
 +            this.ToolTip.SetToolTip(this.drop_analysis, resources.GetString("drop_analysis.ToolTip"));\r
 +            this.drop_analysis.SelectedIndexChanged += new System.EventHandler(this.drop_analysis_SelectedIndexChanged);\r
 +            // \r
 +            // drop_subpixelMotionEstimation\r
 +            // \r
 +            this.drop_subpixelMotionEstimation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_subpixelMotionEstimation.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_subpixelMotionEstimation.FormattingEnabled = true;\r
 +            this.drop_subpixelMotionEstimation.Items.AddRange(new object[] {\r
 +            "Default (6)",\r
 +            "0",\r
 +            "1",\r
 +            "2",\r
 +            "3",\r
 +            "4",\r
 +            "5",\r
 +            "6",\r
 +            "7",\r
 +            "8",\r
 +            "9"});\r
 +            this.drop_subpixelMotionEstimation.Location = new System.Drawing.Point(537, 64);\r
 +            this.drop_subpixelMotionEstimation.Name = "drop_subpixelMotionEstimation";\r
 +            this.drop_subpixelMotionEstimation.Size = new System.Drawing.Size(139, 20);\r
 +            this.drop_subpixelMotionEstimation.TabIndex = 32;\r
 +            this.ToolTip.SetToolTip(this.drop_subpixelMotionEstimation, "\82±\82Ì\90Ý\92è\82Å\82Í\81A\93®\82«\97\\91ª\82Ì\97±\93x\82ð\8ew\92è\82Å\82«\82Ü\82·\81B\r\n\92l\82ð\91å\82«\82­\82·\82é\82±\82Æ\82Å\81A\82æ\82è\8d\82\95i\8e¿\82È\93®\89æ\82ð\90\90¬\82Å\82«\82Ü\82·\82ª\81A\83G\83\93\83R\81[\83h\82Í\92x\82­\82È\82è\82Ü\82·\81B\r\n6\81A7\82ð\91I\91ð\82µ\82½\8fê\8d\87\81AB\83t\83\8c" +\r
 +                    "\81[\83\80\82Ì\83\8c\81[\83g\82Ð\82¸\82Ý\8dÅ\93K\89»\82É\8e\97\82½\82æ\82¤\82È\8dÅ\93K\89»\82ð\97\98\97p\82µ\82Ü\82·");\r
 +            this.drop_subpixelMotionEstimation.SelectedIndexChanged += new System.EventHandler(this.drop_subpixelMotionEstimation_SelectedIndexChanged);\r
 +            // \r
 +            // drop_MotionEstimationRange\r
 +            // \r
 +            this.drop_MotionEstimationRange.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_MotionEstimationRange.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_MotionEstimationRange.FormattingEnabled = true;\r
 +            this.drop_MotionEstimationRange.Items.AddRange(new object[] {\r
 +            "Default (16)",\r
 +            "4",\r
 +            "5",\r
 +            "6",\r
 +            "7",\r
 +            "8",\r
 +            "9",\r
 +            "10",\r
 +            "11",\r
 +            "12",\r
 +            "13",\r
 +            "14",\r
 +            "15",\r
 +            "16",\r
 +            "17",\r
 +            "18",\r
 +            "19",\r
 +            "20",\r
 +            "21",\r
 +            "22",\r
 +            "23",\r
 +            "24",\r
 +            "25",\r
 +            "26",\r
 +            "27",\r
 +            "28",\r
 +            "29",\r
 +            "30",\r
 +            "31",\r
 +            "32",\r
 +            "33",\r
 +            "34",\r
 +            "35",\r
 +            "36",\r
 +            "37",\r
 +            "38",\r
 +            "39",\r
 +            "40",\r
 +            "41",\r
 +            "42",\r
 +            "43",\r
 +            "44",\r
 +            "45",\r
 +            "46",\r
 +            "47",\r
 +            "48",\r
 +            "49",\r
 +            "50",\r
 +            "51",\r
 +            "52",\r
 +            "53",\r
 +            "54",\r
 +            "55",\r
 +            "56",\r
 +            "57",\r
 +            "58",\r
 +            "59",\r
 +            "60",\r
 +            "61",\r
 +            "62",\r
 +            "63",\r
 +            "64"});\r
 +            this.drop_MotionEstimationRange.Location = new System.Drawing.Point(537, 37);\r
 +            this.drop_MotionEstimationRange.Name = "drop_MotionEstimationRange";\r
 +            this.drop_MotionEstimationRange.Size = new System.Drawing.Size(139, 20);\r
 +            this.drop_MotionEstimationRange.TabIndex = 31;\r
 +            this.ToolTip.SetToolTip(this.drop_MotionEstimationRange, "\93®\82«\97\\91ª\82ð\8ds\82¤\8c\9f\8dõ\94Í\88Í\82ð\8ew\92è\82Å\82«\82Ü\82·\81B\r\n\93®\82«\97\\91ª\95û\96@\82É\81uUneven Multi-Hexagonal\81v\82à\82µ\82­\82Í\81uExhaustive\81v\82ð\91I\91ð\82µ\82½\8fê\8d\87\82É\82Ì\82Ý\r\n\8cø" +\r
 +                    "\89Ê\82ª\82 \82è\82Ü\82·\81B24\81A32\81A64\82ª\93K\90Ø\82Å\82·");\r
 +            this.drop_MotionEstimationRange.SelectedIndexChanged += new System.EventHandler(this.drop_MotionEstimationRange_SelectedIndexChanged);\r
 +            // \r
 +            // drop_MotionEstimationMethod\r
 +            // \r
 +            this.drop_MotionEstimationMethod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_MotionEstimationMethod.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_MotionEstimationMethod.FormattingEnabled = true;\r
 +            this.drop_MotionEstimationMethod.ItemHeight = 12;\r
 +            this.drop_MotionEstimationMethod.Items.AddRange(new object[] {\r
 +            "Default (Hexagon)",\r
 +            "Diamond",\r
 +            "Hexagon",\r
 +            "Uneven Multi-Hexagon",\r
 +            "Exhaustive"});\r
 +            this.drop_MotionEstimationMethod.Location = new System.Drawing.Point(537, 10);\r
 +            this.drop_MotionEstimationMethod.Name = "drop_MotionEstimationMethod";\r
 +            this.drop_MotionEstimationMethod.Size = new System.Drawing.Size(139, 20);\r
 +            this.drop_MotionEstimationMethod.TabIndex = 30;\r
 +            this.ToolTip.SetToolTip(this.drop_MotionEstimationMethod, "\93®\82«\97\\91ª\82É\8eg\97p\82·\82é\92T\8dõ\91\8b\82Ì\8c`\8fó\82ð\8ew\92è\82µ\82Ü\82·\81B\r\n\81uDiamond\81v\81i\83_\83C\83\84\83\82\83\93\83h\81j\81A\81uHexagon\81v\81i\98Z\8ap\8c`\81j\81A\r\n\81uUneven Multi-Hexagon\81v" +\r
 +                    "\81i\95s\93\99\95¡\90\94\98Z\8ap\8c`\81j\81A\81uExhaustive\81v\81i\91S\91Ì\81j\82ª\91I\91ð\89Â\94\\82Å\82·\81B\r\n\81uUneven Multi-Hexagon\81v\82ª\83x\83X\83g\82Å\82·\81B\81uExhaustive\81v\82Í\92á\91¬" +\r
 +                    "\82Å\82·");\r
 +            this.drop_MotionEstimationMethod.SelectedIndexChanged += new System.EventHandler(this.drop_MotionEstimationMethod_SelectedIndexChanged);\r
 +            // \r
 +            // check_pyrmidalBFrames\r
 +            // \r
 +            this.check_pyrmidalBFrames.AutoSize = true;\r
 +            this.check_pyrmidalBFrames.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.check_pyrmidalBFrames.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
 +            this.check_pyrmidalBFrames.Location = new System.Drawing.Point(50, 152);\r
 +            this.check_pyrmidalBFrames.Name = "check_pyrmidalBFrames";\r
 +            this.check_pyrmidalBFrames.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
 +            this.check_pyrmidalBFrames.Size = new System.Drawing.Size(93, 16);\r
 +            this.check_pyrmidalBFrames.TabIndex = 17;\r
 +            this.check_pyrmidalBFrames.Text = "B\83t\83\8c\81[\83\80\82Ì\8aK\91w\89»:";\r
 +            this.check_pyrmidalBFrames.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.ToolTip.SetToolTip(this.check_pyrmidalBFrames, "On\82É\82·\82é\82Æ\81A\82Ù\82©\82ÌB\83t\83\8c\81[\83\80\82ð\8eQ\8fÆ\83t\83\8c\81[\83\80\82Æ\82µ\82Ä\97\98\97p\82Å\82«\82é\82æ\82¤\82É\82È\82è\82Ü\82·\81B\r\n\82±\82ê\82ÍHigh Profile\82Ì\8b@\94\\82È\82Ì\82Å\81AOn\82É\82·\82é\82ÆQuickTime\82Å\82Í\8dÄ\90¶" +\r
 +                    "\82Å\82«\82È\82­\82È\82é\89Â\94\\90«\82ª\82 \82è\82Ü\82·\81B\r\n\82±\82Ì\8b@\94\\82ð\97\98\97p\82·\82é\82±\82Æ\82Å\81A\83r\83b\83g\83\8c\81[\83g\82 \82½\82è\82Ì\95i\8e¿\82ð\8cü\8fã\82Å\82«\82Ü\82·\81B\r\n\97L\8cø\82É\8eg\82¤\82É\82Í\81A\97\9d\98_\93I\82É\82Í\81A\8f­\82È\82­\82Æ\82à2\82Â\88È\8fã\82ÌB\83t\83\8c\81[" +\r
 +                    "\83\80\82ð\8eg\97p\82·\82é\95K\97v\82ª\82 \82è\82Ü\82·");\r
 +            this.check_pyrmidalBFrames.UseVisualStyleBackColor = true;\r
 +            this.check_pyrmidalBFrames.CheckStateChanged += new System.EventHandler(this.check_pyrmidalBFrames_CheckedChanged);\r
 +            // \r
 +            // check_weightedBFrames\r
 +            // \r
 +            this.check_weightedBFrames.AutoSize = true;\r
 +            this.check_weightedBFrames.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.check_weightedBFrames.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
 +            this.check_weightedBFrames.Location = new System.Drawing.Point(44, 133);\r
 +            this.check_weightedBFrames.Name = "check_weightedBFrames";\r
 +            this.check_weightedBFrames.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
 +            this.check_weightedBFrames.Size = new System.Drawing.Size(99, 16);\r
 +            this.check_weightedBFrames.TabIndex = 14;\r
 +            this.check_weightedBFrames.Text = "B\83t\83\8c\81[\83\80\82Ì\8fd\82Ý\95t\82¯:";\r
 +            this.ToolTip.SetToolTip(this.check_weightedBFrames, "On\82É\82·\82é\82Æ\81Ax264\83G\83\93\83R\81[\83_\82ÍB\83t\83\8c\81[\83\80\82ð\90\90¬\82·\82é\82©\82Ç\82¤\82©\8c\88\92è\82·\82é\8dÛ\82É\r\n\91O\8cã\82ÌP\83t\83\8c\81[\83\80\82ª\82Ç\82ê\82¾\82¯\97£\82ê\82Ä\82¢\82é\82©\82ð\8dl\97\82·\82é\82æ\82¤\82É\82È\82è\82Ü\82·\81B\82±\82ê\82É\82æ\82è\81A\93®\82«\82ª\90³" +\r
 +                    "\8am\82É\r\n\97\\91ª\82Å\82«\82¸\82É\95i\8e¿\82ª\88«\89»\82µ\82»\82¤\82É\82È\82Á\82½\8fê\8d\87\82ÉB\83t\83\8c\81[\83\80\82Ì\90\94\82ð\8f­\82È\82­\82µ\81A\95i\8e¿\88Û\8e\9d\82ð\90}\82é\82æ\82¤\82É\r\n\82È\82è\82Ü\82·\81B\82±\82Ì\8b@\94\\82Í1\82Â\88È\8fã\82ÌB\83t\83\8c\81[\83\80\82ð\8eg\97p\82·\82é\8dÛ\82É\97L\97p\82Å" +\r
 +                    "\82·");\r
 +            this.check_weightedBFrames.UseVisualStyleBackColor = true;\r
 +            this.check_weightedBFrames.CheckStateChanged += new System.EventHandler(this.check_weightedBFrames_CheckedChanged);\r
 +            // \r
 +            // drop_directPrediction\r
 +            // \r
 +            this.drop_directPrediction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_directPrediction.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_directPrediction.FormattingEnabled = true;\r
 +            this.drop_directPrediction.Items.AddRange(new object[] {\r
 +            "Default (Spatial)",\r
 +            "None",\r
 +            "Spatial",\r
 +            "Temporal",\r
 +            "Automatic"});\r
 +            this.drop_directPrediction.Location = new System.Drawing.Point(157, 109);\r
 +            this.drop_directPrediction.Name = "drop_directPrediction";\r
 +            this.drop_directPrediction.Size = new System.Drawing.Size(121, 20);\r
 +            this.drop_directPrediction.TabIndex = 13;\r
 +            this.ToolTip.SetToolTip(this.drop_directPrediction, resources.GetString("drop_directPrediction.ToolTip"));\r
 +            this.drop_directPrediction.SelectedIndexChanged += new System.EventHandler(this.drop_directPrediction_SelectedIndexChanged);\r
 +            // \r
 +            // drop_bFrames\r
 +            // \r
 +            this.drop_bFrames.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_bFrames.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_bFrames.FormattingEnabled = true;\r
 +            this.drop_bFrames.Items.AddRange(new object[] {\r
 +            "Default (0)",\r
 +            "0",\r
 +            "1",\r
 +            "2",\r
 +            "3",\r
 +            "4",\r
 +            "5",\r
 +            "6",\r
 +            "7",\r
 +            "8",\r
 +            "9",\r
 +            "10",\r
 +            "11",\r
 +            "12",\r
 +            "13",\r
 +            "14",\r
 +            "15",\r
 +            "16"});\r
 +            this.drop_bFrames.Location = new System.Drawing.Point(157, 84);\r
 +            this.drop_bFrames.Name = "drop_bFrames";\r
 +            this.drop_bFrames.Size = new System.Drawing.Size(121, 20);\r
 +            this.drop_bFrames.TabIndex = 12;\r
 +            this.ToolTip.SetToolTip(this.drop_bFrames, "B\83t\83\8c\81[\83\80\82Ì\90\94\82ð\8ew\92è\82µ\82Ü\82·\81B\92Ê\8fí\82Í1\82©\82ç6\92ö\93x\82ª\91Ã\93\96\82Å\82·\81B\r\nB\83t\83\8c\81[\83\80\82Í\82Ù\82©\82Ì\83t\83\8c\81[\83\80\82æ\82è\82à\83T\83C\83Y\82ª\8f¬\82³\82¢\82Ì\82Å\81A\83r\83b\83g\83\8c\81[\83g\82 \82½\82è\82Ì\95i\8e¿\82ð\82æ\82è\89ü\91P\82Å\82«\82Ü\82·\81B\r\n" +\r
 +                    "\83A\83j\83\81\82È\82Ç\82Å\82Í\81A9\82©\82ç16\92ö\93x\82È\82Ç\82à\97L\8cø\82Å\82·");\r
 +            this.drop_bFrames.SelectedIndexChanged += new System.EventHandler(this.drop_bFrames_SelectedIndexChanged);\r
 +            // \r
 +            // drop_refFrames\r
 +            // \r
 +            this.drop_refFrames.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drop_refFrames.FlatStyle = System.Windows.Forms.FlatStyle.Popup;\r
 +            this.drop_refFrames.FormattingEnabled = true;\r
 +            this.drop_refFrames.Items.AddRange(new object[] {\r
 +            "Default (1)",\r
 +            "0",\r
 +            "1",\r
 +            "2",\r
 +            "3",\r
 +            "4",\r
 +            "5",\r
 +            "6",\r
 +            "7",\r
 +            "8",\r
 +            "9",\r
 +            "10",\r
 +            "11",\r
 +            "12",\r
 +            "13",\r
 +            "14",\r
 +            "15",\r
 +            "16"});\r
 +            this.drop_refFrames.Location = new System.Drawing.Point(157, 34);\r
 +            this.drop_refFrames.Name = "drop_refFrames";\r
 +            this.drop_refFrames.Size = new System.Drawing.Size(121, 20);\r
 +            this.drop_refFrames.TabIndex = 10;\r
 +            this.ToolTip.SetToolTip(this.drop_refFrames, "\92Ê\8fí\82Í1\82©\82ç6\92ö\93x\82ª\91Ã\93\96\82Å\82·\81B\82»\82ê\88È\8fã\82Ì\92l\82É\90Ý\92è\82µ\82½\8fê\8d\87\81A\r\n\95i\8e¿\82Í\8cü\8fã\82µ\82Ü\82·\82ª\83G\83\93\83R\81[\83h\82Í\92x\82­\82È\82è\82Ü\82·");\r
 +            this.drop_refFrames.SelectedIndexChanged += new System.EventHandler(this.drop_refFrames_SelectedIndexChanged);\r
 +            // \r
 +            // check_mixedReferences\r
 +            // \r
 +            this.check_mixedReferences.AutoSize = true;\r
 +            this.check_mixedReferences.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.check_mixedReferences.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
 +            this.check_mixedReferences.Location = new System.Drawing.Point(54, 58);\r
 +            this.check_mixedReferences.Name = "check_mixedReferences";\r
 +            this.check_mixedReferences.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
 +            this.check_mixedReferences.Size = new System.Drawing.Size(61, 16);\r
 +            this.check_mixedReferences.TabIndex = 11;\r
 +            this.check_mixedReferences.Text = "\8d¬\8d\87\8eQ\8fÆ:";\r
 +            this.check_mixedReferences.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
 +            this.ToolTip.SetToolTip(this.check_mixedReferences, "On\82É\82·\82é\82Æ\81A1\82Â\82Ì\83t\83\8c\81[\83\80\82Ì\88Ù\82È\82é\95\94\95ª\82ª\82»\82ê\82¼\82ê\88Ù\82È\82é\8eQ\8fÆ\83t\83\8c\81[\83\80\82ð\8eQ\8fÆ\82Å\82«\82é\82æ\82¤\82É\82È\82è\82Ü\82·");\r
 +            this.check_mixedReferences.UseVisualStyleBackColor = true;\r
 +            this.check_mixedReferences.CheckStateChanged += new System.EventHandler(this.check_mixedReferences_CheckedChanged);\r
 +            // \r
 +            // check_forced\r
 +            // \r
 +            this.check_forced.AutoSize = true;\r
 +            this.check_forced.BackColor = System.Drawing.Color.Transparent;\r
 +            this.check_forced.Enabled = false;\r
 +            this.check_forced.Location = new System.Drawing.Point(223, 228);\r
 +            this.check_forced.Name = "check_forced";\r
 +            this.check_forced.Size = new System.Drawing.Size(125, 17);\r
 +            this.check_forced.TabIndex = 44;\r
 +            this.check_forced.Text = "\8b­\90§\93I\82É\8e\9a\96\8b\82Ì\82Ý\82É\82·\82é";\r
 +            this.ToolTip.SetToolTip(this.check_forced, "\91I\91ð\82³\82ê\82½\83X\83g\83\8a\81[\83\80\82Ì\8e\9a\96\8b\82Ì\82Ý\82ð\95\\8e¦\82µ\82Ü\82·\81B\81uAutoselect\81v\82Æ\95¹\97p\82·\82é\82Æ\8cø\89Ê\93I\82Å\82·");\r
 +            this.check_forced.UseVisualStyleBackColor = false;\r
 +            // \r
 +            // lbl_src_res\r
 +            // \r
 +            this.lbl_src_res.AutoSize = true;\r
 +            this.lbl_src_res.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_src_res.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_src_res.Location = new System.Drawing.Point(405, 31);\r
 +            this.lbl_src_res.Name = "lbl_src_res";\r
 +            this.lbl_src_res.Size = new System.Drawing.Size(72, 12);\r
 +            this.lbl_src_res.TabIndex = 13;\r
 +            this.lbl_src_res.Text = "Select a Title";\r
++*/\r
+             // drop_chapterFinish\r
              // \r
-             // lbl_duration\r
+             this.drop_chapterFinish.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.drop_chapterFinish.FormattingEnabled = true;\r
+             this.drop_chapterFinish.Location = new System.Drawing.Point(447, 3);\r
+             this.drop_chapterFinish.Name = "drop_chapterFinish";\r
+             this.drop_chapterFinish.Size = new System.Drawing.Size(69, 21);\r
+             this.drop_chapterFinish.TabIndex = 10;\r
+             this.ToolTip.SetToolTip(this.drop_chapterFinish, "Select the chapter range you would like to enocde. (default: All Chapters)");\r
+             this.drop_chapterFinish.SelectedIndexChanged += new System.EventHandler(this.chapersChanged);\r
              // \r
++/*\r
 +            this.lbl_duration.AutoSize = true;\r
 +            this.lbl_duration.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_duration.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_duration.Location = new System.Drawing.Point(569, 52);\r
 +            this.lbl_duration.Name = "lbl_duration";\r
 +            this.lbl_duration.Size = new System.Drawing.Size(72, 12);\r
 +            this.lbl_duration.TabIndex = 43;\r
 +            this.lbl_duration.Text = "Select a Title";\r
++*/\r
+             // drop_chapterStart\r
              // \r
-             // label_duration\r
+             this.drop_chapterStart.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.drop_chapterStart.FormattingEnabled = true;\r
+             this.drop_chapterStart.Location = new System.Drawing.Point(321, 3);\r
+             this.drop_chapterStart.Name = "drop_chapterStart";\r
+             this.drop_chapterStart.Size = new System.Drawing.Size(69, 21);\r
+             this.drop_chapterStart.TabIndex = 9;\r
+             this.ToolTip.SetToolTip(this.drop_chapterStart, "Select the chapter range you would like to enocde. (default: All Chapters)");\r
+             this.drop_chapterStart.SelectedIndexChanged += new System.EventHandler(this.chapersChanged);\r
              // \r
-             // \r
-             // label7\r
-             // \r
++/*\r
 +            this.label_duration.AutoSize = true;\r
 +            this.label_duration.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label_duration.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label_duration.Location = new System.Drawing.Point(502, 51);\r
 +            this.label_duration.Name = "label_duration";\r
 +            this.label_duration.Size = new System.Drawing.Size(32, 13);\r
 +            this.label_duration.TabIndex = 42;\r
 +            this.label_duration.Text = "\8e\9e\8aÔ:";\r
++*/\r
+             // drop_angle\r
+             // \r
+             this.drop_angle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.drop_angle.FormattingEnabled = true;\r
+             this.drop_angle.Location = new System.Drawing.Point(209, 3);\r
+             this.drop_angle.Name = "drop_angle";\r
+             this.drop_angle.Size = new System.Drawing.Size(45, 21);\r
+             this.drop_angle.TabIndex = 45;\r
+             this.ToolTip.SetToolTip(this.drop_angle, "Select the chapter range you would like to enocde. (default: All Chapters)");\r
+             // \r
++/*\r
 +            this.label7.AutoSize = true;\r
 +            this.label7.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label7.Location = new System.Drawing.Point(311, 31);\r
 +            this.label7.Name = "label7";\r
 +            this.label7.Size = new System.Drawing.Size(42, 13);\r
 +            this.label7.TabIndex = 12;\r
 +            this.label7.Text = "\95Ï\8a·\8c³:";\r
++*/\r
+             // drp_dvdtitle\r
+             // \r
+             this.drp_dvdtitle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.drp_dvdtitle.FormattingEnabled = true;\r
+             this.drp_dvdtitle.Items.AddRange(new object[] {\r
+             "Automatic"});\r
+             this.drp_dvdtitle.Location = new System.Drawing.Point(40, 3);\r
+             this.drp_dvdtitle.Name = "drp_dvdtitle";\r
+             this.drp_dvdtitle.Size = new System.Drawing.Size(119, 21);\r
+             this.drp_dvdtitle.TabIndex = 7;\r
+             this.ToolTip.SetToolTip(this.drp_dvdtitle, "Select the title you wish to encode.\r\nThe longest title is selected by default af" +\r
+                     "ter you have scanned a source.");\r
+             this.drp_dvdtitle.SelectedIndexChanged += new System.EventHandler(this.drp_dvdtitle_SelectedIndexChanged);\r
+             this.drp_dvdtitle.Click += new System.EventHandler(this.drp_dvdtitle_Click);\r
              // \r
              // DVD_Open\r
              // \r
              // FileToolStripMenuItem\r
              // \r
              this.FileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
+             this.mnu_killCLI,\r
              this.mnu_exit});\r
              this.FileToolStripMenuItem.Name = "FileToolStripMenuItem";\r
-             this.FileToolStripMenuItem.Size = new System.Drawing.Size(63, 20);\r
+             this.FileToolStripMenuItem.Size = new System.Drawing.Size(35, 20);\r
 -            this.FileToolStripMenuItem.Text = "&File";\r
 +            this.FileToolStripMenuItem.Text = "\83t\83@\83C\83\8b(&F)";\r
              // \r
+             // mnu_killCLI\r
+             // \r
+             this.mnu_killCLI.Name = "mnu_killCLI";\r
+             this.mnu_killCLI.Size = new System.Drawing.Size(143, 22);\r
+             this.mnu_killCLI.Text = "Cancel Scan";\r
+             this.mnu_killCLI.Visible = false;\r
+             this.mnu_killCLI.Click += new System.EventHandler(this.mnu_killCLI_Click);\r
+             // \r
              // mnu_exit\r
              // \r
              this.mnu_exit.Name = "mnu_exit";\r
-             this.mnu_exit.Size = new System.Drawing.Size(111, 22);\r
+             this.mnu_exit.Size = new System.Drawing.Size(143, 22);\r
 -            this.mnu_exit.Text = "E&xit";\r
 +            this.mnu_exit.Text = "\8fI\97¹(E&)";\r
              this.mnu_exit.Click += new System.EventHandler(this.mnu_exit_Click);\r
              // \r
              // mnu_open3\r
              this.ToolStripSeparator5,\r
              this.mnu_options});\r
              this.ToolsToolStripMenuItem.Name = "ToolsToolStripMenuItem";\r
-             this.ToolsToolStripMenuItem.Size = new System.Drawing.Size(59, 20);\r
+             this.ToolsToolStripMenuItem.Size = new System.Drawing.Size(44, 20);\r
 -            this.ToolsToolStripMenuItem.Text = "&Tools";\r
 +            this.ToolsToolStripMenuItem.Text = "\83c\81[\83\8b(&T)";\r
              // \r
              // mnu_encode\r
              // \r
              this.mnu_encode.Image = global::Handbrake.Properties.Resources.Queue_Small;\r
              this.mnu_encode.Name = "mnu_encode";\r
              this.mnu_encode.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q)));\r
-             this.mnu_encode.Size = new System.Drawing.Size(171, 22);\r
+             this.mnu_encode.Size = new System.Drawing.Size(186, 22);\r
 -            this.mnu_encode.Text = "Show Queue";\r
 +            this.mnu_encode.Text = "\83L\83\85\81[\82ð\95\\8e¦";\r
              this.mnu_encode.Click += new System.EventHandler(this.mnu_encode_Click);\r
              // \r
              // mnu_encodeLog\r
              // \r
              this.mnu_encodeLog.Image = global::Handbrake.Properties.Resources.ActivityWindow_small;\r
              this.mnu_encodeLog.Name = "mnu_encodeLog";\r
-             this.mnu_encodeLog.Size = new System.Drawing.Size(171, 22);\r
+             this.mnu_encodeLog.Size = new System.Drawing.Size(186, 22);\r
 -            this.mnu_encodeLog.Text = "Activity Window";\r
 +            this.mnu_encodeLog.Text = "\97\9a\97ð\83E\83B\83\93\83h\83E";\r
              this.mnu_encodeLog.Click += new System.EventHandler(this.mnu_encodeLog_Click);\r
              // \r
              // ToolStripSeparator5\r
              // \r
              this.mnu_options.Image = global::Handbrake.Properties.Resources.Pref_Small;\r
              this.mnu_options.Name = "mnu_options";\r
-             this.mnu_options.Size = new System.Drawing.Size(171, 22);\r
+             this.mnu_options.Size = new System.Drawing.Size(186, 22);\r
 -            this.mnu_options.Text = "Options";\r
 +            this.mnu_options.Text = "\83I\83v\83V\83\87\83\93\90Ý\92è...";\r
              this.mnu_options.Click += new System.EventHandler(this.mnu_options_Click);\r
              // \r
              // PresetsToolStripMenuItem\r
              this.mnu_delete_preset,\r
              this.toolStripSeparator7,\r
              this.btn_new_preset,\r
+             this.mnu_importMacPreset,\r
              this.mnu_SelectDefault});\r
              this.PresetsToolStripMenuItem.Name = "PresetsToolStripMenuItem";\r
-             this.PresetsToolStripMenuItem.Size = new System.Drawing.Size(71, 20);\r
+             this.PresetsToolStripMenuItem.Size = new System.Drawing.Size(55, 20);\r
 -            this.PresetsToolStripMenuItem.Text = "&Presets";\r
 +            this.PresetsToolStripMenuItem.Text = "\83v\83\8a\83Z\83b\83g(&P)";\r
              // \r
              // mnu_presetReset\r
              // \r
              this.mnu_presetReset.Name = "mnu_presetReset";\r
-             this.mnu_presetReset.Size = new System.Drawing.Size(200, 22);\r
+             this.mnu_presetReset.Size = new System.Drawing.Size(194, 22);\r
 -            this.mnu_presetReset.Text = "Update Built-in Presets";\r
 +            this.mnu_presetReset.Text = "\91g\82Ý\8d\9e\82Ý\83v\83\8a\83Z\83b\83g\82Ì\83A\83b\83v\83f\81[\83g";\r
              this.mnu_presetReset.ToolTipText = "Resets all presets.";\r
              this.mnu_presetReset.Click += new System.EventHandler(this.mnu_presetReset_Click);\r
              // \r
              // mnu_delete_preset\r
              // \r
              this.mnu_delete_preset.Name = "mnu_delete_preset";\r
-             this.mnu_delete_preset.Size = new System.Drawing.Size(200, 22);\r
+             this.mnu_delete_preset.Size = new System.Drawing.Size(194, 22);\r
 -            this.mnu_delete_preset.Text = "Delete Built-in Presets";\r
 +            this.mnu_delete_preset.Text = "\91g\82Ý\8d\9e\82Ý\83v\83\8a\83Z\83b\83g\82Ì\8dí\8f\9c";\r
              this.mnu_delete_preset.Click += new System.EventHandler(this.mnu_delete_preset_Click);\r
              // \r
              // toolStripSeparator7\r
              // btn_new_preset\r
              // \r
              this.btn_new_preset.Name = "btn_new_preset";\r
-             this.btn_new_preset.Size = new System.Drawing.Size(200, 22);\r
+             this.btn_new_preset.Size = new System.Drawing.Size(194, 22);\r
 -            this.btn_new_preset.Text = "New Preset";\r
 +            this.btn_new_preset.Text = "\90V\8bK\83v\83\8a\83Z\83b\83g";\r
              this.btn_new_preset.Click += new System.EventHandler(this.btn_new_preset_Click);\r
              // \r
+             // mnu_importMacPreset\r
+             // \r
+             this.mnu_importMacPreset.Name = "mnu_importMacPreset";\r
+             this.mnu_importMacPreset.Size = new System.Drawing.Size(194, 22);\r
+             this.mnu_importMacPreset.Text = "Import";\r
+             this.mnu_importMacPreset.Click += new System.EventHandler(this.mnu_importMacPreset_Click);\r
+             // \r
              // mnu_SelectDefault\r
              // \r
              this.mnu_SelectDefault.Name = "mnu_SelectDefault";\r
-             this.mnu_SelectDefault.Size = new System.Drawing.Size(200, 22);\r
+             this.mnu_SelectDefault.Size = new System.Drawing.Size(194, 22);\r
 -            this.mnu_SelectDefault.Text = "Select Default Preset";\r
 +            this.mnu_SelectDefault.Text = "\83f\83t\83H\83\8b\83g\83v\83\8a\83Z\83b\83g\82É\90Ý\92è";\r
              this.mnu_SelectDefault.ToolTipText = "Select HandBrake\'s default preset";\r
              this.mnu_SelectDefault.Click += new System.EventHandler(this.mnu_SelectDefault_Click);\r
              // \r
              this.toolStripSeparator6,\r
              this.mnu_about});\r
              this.HelpToolStripMenuItem.Name = "HelpToolStripMenuItem";\r
-             this.HelpToolStripMenuItem.Size = new System.Drawing.Size(61, 20);\r
+             this.HelpToolStripMenuItem.Size = new System.Drawing.Size(40, 20);\r
 -            this.HelpToolStripMenuItem.Text = "&Help";\r
 +            this.HelpToolStripMenuItem.Text = "\83w\83\8b\83v(&H)";\r
              // \r
              // mnu_user_guide\r
              // \r
              this.mnu_user_guide.Image = global::Handbrake.Properties.Resources.Help16;\r
              this.mnu_user_guide.Name = "mnu_user_guide";\r
-             this.mnu_user_guide.Size = new System.Drawing.Size(191, 22);\r
+             this.mnu_user_guide.Size = new System.Drawing.Size(192, 22);\r
 -            this.mnu_user_guide.Text = "HandBrake User Guide";\r
 +            this.mnu_user_guide.Text = "HandBrake\83\86\81[\83U\81[\83K\83C\83h";\r
              this.mnu_user_guide.Click += new System.EventHandler(this.mnu_user_guide_Click);\r
              // \r
              // mnu_handbrake_home\r
              // \r
              this.mnu_handbrake_home.Image = global::Handbrake.Properties.Resources.info16;\r
              this.mnu_handbrake_home.Name = "mnu_handbrake_home";\r
-             this.mnu_handbrake_home.Size = new System.Drawing.Size(191, 22);\r
+             this.mnu_handbrake_home.Size = new System.Drawing.Size(192, 22);\r
 -            this.mnu_handbrake_home.Text = "HandBrake Homepage";\r
 +            this.mnu_handbrake_home.Text = "HandBrake\83z\81[\83\80\83y\81[\83W";\r
              this.mnu_handbrake_home.Click += new System.EventHandler(this.mnu_handbrake_home_Click);\r
              // \r
              // mnu_handbrake_forums\r
              // \r
              this.mnu_handbrake_forums.Name = "mnu_handbrake_forums";\r
-             this.mnu_handbrake_forums.Size = new System.Drawing.Size(191, 22);\r
+             this.mnu_handbrake_forums.Size = new System.Drawing.Size(192, 22);\r
 -            this.mnu_handbrake_forums.Text = "HandBrake Forums";\r
 +            this.mnu_handbrake_forums.Text = "HandBrake\8cf\8e¦\94Â";\r
              this.mnu_handbrake_forums.Click += new System.EventHandler(this.mnu_handbrake_forums_Click);\r
              // \r
              // ToolStripSeparator3\r
              // mnu_UpdateCheck\r
              // \r
              this.mnu_UpdateCheck.Name = "mnu_UpdateCheck";\r
-             this.mnu_UpdateCheck.Size = new System.Drawing.Size(191, 22);\r
+             this.mnu_UpdateCheck.Size = new System.Drawing.Size(192, 22);\r
 -            this.mnu_UpdateCheck.Text = "Check for Updates";\r
 +            this.mnu_UpdateCheck.Text = "\83A\83b\83v\83f\81[\83g\82Ì\8am\94F...";\r
              this.mnu_UpdateCheck.Click += new System.EventHandler(this.mnu_UpdateCheck_Click);\r
              // \r
              // toolStripSeparator6\r
              // \r
              this.mnu_about.Image = global::Handbrake.Properties.Resources.hb16;\r
              this.mnu_about.Name = "mnu_about";\r
-             this.mnu_about.Size = new System.Drawing.Size(191, 22);\r
+             this.mnu_about.Size = new System.Drawing.Size(192, 22);\r
 -            this.mnu_about.Text = "About...";\r
 +            this.mnu_about.Text = "HandBrake\82É\82Â\82¢\82Ä...";\r
              this.mnu_about.Click += new System.EventHandler(this.mnu_about_Click);\r
              // \r
              // frmMainMenu\r
              this.HelpToolStripMenuItem});\r
              this.frmMainMenu.Location = new System.Drawing.Point(0, 0);\r
              this.frmMainMenu.Name = "frmMainMenu";\r
-             this.frmMainMenu.Size = new System.Drawing.Size(985, 24);\r
+             this.frmMainMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;\r
+             this.frmMainMenu.Size = new System.Drawing.Size(1002, 24);\r
              this.frmMainMenu.TabIndex = 0;\r
++/*\r
 +            this.frmMainMenu.Text = "MenuStrip1";\r
 +            // \r
 +            // GroupBox1\r
 +            // \r
 +            this.GroupBox1.Controls.Add(this.lbl_duration);\r
 +            this.GroupBox1.Controls.Add(this.label_duration);\r
 +            this.GroupBox1.Controls.Add(this.Label13);\r
 +            this.GroupBox1.Controls.Add(this.drop_chapterFinish);\r
 +            this.GroupBox1.Controls.Add(this.drop_chapterStart);\r
 +            this.GroupBox1.Controls.Add(this.drp_dvdtitle);\r
 +            this.GroupBox1.Controls.Add(this.Label17);\r
 +            this.GroupBox1.Controls.Add(this.text_source);\r
 +            this.GroupBox1.Controls.Add(this.Label9);\r
 +            this.GroupBox1.Controls.Add(this.Label10);\r
 +            this.GroupBox1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.GroupBox1.ForeColor = System.Drawing.Color.Black;\r
 +            this.GroupBox1.Location = new System.Drawing.Point(12, 65);\r
 +            this.GroupBox1.Name = "GroupBox1";\r
 +            this.GroupBox1.Size = new System.Drawing.Size(705, 80);\r
 +            this.GroupBox1.TabIndex = 2;\r
 +            this.GroupBox1.TabStop = false;\r
 +            this.GroupBox1.Text = "\95Ï\8a·\8c³";\r
 +            // \r
 +            // Label13\r
 +            // \r
 +            this.Label13.AutoSize = true;\r
 +            this.Label13.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label13.Location = new System.Drawing.Point(370, 51);\r
 +            this.Label13.Name = "Label13";\r
 +            this.Label13.Size = new System.Drawing.Size(22, 13);\r
 +            this.Label13.TabIndex = 10;\r
 +            this.Label13.Text = "\82©\82ç";\r
 +            // \r
 +            // Label17\r
 +            // \r
 +            this.Label17.AutoSize = true;\r
 +            this.Label17.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label17.ForeColor = System.Drawing.Color.Black;\r
 +            this.Label17.Location = new System.Drawing.Point(17, 20);\r
 +            this.Label17.Name = "Label17";\r
 +            this.Label17.Size = new System.Drawing.Size(42, 13);\r
 +            this.Label17.TabIndex = 0;\r
 +            this.Label17.Text = "\95Ï\8a·\8c³:";\r
 +            // \r
 +            // Label9\r
 +            // \r
 +            this.Label9.AutoSize = true;\r
 +            this.Label9.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label9.ForeColor = System.Drawing.Color.Black;\r
 +            this.Label9.Location = new System.Drawing.Point(225, 51);\r
 +            this.Label9.Name = "Label9";\r
 +            this.Label9.Size = new System.Drawing.Size(50, 13);\r
 +            this.Label9.TabIndex = 8;\r
 +            this.Label9.Text = "\83`\83\83\83v\83^\81[:";\r
 +            // \r
 +            // Label10\r
 +            // \r
 +            this.Label10.AutoSize = true;\r
 +            this.Label10.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label10.ForeColor = System.Drawing.Color.Black;\r
 +            this.Label10.Location = new System.Drawing.Point(17, 51);\r
 +            this.Label10.Name = "Label10";\r
 +            this.Label10.Size = new System.Drawing.Size(41, 13);\r
 +            this.Label10.TabIndex = 6;\r
 +            this.Label10.Text = "\83^\83C\83g\83\8b:";\r
 +            // \r
 +            // groupBox_output\r
 +            // \r
 +            this.groupBox_output.Controls.Add(this.drop_format);\r
 +            this.groupBox_output.Controls.Add(this.label5);\r
 +            this.groupBox_output.Controls.Add(this.check_largeFile);\r
 +            this.groupBox_output.Controls.Add(this.check_iPodAtom);\r
 +            this.groupBox_output.Controls.Add(this.check_optimiseMP4);\r
 +            this.groupBox_output.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.groupBox_output.ForeColor = System.Drawing.Color.Black;\r
 +            this.groupBox_output.Location = new System.Drawing.Point(12, 198);\r
 +            this.groupBox_output.Name = "groupBox_output";\r
 +            this.groupBox_output.Size = new System.Drawing.Size(705, 46);\r
 +            this.groupBox_output.TabIndex = 4;\r
 +            this.groupBox_output.TabStop = false;\r
 +            this.groupBox_output.Text = "Output Settings (Preset: None)";\r
++*/\r
+             this.frmMainMenu.Text = "MenuStrip";\r
              // \r
              // label5\r
              // \r
+             this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.label5.AutoSize = true;\r
-             this.label5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.label5.ForeColor = System.Drawing.Color.Black;\r
 -            this.label5.Text = "Container:";\r
++/*\r
 +            this.label5.Location = new System.Drawing.Point(17, 21);\r
 +            this.label5.Name = "label5";\r
 +            this.label5.Size = new System.Drawing.Size(55, 13);\r
 +            this.label5.TabIndex = 27;\r
 +            this.label5.Text = "\83t\83H\81[\83}\83b\83g:";\r
++*/\r
+             this.label5.Location = new System.Drawing.Point(3, 7);\r
+             this.label5.Name = "label5";\r
+             this.label5.Size = new System.Drawing.Size(58, 13);\r
+             this.label5.TabIndex = 27;\r
++            this.label5.Text = "\83R\83\93\83e\83i:";\r
              // \r
              // Label47\r
              // \r
              this.Label47.AutoSize = true;\r
-             this.Label47.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.Label47.BackColor = System.Drawing.Color.Transparent;\r
              this.Label47.ForeColor = System.Drawing.Color.Black;\r
 -            this.Label47.Location = new System.Drawing.Point(13, 39);\r
 +            this.Label47.Location = new System.Drawing.Point(13, 36);\r
              this.Label47.Name = "Label47";\r
-             this.Label47.Size = new System.Drawing.Size(68, 13);\r
+             this.Label47.Size = new System.Drawing.Size(70, 13);\r
              this.Label47.TabIndex = 0;\r
 -            this.Label47.Text = "Video Codec:";\r
 +            this.Label47.Text = "\93®\89æ\83R\81[\83f\83b\83N:";\r
              // \r
              // Label3\r
              // \r
+             this.Label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
              this.Label3.AutoSize = true;\r
-             this.Label3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.Label3.ForeColor = System.Drawing.Color.Black;\r
-             this.Label3.Location = new System.Drawing.Point(17, 19);\r
+             this.Label3.Location = new System.Drawing.Point(3, 8);\r
              this.Label3.Name = "Label3";\r
-             this.Label3.Size = new System.Drawing.Size(70, 13);\r
+             this.Label3.Size = new System.Drawing.Size(27, 13);\r
              this.Label3.TabIndex = 0;\r
 -            this.Label3.Text = "File:";\r
 -            // \r
 +            this.Label3.Text = "\95Û\91\90æ\83t\83@\83C\83\8b:";\r
 +            // \r
++/*\r
 +            // TabPage2\r
 +            // \r
 +            this.TabPage2.BackColor = System.Drawing.Color.Transparent;\r
 +            this.TabPage2.Controls.Add(this.lbl_drc4);\r
 +            this.TabPage2.Controls.Add(this.lbl_drc3);\r
 +            this.TabPage2.Controls.Add(this.lbl_drc2);\r
 +            this.TabPage2.Controls.Add(this.lbl_drc1);\r
 +            this.TabPage2.Controls.Add(this.trackBar4);\r
 +            this.TabPage2.Controls.Add(this.drp_audsr_4);\r
 +            this.TabPage2.Controls.Add(this.drp_audbit_4);\r
 +            this.TabPage2.Controls.Add(this.drp_audenc_4);\r
 +            this.TabPage2.Controls.Add(this.drp_audmix_4);\r
 +            this.TabPage2.Controls.Add(this.drp_track4Audio);\r
 +            this.TabPage2.Controls.Add(this.lbl_t4);\r
 +            this.TabPage2.Controls.Add(this.trackBar3);\r
 +            this.TabPage2.Controls.Add(this.drp_audsr_3);\r
 +            this.TabPage2.Controls.Add(this.drp_audbit_3);\r
 +            this.TabPage2.Controls.Add(this.drp_audenc_3);\r
 +            this.TabPage2.Controls.Add(this.drp_audmix_3);\r
 +            this.TabPage2.Controls.Add(this.drp_track3Audio);\r
 +            this.TabPage2.Controls.Add(this.lbl_t3);\r
 +            this.TabPage2.Controls.Add(this.trackBar2);\r
 +            this.TabPage2.Controls.Add(this.label16);\r
 +            this.TabPage2.Controls.Add(this.trackBar1);\r
 +            this.TabPage2.Controls.Add(this.groupBox5);\r
 +            this.TabPage2.Controls.Add(this.groupBox3);\r
 +            this.TabPage2.Controls.Add(this.label68);\r
 +            this.TabPage2.Controls.Add(this.label67);\r
 +            this.TabPage2.Controls.Add(this.drp_audsr_2);\r
 +            this.TabPage2.Controls.Add(this.label66);\r
 +            this.TabPage2.Controls.Add(this.drp_audbit_2);\r
 +            this.TabPage2.Controls.Add(this.label65);\r
 +            this.TabPage2.Controls.Add(this.label14);\r
 +            this.TabPage2.Controls.Add(this.drp_audenc_2);\r
 +            this.TabPage2.Controls.Add(this.drp_audenc_1);\r
 +            this.TabPage2.Controls.Add(this.drp_audmix_2);\r
 +            this.TabPage2.Controls.Add(this.check_forced);\r
 +            this.TabPage2.Controls.Add(this.drp_track2Audio);\r
 +            this.TabPage2.Controls.Add(this.label28);\r
 +            this.TabPage2.Controls.Add(this.label27);\r
 +            this.TabPage2.Controls.Add(this.drp_subtitle);\r
 +            this.TabPage2.Controls.Add(this.Label19);\r
 +            this.TabPage2.Controls.Add(this.Label20);\r
 +            this.TabPage2.Controls.Add(this.drp_audmix_1);\r
 +            this.TabPage2.Controls.Add(this.drp_track1Audio);\r
 +            this.TabPage2.Controls.Add(this.drp_audbit_1);\r
 +            this.TabPage2.Controls.Add(this.Label32);\r
 +            this.TabPage2.Controls.Add(this.drp_audsr_1);\r
 +            this.TabPage2.Location = new System.Drawing.Point(4, 22);\r
 +            this.TabPage2.Name = "TabPage2";\r
 +            this.TabPage2.Padding = new System.Windows.Forms.Padding(3);\r
 +            this.TabPage2.Size = new System.Drawing.Size(697, 290);\r
 +            this.TabPage2.TabIndex = 3;\r
 +            this.TabPage2.Text = "\89¹\90º\82Æ\8e\9a\96\8b";\r
 +            this.TabPage2.UseVisualStyleBackColor = true;\r
 +            // \r
 +            // lbl_drc4\r
 +            // \r
 +            this.lbl_drc4.AutoSize = true;\r
 +            this.lbl_drc4.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_drc4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_drc4.Location = new System.Drawing.Point(670, 162);\r
 +            this.lbl_drc4.Name = "lbl_drc4";\r
 +            this.lbl_drc4.Size = new System.Drawing.Size(19, 13);\r
 +            this.lbl_drc4.TabIndex = 39;\r
 +            this.lbl_drc4.Text = "1:";\r
 +            // \r
 +            // lbl_drc3\r
 +            // \r
 +            this.lbl_drc3.AutoSize = true;\r
 +            this.lbl_drc3.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_drc3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_drc3.Location = new System.Drawing.Point(670, 125);\r
 +            this.lbl_drc3.Name = "lbl_drc3";\r
 +            this.lbl_drc3.Size = new System.Drawing.Size(19, 13);\r
 +            this.lbl_drc3.TabIndex = 31;\r
 +            this.lbl_drc3.Text = "1:";\r
 +            // \r
 +            // lbl_drc2\r
 +            // \r
 +            this.lbl_drc2.AutoSize = true;\r
 +            this.lbl_drc2.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_drc2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_drc2.Location = new System.Drawing.Point(670, 83);\r
 +            this.lbl_drc2.Name = "lbl_drc2";\r
 +            this.lbl_drc2.Size = new System.Drawing.Size(19, 13);\r
 +            this.lbl_drc2.TabIndex = 23;\r
 +            this.lbl_drc2.Text = "1:";\r
 +            // \r
 +            // lbl_drc1\r
 +            // \r
 +            this.lbl_drc1.AutoSize = true;\r
 +            this.lbl_drc1.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_drc1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_drc1.Location = new System.Drawing.Point(670, 49);\r
 +            this.lbl_drc1.Name = "lbl_drc1";\r
 +            this.lbl_drc1.Size = new System.Drawing.Size(19, 13);\r
 +            this.lbl_drc1.TabIndex = 15;\r
 +            this.lbl_drc1.Text = "1:";\r
 +            // \r
 +            // trackBar4\r
 +            // \r
 +            this.trackBar4.Enabled = false;\r
 +            this.trackBar4.LargeChange = 0;\r
 +            this.trackBar4.Location = new System.Drawing.Point(620, 156);\r
 +            this.trackBar4.Margin = new System.Windows.Forms.Padding(0);\r
 +            this.trackBar4.Maximum = 30;\r
 +            this.trackBar4.Name = "trackBar4";\r
 +            this.trackBar4.Size = new System.Drawing.Size(49, 42);\r
 +            this.trackBar4.TabIndex = 38;\r
 +            this.trackBar4.TickFrequency = 10;\r
 +            this.ToolTip.SetToolTip(this.trackBar4, "\83_\83C\83i\83~\83b\83N\83\8c\83\93\83W\83R\83\93\83v\83\8c\83b\83V\83\87\83\93\81iDRC\81j\82Ì\8b­\93x\82ð\8ew\92è\82µ\82Ü\82·");\r
 +            this.trackBar4.ValueChanged += new System.EventHandler(this.trackBar4_Scroll);\r
 +            // \r
 +            // drp_track4Audio\r
 +            // \r
 +            this.drp_track4Audio.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_track4Audio.FormattingEnabled = true;\r
 +            this.drp_track4Audio.Items.AddRange(new object[] {\r
 +            "None"});\r
 +            this.drp_track4Audio.Location = new System.Drawing.Point(36, 161);\r
 +            this.drp_track4Audio.Name = "drp_track4Audio";\r
 +            this.drp_track4Audio.Size = new System.Drawing.Size(194, 20);\r
 +            this.drp_track4Audio.TabIndex = 33;\r
 +            this.drp_track4Audio.SelectedIndexChanged += new System.EventHandler(this.drp_track4Audio_SelectedIndexChanged);\r
 +            // \r
 +            // lbl_t4\r
 +            // \r
 +            this.lbl_t4.AutoSize = true;\r
 +            this.lbl_t4.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_t4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_t4.Location = new System.Drawing.Point(13, 163);\r
 +            this.lbl_t4.Name = "lbl_t4";\r
 +            this.lbl_t4.Size = new System.Drawing.Size(19, 13);\r
 +            this.lbl_t4.TabIndex = 32;\r
 +            this.lbl_t4.Text = "4:";\r
 +            // \r
 +            // trackBar3\r
 +            // \r
 +            this.trackBar3.Enabled = false;\r
 +            this.trackBar3.LargeChange = 0;\r
 +            this.trackBar3.Location = new System.Drawing.Point(620, 118);\r
 +            this.trackBar3.Margin = new System.Windows.Forms.Padding(0);\r
 +            this.trackBar3.Maximum = 30;\r
 +            this.trackBar3.Name = "trackBar3";\r
 +            this.trackBar3.Size = new System.Drawing.Size(49, 42);\r
 +            this.trackBar3.TabIndex = 30;\r
 +            this.trackBar3.TickFrequency = 10;\r
 +            this.ToolTip.SetToolTip(this.trackBar3, "\83_\83C\83i\83~\83b\83N\83\8c\83\93\83W\83R\83\93\83v\83\8c\83b\83V\83\87\83\93\81iDRC\81j\82Ì\8b­\93x\82ð\8ew\92è\82µ\82Ü\82·");\r
 +            this.trackBar3.ValueChanged += new System.EventHandler(this.trackBar3_Scroll);\r
 +            // \r
 +            // drp_track3Audio\r
 +            // \r
 +            this.drp_track3Audio.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_track3Audio.FormattingEnabled = true;\r
 +            this.drp_track3Audio.Items.AddRange(new object[] {\r
 +            "None"});\r
 +            this.drp_track3Audio.Location = new System.Drawing.Point(36, 122);\r
 +            this.drp_track3Audio.Name = "drp_track3Audio";\r
 +            this.drp_track3Audio.Size = new System.Drawing.Size(194, 20);\r
 +            this.drp_track3Audio.TabIndex = 25;\r
 +            this.drp_track3Audio.SelectedIndexChanged += new System.EventHandler(this.drp_track3Audio_SelectedIndexChanged);\r
 +            // \r
 +            // lbl_t3\r
 +            // \r
 +            this.lbl_t3.AutoSize = true;\r
 +            this.lbl_t3.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_t3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_t3.Location = new System.Drawing.Point(13, 125);\r
 +            this.lbl_t3.Name = "lbl_t3";\r
 +            this.lbl_t3.Size = new System.Drawing.Size(19, 13);\r
 +            this.lbl_t3.TabIndex = 24;\r
 +            this.lbl_t3.Text = "3:";\r
 +            // \r
 +            // trackBar2\r
 +            // \r
 +            this.trackBar2.LargeChange = 0;\r
 +            this.trackBar2.Location = new System.Drawing.Point(620, 79);\r
 +            this.trackBar2.Margin = new System.Windows.Forms.Padding(0);\r
 +            this.trackBar2.Maximum = 30;\r
 +            this.trackBar2.Name = "trackBar2";\r
 +            this.trackBar2.Size = new System.Drawing.Size(49, 42);\r
 +            this.trackBar2.TabIndex = 22;\r
 +            this.trackBar2.TickFrequency = 10;\r
 +            this.ToolTip.SetToolTip(this.trackBar2, "\83_\83C\83i\83~\83b\83N\83\8c\83\93\83W\83R\83\93\83v\83\8c\83b\83V\83\87\83\93\81iDRC\81j\82Ì\8b­\93x\82ð\8ew\92è\82µ\82Ü\82·");\r
 +            this.trackBar2.ValueChanged += new System.EventHandler(this.trackBar2_Scroll);\r
 +            // \r
 +            // label16\r
 +            // \r
 +            this.label16.AutoSize = true;\r
 +            this.label16.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label16.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label16.Location = new System.Drawing.Point(628, 33);\r
 +            this.label16.Name = "label16";\r
 +            this.label16.Size = new System.Drawing.Size(28, 12);\r
 +            this.label16.TabIndex = 14;\r
 +            this.label16.Text = "DRC";\r
 +            // \r
 +            // trackBar1\r
 +            // \r
 +            this.trackBar1.LargeChange = 0;\r
 +            this.trackBar1.Location = new System.Drawing.Point(619, 44);\r
 +            this.trackBar1.Margin = new System.Windows.Forms.Padding(0);\r
 +            this.trackBar1.Maximum = 30;\r
 +            this.trackBar1.Name = "trackBar1";\r
 +            this.trackBar1.Size = new System.Drawing.Size(50, 42);\r
 +            this.trackBar1.TabIndex = 13;\r
 +            this.trackBar1.TickFrequency = 10;\r
 +            this.ToolTip.SetToolTip(this.trackBar1, "\83_\83C\83i\83~\83b\83N\83\8c\83\93\83W\83R\83\93\83v\83\8c\83b\83V\83\87\83\93\81iDRC\81j\82Ì\8b­\93x\82ð\8ew\92è\82µ\82Ü\82·");\r
 +            this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_Scroll);\r
 +            // \r
 +            // groupBox5\r
 +            // \r
 +            this.groupBox5.Location = new System.Drawing.Point(107, 12);\r
 +            this.groupBox5.Name = "groupBox5";\r
 +            this.groupBox5.Size = new System.Drawing.Size(577, 9);\r
 +            this.groupBox5.TabIndex = 1;\r
 +            this.groupBox5.TabStop = false;\r
 +            // \r
 +            // groupBox3\r
 +            // \r
 +            this.groupBox3.Location = new System.Drawing.Point(83, 202);\r
 +            this.groupBox3.Name = "groupBox3";\r
 +            this.groupBox3.Size = new System.Drawing.Size(601, 9);\r
 +            this.groupBox3.TabIndex = 41;\r
 +            this.groupBox3.TabStop = false;\r
 +            // \r
 +            // label68\r
 +            // \r
 +            this.label68.AutoSize = true;\r
 +            this.label68.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label68.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label68.Location = new System.Drawing.Point(13, 12);\r
 +            this.label68.Name = "label68";\r
 +            this.label68.Size = new System.Drawing.Size(60, 13);\r
 +            this.label68.TabIndex = 0;\r
 +            this.label68.Text = "\89¹\90º\83g\83\89\83b\83N";\r
 +            // \r
 +            // label67\r
 +            // \r
 +            this.label67.AutoSize = true;\r
 +            this.label67.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label67.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label67.Location = new System.Drawing.Point(479, 22);\r
 +            this.label67.Name = "label67";\r
 +            this.label67.Size = new System.Drawing.Size(65, 24);\r
 +            this.label67.TabIndex = 10;\r
 +            this.label67.Text = "\83T\83\93\83v\83\8a\83\93\83O\83\8c\81[\83g\r\n(kHz)";\r
 +            // \r
 +            // label66\r
 +            // \r
 +            this.label66.AutoSize = true;\r
 +            this.label66.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label66.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label66.Location = new System.Drawing.Point(542, 33);\r
 +            this.label66.Name = "label66";\r
 +            this.label66.Size = new System.Drawing.Size(75, 12);\r
 +            this.label66.TabIndex = 12;\r
 +            this.label66.Text = "\83r\83b\83g\83\8c\81[\83g(Kbps)";\r
 +            // \r
 +            // label65\r
 +            // \r
 +            this.label65.AutoSize = true;\r
 +            this.label65.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label65.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label65.Location = new System.Drawing.Point(255, 33);\r
 +            this.label65.Name = "label65";\r
 +            this.label65.Size = new System.Drawing.Size(54, 12);\r
 +            this.label65.TabIndex = 6;\r
 +            this.label65.Text = "\89¹\90º\83R\81[\83f\83b\83N";\r
 +            // \r
 +            // label14\r
 +            // \r
 +            this.label14.AutoSize = true;\r
 +            this.label14.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label14.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label14.Location = new System.Drawing.Point(380, 33);\r
 +            this.label14.Name = "label14";\r
 +            this.label14.Size = new System.Drawing.Size(49, 12);\r
 +            this.label14.TabIndex = 8;\r
 +            this.label14.Text = "\83~\83b\83N\83X\83_\83E\83\93";\r
 +            // \r
 +            // drp_track2Audio\r
 +            // \r
 +            this.drp_track2Audio.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_track2Audio.FormattingEnabled = true;\r
 +            this.drp_track2Audio.Items.AddRange(new object[] {\r
 +            "None"});\r
 +            this.drp_track2Audio.Location = new System.Drawing.Point(36, 84);\r
 +            this.drp_track2Audio.Name = "drp_track2Audio";\r
 +            this.drp_track2Audio.Size = new System.Drawing.Size(194, 20);\r
 +            this.drp_track2Audio.TabIndex = 17;\r
 +            this.drp_track2Audio.SelectedIndexChanged += new System.EventHandler(this.drp_track2Audio_SelectedIndexChanged);\r
 +            // \r
 +            // label28\r
 +            // \r
 +            this.label28.AutoSize = true;\r
 +            this.label28.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label28.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label28.Location = new System.Drawing.Point(13, 87);\r
 +            this.label28.Name = "label28";\r
 +            this.label28.Size = new System.Drawing.Size(19, 13);\r
 +            this.label28.TabIndex = 16;\r
 +            this.label28.Text = "2:";\r
 +            // \r
 +            // label27\r
 +            // \r
 +            this.label27.AutoSize = true;\r
 +            this.label27.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label27.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label27.Location = new System.Drawing.Point(107, 33);\r
 +            this.label27.Name = "label27";\r
 +            this.label27.Size = new System.Drawing.Size(32, 12);\r
 +            this.label27.TabIndex = 4;\r
 +            this.label27.Text = "\95Ï\8a·\8c³";\r
 +            // \r
 +            // Label19\r
 +            // \r
 +            this.Label19.AutoSize = true;\r
 +            this.Label19.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label19.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label19.Location = new System.Drawing.Point(13, 202);\r
 +            this.Label19.Name = "Label19";\r
 +            this.Label19.Size = new System.Drawing.Size(29, 13);\r
 +            this.Label19.TabIndex = 40;\r
 +            this.Label19.Text = "\8e\9a\96\8b";\r
 +            // \r
 +            // Label20\r
 +            // \r
 +            this.Label20.AutoSize = true;\r
 +            this.Label20.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label20.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label20.Location = new System.Drawing.Point(13, 228);\r
 +            this.Label20.Name = "Label20";\r
 +            this.Label20.Size = new System.Drawing.Size(32, 13);\r
 +            this.Label20.TabIndex = 42;\r
 +            this.Label20.Text = "\8e\9a\96\8b:";\r
 +            // \r
 +            // drp_track1Audio\r
 +            // \r
 +            this.drp_track1Audio.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_track1Audio.FormattingEnabled = true;\r
 +            this.drp_track1Audio.Items.AddRange(new object[] {\r
 +            "Automatic"});\r
 +            this.drp_track1Audio.Location = new System.Drawing.Point(36, 50);\r
 +            this.drp_track1Audio.Name = "drp_track1Audio";\r
 +            this.drp_track1Audio.Size = new System.Drawing.Size(194, 20);\r
 +            this.drp_track1Audio.TabIndex = 3;\r
 +            // \r
 +            // Label32\r
 +            // \r
 +            this.Label32.AutoSize = true;\r
 +            this.Label32.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label32.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label32.Location = new System.Drawing.Point(13, 53);\r
 +            this.Label32.Name = "Label32";\r
 +            this.Label32.Size = new System.Drawing.Size(19, 13);\r
 +            this.Label32.TabIndex = 2;\r
 +            this.Label32.Text = "1:";\r
 +            // \r
 +            // TabPage3\r
 +            // \r
 +            this.TabPage3.BackColor = System.Drawing.Color.Transparent;\r
 +            this.TabPage3.Controls.Add(this.drp_videoEncoder);\r
 +            this.TabPage3.Controls.Add(this.Label47);\r
 +            this.TabPage3.Controls.Add(this.label25);\r
 +            this.TabPage3.Controls.Add(this.check_grayscale);\r
 +            this.TabPage3.Controls.Add(this.check_turbo);\r
 +            this.TabPage3.Controls.Add(this.Label22);\r
 +            this.TabPage3.Controls.Add(this.check_2PassEncode);\r
 +            this.TabPage3.Controls.Add(this.Label2);\r
 +            this.TabPage3.Controls.Add(this.text_filesize);\r
 +            this.TabPage3.Controls.Add(this.Label42);\r
 +            this.TabPage3.Controls.Add(this.slider_videoQuality);\r
 +            this.TabPage3.Controls.Add(this.text_bitrate);\r
 +            this.TabPage3.Controls.Add(Label38);\r
 +            this.TabPage3.Controls.Add(this.SliderValue);\r
 +            this.TabPage3.Controls.Add(this.Label46);\r
 +            this.TabPage3.Controls.Add(this.Label40);\r
 +            this.TabPage3.Controls.Add(this.drp_videoFramerate);\r
 +            this.TabPage3.Location = new System.Drawing.Point(4, 22);\r
 +            this.TabPage3.Name = "TabPage3";\r
 +            this.TabPage3.Padding = new System.Windows.Forms.Padding(3);\r
 +            this.TabPage3.Size = new System.Drawing.Size(697, 290);\r
 +            this.TabPage3.TabIndex = 2;\r
 +            this.TabPage3.Text = "\93®\89æ";\r
 +            this.TabPage3.UseVisualStyleBackColor = true;\r
++*/\r
+             // tab_audio\r
+             // \r
+             this.tab_audio.BackColor = System.Drawing.Color.Transparent;\r
+             this.tab_audio.Controls.Add(this.AudioSettings);\r
+             this.tab_audio.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_audio.Name = "tab_audio";\r
+             this.tab_audio.Padding = new System.Windows.Forms.Padding(3);\r
+             this.tab_audio.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_audio.TabIndex = 3;\r
 -            this.tab_audio.Text = "Audio";\r
++            this.tab_audio.Text = "\89¹\90º";\r
+             this.tab_audio.UseVisualStyleBackColor = true;\r
+             // \r
+             // AudioSettings\r
+             // \r
+             this.AudioSettings.BackColor = System.Drawing.Color.Transparent;\r
+             this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.AudioSettings.Location = new System.Drawing.Point(0, 0);\r
+             this.AudioSettings.Name = "AudioSettings";\r
+             this.AudioSettings.Size = new System.Drawing.Size(715, 310);\r
+             this.AudioSettings.TabIndex = 0;\r
+             // \r
+             // AudioMenuRowHeightHack\r
+             // \r
+             this.AudioMenuRowHeightHack.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;\r
+             this.AudioMenuRowHeightHack.ImageSize = new System.Drawing.Size(1, 18);\r
+             this.AudioMenuRowHeightHack.TransparentColor = System.Drawing.Color.Transparent;\r
+             // \r
+             // tab_video\r
+             // \r
+             this.tab_video.BackColor = System.Drawing.Color.Transparent;\r
+             this.tab_video.Controls.Add(this.radio_cq);\r
+             this.tab_video.Controls.Add(this.radio_avgBitrate);\r
+             this.tab_video.Controls.Add(this.radio_targetFilesize);\r
+             this.tab_video.Controls.Add(this.drp_videoEncoder);\r
+             this.tab_video.Controls.Add(this.Label47);\r
+             this.tab_video.Controls.Add(this.label25);\r
+             this.tab_video.Controls.Add(this.check_turbo);\r
+             this.tab_video.Controls.Add(this.check_2PassEncode);\r
+             this.tab_video.Controls.Add(this.Label2);\r
+             this.tab_video.Controls.Add(this.text_filesize);\r
+             this.tab_video.Controls.Add(this.slider_videoQuality);\r
+             this.tab_video.Controls.Add(this.text_bitrate);\r
+             this.tab_video.Controls.Add(this.SliderValue);\r
+             this.tab_video.Controls.Add(this.Label46);\r
+             this.tab_video.Controls.Add(this.drp_videoFramerate);\r
+             this.tab_video.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_video.Name = "tab_video";\r
+             this.tab_video.Padding = new System.Windows.Forms.Padding(3);\r
+             this.tab_video.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_video.TabIndex = 2;\r
+             this.tab_video.Text = "Video";\r
+             this.tab_video.UseVisualStyleBackColor = true;\r
+             // \r
+             // radio_cq\r
+             // \r
+             this.radio_cq.AutoSize = true;\r
+             this.radio_cq.BackColor = System.Drawing.Color.Transparent;\r
+             this.radio_cq.Location = new System.Drawing.Point(336, 97);\r
+             this.radio_cq.Name = "radio_cq";\r
+             this.radio_cq.Size = new System.Drawing.Size(110, 17);\r
+             this.radio_cq.TabIndex = 18;\r
+             this.radio_cq.Text = "Constant Quality:";\r
+             this.radio_cq.UseVisualStyleBackColor = false;\r
+             this.radio_cq.CheckedChanged += new System.EventHandler(this.radio_cq_CheckedChanged);\r
+             // \r
+             // radio_avgBitrate\r
+             // \r
+             this.radio_avgBitrate.AutoSize = true;\r
+             this.radio_avgBitrate.BackColor = System.Drawing.Color.Transparent;\r
+             this.radio_avgBitrate.Checked = true;\r
+             this.radio_avgBitrate.Location = new System.Drawing.Point(336, 64);\r
+             this.radio_avgBitrate.Name = "radio_avgBitrate";\r
+             this.radio_avgBitrate.Size = new System.Drawing.Size(116, 17);\r
+             this.radio_avgBitrate.TabIndex = 17;\r
+             this.radio_avgBitrate.TabStop = true;\r
+             this.radio_avgBitrate.Text = "Avg Bitrate (kbps):";\r
+             this.radio_avgBitrate.UseVisualStyleBackColor = false;\r
+             this.radio_avgBitrate.CheckedChanged += new System.EventHandler(this.radio_avgBitrate_CheckedChanged);\r
+             // \r
+             // radio_targetFilesize\r
+             // \r
+             this.radio_targetFilesize.AutoSize = true;\r
+             this.radio_targetFilesize.BackColor = System.Drawing.Color.Transparent;\r
+             this.radio_targetFilesize.Location = new System.Drawing.Point(336, 37);\r
+             this.radio_targetFilesize.Name = "radio_targetFilesize";\r
+             this.radio_targetFilesize.Size = new System.Drawing.Size(108, 17);\r
+             this.radio_targetFilesize.TabIndex = 16;\r
+             this.radio_targetFilesize.Text = "Target Size (MB):";\r
+             this.radio_targetFilesize.UseVisualStyleBackColor = false;\r
+             this.radio_targetFilesize.CheckedChanged += new System.EventHandler(this.radio_targetFilesize_CheckedChanged);\r
              // \r
              // label25\r
              // \r
              this.label25.AutoSize = true;\r
              this.label25.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.label25.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label25.Location = new System.Drawing.Point(13, 12);\r
 +            this.label25.Name = "label25";\r
 +            this.label25.Size = new System.Drawing.Size(29, 13);\r
++*/\r
+             this.label25.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label25.Location = new System.Drawing.Point(13, 13);\r
+             this.label25.Name = "label25";\r
+             this.label25.Size = new System.Drawing.Size(38, 13);\r
              this.label25.TabIndex = 0;\r
 -            this.label25.Text = "Video";\r
 -            // \r
 +            this.label25.Text = "\93®\89æ";\r
 +            // \r
++/*\r
 +            // check_grayscale\r
 +            // \r
 +            this.check_grayscale.AutoSize = true;\r
 +            this.check_grayscale.BackColor = System.Drawing.Color.Transparent;\r
 +            this.check_grayscale.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_grayscale.Location = new System.Drawing.Point(16, 127);\r
 +            this.check_grayscale.Name = "check_grayscale";\r
 +            this.check_grayscale.Size = new System.Drawing.Size(81, 17);\r
 +            this.check_grayscale.TabIndex = 5;\r
 +            this.check_grayscale.Text = "\83O\83\8c\83C\83X\83P\81[\83\8b";\r
 +            this.ToolTip.SetToolTip(this.check_grayscale, "\83`\83F\83b\83N\82ð\93ü\82ê\82é\82Æ\93®\89æ\82ð\83O\83\8c\83C\83X\83P\81[\83\8b\89»\82µ\82Ü\82·");\r
 +            this.check_grayscale.UseVisualStyleBackColor = false;\r
 +            // \r
 +            // Label22\r
 +            // \r
 +            this.Label22.AutoSize = true;\r
 +            this.Label22.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label22.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label22.Location = new System.Drawing.Point(13, 109);\r
 +            this.Label22.Name = "Label22";\r
 +            this.Label22.Size = new System.Drawing.Size(93, 13);\r
 +            this.Label22.TabIndex = 4;\r
 +            this.Label22.Text = "\83G\83\93\83R\81[\83h\92Ç\89Á\90Ý\92è";\r
 +            // \r
++*/\r
              // check_2PassEncode\r
              // \r
              this.check_2PassEncode.AutoSize = true;\r
              this.check_2PassEncode.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.check_2PassEncode.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_2PassEncode.Location = new System.Drawing.Point(16, 149);\r
 +            this.check_2PassEncode.Name = "check_2PassEncode";\r
 +            this.check_2PassEncode.Size = new System.Drawing.Size(101, 17);\r
++*/\r
+             this.check_2PassEncode.Location = new System.Drawing.Point(125, 100);\r
+             this.check_2PassEncode.Name = "check_2PassEncode";\r
+             this.check_2PassEncode.Size = new System.Drawing.Size(104, 17);\r
              this.check_2PassEncode.TabIndex = 6;\r
 -            this.check_2PassEncode.Text = "2-Pass Encoding";\r
 +            this.check_2PassEncode.Text = "2-Pass\83G\83\93\83R\81[\83h";\r
 +            this.ToolTip.SetToolTip(this.check_2PassEncode, "2\83p\83X\83G\83\93\83R\81[\83h\82ð\8ds\82¤\8fê\8d\87\81A\83`\83F\83b\83N\82ð\93ü\82ê\82Ü\82·\81B2\83p\83X\83G\83\93\83R\81[\83h\82Í\83G\83\93\83R\81[\83h\82ª\92x\82­\82È\82è\82Ü\82·\82ª\81A\95i\8e¿\82ª\8cü\8fã\82µ\82Ü\82·");\r
              this.check_2PassEncode.UseVisualStyleBackColor = false;\r
              this.check_2PassEncode.CheckedChanged += new System.EventHandler(this.check_2PassEncode_CheckedChanged);\r
              // \r
              // \r
              this.Label2.AutoSize = true;\r
              this.Label2.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.Label2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label2.Location = new System.Drawing.Point(334, 12);\r
 +            this.Label2.Name = "Label2";\r
 +            this.Label2.Size = new System.Drawing.Size(29, 13);\r
++*/\r
+             this.Label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.Label2.Location = new System.Drawing.Point(334, 13);\r
+             this.Label2.Name = "Label2";\r
+             this.Label2.Size = new System.Drawing.Size(47, 13);\r
              this.Label2.TabIndex = 8;\r
 -            this.Label2.Text = "Quality";\r
 +            this.Label2.Text = "\95i\8e¿";\r
              // \r
++/*\r
 +            // Label42\r
 +            // \r
 +            this.Label42.AutoSize = true;\r
 +            this.Label42.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label42.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label42.Location = new System.Drawing.Point(334, 60);\r
 +            this.Label42.Name = "Label42";\r
 +            this.Label42.Size = new System.Drawing.Size(112, 13);\r
 +            this.Label42.TabIndex = 9;\r
 +            this.Label42.Text = "\95½\8bÏ\83r\83b\83g\83\8c\81[\83g(kbps):";\r
 +            // \r
++*/\r
              // SliderValue\r
              // \r
              this.SliderValue.AutoSize = true;\r
              this.SliderValue.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.SliderValue.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.SliderValue.Location = new System.Drawing.Point(641, 92);\r
++*/\r
+             this.SliderValue.Location = new System.Drawing.Point(480, 100);\r
              this.SliderValue.Name = "SliderValue";\r
-             this.SliderValue.Size = new System.Drawing.Size(23, 12);\r
+             this.SliderValue.Size = new System.Drawing.Size(24, 13);\r
              this.SliderValue.TabIndex = 15;\r
              this.SliderValue.Text = "0%";\r
              // \r
              // \r
              this.Label46.AutoSize = true;\r
              this.Label46.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.Label46.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label46.Location = new System.Drawing.Point(13, 66);\r
 +            this.Label46.Name = "Label46";\r
 +            this.Label46.Size = new System.Drawing.Size(97, 13);\r
++*/\r
+             this.Label46.Location = new System.Drawing.Point(13, 71);\r
+             this.Label46.Name = "Label46";\r
+             this.Label46.Size = new System.Drawing.Size(90, 13);\r
              this.Label46.TabIndex = 1;\r
 -            this.Label46.Text = "Framerate (FPS):";\r
 -            // \r
 +            this.Label46.Text = "\83t\83\8c\81[\83\80\83\8c\81[\83g(FPS):";\r
 +            // \r
++/*\r
 +            // Label40\r
 +            // \r
 +            this.Label40.AutoSize = true;\r
 +            this.Label40.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label40.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label40.Location = new System.Drawing.Point(334, 91);\r
 +            this.Label40.Name = "Label40";\r
 +            this.Label40.Size = new System.Drawing.Size(32, 13);\r
 +            this.Label40.TabIndex = 13;\r
 +            this.Label40.Text = "\95i\8e¿:";\r
 +            // \r
 +            // TabPage1\r
 +            // \r
 +            this.TabPage1.BackColor = System.Drawing.Color.Transparent;\r
 +            this.TabPage1.Controls.Add(this.slider_deblock);\r
 +            this.TabPage1.Controls.Add(this.label8);\r
 +            this.TabPage1.Controls.Add(this.lbl_deblockVal);\r
 +            this.TabPage1.Controls.Add(this.check_customCrop);\r
 +            this.TabPage1.Controls.Add(this.check_autoCrop);\r
 +            this.TabPage1.Controls.Add(this.check_decomb);\r
 +            this.TabPage1.Controls.Add(this.lbl_src_res);\r
 +            this.TabPage1.Controls.Add(this.label7);\r
 +            this.TabPage1.Controls.Add(this.label6);\r
 +            this.TabPage1.Controls.Add(this.drp_anamorphic);\r
 +            this.TabPage1.Controls.Add(this.text_bottom);\r
 +            this.TabPage1.Controls.Add(this.text_top);\r
 +            this.TabPage1.Controls.Add(this.text_left);\r
 +            this.TabPage1.Controls.Add(this.text_right);\r
 +            this.TabPage1.Controls.Add(this.label26);\r
 +            this.TabPage1.Controls.Add(this.Label56);\r
 +            this.TabPage1.Controls.Add(this.lbl_Aspect);\r
 +            this.TabPage1.Controls.Add(this.Label91);\r
 +            this.TabPage1.Controls.Add(this.text_height);\r
 +            this.TabPage1.Controls.Add(this.Label55);\r
 +            this.TabPage1.Controls.Add(this.text_width);\r
 +            this.TabPage1.Controls.Add(this.label24);\r
 +            this.TabPage1.Controls.Add(this.drp_deNoise);\r
 +            this.TabPage1.Controls.Add(this.label11);\r
 +            this.TabPage1.Controls.Add(this.check_detelecine);\r
 +            this.TabPage1.Controls.Add(this.label4);\r
 +            this.TabPage1.Controls.Add(this.drp_deInterlace_option);\r
 +            this.TabPage1.Controls.Add(this.Label1);\r
 +            this.TabPage1.Controls.Add(this.Label53);\r
 +            this.TabPage1.Controls.Add(this.Label52);\r
 +            this.TabPage1.Controls.Add(this.Label51);\r
 +            this.TabPage1.Controls.Add(this.Label15);\r
 +            this.TabPage1.Location = new System.Drawing.Point(4, 22);\r
 +            this.TabPage1.Name = "TabPage1";\r
 +            this.TabPage1.Padding = new System.Windows.Forms.Padding(3);\r
 +            this.TabPage1.Size = new System.Drawing.Size(697, 290);\r
 +            this.TabPage1.TabIndex = 0;\r
 +            this.TabPage1.Text = "\89æ\91\9c";\r
 +            this.TabPage1.UseVisualStyleBackColor = true;\r
 +            // \r
 +            // slider_deblock\r
 +            // \r
 +            this.slider_deblock.Location = new System.Drawing.Point(407, 244);\r
 +            this.slider_deblock.Maximum = 15;\r
 +            this.slider_deblock.Minimum = 4;\r
 +            this.slider_deblock.Name = "slider_deblock";\r
 +            this.slider_deblock.Size = new System.Drawing.Size(174, 42);\r
 +            this.slider_deblock.TabIndex = 35;\r
 +            this.ToolTip.SetToolTip(this.slider_deblock, "Deblock\83t\83B\83\8b\83^\81i\83u\83\8d\83b\83N\83m\83C\83Y\8f\9c\8b\8e\83t\83B\83\8b\83^\81j\82Ì\8b­\93x\82ð\8ew\92è\82µ\82Ü\82·\81B\92l\82ª\91å\82«\82¢\82Ù\82Ç\8cø\89Ê\82ª\8b­\82­\82È\82è\82Ü\82·");\r
 +            this.slider_deblock.Value = 4;\r
 +            this.slider_deblock.Scroll += new System.EventHandler(this.slider_deblock_Scroll);\r
 +            // \r
 +            // label8\r
 +            // \r
 +            this.label8.AutoSize = true;\r
 +            this.label8.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label8.Location = new System.Drawing.Point(311, 248);\r
 +            this.label8.Name = "label8";\r
 +            this.label8.Size = new System.Drawing.Size(58, 13);\r
 +            this.label8.TabIndex = 37;\r
 +            this.label8.Text = "Deblock:";\r
 +            // \r
 +            // lbl_deblockVal\r
 +            // \r
 +            this.lbl_deblockVal.AutoSize = true;\r
 +            this.lbl_deblockVal.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_deblockVal.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_deblockVal.Location = new System.Drawing.Point(585, 248);\r
 +            this.lbl_deblockVal.Name = "lbl_deblockVal";\r
 +            this.lbl_deblockVal.Size = new System.Drawing.Size(24, 13);\r
 +            this.lbl_deblockVal.TabIndex = 36;\r
 +            this.lbl_deblockVal.Text = "Off";\r
 +            // \r
 +            // check_decomb\r
 +            // \r
 +            this.check_decomb.AutoSize = true;\r
 +            this.check_decomb.BackColor = System.Drawing.Color.Transparent;\r
 +            this.check_decomb.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_decomb.Location = new System.Drawing.Point(314, 174);\r
 +            this.check_decomb.Name = "check_decomb";\r
 +            this.check_decomb.Size = new System.Drawing.Size(73, 17);\r
 +            this.check_decomb.TabIndex = 32;\r
 +            this.check_decomb.Text = "Decomb";\r
 +            this.ToolTip.SetToolTip(this.check_decomb, "\83C\83\93\83^\81[\83\8c\81[\83X\8f\9c\8b\8e\83t\83B\83\8b\83^\82Å\82 \82éDecomb\83t\83B\83\8b\83^\82ð\8eg\97p\82·\82é\8fê\8d\87\83`\83F\83b\83N\82ð\93ü\82ê\82Ü\82·");\r
 +            this.check_decomb.UseVisualStyleBackColor = false;\r
 +            // \r
 +            // label6\r
 +            // \r
 +            this.label6.AutoSize = true;\r
 +            this.label6.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label6.Location = new System.Drawing.Point(311, 102);\r
 +            this.label6.Name = "label6";\r
 +            this.label6.Size = new System.Drawing.Size(44, 13);\r
 +            this.label6.TabIndex = 20;\r
 +            this.label6.Text = "\83\8f\83C\83h\89»:";\r
 +            // \r
 +            // drp_anamorphic\r
 +            // \r
 +            this.drp_anamorphic.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drp_anamorphic.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_anamorphic.FormattingEnabled = true;\r
 +            this.drp_anamorphic.Items.AddRange(new object[] {\r
 +            "None",\r
 +            "Strict",\r
 +            "Loose"});\r
 +            this.drp_anamorphic.Location = new System.Drawing.Point(407, 100);\r
 +            this.drp_anamorphic.Name = "drp_anamorphic";\r
 +            this.drp_anamorphic.Size = new System.Drawing.Size(110, 21);\r
 +            this.drp_anamorphic.TabIndex = 21;\r
 +            this.ToolTip.SetToolTip(this.drp_anamorphic, "\81ustrict\81v\82Å\82Í\93®\89æ\82ð\8cµ\96§\82É\83\8f\83C\83h\89»\82µ\82Ü\82·\81B\81uloose\81v\82Å\82Í\81A\95\9d\82¨\82æ\82Ñ\8d\82\82³\82ª16\82Ì\94{\90\94\82É\82È\82é\82æ\82¤\82É\83\8f\83C\83h\89»\82µ\82Ü\82·");\r
 +            this.drp_anamorphic.SelectedIndexChanged += new System.EventHandler(this.drp_anamorphic_SelectedIndexChanged);\r
 +            // \r
 +            // text_bottom\r
 +            // \r
 +            this.text_bottom.Enabled = false;\r
 +            this.text_bottom.Location = new System.Drawing.Point(96, 136);\r
 +            this.text_bottom.Maximum = new decimal(new int[] {\r
 +            1080,\r
 +            0,\r
 +            0,\r
 +            0});\r
 +            this.text_bottom.Name = "text_bottom";\r
 +            this.text_bottom.Size = new System.Drawing.Size(44, 21);\r
 +            this.text_bottom.TabIndex = 9;\r
 +            // \r
 +            // text_top\r
 +            // \r
 +            this.text_top.Enabled = false;\r
 +            this.text_top.Location = new System.Drawing.Point(96, 93);\r
 +            this.text_top.Maximum = new decimal(new int[] {\r
 +            1080,\r
 +            0,\r
 +            0,\r
 +            0});\r
 +            this.text_top.Name = "text_top";\r
 +            this.text_top.Size = new System.Drawing.Size(44, 21);\r
 +            this.text_top.TabIndex = 6;\r
 +            // \r
 +            // text_left\r
 +            // \r
 +            this.text_left.Enabled = false;\r
 +            this.text_left.Location = new System.Drawing.Point(45, 114);\r
 +            this.text_left.Maximum = new decimal(new int[] {\r
 +            1920,\r
 +            0,\r
 +            0,\r
 +            0});\r
 +            this.text_left.Name = "text_left";\r
 +            this.text_left.Size = new System.Drawing.Size(44, 21);\r
 +            this.text_left.TabIndex = 4;\r
 +            // \r
 +            // text_right\r
 +            // \r
 +            this.text_right.Enabled = false;\r
 +            this.text_right.Location = new System.Drawing.Point(147, 114);\r
 +            this.text_right.Maximum = new decimal(new int[] {\r
 +            1920,\r
 +            0,\r
 +            0,\r
 +            0});\r
 +            this.text_right.Name = "text_right";\r
 +            this.text_right.Size = new System.Drawing.Size(44, 21);\r
 +            this.text_right.TabIndex = 7;\r
 +            // \r
 +            // label26\r
 +            // \r
 +            this.label26.AutoSize = true;\r
 +            this.label26.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label26.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label26.Location = new System.Drawing.Point(311, 12);\r
 +            this.label26.Name = "label26";\r
 +            this.label26.Size = new System.Drawing.Size(33, 13);\r
 +            this.label26.TabIndex = 11;\r
 +            this.label26.Text = "\83T\83C\83Y";\r
 +            // \r
 +            // Label56\r
 +            // \r
 +            this.Label56.AutoSize = true;\r
 +            this.Label56.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label56.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label56.ForeColor = System.Drawing.Color.Black;\r
 +            this.Label56.Location = new System.Drawing.Point(477, 78);\r
 +            this.Label56.Name = "Label56";\r
 +            this.Label56.Size = new System.Drawing.Size(15, 13);\r
 +            this.Label56.TabIndex = 18;\r
 +            this.Label56.Text = "x";\r
 +            // \r
 +            // lbl_Aspect\r
 +            // \r
 +            this.lbl_Aspect.AutoSize = true;\r
 +            this.lbl_Aspect.BackColor = System.Drawing.Color.Transparent;\r
 +            this.lbl_Aspect.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_Aspect.Location = new System.Drawing.Point(405, 54);\r
 +            this.lbl_Aspect.Name = "lbl_Aspect";\r
 +            this.lbl_Aspect.Size = new System.Drawing.Size(72, 12);\r
 +            this.lbl_Aspect.TabIndex = 15;\r
 +            this.lbl_Aspect.Text = "Select a Title";\r
 +            // \r
 +            // Label91\r
 +            // \r
 +            this.Label91.AutoSize = true;\r
 +            this.Label91.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label91.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label91.Location = new System.Drawing.Point(311, 53);\r
 +            this.Label91.Name = "Label91";\r
 +            this.Label91.Size = new System.Drawing.Size(60, 13);\r
 +            this.Label91.TabIndex = 14;\r
 +            this.Label91.Text = "\83A\83X\83y\83N\83g\94ä:";\r
 +            // \r
 +            // Label55\r
 +            // \r
 +            this.Label55.AutoSize = true;\r
 +            this.Label55.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label55.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label55.ForeColor = System.Drawing.Color.Black;\r
 +            this.Label55.Location = new System.Drawing.Point(311, 78);\r
 +            this.Label55.Name = "Label55";\r
 +            this.Label55.Size = new System.Drawing.Size(44, 13);\r
 +            this.Label55.TabIndex = 16;\r
 +            this.Label55.Text = "\95\9d/\8d\82\82³:";\r
 +            // \r
 +            // label24\r
 +            // \r
 +            this.label24.AutoSize = true;\r
 +            this.label24.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label24.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label24.Location = new System.Drawing.Point(311, 131);\r
 +            this.label24.Name = "label24";\r
 +            this.label24.Size = new System.Drawing.Size(39, 13);\r
 +            this.label24.TabIndex = 22;\r
 +            this.label24.Text = "\83t\83B\83\8b\83^";\r
 +            // \r
 +            // drp_deNoise\r
 +            // \r
 +            this.drp_deNoise.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drp_deNoise.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_deNoise.FormattingEnabled = true;\r
 +            this.drp_deNoise.Items.AddRange(new object[] {\r
 +            "None",\r
 +            "Weak",\r
 +            "Medium",\r
 +            "Strong"});\r
 +            this.drp_deNoise.Location = new System.Drawing.Point(413, 219);\r
 +            this.drp_deNoise.Name = "drp_deNoise";\r
 +            this.drp_deNoise.Size = new System.Drawing.Size(161, 21);\r
 +            this.drp_deNoise.TabIndex = 29;\r
 +            this.ToolTip.SetToolTip(this.drp_deNoise, "\83m\83C\83Y\8cy\8c¸\83t\83B\83\8b\83^\82Ì\8b­\93x\82ð\8ew\92è\82µ\82Ü\82·\81B\81uWeak\81v\81uMediam\81v\81uStrong\81v\82Ì\8f\87\82É\8cø\89Ê\82ª\8b­\82­\82È\82è\82Ü\82·");\r
 +            // \r
 +            // label11\r
 +            // \r
 +            this.label11.AutoSize = true;\r
 +            this.label11.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label11.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label11.Location = new System.Drawing.Point(311, 222);\r
 +            this.label11.Name = "label11";\r
 +            this.label11.Size = new System.Drawing.Size(54, 13);\r
 +            this.label11.TabIndex = 28;\r
 +            this.label11.Text = "\83m\83C\83Y\8cy\8c¸:";\r
 +            // \r
 +            // check_detelecine\r
 +            // \r
 +            this.check_detelecine.AutoSize = true;\r
 +            this.check_detelecine.BackColor = System.Drawing.Color.Transparent;\r
 +            this.check_detelecine.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_detelecine.Location = new System.Drawing.Point(314, 152);\r
 +            this.check_detelecine.Name = "check_detelecine";\r
 +            this.check_detelecine.Size = new System.Drawing.Size(86, 17);\r
 +            this.check_detelecine.TabIndex = 23;\r
 +            this.check_detelecine.Text = "Detelecine";\r
 +            this.ToolTip.SetToolTip(this.check_detelecine, "\8bt\83e\83\8c\83V\83l\83t\83B\83\8b\83^\82ð\8eg\97p\82·\82é\8fê\8d\87\83`\83F\83b\83N\82ð\93ü\82ê\82Ü\82·");\r
 +            this.check_detelecine.UseVisualStyleBackColor = false;\r
 +            // \r
 +            // label4\r
 +            // \r
 +            this.label4.AutoSize = true;\r
 +            this.label4.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label4.Location = new System.Drawing.Point(311, 196);\r
 +            this.label4.Name = "label4";\r
 +            this.label4.Size = new System.Drawing.Size(73, 13);\r
 +            this.label4.TabIndex = 26;\r
 +            this.label4.Text = "\83f\83C\83\93\83^\81[\83\8c\81[\83X:";\r
 +            // \r
 +            // drp_deInterlace_option\r
 +            // \r
 +            this.drp_deInterlace_option.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
 +            this.drp_deInterlace_option.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.drp_deInterlace_option.FormattingEnabled = true;\r
 +            this.drp_deInterlace_option.Items.AddRange(new object[] {\r
 +            "None",\r
 +            "Fast",\r
 +            "Slow",\r
 +            "Slower"});\r
 +            this.drp_deInterlace_option.Location = new System.Drawing.Point(413, 193);\r
 +            this.drp_deInterlace_option.Name = "drp_deInterlace_option";\r
 +            this.drp_deInterlace_option.Size = new System.Drawing.Size(161, 21);\r
 +            this.drp_deInterlace_option.TabIndex = 27;\r
 +            this.ToolTip.SetToolTip(this.drp_deInterlace_option, "\83f\83C\83\93\83^\81[\83\8c\81[\83X\8f\88\97\9d\82Ì\8eg\97p/\95i\8e¿\82ð\91I\91ð\82µ\82Ü\82·\81B\81uFast\81v\82Í\82à\82Á\82Æ\82à\8d\82\91¬\82Å\82·\81B\r\n\81uSlow\81v\81uSlower\81v\82Ì\8f\87\82É\8f\88\97\9d\82ª\82æ\82è\92x\82­\82È\82è\82Ü\82·\82ª\81A\95i\8e¿\82Í\8cü\8fã\82µ\82Ü\82·\81B\r" +\r
 +                    "\n\81uNone\81v\82ð\91I\91ð\82·\82é\82Æ\81A\83f\83C\83\93\83^\81[\83\8c\81[\83X\82ð\8eg\97p\82µ\82Ü\82¹\82ñ");\r
 +            // \r
 +            // Label1\r
 +            // \r
 +            this.Label1.AutoSize = true;\r
 +            this.Label1.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label1.Location = new System.Drawing.Point(13, 12);\r
 +            this.Label1.Name = "Label1";\r
 +            this.Label1.Size = new System.Drawing.Size(46, 13);\r
 +            this.Label1.TabIndex = 0;\r
 +            this.Label1.Text = "\83g\83\8a\83~\83\93\83O";\r
 +            // \r
 +            // Label53\r
 +            // \r
 +            this.Label53.AutoSize = true;\r
 +            this.Label53.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label53.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label53.Location = new System.Drawing.Point(94, 158);\r
 +            this.Label53.Name = "Label53";\r
 +            this.Label53.Size = new System.Drawing.Size(17, 13);\r
 +            this.Label53.TabIndex = 10;\r
 +            this.Label53.Text = "\89º";\r
 +            // \r
 +            // Label52\r
 +            // \r
 +            this.Label52.AutoSize = true;\r
 +            this.Label52.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label52.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label52.Location = new System.Drawing.Point(103, 79);\r
 +            this.Label52.Name = "Label52";\r
 +            this.Label52.Size = new System.Drawing.Size(17, 13);\r
 +            this.Label52.TabIndex = 5;\r
 +            this.Label52.Text = "\8fã";\r
 +            // \r
 +            // Label51\r
 +            // \r
 +            this.Label51.AutoSize = true;\r
 +            this.Label51.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label51.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label51.Location = new System.Drawing.Point(190, 115);\r
 +            this.Label51.Name = "Label51";\r
 +            this.Label51.Size = new System.Drawing.Size(17, 13);\r
 +            this.Label51.TabIndex = 8;\r
 +            this.Label51.Text = "\89E";\r
 +            // \r
 +            // Label15\r
 +            // \r
 +            this.Label15.AutoSize = true;\r
 +            this.Label15.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label15.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label15.Location = new System.Drawing.Point(13, 115);\r
 +            this.Label15.Name = "Label15";\r
 +            this.Label15.Size = new System.Drawing.Size(17, 13);\r
 +            this.Label15.TabIndex = 3;\r
 +            this.Label15.Text = "\8d¶";\r
++*/\r
+             // tab_picture\r
+             // \r
+             this.tab_picture.BackColor = System.Drawing.Color.Transparent;\r
+             this.tab_picture.Controls.Add(this.PictureSettings);\r
+             this.tab_picture.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_picture.Name = "tab_picture";\r
+             this.tab_picture.Padding = new System.Windows.Forms.Padding(3);\r
+             this.tab_picture.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_picture.TabIndex = 0;\r
+             this.tab_picture.Text = "Picture";\r
+             this.tab_picture.UseVisualStyleBackColor = true;\r
+             // \r
+             // PictureSettings\r
+             // \r
+             this.PictureSettings.BackColor = System.Drawing.Color.Transparent;\r
+             this.PictureSettings.Enabled = false;\r
+             this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.PictureSettings.Location = new System.Drawing.Point(0, 0);\r
+             this.PictureSettings.Name = "PictureSettings";\r
+             this.PictureSettings.Size = new System.Drawing.Size(666, 279);\r
+             this.PictureSettings.TabIndex = 0;\r
              // \r
              // Check_ChapterMarkers\r
              // \r
              this.Check_ChapterMarkers.AutoSize = true;\r
              this.Check_ChapterMarkers.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.Check_ChapterMarkers.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Check_ChapterMarkers.Location = new System.Drawing.Point(16, 30);\r
 +            this.Check_ChapterMarkers.Name = "Check_ChapterMarkers";\r
 +            this.Check_ChapterMarkers.Size = new System.Drawing.Size(123, 17);\r
++*/\r
+             this.Check_ChapterMarkers.Location = new System.Drawing.Point(16, 32);\r
+             this.Check_ChapterMarkers.Name = "Check_ChapterMarkers";\r
+             this.Check_ChapterMarkers.Size = new System.Drawing.Size(140, 17);\r
              this.Check_ChapterMarkers.TabIndex = 1;\r
 -            this.Check_ChapterMarkers.Text = "Create chapter markers";\r
 +            this.Check_ChapterMarkers.Text = "\83`\83\83\83v\83^\81[\83}\81[\83J\81[\82ð\8dì\90¬";\r
 +            this.ToolTip.SetToolTip(this.Check_ChapterMarkers, "\83`\83\83\83v\83^\81[\83}\81[\83J\81[\82ð\8dì\90¬\82·\82é\8fê\8d\87\83`\83F\83b\83N\82ð\93ü\82ê\82Ü\82·");\r
              this.Check_ChapterMarkers.UseVisualStyleBackColor = false;\r
              this.Check_ChapterMarkers.CheckedChanged += new System.EventHandler(this.Check_ChapterMarkers_CheckedChanged);\r
              // \r
++/*\r
 +            // advancedOptions\r
 +            // \r
 +            this.advancedOptions.Controls.Add(this.TabPage1);\r
 +            this.advancedOptions.Controls.Add(this.TabPage3);\r
 +            this.advancedOptions.Controls.Add(this.TabPage2);\r
 +            this.advancedOptions.Controls.Add(this.tab_chapters);\r
 +            this.advancedOptions.Controls.Add(this.h264Tab);\r
 +            this.advancedOptions.Controls.Add(this.tabPage4);\r
 +            this.advancedOptions.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.advancedOptions.Location = new System.Drawing.Point(12, 253);\r
 +            this.advancedOptions.Name = "advancedOptions";\r
 +            this.advancedOptions.SelectedIndex = 0;\r
 +            this.advancedOptions.Size = new System.Drawing.Size(705, 316);\r
 +            this.advancedOptions.TabIndex = 5;\r
 +            this.advancedOptions.TabStop = false;\r
++*/\r
+             // tabs_panel\r
+             // \r
+             this.tabs_panel.Controls.Add(this.tab_picture);\r
+             this.tabs_panel.Controls.Add(this.tab_filters);\r
+             this.tabs_panel.Controls.Add(this.tab_video);\r
+             this.tabs_panel.Controls.Add(this.tab_audio);\r
+             this.tabs_panel.Controls.Add(this.tab_subtitles);\r
+             this.tabs_panel.Controls.Add(this.tab_chapters);\r
+             this.tabs_panel.Controls.Add(this.tab_advanced);\r
+             this.tabs_panel.Controls.Add(this.tab_query);\r
+             this.tabs_panel.Location = new System.Drawing.Point(12, 218);\r
+             this.tabs_panel.Name = "tabs_panel";\r
+             this.tabs_panel.SelectedIndex = 0;\r
+             this.tabs_panel.Size = new System.Drawing.Size(732, 334);\r
+             this.tabs_panel.TabIndex = 5;\r
+             this.tabs_panel.TabStop = false;\r
+             // \r
+             // tab_filters\r
+             // \r
+             this.tab_filters.Controls.Add(this.Filters);\r
+             this.tab_filters.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_filters.Name = "tab_filters";\r
+             this.tab_filters.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_filters.TabIndex = 9;\r
+             this.tab_filters.Text = "Video Filters";\r
+             this.tab_filters.UseVisualStyleBackColor = true;\r
+             // \r
+             // Filters\r
+             // \r
+             this.Filters.BackColor = System.Drawing.Color.Transparent;\r
+             this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.Filters.Location = new System.Drawing.Point(0, 0);\r
+             this.Filters.Name = "Filters";\r
+             this.Filters.Size = new System.Drawing.Size(713, 310);\r
+             this.Filters.TabIndex = 0;\r
+             // \r
+             // tab_subtitles\r
+             // \r
+             this.tab_subtitles.Controls.Add(this.Subtitles);\r
+             this.tab_subtitles.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_subtitles.Name = "tab_subtitles";\r
+             this.tab_subtitles.Padding = new System.Windows.Forms.Padding(3);\r
+             this.tab_subtitles.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_subtitles.TabIndex = 10;\r
+             this.tab_subtitles.Text = "Subtitles";\r
+             this.tab_subtitles.UseVisualStyleBackColor = true;\r
+             // \r
+             // Subtitles\r
+             // \r
+             this.Subtitles.BackColor = System.Drawing.Color.Transparent;\r
+             this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.Subtitles.Location = new System.Drawing.Point(0, 0);\r
+             this.Subtitles.Name = "Subtitles";\r
+             this.Subtitles.Size = new System.Drawing.Size(722, 310);\r
+             this.Subtitles.TabIndex = 0;\r
++\r
              // \r
              // tab_chapters\r
              // \r
              this.tab_chapters.Controls.Add(this.Check_ChapterMarkers);\r
              this.tab_chapters.Location = new System.Drawing.Point(4, 22);\r
              this.tab_chapters.Name = "tab_chapters";\r
 -            this.tab_chapters.Text = "Chapters";\r
++/*\r
 +            this.tab_chapters.Size = new System.Drawing.Size(697, 290);\r
 +            this.tab_chapters.TabIndex = 6;\r
 +            this.tab_chapters.Text = "\83`\83\83\83v\83^\81[";\r
 +            this.tab_chapters.UseVisualStyleBackColor = true;\r
++*/\r
+             this.tab_chapters.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_chapters.TabIndex = 6;\r
++            this.tab_chapters.Text = "\83`\83\83\83v\83^\81[";\r
+             this.tab_chapters.UseVisualStyleBackColor = true;\r
+             // \r
+             // btn_importChapters\r
+             // \r
+             this.btn_importChapters.AutoSize = true;\r
+             this.btn_importChapters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_importChapters.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
+             this.btn_importChapters.Location = new System.Drawing.Point(625, 26);\r
+             this.btn_importChapters.Name = "btn_importChapters";\r
+             this.btn_importChapters.Size = new System.Drawing.Size(75, 23);\r
+             this.btn_importChapters.TabIndex = 14;\r
+             this.btn_importChapters.Text = "Import";\r
+             this.ToolTip.SetToolTip(this.btn_importChapters, resources.GetString("btn_importChapters.ToolTip"));\r
+             this.btn_importChapters.UseVisualStyleBackColor = true;\r
+             this.btn_importChapters.Click += new System.EventHandler(this.btn_importChapters_Click);\r
              // \r
              // label31\r
              // \r
              this.label31.AutoSize = true;\r
              this.label31.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.label31.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label31.Location = new System.Drawing.Point(13, 12);\r
 +            this.label31.Name = "label31";\r
 +            this.label31.Size = new System.Drawing.Size(85, 13);\r
++*/\r
+             this.label31.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label31.Location = new System.Drawing.Point(13, 13);\r
+             this.label31.Name = "label31";\r
+             this.label31.Size = new System.Drawing.Size(102, 13);\r
              this.label31.TabIndex = 0;\r
 -            this.label31.Text = "Chapter Markers";\r
 -            // \r
 +            this.label31.Text = "\83`\83\83\83v\83^\81[\83}\81[\83J\81[";\r
 +            // \r
++/*\r
 +            // h264Tab\r
 +            // \r
 +            this.h264Tab.BackColor = System.Drawing.Color.Transparent;\r
 +            this.h264Tab.Controls.Add(this.label43);\r
 +            this.h264Tab.Controls.Add(this.btn_reset);\r
 +            this.h264Tab.Controls.Add(this.rtf_x264Query);\r
 +            this.h264Tab.Controls.Add(this.check_Cabac);\r
 +            this.h264Tab.Controls.Add(this.check_noDCTDecimate);\r
 +            this.h264Tab.Controls.Add(this.check_noFastPSkip);\r
 +            this.h264Tab.Controls.Add(this.lbl_trellis);\r
 +            this.h264Tab.Controls.Add(this.drop_trellis);\r
 +            this.h264Tab.Controls.Add(this.drop_deblockBeta);\r
 +            this.h264Tab.Controls.Add(this.label41);\r
 +            this.h264Tab.Controls.Add(this.drop_deblockAlpha);\r
 +            this.h264Tab.Controls.Add(this.panel3);\r
 +            this.h264Tab.Controls.Add(this.panel1);\r
 +            this.h264Tab.Controls.Add(this.panel2);\r
 +            this.h264Tab.Controls.Add(this.check_8x8DCT);\r
 +            this.h264Tab.Controls.Add(this.label45);\r
 +            this.h264Tab.Controls.Add(this.drop_analysis);\r
 +            this.h264Tab.Controls.Add(this.label48);\r
 +            this.h264Tab.Controls.Add(this.drop_subpixelMotionEstimation);\r
 +            this.h264Tab.Controls.Add(this.label49);\r
 +            this.h264Tab.Controls.Add(this.drop_MotionEstimationRange);\r
 +            this.h264Tab.Controls.Add(this.label54);\r
 +            this.h264Tab.Controls.Add(this.drop_MotionEstimationMethod);\r
 +            this.h264Tab.Controls.Add(this.check_pyrmidalBFrames);\r
 +            this.h264Tab.Controls.Add(this.check_weightedBFrames);\r
 +            this.h264Tab.Controls.Add(this.lbl_direct_prediction);\r
 +            this.h264Tab.Controls.Add(this.drop_directPrediction);\r
 +            this.h264Tab.Controls.Add(this.label62);\r
 +            this.h264Tab.Controls.Add(this.drop_bFrames);\r
 +            this.h264Tab.Controls.Add(this.label64);\r
 +            this.h264Tab.Controls.Add(this.drop_refFrames);\r
 +            this.h264Tab.Controls.Add(this.check_mixedReferences);\r
 +            this.h264Tab.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.h264Tab.Location = new System.Drawing.Point(4, 22);\r
 +            this.h264Tab.Name = "h264Tab";\r
 +            this.h264Tab.Padding = new System.Windows.Forms.Padding(3);\r
 +            this.h264Tab.Size = new System.Drawing.Size(697, 290);\r
 +            this.h264Tab.TabIndex = 8;\r
 +            this.h264Tab.Text = "H.264\92Ç\89Á\90Ý\92è";\r
 +            this.h264Tab.UseVisualStyleBackColor = true;\r
 +            // \r
 +            // label43\r
 +            // \r
 +            this.label43.AutoSize = true;\r
 +            this.label43.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label43.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label43.Location = new System.Drawing.Point(13, 12);\r
 +            this.label43.Name = "label43";\r
 +            this.label43.Size = new System.Drawing.Size(88, 13);\r
 +            this.label43.TabIndex = 0;\r
 +            this.label43.Text = "H.264\92Ç\89Á\90Ý\92è";\r
 +            // \r
 +            // btn_reset\r
 +            // \r
 +            this.btn_reset.Location = new System.Drawing.Point(13, 207);\r
 +            this.btn_reset.Name = "btn_reset";\r
 +            this.btn_reset.Size = new System.Drawing.Size(75, 21);\r
 +            this.btn_reset.TabIndex = 41;\r
 +            this.btn_reset.Text = "\82·\82×\82Ä\83\8a\83Z\83b\83g";\r
 +            this.btn_reset.UseVisualStyleBackColor = true;\r
 +            this.btn_reset.Click += new System.EventHandler(this.btn_reset_Click);\r
 +            // \r
 +            // rtf_x264Query\r
 +            // \r
 +            this.rtf_x264Query.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\r
 +            this.rtf_x264Query.Location = new System.Drawing.Point(13, 234);\r
 +            this.rtf_x264Query.Name = "rtf_x264Query";\r
 +            this.rtf_x264Query.Size = new System.Drawing.Size(667, 40);\r
 +            this.rtf_x264Query.TabIndex = 42;\r
 +            this.rtf_x264Query.Text = "";\r
 +            this.rtf_x264Query.LostFocus += new System.EventHandler(this.rtf_x264Query_TextChanged);\r
 +            this.rtf_x264Query.TextChanged += new System.EventHandler(this.rtf_x264Query_TextChanged);\r
 +            // \r
 +            // lbl_trellis\r
 +            // \r
 +            this.lbl_trellis.AutoSize = true;\r
 +            this.lbl_trellis.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_trellis.Location = new System.Drawing.Point(490, 156);\r
 +            this.lbl_trellis.Name = "lbl_trellis";\r
 +            this.lbl_trellis.Size = new System.Drawing.Size(41, 12);\r
 +            this.lbl_trellis.TabIndex = 26;\r
 +            this.lbl_trellis.Text = "Trellis:";\r
 +            // \r
 +            // label41\r
 +            // \r
 +            this.label41.AutoSize = true;\r
 +            this.label41.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label41.Location = new System.Drawing.Point(466, 136);\r
 +            this.label41.Name = "label41";\r
 +            this.label41.Size = new System.Drawing.Size(65, 12);\r
 +            this.label41.TabIndex = 25;\r
 +            this.label41.Text = "Deblocking:";\r
 +            // \r
 +            // panel3\r
 +            // \r
 +            this.panel3.BackColor = System.Drawing.Color.Black;\r
 +            this.panel3.Location = new System.Drawing.Point(396, 121);\r
 +            this.panel3.Margin = new System.Windows.Forms.Padding(0);\r
 +            this.panel3.Name = "panel3";\r
 +            this.panel3.Size = new System.Drawing.Size(284, 1);\r
 +            this.panel3.TabIndex = 24;\r
 +            // \r
 +            // panel1\r
 +            // \r
 +            this.panel1.BackColor = System.Drawing.Color.Black;\r
 +            this.panel1.Location = new System.Drawing.Point(13, 78);\r
 +            this.panel1.Margin = new System.Windows.Forms.Padding(0);\r
 +            this.panel1.Name = "panel1";\r
 +            this.panel1.Size = new System.Drawing.Size(284, 1);\r
 +            this.panel1.TabIndex = 3;\r
 +            // \r
 +            // panel2\r
 +            // \r
 +            this.panel2.BackColor = System.Drawing.Color.Black;\r
 +            this.panel2.Location = new System.Drawing.Point(396, 88);\r
 +            this.panel2.Margin = new System.Windows.Forms.Padding(0);\r
 +            this.panel2.Name = "panel2";\r
 +            this.panel2.Size = new System.Drawing.Size(284, 1);\r
 +            this.panel2.TabIndex = 21;\r
 +            // \r
 +            // label45\r
 +            // \r
 +            this.label45.AutoSize = true;\r
 +            this.label45.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label45.Location = new System.Drawing.Point(478, 100);\r
 +            this.label45.Name = "label45";\r
 +            this.label45.Size = new System.Drawing.Size(27, 12);\r
 +            this.label45.TabIndex = 22;\r
 +            this.label45.Text = "\89ð\90Í:";\r
 +            // \r
 +            // label48\r
 +            // \r
 +            this.label48.AutoSize = true;\r
 +            this.label48.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label48.Location = new System.Drawing.Point(385, 66);\r
 +            this.label48.Name = "label48";\r
 +            this.label48.Size = new System.Drawing.Size(84, 12);\r
 +            this.label48.TabIndex = 20;\r
 +            this.label48.Text = "\83T\83u\83s\83N\83Z\83\8b\93®\82«\90\84\92è:";\r
 +            // \r
 +            // label49\r
 +            // \r
 +            this.label49.AutoSize = true;\r
 +            this.label49.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label49.Location = new System.Drawing.Point(397, 40);\r
 +            this.label49.Name = "label49";\r
 +            this.label49.Size = new System.Drawing.Size(61, 12);\r
 +            this.label49.TabIndex = 19;\r
 +            this.label49.Text = "\93®\82«\97\\91ª\94Í\88Í:";\r
 +            // \r
 +            // label54\r
 +            // \r
 +            this.label54.AutoSize = true;\r
 +            this.label54.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label54.Location = new System.Drawing.Point(391, 13);\r
 +            this.label54.Name = "label54";\r
 +            this.label54.Size = new System.Drawing.Size(61, 12);\r
 +            this.label54.TabIndex = 18;\r
 +            this.label54.Text = "\93®\82«\97\\91ª\95û\8e®:";\r
 +            // \r
 +            // lbl_direct_prediction\r
 +            // \r
 +            this.lbl_direct_prediction.AutoSize = true;\r
 +            this.lbl_direct_prediction.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_direct_prediction.Location = new System.Drawing.Point(52, 112);\r
 +            this.lbl_direct_prediction.Name = "lbl_direct_prediction";\r
 +            this.lbl_direct_prediction.Size = new System.Drawing.Size(60, 12);\r
 +            this.lbl_direct_prediction.TabIndex = 5;\r
 +            this.lbl_direct_prediction.Text = "\83_\83C\83\8c\83N\83g\97\\91ª:";\r
 +            // \r
 +            // label62\r
 +            // \r
 +            this.label62.AutoSize = true;\r
 +            this.label62.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label62.Location = new System.Drawing.Point(88, 87);\r
 +            this.label62.Name = "label62";\r
 +            this.label62.Size = new System.Drawing.Size(43, 12);\r
 +            this.label62.TabIndex = 4;\r
 +            this.label62.Text = "B\83t\83\8c\81[\83\80:";\r
 +            // \r
 +            // label64\r
 +            // \r
 +            this.label64.AutoSize = true;\r
 +            this.label64.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label64.Location = new System.Drawing.Point(47, 37);\r
 +            this.label64.Name = "label64";\r
 +            this.label64.Size = new System.Drawing.Size(54, 12);\r
 +            this.label64.TabIndex = 1;\r
 +            this.label64.Text = "\8eQ\8fÆ\83t\83\8c\81[\83\80:";\r
 +            // \r
 +            // tabPage4\r
 +            // \r
 +            this.tabPage4.Controls.Add(this.btn_clear);\r
 +            this.tabPage4.Controls.Add(this.label34);\r
 +            this.tabPage4.Controls.Add(this.btn_generate_Query);\r
 +            this.tabPage4.Controls.Add(this.label33);\r
 +            this.tabPage4.Controls.Add(this.rtf_query);\r
 +            this.tabPage4.Location = new System.Drawing.Point(4, 22);\r
 +            this.tabPage4.Name = "tabPage4";\r
 +            this.tabPage4.Size = new System.Drawing.Size(697, 290);\r
 +            this.tabPage4.TabIndex = 7;\r
 +            this.tabPage4.Text = "\83N\83G\83\8a\81[\83G\83f\83B\83^";\r
 +            this.tabPage4.UseVisualStyleBackColor = true;\r
++*/\r
+             // tab_advanced\r
+             // \r
+             this.tab_advanced.BackColor = System.Drawing.Color.Transparent;\r
+             this.tab_advanced.Controls.Add(this.x264Panel);\r
+             this.tab_advanced.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_advanced.Name = "tab_advanced";\r
+             this.tab_advanced.Padding = new System.Windows.Forms.Padding(3);\r
+             this.tab_advanced.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_advanced.TabIndex = 8;\r
+             this.tab_advanced.Text = "Advanced";\r
+             this.tab_advanced.UseVisualStyleBackColor = true;\r
+             // \r
+             // x264Panel\r
+             // \r
+             this.x264Panel.BackColor = System.Drawing.Color.Transparent;\r
+             this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.x264Panel.Location = new System.Drawing.Point(0, 0);\r
+             this.x264Panel.Name = "x264Panel";\r
+             this.x264Panel.Size = new System.Drawing.Size(720, 306);\r
+             this.x264Panel.TabIndex = 0;\r
+             this.x264Panel.x264Query = "";\r
+             // \r
+             // tab_query\r
+             // \r
+             this.tab_query.Controls.Add(this.btn_clear);\r
+             this.tab_query.Controls.Add(this.label34);\r
+             this.tab_query.Controls.Add(this.btn_generate_Query);\r
+             this.tab_query.Controls.Add(this.label33);\r
+             this.tab_query.Controls.Add(this.rtf_query);\r
+             this.tab_query.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_query.Name = "tab_query";\r
+             this.tab_query.Size = new System.Drawing.Size(724, 308);\r
+             this.tab_query.TabIndex = 7;\r
+             this.tab_query.Text = "Query Editor";\r
+             this.tab_query.UseVisualStyleBackColor = true;\r
              // \r
              // btn_clear\r
              // \r
              this.btn_clear.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_clear.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_clear.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_clear.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_clear.Location = new System.Drawing.Point(602, 69);\r
+             this.btn_clear.Location = new System.Drawing.Point(634, 75);\r
              this.btn_clear.Name = "btn_clear";\r
 -            this.btn_clear.Size = new System.Drawing.Size(75, 22);\r
 +            this.btn_clear.Size = new System.Drawing.Size(75, 20);\r
              this.btn_clear.TabIndex = 4;\r
 -            this.btn_clear.Text = "Clear";\r
 +            this.btn_clear.Text = "\83N\83\8a\83A";\r
              this.btn_clear.UseVisualStyleBackColor = true;\r
              this.btn_clear.Click += new System.EventHandler(this.btn_clear_Click);\r
              // \r
              // label34\r
              // \r
              this.label34.AutoSize = true;\r
 -            this.label34.Location = new System.Drawing.Point(13, 36);\r
 +            this.label34.Location = new System.Drawing.Point(13, 33);\r
              this.label34.Name = "label34";\r
-             this.label34.Size = new System.Drawing.Size(258, 26);\r
+             this.label34.Size = new System.Drawing.Size(367, 26);\r
              this.label34.TabIndex = 1;\r
 -            this.label34.Text = "Here you can alter the query generated by this program.\r\nDon\'t forget to re-gener" +\r
 -                "ate this query should you change any GUI options.";\r
 +            this.label34.Text = "\82±\82Ì\97\93\82Å\82Í\90\90¬\82³\82ê\82½\83R\83}\83\93\83h\83\89\83C\83\93\81i\83N\83G\83\8a\81[\81j\82ð\95Ò\8fW\82Å\82«\82Ü\82·\81B\r\n\83R\83}\83\93\83h\83\89\83C\83\93\82ÍGUI\82Å\83I\83v\83V\83\87\83\93\82ð\95Ï\8dX\82·\82é\82Æ\81A\8dÄ\90\90¬\82³\82ê\82Ü\82·\81B";\r
              // \r
              // btn_generate_Query\r
              // \r
              this.btn_generate_Query.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_generate_Query.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_generate_Query.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_generate_Query.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
 -            this.btn_generate_Query.Location = new System.Drawing.Point(16, 75);\r
 +            this.btn_generate_Query.Location = new System.Drawing.Point(16, 69);\r
              this.btn_generate_Query.Name = "btn_generate_Query";\r
 -            this.btn_generate_Query.Size = new System.Drawing.Size(126, 22);\r
 +            this.btn_generate_Query.Size = new System.Drawing.Size(126, 20);\r
              this.btn_generate_Query.TabIndex = 2;\r
 -            this.btn_generate_Query.Text = "Generate Query";\r
 +            this.btn_generate_Query.Text = "\83N\83G\83\8a\81[\82ð\90\90¬";\r
              this.btn_generate_Query.UseVisualStyleBackColor = true;\r
              this.btn_generate_Query.Click += new System.EventHandler(this.btn_generate_Query_Click);\r
              // \r
              // \r
              this.label33.AutoSize = true;\r
              this.label33.BackColor = System.Drawing.Color.Transparent;\r
++/*\r
 +            this.label33.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label33.Location = new System.Drawing.Point(13, 12);\r
 +            this.label33.Name = "label33";\r
 +            this.label33.Size = new System.Drawing.Size(73, 13);\r
++*/\r
+             this.label33.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label33.Location = new System.Drawing.Point(13, 13);\r
+             this.label33.Name = "label33";\r
+             this.label33.Size = new System.Drawing.Size(77, 13);\r
              this.label33.TabIndex = 0;\r
 -            this.label33.Text = "Query Editor";\r
 +            this.label33.Text = "\83N\83G\83\8a\81[\83G\83f\83B\83^";\r
              // \r
              // rtf_query\r
              // \r
              this.rtf_query.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\r
 -            this.rtf_query.Location = new System.Drawing.Point(16, 103);\r
 +            this.rtf_query.Location = new System.Drawing.Point(16, 95);\r
              this.rtf_query.Name = "rtf_query";\r
++/*\r
 +            this.rtf_query.Size = new System.Drawing.Size(661, 168);\r
 +            this.rtf_query.TabIndex = 5;\r
 +            this.rtf_query.Text = "";\r
 +            // \r
 +            // groupBox_dest\r
 +            // \r
 +            this.groupBox_dest.Controls.Add(this.btn_destBrowse);\r
 +            this.groupBox_dest.Controls.Add(this.Label3);\r
 +            this.groupBox_dest.Controls.Add(this.text_destination);\r
 +            this.groupBox_dest.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.groupBox_dest.ForeColor = System.Drawing.Color.Black;\r
 +            this.groupBox_dest.Location = new System.Drawing.Point(12, 148);\r
 +            this.groupBox_dest.Name = "groupBox_dest";\r
 +            this.groupBox_dest.Size = new System.Drawing.Size(705, 46);\r
 +            this.groupBox_dest.TabIndex = 3;\r
 +            this.groupBox_dest.TabStop = false;\r
 +            this.groupBox_dest.Text = "\95Û\91\90æ";\r
 +            // \r
 +            // btn_destBrowse\r
 +            // \r
 +            this.btn_destBrowse.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
 +            this.btn_destBrowse.Location = new System.Drawing.Point(608, 16);\r
 +            this.btn_destBrowse.Name = "btn_destBrowse";\r
 +            this.btn_destBrowse.Size = new System.Drawing.Size(75, 21);\r
 +            this.btn_destBrowse.TabIndex = 13;\r
 +            this.btn_destBrowse.Text = "\83u\83\89\83E\83Y...";\r
 +            this.btn_destBrowse.UseVisualStyleBackColor = true;\r
 +            this.btn_destBrowse.Click += new System.EventHandler(this.btn_destBrowse_Click);\r
 +            // \r
++*/\r
+             this.rtf_query.Size = new System.Drawing.Size(693, 190);\r
+             this.rtf_query.TabIndex = 5;\r
+             this.rtf_query.Text = "";\r
+             // \r
              // groupBox2\r
              // \r
              this.groupBox2.Controls.Add(this.splitContainer1);\r
-             this.groupBox2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.groupBox2.ForeColor = System.Drawing.Color.Black;\r
-             this.groupBox2.Location = new System.Drawing.Point(728, 65);\r
+             this.groupBox2.Location = new System.Drawing.Point(750, 70);\r
              this.groupBox2.Name = "groupBox2";\r
-             this.groupBox2.Size = new System.Drawing.Size(245, 504);\r
+             this.groupBox2.Size = new System.Drawing.Size(246, 482);\r
              this.groupBox2.TabIndex = 6;\r
              this.groupBox2.TabStop = false;\r
 -            this.groupBox2.Text = "Presets";\r
 +            this.groupBox2.Text = "\83v\83\8a\83Z\83b\83g";\r
              // \r
              // splitContainer1\r
              // \r
              this.btn_source.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.btn_source.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.btn_source.Name = "btn_source";\r
-             this.btn_source.Size = new System.Drawing.Size(89, 36);\r
+             this.btn_source.Size = new System.Drawing.Size(85, 36);\r
 -            this.btn_source.Text = "Source";\r
 -            this.btn_source.ToolTipText = "Open a new source file or folder.";\r
 +            this.btn_source.Text = "\95Ï\8a·\8c³";\r
 +            this.btn_source.ToolTipText = "\95Ï\8a·\8c³\83t\83@\83C\83\8b/\83t\83H\83\8b\83_\82ð\91I\91ð\82µ\82Ü\82·";\r
              this.btn_source.Click += new System.EventHandler(this.btn_source_Click);\r
              // \r
              // btn_file_source\r
              // \r
              this.btn_file_source.Image = global::Handbrake.Properties.Resources.Movies_Small;\r
              this.btn_file_source.Name = "btn_file_source";\r
-             this.btn_file_source.Size = new System.Drawing.Size(282, 22);\r
+             this.btn_file_source.Size = new System.Drawing.Size(194, 22);\r
 -            this.btn_file_source.Text = "Video File";\r
 +            this.btn_file_source.Text = "\93®\89æ\83t\83@\83C\83\8b";\r
              this.btn_file_source.Click += new System.EventHandler(this.btn_file_source_Click);\r
              // \r
              // btn_dvd_source\r
              this.btn_dvd_source.Image = ((System.Drawing.Image)(resources.GetObject("btn_dvd_source.Image")));\r
              this.btn_dvd_source.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.btn_dvd_source.Name = "btn_dvd_source";\r
-             this.btn_dvd_source.Size = new System.Drawing.Size(282, 22);\r
+             this.btn_dvd_source.Size = new System.Drawing.Size(194, 22);\r
 -            this.btn_dvd_source.Text = "DVD/ VIDEO_TS Folder";\r
 +            this.btn_dvd_source.Text = "DVD/ VIDEO_TS\83t\83H\83\8b\83_";\r
              this.btn_dvd_source.Click += new System.EventHandler(this.btn_dvd_source_Click);\r
              // \r
              // toolStripSeparator1\r
              // \r
              this.mnu_dvd_drive.Image = global::Handbrake.Properties.Resources.disc_small;\r
              this.mnu_dvd_drive.Name = "mnu_dvd_drive";\r
-             this.mnu_dvd_drive.Size = new System.Drawing.Size(282, 22);\r
 -            this.mnu_dvd_drive.Size = new System.Drawing.Size(194, 22);\r
 -            this.mnu_dvd_drive.Text = "[No DVD Drive Ready]";\r
++            this.mnu_dvd_drive.Size = new System.Drawing.Size(194, 22); \r
 +            this.mnu_dvd_drive.Text = "DVD\83h\83\89\83C\83u\82É\83f\83B\83X\83N\82ª\82 \82è\82Ü\82¹\82ñ";\r
              this.mnu_dvd_drive.Visible = false;\r
              this.mnu_dvd_drive.Click += new System.EventHandler(this.mnu_dvd_drive_Click);\r
              // \r
              this.btn_start.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.btn_start.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.btn_start.Name = "btn_start";\r
-             this.btn_start.Size = new System.Drawing.Size(92, 36);\r
+             this.btn_start.Size = new System.Drawing.Size(67, 36);\r
 -            this.btn_start.Text = "Start";\r
 -            this.btn_start.ToolTipText = "Start the encoding process";\r
 +            this.btn_start.Text = "\95Ï\8a·\8aJ\8en";\r
 +            this.btn_start.ToolTipText = "\83G\83\93\83R\81[\83h\8f\88\97\9d\82ð\8aJ\8en\82µ\82Ü\82·";\r
              this.btn_start.Click += new System.EventHandler(this.btn_start_Click);\r
              // \r
              // btn_add2Queue\r
              this.btn_add2Queue.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.btn_add2Queue.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.btn_add2Queue.Name = "btn_add2Queue";\r
-             this.btn_add2Queue.Size = new System.Drawing.Size(116, 36);\r
+             this.btn_add2Queue.Size = new System.Drawing.Size(110, 36);\r
 -            this.btn_add2Queue.Text = "Add to Queue";\r
 -            this.btn_add2Queue.ToolTipText = "Add a new item to the Queue";\r
 +            this.btn_add2Queue.Text = "\83L\83\85\81[\82É\92Ç\89Á";\r
 +            this.btn_add2Queue.ToolTipText = "\90V\8bK\83A\83C\83e\83\80\82ð\83L\83\85\81[\82É\92Ç\89Á\82µ\82Ü\82·";\r
              this.btn_add2Queue.Click += new System.EventHandler(this.btn_add2Queue_Click);\r
              // \r
              // btn_showQueue\r
              this.btn_showQueue.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.btn_showQueue.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.btn_showQueue.Name = "btn_showQueue";\r
-             this.btn_showQueue.Size = new System.Drawing.Size(116, 36);\r
+             this.btn_showQueue.Size = new System.Drawing.Size(104, 36);\r
              this.btn_showQueue.Tag = "";\r
 -            this.btn_showQueue.Text = "Show Queue";\r
 +            this.btn_showQueue.Text = "\83L\83\85\81[\82Ì\95\\8e¦";\r
              this.btn_showQueue.Click += new System.EventHandler(this.btn_showQueue_Click);\r
              // \r
              // toolStripSeparator4\r
              this.btn_ActivityWindow.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.btn_ActivityWindow.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.btn_ActivityWindow.Name = "btn_ActivityWindow";\r
 -            this.btn_ActivityWindow.Text = "Activity Window";\r
 -            this.btn_ActivityWindow.ToolTipText = "Displays the activity window which displays the log of the last completed or curr" +\r
 -                "ently running encode.";\r
++/*\r
 +            this.btn_ActivityWindow.Size = new System.Drawing.Size(128, 36);\r
 +            this.btn_ActivityWindow.Text = "\97\9a\97ð\83E\83B\83\93\83h\83E";\r
 +            this.btn_ActivityWindow.ToolTipText = "\97\9a\97ð\83E\83B\83\93\83h\83E\82Å\83\8d\83O\82â\83G\83\93\83R\81[\83h\8dì\8bÆ\82Ì\90i\92»\82ð\8am\94F\82µ\82Ü\82·";\r
 +            this.btn_ActivityWindow.Click += new System.EventHandler(this.btn_ActivityWindow_Click);\r
 +            // \r
 +            // toolStripSeparator8\r
 +            // \r
 +            this.toolStripSeparator8.Name = "toolStripSeparator8";\r
 +            this.toolStripSeparator8.Size = new System.Drawing.Size(6, 39);\r
 +            // \r
 +            // btn_minimize\r
 +            // \r
 +            this.btn_minimize.Image = global::Handbrake.Properties.Resources.hb32;\r
 +            this.btn_minimize.ImageTransparentColor = System.Drawing.Color.Magenta;\r
 +            this.btn_minimize.Name = "btn_minimize";\r
 +            this.btn_minimize.Size = new System.Drawing.Size(64, 36);\r
 +            this.btn_minimize.Text = "\8dÅ\8f¬\89»";\r
 +            this.btn_minimize.ToolTipText = "\8dÅ\8f¬\89»\82µ\82Ä\83^\83X\83N\83g\83\8c\83C\82É\83A\83C\83R\83\93\82ð\93ü\82ê\82Ü\82·";\r
 +            this.btn_minimize.Click += new System.EventHandler(this.btn_minimize_Click);\r
 +            // \r
++*/\r
+             this.btn_ActivityWindow.Size = new System.Drawing.Size(120, 36);\r
++            this.btn_ActivityWindow.Text = "\97\9a\97ð\83E\83B\83\93\83h\83E";\r
++            this.btn_ActivityWindow.ToolTipText = "\97\9a\97ð\83E\83B\83\93\83h\83E\82Å\83\8d\83O\82â\83G\83\93\83R\81[\83h\8dì\8bÆ\82Ì\90i\92»\82ð\8am\94F\82µ\82Ü\82·";\r
+             this.btn_ActivityWindow.Click += new System.EventHandler(this.btn_ActivityWindow_Click);\r
+             // \r
              // notifyIcon\r
              // \r
              this.notifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;\r
              // \r
              // lbl_encode\r
              // \r
-             this.lbl_encode.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.lbl_encode.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.lbl_encode.Name = "lbl_encode";\r
-             this.lbl_encode.Size = new System.Drawing.Size(31, 17);\r
+             this.lbl_encode.Size = new System.Drawing.Size(28, 17);\r
              this.lbl_encode.Text = "{0}";\r
              // \r
+             // lbl_updateCheck\r
+             // \r
+             this.lbl_updateCheck.BackColor = System.Drawing.Color.Transparent;\r
+             this.lbl_updateCheck.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
+             this.lbl_updateCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.lbl_updateCheck.Name = "lbl_updateCheck";\r
+             this.lbl_updateCheck.Size = new System.Drawing.Size(139, 17);\r
+             this.lbl_updateCheck.Text = "Checking for Updates ...";\r
+             this.lbl_updateCheck.Visible = false;\r
+             // \r
+             // hbproc\r
+             // \r
+             this.hbproc.StartInfo.Domain = "";\r
+             this.hbproc.StartInfo.LoadUserProfile = false;\r
+             this.hbproc.StartInfo.Password = null;\r
+             this.hbproc.StartInfo.StandardErrorEncoding = null;\r
+             this.hbproc.StartInfo.StandardOutputEncoding = null;\r
+             this.hbproc.StartInfo.UserName = "";\r
+             this.hbproc.SynchronizingObject = this;\r
+             // \r
+             // File_Save\r
+             // \r
+             this.File_Save.DefaultExt = "hb";\r
+             this.File_Save.Filter = "hb|*.hb";\r
+             // \r
+             // tableLayoutPanel2\r
+             // \r
+             this.tableLayoutPanel2.AutoSize = true;\r
+             this.tableLayoutPanel2.ColumnCount = 3;\r
+             this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+             this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel2.Controls.Add(this.Label3, 0, 0);\r
+             this.tableLayoutPanel2.Controls.Add(this.text_destination, 1, 0);\r
+             this.tableLayoutPanel2.Controls.Add(this.btn_destBrowse, 2, 0);\r
+             this.tableLayoutPanel2.Location = new System.Drawing.Point(21, 132);\r
+             this.tableLayoutPanel2.Name = "tableLayoutPanel2";\r
+             this.tableLayoutPanel2.RowCount = 1;\r
+             this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+             this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F));\r
+             this.tableLayoutPanel2.Size = new System.Drawing.Size(723, 29);\r
+             this.tableLayoutPanel2.TabIndex = 50;\r
+             // \r
+             // btn_destBrowse\r
+             // \r
+             this.btn_destBrowse.AutoSize = true;\r
+             this.btn_destBrowse.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_destBrowse.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
+             this.btn_destBrowse.Location = new System.Drawing.Point(645, 3);\r
+             this.btn_destBrowse.Name = "btn_destBrowse";\r
+             this.btn_destBrowse.Size = new System.Drawing.Size(75, 23);\r
+             this.btn_destBrowse.TabIndex = 13;\r
+             this.btn_destBrowse.Text = "Browse";\r
+             this.btn_destBrowse.UseVisualStyleBackColor = true;\r
+             this.btn_destBrowse.Click += new System.EventHandler(this.btn_destBrowse_Click);\r
+             // \r
+             // tableLayoutPanel3\r
+             // \r
+             this.tableLayoutPanel3.AutoSize = true;\r
+             this.tableLayoutPanel3.ColumnCount = 5;\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.Controls.Add(this.label5, 0, 0);\r
+             this.tableLayoutPanel3.Controls.Add(this.drop_format, 1, 0);\r
+             this.tableLayoutPanel3.Controls.Add(this.check_largeFile, 2, 0);\r
+             this.tableLayoutPanel3.Controls.Add(this.check_optimiseMP4, 3, 0);\r
+             this.tableLayoutPanel3.Controls.Add(this.check_iPodAtom, 4, 0);\r
+             this.tableLayoutPanel3.Location = new System.Drawing.Point(21, 180);\r
+             this.tableLayoutPanel3.Name = "tableLayoutPanel3";\r
+             this.tableLayoutPanel3.RowCount = 1;\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+             this.tableLayoutPanel3.Size = new System.Drawing.Size(723, 27);\r
+             this.tableLayoutPanel3.TabIndex = 51;\r
+             // \r
+             // tableLayoutPanel1\r
+             // \r
+             this.tableLayoutPanel1.AutoSize = true;\r
+             this.tableLayoutPanel1.ColumnCount = 10;\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel1.Controls.Add(this.Label10, 0, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.drp_dvdtitle, 1, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.lbl_angle, 2, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.drop_angle, 3, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.Label9, 4, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.drop_chapterStart, 5, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.Label13, 6, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.drop_chapterFinish, 7, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.label_duration, 8, 0);\r
+             this.tableLayoutPanel1.Controls.Add(this.lbl_duration, 9, 0);\r
+             this.tableLayoutPanel1.Location = new System.Drawing.Point(21, 86);\r
+             this.tableLayoutPanel1.Name = "tableLayoutPanel1";\r
+             this.tableLayoutPanel1.RowCount = 1;\r
+             this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+             this.tableLayoutPanel1.Size = new System.Drawing.Size(723, 27);\r
+             this.tableLayoutPanel1.TabIndex = 49;\r
+             // \r
+             // Label10\r
+             // \r
+             this.Label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.Label10.AutoSize = true;\r
+             this.Label10.ForeColor = System.Drawing.Color.Black;\r
+             this.Label10.Location = new System.Drawing.Point(3, 7);\r
+             this.Label10.Name = "Label10";\r
+             this.Label10.Size = new System.Drawing.Size(31, 13);\r
+             this.Label10.TabIndex = 6;\r
+             this.Label10.Text = "Title:";\r
+             // \r
+             // lbl_angle\r
+             // \r
+             this.lbl_angle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.lbl_angle.AutoSize = true;\r
+             this.lbl_angle.ForeColor = System.Drawing.Color.Black;\r
+             this.lbl_angle.Location = new System.Drawing.Point(165, 7);\r
+             this.lbl_angle.Name = "lbl_angle";\r
+             this.lbl_angle.Size = new System.Drawing.Size(38, 13);\r
+             this.lbl_angle.TabIndex = 44;\r
+             this.lbl_angle.Text = "Angle:";\r
+             // \r
+             // Label9\r
+             // \r
+             this.Label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.Label9.AutoSize = true;\r
+             this.Label9.ForeColor = System.Drawing.Color.Black;\r
+             this.Label9.Location = new System.Drawing.Point(260, 7);\r
+             this.Label9.Name = "Label9";\r
+             this.Label9.Size = new System.Drawing.Size(55, 13);\r
+             this.Label9.TabIndex = 8;\r
+             this.Label9.Text = "Chapters:";\r
+             // \r
+             // Label13\r
+             // \r
+             this.Label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.Label13.AutoSize = true;\r
+             this.Label13.Location = new System.Drawing.Point(396, 7);\r
+             this.Label13.Name = "Label13";\r
+             this.Label13.Size = new System.Drawing.Size(45, 13);\r
+             this.Label13.TabIndex = 10;\r
+             this.Label13.Text = "through";\r
+             // \r
+             // label_duration\r
+             // \r
+             this.label_duration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.label_duration.AutoSize = true;\r
+             this.label_duration.BackColor = System.Drawing.Color.Transparent;\r
+             this.label_duration.Location = new System.Drawing.Point(522, 7);\r
+             this.label_duration.Name = "label_duration";\r
+             this.label_duration.Size = new System.Drawing.Size(52, 13);\r
+             this.label_duration.TabIndex = 42;\r
+             this.label_duration.Text = "Duration:";\r
+             // \r
+             // lbl_duration\r
+             // \r
+             this.lbl_duration.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.lbl_duration.AutoSize = true;\r
+             this.lbl_duration.BackColor = System.Drawing.Color.Transparent;\r
+             this.lbl_duration.Location = new System.Drawing.Point(580, 7);\r
+             this.lbl_duration.Name = "lbl_duration";\r
+             this.lbl_duration.Size = new System.Drawing.Size(39, 13);\r
+             this.lbl_duration.TabIndex = 43;\r
+             this.lbl_duration.Text = "--:--:--";\r
+             // \r
+             // labelStaticDestination\r
+             // \r
+             this.labelStaticDestination.AutoSize = true;\r
+             this.labelStaticDestination.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.labelStaticDestination.Location = new System.Drawing.Point(9, 116);\r
+             this.labelStaticDestination.Name = "labelStaticDestination";\r
+             this.labelStaticDestination.Size = new System.Drawing.Size(75, 13);\r
+             this.labelStaticDestination.TabIndex = 53;\r
+             this.labelStaticDestination.Text = "Destination:";\r
+             // \r
+             // labelPreset\r
+             // \r
+             this.labelPreset.AutoSize = true;\r
+             this.labelPreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.labelPreset.Location = new System.Drawing.Point(9, 164);\r
+             this.labelPreset.Name = "labelPreset";\r
+             this.labelPreset.Size = new System.Drawing.Size(180, 13);\r
+             this.labelPreset.TabIndex = 54;\r
+             this.labelPreset.Text = "Output Settings (Preset: None)";\r
+             // \r
+             // labelSource\r
+             // \r
+             this.labelSource.AutoSize = true;\r
+             this.labelSource.Location = new System.Drawing.Point(55, 0);\r
+             this.labelSource.Name = "labelSource";\r
+             this.labelSource.Size = new System.Drawing.Size(137, 13);\r
+             this.labelSource.TabIndex = 52;\r
+             this.labelSource.Text = "Select \"Source\" to continue";\r
+             // \r
+             // labelStaticSource\r
+             // \r
+             this.labelStaticSource.AutoSize = true;\r
+             this.labelStaticSource.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.labelStaticSource.Location = new System.Drawing.Point(0, 0);\r
+             this.labelStaticSource.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);\r
+             this.labelStaticSource.Name = "labelStaticSource";\r
+             this.labelStaticSource.Size = new System.Drawing.Size(49, 13);\r
+             this.labelStaticSource.TabIndex = 51;\r
+             this.labelStaticSource.Text = "Source:";\r
+             // \r
+             // flowLayoutPanel1\r
+             // \r
+             this.flowLayoutPanel1.AutoSize = true;\r
+             this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;\r
+             this.flowLayoutPanel1.Controls.Add(this.labelStaticSource);\r
+             this.flowLayoutPanel1.Controls.Add(this.labelSource);\r
+             this.flowLayoutPanel1.Location = new System.Drawing.Point(9, 70);\r
+             this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(0);\r
+             this.flowLayoutPanel1.Name = "flowLayoutPanel1";\r
+             this.flowLayoutPanel1.Size = new System.Drawing.Size(195, 13);\r
+             this.flowLayoutPanel1.TabIndex = 55;\r
+             // \r
+             // openPreset\r
+             // \r
+             this.openPreset.DefaultExt = "plist";\r
+             this.openPreset.Filter = "Plist Files|*.plist";\r
+             // \r
+             // File_ChapterImport\r
+             // \r
+             this.File_ChapterImport.Filter = "CSV Files|*.csv";\r
+             // \r
              // frmMain\r
              // \r
++/*\r
 +            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
 +            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
 +            this.ClientSize = new System.Drawing.Size(985, 601);\r
 +            this.Controls.Add(this.GroupBox1);\r
 +            this.Controls.Add(this.groupBox_dest);\r
 +            this.Controls.Add(this.groupBox_output);\r
 +            this.Controls.Add(this.groupBox2);\r
++*/\r
+             this.AllowDrop = true;\r
+             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);\r
+             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;\r
+             this.AutoScroll = true;\r
+             this.AutoSize = true;\r
+             this.ClientSize = new System.Drawing.Size(1002, 583);\r
+             this.Controls.Add(this.tableLayoutPanel3);\r
              this.Controls.Add(this.toolStrip1);\r
-             this.Controls.Add(this.advancedOptions);\r
+             this.Controls.Add(this.flowLayoutPanel1);\r
              this.Controls.Add(this.frmMainMenu);\r
+             this.Controls.Add(this.tableLayoutPanel2);\r
+             this.Controls.Add(this.labelPreset);\r
+             this.Controls.Add(this.groupBox2);\r
              this.Controls.Add(this.StatusStrip);\r
+             this.Controls.Add(this.labelStaticDestination);\r
+             this.Controls.Add(this.tableLayoutPanel1);\r
+             this.Controls.Add(this.tabs_panel);\r
              this.DoubleBuffered = true;\r
+             this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));\r
-             this.MinimumSize = new System.Drawing.Size(946, 619);\r
+             this.MinimumSize = new System.Drawing.Size(900, 500);\r
              this.Name = "frmMain";\r
              this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
              this.Text = "HandBrake";\r
@@@ -63,128 -56,123 +56,123 @@@ namespace Handbrak
              InitializeComponent();\r
  \r
              // Update the users config file with the CLI version data.\r
 -            lblStatus.Text = "Setting Version Data ...";\r
 +            lblStatus.Text = "\83o\81[\83W\83\87\83\93\8fî\95ñ\82Ì\8eæ\93¾\92\86...";\r
              Application.DoEvents();\r
-             ArrayList x = hb_common_func.getCliVersionData();\r
-             if (x != null)\r
-             {\r
-                 try\r
-                 {\r
-                     Properties.Settings.Default.hb_build = int.Parse(x[1].ToString());\r
-                     Properties.Settings.Default.hb_version = x[0].ToString();\r
-                 }\r
-                 catch (Exception)\r
-                 {\r
-                     Properties.Settings.Default.hb_build = 0;\r
-                     Properties.Settings.Default.hb_version = "0";\r
-                 }\r
-             }\r
+             Main.setCliVersionData();\r
  \r
-             // show the form, but leave disabled until preloading is complete then show the main form\r
+             // Show the form, but leave disabled until preloading is complete then show the main form\r
              this.Enabled = false;\r
              this.Show();\r
              Application.DoEvents(); // Forces frmMain to draw\r
  \r
-             // update the status\r
-             if (Properties.Settings.Default.updateStatus == "Checked")\r
+             // Check for new versions, if update checking is enabled\r
+             if (Properties.Settings.Default.updateStatus)\r
              {\r
-                 lblStatus.Text = "\83A\83b\83v\83f\81[\83g\82Ì\8am\94F\92\86...";\r
-                 Application.DoEvents();\r
-                 Thread updateCheckThread = new Thread(startupUpdateCheck);\r
-                 updateCheckThread.Start();\r
+                 DateTime now = DateTime.Now;\r
+                 DateTime lastCheck = Properties.Settings.Default.lastUpdateCheckDate;\r
+                 TimeSpan elapsed = now.Subtract(lastCheck);\r
+                 if (elapsed.TotalDays > Properties.Settings.Default.daysBetweenUpdateCheck)\r
+                 {\r
 -                    lblStatus.Text = "Checking for updates ...";\r
++                    lblStatus.Text = "\83A\83b\83v\83f\81[\83g\82Ì\8am\94F\92\86...";\r
+                     Application.DoEvents();\r
\r
+                     Main.BeginCheckForUpdates(new AsyncCallback(UpdateCheckDone), false);\r
+                 }\r
              }\r
  \r
              // Setup the GUI components\r
 -            lblStatus.Text = "Setting up the GUI ...";\r
 +            lblStatus.Text = "GUI\82Ì\90Ý\92è\92\86...";\r
              Application.DoEvents();\r
-             setupH264Panel();               // Initalize the H.264 Panel\r
-             loadPresetPanel();              // Load the Preset Panel\r
+             loadPresetPanel();                       // Load the Preset Panel\r
+             treeView_presets.ExpandAll();\r
+             lbl_encode.Text = "";\r
+             queueWindow = new frmQueue(encodeQueue);        // Prepare the Queue\r
+             if (!Properties.Settings.Default.QueryEditorTab)\r
+                 tabs_panel.TabPages.RemoveAt(7); // Remove the query editor tab if the user does not want it enabled.\r
\r
              // Load the user's default settings or Normal Preset\r
-             if (Properties.Settings.Default.defaultSettings == "Checked")\r
-                 loadUserDefaults();\r
+             if (Properties.Settings.Default.defaultPreset != "")\r
+             {\r
+                 if (presetHandler.GetPreset(Properties.Settings.Default.defaultPreset) != null)\r
+                 {\r
+                     string query = presetHandler.GetPreset(Properties.Settings.Default.defaultPreset).Query;\r
+                     Boolean loadPictureSettings = presetHandler.GetPreset(Properties.Settings.Default.defaultPreset).PictureSettings;\r
\r
+                     if (query != null)\r
+                     {\r
+                         //Ok, Reset all the H264 widgets before changing the preset\r
+                         x264Panel.reset2Defaults();\r
\r
+                         // Send the query from the file to the Query Parser class, then load the preset\r
+                         QueryParser presetQuery = QueryParser.Parse(query);\r
+                         PresetLoader.presetLoader(this, presetQuery, Properties.Settings.Default.defaultPreset, loadPictureSettings);\r
\r
+                         // The x264 widgets will need updated, so do this now:\r
+                         x264Panel.X264_StandardizeOptString();\r
+                         x264Panel.X264_SetCurrentSettingsInPanel();\r
+                     }\r
+                 }\r
+                 else\r
+                     loadNormalPreset();\r
+             }\r
              else\r
                  loadNormalPreset();\r
-             // Expand the preset Nodes\r
-             treeView_presets.ExpandAll();\r
\r
              // Enabled GUI tooltip's if Required\r
-             if (Properties.Settings.Default.tooltipEnable == "Checked")\r
+             if (Properties.Settings.Default.tooltipEnable)\r
                  ToolTip.Active = true;\r
-             lbl_encode.Text = "";\r
\r
+             // Register with Growl (if not using Growl for the encoding completion action, this wont hurt anything)\r
+             GrowlCommunicator.Register();\r
  \r
              //Finished Loading\r
 -            lblStatus.Text = "Loading Complete!";\r
 +            lblStatus.Text = "\83\8d\81[\83h\8a®\97¹\81I";\r
              Application.DoEvents();\r
\r
-             //Close the splash screen\r
              splash.Close();\r
              splash.Dispose();\r
\r
-             // Turn the interface back to the user\r
              this.Enabled = true;\r
  \r
-             // Some event Handlers. Used for minimize to taskbar\r
-             this.Resize += new EventHandler(frmMain_Resize);\r
\r
-             // Queue Recovery\r
+             // Event Handlers and Queue Recovery\r
+             events();\r
              queueRecovery();\r
          }\r
  \r
-         // Startup Functions\r
-         private void startupUpdateCheck()\r
+         private void UpdateCheckDone(IAsyncResult result)\r
          {\r
+             if (InvokeRequired)\r
+             {\r
+                 Invoke(new MethodInvoker(() => UpdateCheckDone(result)));\r
+                 return;\r
+             }\r
\r
+             UpdateCheckInformation info;\r
\r
              try\r
              {\r
-                 if (this.InvokeRequired)\r
-                 {\r
-                     this.BeginInvoke(new updateStatusChanger(startupUpdateCheck));\r
-                     return;\r
-                 }\r
+                 info = Main.EndCheckForUpdates(result);\r
  \r
-                 Boolean update = hb_common_func.updateCheck(false);\r
-                 if (update == true)\r
+                 if (info.NewVersionAvailable)\r
                  {\r
-                     frmUpdater updateWindow = new frmUpdater();\r
-                     updateWindow.Show();\r
+                     frmUpdater updateWindow = new frmUpdater(info.BuildInformation);\r
+                     updateWindow.ShowDialog();\r
                  }\r
              }\r
-             catch (Exception) { /* Do Nothing*/ }\r
-         }\r
-         private void setupH264Panel()\r
-         {\r
-             // Set the default settings of the x264 panel\r
-             drop_bFrames.Text = "Default (0)";\r
-             drop_refFrames.Text = "Default (1)";\r
-             drop_subpixelMotionEstimation.Text = "Default (4)";\r
-             drop_trellis.Text = "Default (0)";\r
-             drop_MotionEstimationMethod.Text = "Default (Hexagon)";\r
-             drop_MotionEstimationRange.Text = "Default (16)";\r
-             drop_directPrediction.Text = "Default (Spatial)";\r
-             drop_deblockAlpha.Text = "Default (0)";\r
-             drop_deblockBeta.Text = "Default (0)";\r
-             drop_analysis.Text = "Default (some)";\r
-             rtf_x264Query.Text = "";\r
-         }\r
-         private void loadUserDefaults()\r
-         {\r
-             // Try to load the users default settings.\r
-             string userDefaults = Properties.Settings.Default.defaultUserSettings;\r
\r
-             if (userDefaults == "")\r
-                 loadNormalPreset();\r
-             else\r
+             catch (Exception ex)\r
              {\r
-                 Functions.QueryParser presetQuery = Functions.QueryParser.Parse(userDefaults);\r
-                 presetLoader.presetLoader(this, presetQuery, "User Defaults ");\r
+                 if ((bool)result.AsyncState)\r
+                     MessageBox.Show("Unable to check for updates, Please try again later.\n\nDetailed Error Information:\n" + ex, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
              }\r
          }\r
\r
+         // Startup Functions   \r
          private void queueRecovery()\r
          {\r
-             if (hb_common_func.check_queue_recovery() == true)\r
+             if (Main.checkQueueRecovery())\r
              {\r
 -                DialogResult result = MessageBox.Show("HandBrake has detected unfinished items on the queue from the last time the application was launched. Would you like to recover these?", "Queue Recovery Possible", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
 +                DialogResult result = MessageBox.Show("\83L\83\85\81[\82É\96¢\8a®\97¹\82Ì\83A\83C\83e\83\80\82ª\8ec\82³\82ê\82Ä\82¢\82Ü\82·\81B\82±\82ê\82ç\82ð\95\9c\8c³\82µ\82Ü\82·\82©\81H", "Queue Recovery Possible", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
  \r
                  if (result == DialogResult.Yes)\r
-                     encodeQueue.recoverQueue("hb_queue_recovery.dat"); // Start Recovery\r
+                     encodeQueue.LoadQueueFromFile("hb_queue_recovery.xml"); // Start Recovery\r
                  else\r
                  {\r
                      // Remove the Queue recovery file if the user doesn't want to recovery the last queue.\r
          #region Presets Menu\r
          private void mnu_presetReset_Click(object sender, EventArgs e)\r
          {\r
-             presetHandler.updateBuiltInPresets();\r
+             presetHandler.UpdateBuiltInPresets();\r
              loadPresetPanel();\r
              if (treeView_presets.Nodes.Count == 0)\r
-                 MessageBox.Show("presets.dat\82Ì\83\8d\81[\83h\82É\8e¸\94s\82µ\82Ü\82µ\82½\81B\81u\83v\83\8a\83Z\83b\83g\81v\83\81\83j\83\85\81[\82©\82ç\81u\91g\82Ý\8d\9e\82Ý\83v\83\8a\83Z\83b\83g\82Ì\83A\83b\83v\83f\81[\83g\81v\82ð\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B\n\82Ü\82½\81AVista\82Ì\8fê\8d\87\8aÇ\97\9d\8eÒ\83\82\81[\83h\82Å\8eÀ\8ds\82µ\82Ä\82¢\82é\82©\82Ç\82¤\82©\8am\94F\82µ\82Ä\82­\82¾\82³\82¢\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
 -                MessageBox.Show("Unable to load the presets.xml file. Please select \"Update Built-in Presets\" from the Presets Menu. \nMake sure you are running the program in Admin mode if running on Vista. See Windows FAQ for details!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
++                MessageBox.Show("presets.xml\83t\83@\83C\83\8b\82ð\83\8d\81[\83h\82Å\82«\82Ü\82¹\82ñ\81\81u\83v\83\8a\83Z\83b\83g\81v\83\81\83j\83\85\81[\82©\82ç\81u\91g\82Ý\8d\9e\82Ý\83v\83\8a\83Z\83b\83g\82Ì\83A\83b\83v\83f\81[\83g\81v\82ð\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B\n\82Ü\82½\81AVista\82Ì\8fê\8d\87\8aÇ\97\9d\8eÒ\83\82\81[\83h\82Å\8eÀ\8ds\82µ\82Ä\82¢\82é\82©\82Ç\82¤\82©\8am\94F\82µ\82Ä\82­\82¾\82³\82¢\81B\8fÚ\82µ\82­\82ÍFAQ\82ð\8eQ\8fÆ\82µ\82Ä\82­\82¾\82³\82¢\81I", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
              else\r
 -                MessageBox.Show("Presets have been updated!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
 +                MessageBox.Show("\91g\82Ý\8d\9e\82Ý\83v\83\8a\83Z\83b\83g\82ð\83A\83b\83v\83f\81[\83g\82µ\82Ü\82µ\82½\81I", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
  \r
              treeView_presets.ExpandAll();\r
          }\r
          private void mnu_delete_preset_Click(object sender, EventArgs e)\r
          {\r
++/* HEAD\r
 +            // Empty the preset file\r
 +            string presetsFile = Application.StartupPath.ToString() + "\\presets.dat";\r
 +            if (File.Exists(presetsFile))\r
 +                File.Delete(presetsFile);\r
 +\r
 +            try\r
 +            {\r
 +                FileStream strm = new FileStream(presetsFile, FileMode.Create, FileAccess.Write);\r
 +                strm.Close();\r
 +                strm.Dispose();\r
 +            }\r
 +            catch (Exception exc)\r
 +            {\r
 +                MessageBox.Show("\83v\83\8a\83Z\83b\83g\82Ì\8dí\8f\9c\8f\88\97\9d\82Å\83G\83\89\81[\82ª\94­\90\82µ\82Ü\82µ\82½\81B\nWindows Vista\82Ì\8fê\8d\87\81A\8aÇ\97\9d\8eÒ\83\82\81[\83h\82Å\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\n" + exc.ToString());\r
 +            }\r
 +\r
 +            // Reload the preset panel\r
 +            loadPresetPanel();\r
++*/\r
+             presetHandler.RemoveBuiltInPresets();\r
+             loadPresetPanel(); // Reload the preset panel\r
          }\r
          private void mnu_SelectDefault_Click(object sender, EventArgs e)\r
          {\r
          }\r
          private void mnu_UpdateCheck_Click(object sender, EventArgs e)\r
          {\r
-             Boolean update = hb_common_func.updateCheck(true);\r
-             if (update == true)\r
+             lbl_updateCheck.Visible = true;\r
+             Main.BeginCheckForUpdates(new AsyncCallback(updateCheckDoneMenu), false);\r
+         }\r
+         private void updateCheckDoneMenu(IAsyncResult result)\r
+         {\r
+             // Make sure it's running on the calling thread\r
+             if (InvokeRequired)\r
+             {\r
+                 Invoke(new MethodInvoker(() => updateCheckDoneMenu(result)));\r
+                 return;\r
+             }\r
+             UpdateCheckInformation info;\r
+             try\r
+             {\r
+                 // Get the information about the new build, if any, and close the window\r
+                 info = Main.EndCheckForUpdates(result);\r
\r
+                 if (info.NewVersionAvailable && info.BuildInformation != null)\r
+                 {\r
+                     frmUpdater updateWindow = new frmUpdater(info.BuildInformation);\r
+                     updateWindow.ShowDialog();\r
+                 }\r
+                 else\r
+                     MessageBox.Show("There are no new updates at this time.", "Update Check", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
+                 lbl_updateCheck.Visible = false;\r
+                 return;\r
+             }\r
+             catch (Exception ex)\r
              {\r
-                 frmUpdater updateWindow = new frmUpdater();\r
-                 updateWindow.Show();\r
+                 if ((bool)result.AsyncState)\r
+                     MessageBox.Show("Unable to check for updates, Please try again later.\n\nDetailed Error Information:\n" + ex, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
              }\r
++/* HEAD\r
 +            else\r
 +                MessageBox.Show("\8c»\8dÝ\97\98\97p\89Â\94\\82È\83A\83b\83v\83f\81[\83g\82Í\82 \82è\82Ü\82¹\82ñ", "Update Check", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
++*/\r
          }\r
          private void mnu_about_Click(object sender, EventArgs e)\r
          {\r
              }\r
              treeView_presets.Select();\r
          }\r
-         #endregion\r
+         private void presets_menu_Opening(object sender, System.ComponentModel.CancelEventArgs e)\r
+         {\r
+             // Make sure that the save menu is always disabled by default\r
+             pmnu_saveChanges.Enabled = false;\r
  \r
-         // MainWindow Components, Actions and Functions ***********************\r
-         #region Actions\r
+             // Now enable the save menu if the selected preset is a user preset\r
+             if (treeView_presets.SelectedNode != null)\r
+                 if (presetHandler.CheckIfUserPresetExists(treeView_presets.SelectedNode.Text))\r
+                     pmnu_saveChanges.Enabled = true;\r
  \r
-         // ToolBar\r
-         private void btn_source_Click(object sender, EventArgs e)\r
+             treeView_presets.Select();\r
+         }\r
\r
+         // Presets Management\r
+         private void btn_addPreset_Click(object sender, EventArgs e)\r
          {\r
-             if (Properties.Settings.Default.drive_detection == "Checked")\r
-             {\r
-                 mnu_dvd_drive.Visible = true;\r
-                 Thread driveInfoThread = new Thread(getDriveInfoThread);\r
-                 driveInfoThread.Start();\r
-             }\r
-             else\r
-                 mnu_dvd_drive.Visible = false;\r
+             Form preset = new frmAddPreset(this, QueryGenerator.GenerateTabbedComponentsQuery(this), presetHandler);\r
+             preset.ShowDialog();\r
          }\r
-         private void btn_start_Click(object sender, EventArgs e)\r
+         private void btn_removePreset_Click(object sender, EventArgs e)\r
          {\r
++/* HEAD\r
 +            if (text_source.Text == string.Empty || text_source.Text == "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð..." || text_destination.Text == string.Empty)\r
 +                MessageBox.Show("\95Ï\8a·\8c³\82à\82µ\82­\82Í\95Û\91\90æ\82ª\91I\91ð\82³\82ê\82Ä\82¢\82Ü\82¹\82ñ", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
 +            else\r
 +            {\r
 +                // Set the last action to encode. \r
 +                // This is used for tracking which file to load in the activity window\r
 +                lastAction = "encode";\r
 +\r
 +                String query;\r
 +                if (rtf_query.Text != "")\r
 +                    query = rtf_query.Text;\r
 +                else\r
 +                    query = queryGen.GenerateTheQuery(this);\r
 +\r
 +                ThreadPool.QueueUserWorkItem(procMonitor, query);\r
 +                lbl_encode.Visible = true;\r
 +                lbl_encode.Text = "\83G\83\93\83R\81[\83h\8eÀ\8ds\92\86";\r
 +\r
 +                btn_start.Text = "\95Ï\8a·\92â\8e~";\r
 +                btn_start.ToolTipText = "\83G\83\93\83R\81[\83h\8f\88\97\9d\82ð\92\86\8e~\82µ\82Ü\82·\81B\nWarning: \82±\82ê\82É\82æ\82è\81A\83t\83@\83C\83\8b\82ª\94j\89ó\82³\82ê\82é\89Â\94\\90«\82ª\82 \82è\82Ü\82·\81B\88À\91S\82É\83G\83\93\83R\81[\83h\82ð\92\86\8e~\82·\82é\82É\82Í\81A\83R\83}\83\93\83h\83E\83B\83\93\83h\83E\82Åctrl-C\82ð\93ü\97Í\82µ\82Ä\82­\82¾\82³\82¢\81B";\r
 +                btn_start.Image = Properties.Resources.stop;\r
++*/\r
+             DialogResult result = MessageBox.Show("Are you sure you wish to delete the selected preset?", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
+             if (result == DialogResult.Yes)\r
+             {\r
+                 if (treeView_presets.SelectedNode != null)\r
+                 {\r
+                     presetHandler.Remove(treeView_presets.SelectedNode.Text);\r
+                     treeView_presets.Nodes.Remove(treeView_presets.SelectedNode);\r
+                 }\r
              }\r
+             treeView_presets.Select();\r
          }\r
-         private void btn_add2Queue_Click(object sender, EventArgs e)\r
+         private void btn_setDefault_Click(object sender, EventArgs e)\r
          {\r
++/* HEAD\r
 +            if (text_source.Text == string.Empty || text_source.Text == "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð..." || text_destination.Text == string.Empty)\r
 +                MessageBox.Show("\95Ï\8a·\8c³\82à\82µ\82­\82Í\95Û\91\90æ\82ª\91I\91ð\82³\82ê\82Ä\82¢\82Ü\82¹\82ñ", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
 +            else\r
++*/\r
+             if (treeView_presets.SelectedNode != null)\r
              {\r
\r
-                 String query = queryGen.GenerateTheQuery(this);\r
-                 if (rtf_query.Text != "")\r
-                     query = rtf_query.Text;\r
\r
-                 encodeQueue.add(query);\r
-                 encodeQueue.write2disk("hb_queue_recovery.dat"); // Writes the queue to the recovery file, just incase the GUI crashes.\r
\r
-                 queueWindow.setQueue(encodeQueue);\r
-                 queueWindow.Show();\r
+                 DialogResult result = MessageBox.Show("Are you sure you wish to set this preset as the default?", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
+                 if (result == DialogResult.Yes)\r
+                 {\r
+                     Properties.Settings.Default.defaultPreset = treeView_presets.SelectedNode.Text;\r
+                     Properties.Settings.Default.Save();\r
+                     MessageBox.Show("New default preset set.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
+                 }\r
              }\r
+             else\r
+                 MessageBox.Show("Please select a preset first.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
          }\r
-         private void btn_showQueue_Click(object sender, EventArgs e)\r
+         private void treeview_presets_mouseUp(object sender, MouseEventArgs e)\r
          {\r
-             queueWindow.setQueue(encodeQueue);\r
-             queueWindow.Show();\r
+             if (e.Button == MouseButtons.Right)\r
+                 treeView_presets.SelectedNode = treeView_presets.GetNodeAt(e.Location);\r
+             else if (e.Button == MouseButtons.Left)\r
+             {\r
+                 if (treeView_presets.GetNodeAt(e.Location) != null)\r
+                 {\r
+                     if (labelPreset.Text.Contains(treeView_presets.GetNodeAt(e.Location).Text))\r
+                         selectPreset();\r
+                 }\r
+             }\r
\r
+             treeView_presets.Select();\r
          }\r
-         private void btn_ActivityWindow_Click(object sender, EventArgs e)\r
+         private void treeView_presets_AfterSelect(object sender, TreeViewEventArgs e)\r
          {\r
-             String file = String.Empty;\r
-             if (lastAction == "scan")\r
-                 file = "dvdinfo.dat";\r
-             else\r
-                 file = "hb_encode_log.dat";\r
\r
-             frmActivityWindow ActivityWindow = new frmActivityWindow(file, this, queueWindow);\r
-             ActivityWindow.Show();\r
+             selectPreset();\r
          }\r
\r
-         //Source\r
-         private void btn_dvd_source_Click(object sender, EventArgs e)\r
+         private void treeView_presets_deleteKey(object sender, KeyEventArgs e)\r
          {\r
-             // Enable the creation of chapter markers.\r
-             Check_ChapterMarkers.Enabled = true;\r
+             if (e.KeyCode == Keys.Delete)\r
+             {\r
+                 DialogResult result = MessageBox.Show("Are you sure you wish to delete the selected preset?", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
+                 if (result == DialogResult.Yes)\r
+                 {\r
+                     if (treeView_presets.SelectedNode != null)\r
+                         presetHandler.Remove(treeView_presets.SelectedNode.Text);\r
  \r
-             // Set the last action to scan. \r
-             // This is used for tracking which file to load in the activity window\r
-             lastAction = "scan";\r
+                     // Remember each nodes expanded status so we can reload it\r
+                     List<Boolean> nodeStatus = new List<Boolean>();\r
+                     foreach (TreeNode node in treeView_presets.Nodes)\r
+                         nodeStatus.Add(node.IsExpanded);\r
  \r
-             String filename = "";\r
-             text_source.Text = "";\r
+                     // Now reload the preset panel\r
+                     loadPresetPanel();\r
  \r
-             DVD_Open.ShowDialog();\r
-             filename = DVD_Open.SelectedPath;\r
+                     // And finally, re-expand any of the nodes if required\r
+                     int i = 0;\r
+                     foreach (TreeNode node in treeView_presets.Nodes)\r
+                     {\r
+                         if (nodeStatus[i])\r
+                             node.Expand();\r
  \r
++/* HEAD\r
 +            if (filename.StartsWith("\\"))\r
 +                MessageBox.Show("HandBrake\82ÍUNC\83p\83X\82É\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B\n\8b¤\97L\83t\83H\83\8b\83_\82ð\83}\83E\83\93\83g\82µ\82Ä\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
 +            else\r
 +            {\r
 +                if (filename != "")\r
 +                {\r
 +                    Form frmRD = new frmReadDVD(filename, this);\r
 +                    text_source.Text = filename;\r
 +                    lbl_encode.Text = "\83X\83L\83\83\83\93\92\86...";\r
 +                    frmRD.ShowDialog();\r
 +                }\r
 +                else\r
 +                    text_source.Text = "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð...";\r
 +\r
 +                // If there are no titles in the dropdown menu then the scan has obviously failed. Display an error message explaining to the user.\r
 +                if (drp_dvdtitle.Items.Count == 0)\r
 +                    MessageBox.Show("\83^\83C\83g\83\8b\82ª\8c©\82Â\82©\82è\82Ü\82¹\82ñ\81B\90³\82µ\82¢\95Ï\8a·\8c³\82ð\91I\91ð\82µ\82Ä\82¢\82é\82©\82²\8am\94F\82­\82¾\82³\82¢\81B\82Ü\82½\81A\83R\83s\81[\83v\83\8d\83e\83N\83g\82³\82ê\82½\83f\83B\83X\83N\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
 +\r
 +                lbl_encode.Text = "";\r
++*/\r
+                         i++;\r
+                     }\r
+                 }\r
              }\r
          }\r
-         private void btn_file_source_Click(object sender, EventArgs e)\r
+         private void selectPreset()\r
          {\r
-             // Set the last action to scan. \r
-             // This is used for tracking which file to load in the activity window\r
-             lastAction = "scan";\r
+             if (treeView_presets.SelectedNode != null)\r
+             {\r
+                 // Ok, so, we've selected a preset. Now we want to load it.\r
+                 string presetName = treeView_presets.SelectedNode.Text;\r
+                 if (presetHandler.GetPreset(presetName) != null)\r
+                 {\r
+                     string query = presetHandler.GetPreset(presetName).Query;\r
+                     Boolean loadPictureSettings = presetHandler.GetPreset(presetName).PictureSettings;\r
  \r
-             String filename = "";\r
-             text_source.Text = "";\r
+                     if (query != null)\r
+                     {\r
+                         //Ok, Reset all the H264 widgets before changing the preset\r
+                         x264Panel.reset2Defaults();\r
  \r
-             ISO_Open.ShowDialog();\r
-             filename = ISO_Open.FileName;\r
+                         // Send the query from the file to the Query Parser class\r
+                         QueryParser presetQuery = QueryParser.Parse(query);\r
  \r
++/*\r
 +            if (filename.StartsWith("\\"))\r
 +                MessageBox.Show("HandBrake\82ÍUNC\83p\83X\82É\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B\n\8b¤\97L\83t\83H\83\8b\83_\82ð\83}\83E\83\93\83g\82µ\82Ä\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
 +            else\r
++*/\r
+                         // Now load the preset\r
+                         PresetLoader.presetLoader(this, presetQuery, presetName, loadPictureSettings);\r
\r
+                         // The x264 widgets will need updated, so do this now:\r
+                         x264Panel.X264_StandardizeOptString();\r
+                         x264Panel.X264_SetCurrentSettingsInPanel();\r
+                     }\r
+                 }\r
+             }\r
+         }\r
+         private void loadNormalPreset()\r
+         {\r
+             foreach (TreeNode treenode in treeView_presets.Nodes)\r
              {\r
-                 if (filename != "")\r
+                 foreach (TreeNode node in treenode.Nodes)\r
                  {\r
-                     Form frmRD = new frmReadDVD(filename, this);\r
-                     text_source.Text = filename;\r
-                     lbl_encode.Text = "Scanning ...";\r
-                     frmRD.ShowDialog();\r
+                     if (node.Text.Equals("Normal"))\r
+                         treeView_presets.SelectedNode = treeView_presets.Nodes[treenode.Index].Nodes[0];\r
+                 }\r
+             }\r
+         }\r
+         private void importPreset()\r
+         {\r
+             Import imp = new Import();\r
+             if (openPreset.ShowDialog() == DialogResult.OK)\r
+             {\r
+                 QueryParser parsed = imp.importMacPreset(openPreset.FileName);\r
+                 if (presetHandler.CheckIfUserPresetExists(parsed.PresetName + " (Imported)"))\r
+                 {\r
+                     DialogResult result = MessageBox.Show("This preset appears to already exist. Would you like to overwrite it?", "Overwrite preset?",\r
+                                                            MessageBoxButtons.YesNo, MessageBoxIcon.Warning);\r
+                     if (result == DialogResult.Yes)\r
+                     {\r
+                         PresetLoader.presetLoader(this, parsed, parsed.PresetName, parsed.UsesPictureSettings);\r
+                         presetHandler.Update(parsed.PresetName + " (Imported)", queryGen.GenerateCLIQuery(this, 0, null),\r
+                                                    parsed.UsesPictureSettings);\r
+                     }\r
                  }\r
                  else\r
\r
-                 lbl_encode.Text = "";\r
\r
-                 // Enable the creation of chapter markers if the file is an image of a dvd.\r
-                 if (filename.ToLower().Contains(".iso"))\r
-                     Check_ChapterMarkers.Enabled = true;\r
-                 else\r
++/* HEAD\r
 +                    text_source.Text = "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82ð\83N\83\8a\83b\83N\82µ\82Ä\91I\91ð...";\r
 +\r
 +                // If there are no titles in the dropdown menu then the scan has obviously failed. Display an error message explaining to the user.\r
 +                if (drp_dvdtitle.Items.Count == 0)\r
 +                    MessageBox.Show("\83^\83C\83g\83\8b\82ª\8c©\82Â\82©\82è\82Ü\82¹\82ñ\81B\90³\82µ\82¢\95Ï\8a·\8c³\82ð\91I\91ð\82µ\82Ä\82¢\82é\82©\82²\8am\94F\82­\82¾\82³\82¢\81B\82Ü\82½\81A\83R\83s\81[\83v\83\8d\83e\83N\83g\82³\82ê\82½\83f\83B\83X\83N\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
++*/\r
                  {\r
-                     Check_ChapterMarkers.Enabled = false;\r
-                     Check_ChapterMarkers.Checked = false;\r
-                     data_chpt.Rows.Clear();\r
+                     PresetLoader.presetLoader(this, parsed, parsed.PresetName, parsed.UsesPictureSettings);\r
+                     presetHandler.Add(parsed.PresetName, queryGen.GenerateCLIQuery(this, 0, null), parsed.UsesPictureSettings);\r
\r
+                     if (presetHandler.Add(parsed.PresetName + " (Imported)", queryGen.GenerateCLIQuery(this, 0, null), parsed.UsesPictureSettings))\r
+                     {\r
+                         TreeNode preset_treeview = new TreeNode(parsed.PresetName + " (Imported)") { ForeColor = Color.Black };\r
+                         treeView_presets.Nodes.Add(preset_treeview);\r
+                     }\r
                  }\r
              }\r
          }\r
+         #endregion\r
\r
+         #region ToolStrip\r
+         private void btn_source_Click(object sender, EventArgs e)\r
+         {\r
+             mnu_dvd_drive.Visible = true;\r
+             Thread driveInfoThread = new Thread(getDriveInfoThread);\r
+             driveInfoThread.Start();\r
+         }\r
+         private void btn_start_Click(object sender, EventArgs e)\r
+         {\r
+             if (btn_start.Text == "Stop")\r
+             {\r
+                 DialogResult result = MessageBox.Show("Are you sure you wish to cancel the encode?", "Cancel Encode?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
\r
+                 if (result == DialogResult.Yes)\r
+                 {\r
+                     // Pause The Queue\r
+                     encodeQueue.RequestPause();\r
\r
+                     // Allow the CLI to exit cleanly\r
+                     Win32.SetForegroundWindow((int)encodeQueue.processHandle);\r
+                     SendKeys.Send("^C");\r
\r
+                     // Update the GUI\r
+                     setEncodeFinished();\r
+                 }\r
+             }\r
+             else\r
+             {\r
+                 if (encodeQueue.Count != 0 || (!string.IsNullOrEmpty(sourcePath) && !string.IsNullOrEmpty(text_destination.Text)))\r
+                 {\r
+                     string generatedQuery = queryGen.GenerateCLIQuery(this, 0, null);\r
+                     string specifiedQuery = rtf_query.Text != "" ? rtf_query.Text : queryGen.GenerateCLIQuery(this, 0, null);\r
+                     string query = string.Empty;\r
\r
+                     // Check to make sure the generated query matches the GUI settings\r
+                     if (Properties.Settings.Default.PromptOnUnmatchingQueries && !string.IsNullOrEmpty(specifiedQuery) && generatedQuery != specifiedQuery)\r
+                     {\r
+                         DialogResult result = MessageBox.Show("The query under the \"Query Editor\" tab " +\r
+                             "does not match the current GUI settings.\n\nBecause the manual query takes " +\r
+                             "priority over the GUI, your recently updated settings will not be taken " +\r
+                             "into account when encoding this job." + Environment.NewLine + Environment.NewLine +\r
+                             "Do you want to replace the manual query with the updated GUI-generated query?",\r
+                             "Manual Query does not Match GUI",\r
+                             MessageBoxButtons.YesNoCancel, MessageBoxIcon.Asterisk,\r
+                             MessageBoxDefaultButton.Button3);\r
\r
+                         switch (result)\r
+                         {\r
+                             case DialogResult.Yes:\r
+                                 // Replace the manual query with the generated one\r
+                                 query = generatedQuery;\r
+                                 rtf_query.Text = generatedQuery;\r
+                                 break;\r
+                             case DialogResult.No:\r
+                                 // Use the manual query\r
+                                 query = specifiedQuery;\r
+                                 break;\r
+                             case DialogResult.Cancel:\r
+                                 // Don't start the encode\r
+                                 return;\r
+                         }\r
+                     }\r
+                     else\r
+                     {\r
+                         query = specifiedQuery;\r
+                     }\r
\r
+                     DialogResult overwrite = DialogResult.Yes;\r
+                     if (text_destination.Text != "")\r
+                         if (File.Exists(text_destination.Text))\r
+                             overwrite = MessageBox.Show("The destination file already exists. Are you sure you want to overwrite it?", "Overwrite File?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
\r
+                     if (overwrite == DialogResult.Yes)\r
+                     {\r
+                         if (encodeQueue.Count == 0)\r
+                             encodeQueue.AddJob(query, sourcePath, text_destination.Text, (rtf_query.Text != ""));\r
\r
+                         queueWindow.setQueue();\r
+                         if (encodeQueue.Count > 1)\r
+                             queueWindow.Show(false);\r
\r
+                         setEncodeStarted(); // Encode is running, so setup the GUI appropriately\r
+                         encodeQueue.StartEncodeQueue(); // Start The Queue Encoding Process\r
+                         lastAction = "encode";   // Set the last action to encode - Used for activity window.\r
\r
+                         if (ActivityWindow != null)\r
+                             ActivityWindow.SetLogView(false);\r
\r
+                     }\r
+                     this.Focus();\r
+                 }\r
+                 else if (string.IsNullOrEmpty(sourcePath) || string.IsNullOrEmpty(text_destination.Text))\r
+                     MessageBox.Show("No source or destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+             }\r
+         }\r
+         private void btn_add2Queue_Click(object sender, EventArgs e)\r
+         {\r
+             if (string.IsNullOrEmpty(sourcePath) || string.IsNullOrEmpty(text_destination.Text))\r
+                 MessageBox.Show("No source or destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+             else\r
+             {\r
+                 String query = queryGen.GenerateCLIQuery(this, 0, null);\r
+                 if (rtf_query.Text != "")\r
+                     query = rtf_query.Text;\r
\r
+                 if (encodeQueue.CheckForDestinationDuplicate(text_destination.Text))\r
+                 {\r
+                     DialogResult result = MessageBox.Show("There is already a queue item for this destination path. \n\n If you continue, the encode will be overwritten. Do you wish to continue?",\r
+                   "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);\r
+                     if (result == DialogResult.Yes)\r
+                         encodeQueue.AddJob(query, sourcePath, text_destination.Text, (rtf_query.Text != ""));\r
\r
+                 }\r
+                 else\r
+                     encodeQueue.AddJob(query, sourcePath, text_destination.Text, (rtf_query.Text != ""));\r
\r
+                 lbl_encode.Text = encodeQueue.Count + " encode(s) pending in the queue";\r
\r
+                 queueWindow.Show();\r
+             }\r
+         }\r
+         private void btn_showQueue_Click(object sender, EventArgs e)\r
+         {\r
+             queueWindow.Show();\r
+             queueWindow.Activate();\r
+         }\r
+         private void tb_preview_Click(object sender, EventArgs e)\r
+         {\r
+             if (string.IsNullOrEmpty(sourcePath) || string.IsNullOrEmpty(text_destination.Text))\r
+                 MessageBox.Show("No source or destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+             else\r
+             {\r
+                 if (qtpreview == null)\r
+                 {\r
+                     qtpreview = new frmPreview(this);\r
+                     qtpreview.Show();\r
+                 }\r
+                 else if (qtpreview.IsDisposed)\r
+                 {\r
+                     qtpreview = new frmPreview(this);\r
+                     qtpreview.Show();\r
+                 }\r
+                 else\r
+                     MessageBox.Show(qtpreview, "The preview window is already open!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+             }\r
+         }\r
+         private void btn_ActivityWindow_Click(object sender, EventArgs e)\r
+         {\r
+             String file = lastAction == "scan" ? "last_scan_log.txt" : "last_encode_log.txt";\r
+             if (ActivityWindow == null)\r
+                 ActivityWindow = new frmActivityWindow(file, encodeQueue, this);\r
\r
+             ActivityWindow.SetLogView(!encodeQueue.isEncoding);\r
\r
+             ActivityWindow.Show();\r
+         }\r
+         #endregion\r
\r
+         #region System Tray Icon\r
+         private void frmMain_Resize(object sender, EventArgs e)\r
+         {\r
+             if (FormWindowState.Minimized == this.WindowState)\r
+             {\r
+                 notifyIcon.Visible = true;\r
+                 this.Hide();\r
+             }\r
+             else if (FormWindowState.Normal == this.WindowState)\r
+                 notifyIcon.Visible = false;\r
+         }\r
+         private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)\r
+         {\r
+             this.Visible = true;\r
+             this.Activate();\r
+             this.WindowState = FormWindowState.Normal;\r
+             notifyIcon.Visible = false;\r
+         }\r
+         private void btn_restore_Click(object sender, EventArgs e)\r
+         {\r
+             this.Visible = true;\r
+             this.Activate();\r
+             this.WindowState = FormWindowState.Normal;\r
+             notifyIcon.Visible = false;\r
+         }\r
+         #endregion\r
\r
+         #region Tab Control\r
\r
+         //Source\r
+         private void btn_dvd_source_Click(object sender, EventArgs e)\r
+         {\r
+             if (DVD_Open.ShowDialog() == DialogResult.OK)\r
+             {\r
+                 this.selectedSourceType = SourceType.Folder;\r
+                 selectSource(DVD_Open.SelectedPath);\r
+             }\r
+             else\r
+                 UpdateSourceLabel();\r
+         }\r
+         private void btn_file_source_Click(object sender, EventArgs e)\r
+         {\r
+             if (ISO_Open.ShowDialog() == DialogResult.OK)\r
+             {\r
+                 this.selectedSourceType = SourceType.VideoFile;\r
+                 selectSource(ISO_Open.FileName);\r
+             }\r
+             else\r
+                 UpdateSourceLabel();\r
+         }\r
          private void mnu_dvd_drive_Click(object sender, EventArgs e)\r
          {\r
-             // Enable the creation of chapter markers.\r
+             if (this.dvdDrivePath == null) return;\r
+             this.selectedSourceType = SourceType.DvdDrive;\r
+             selectSource(this.dvdDrivePath);\r
+         }\r
+         private void selectSource(string file)\r
+         {\r
              Check_ChapterMarkers.Enabled = true;\r
\r
-             // Set the last action to scan. \r
-             // This is used for tracking which file to load in the activity window\r
              lastAction = "scan";\r
+             sourcePath = string.Empty;\r
  \r
-             String filename = "";\r
-             if (mnu_dvd_drive.Text.Contains("VIDEO_TS"))\r
+             if (file == string.Empty) // Must have a file or path\r
              {\r
++/* HEAD\r
 +                string[] path = mnu_dvd_drive.Text.Split(' ');\r
 +                filename = path[0];\r
 +                lbl_encode.Text = "\83X\83L\83\83\83\93\92\86...";\r
 +                Form frmRD = new frmReadDVD(filename, this);\r
 +                text_source.Text = filename;\r
 +                frmRD.ShowDialog();\r
 +            }\r
 +\r
 +            // If there are no titles in the dropdown menu then the scan has obviously failed. Display an error message explaining to the user.\r
 +            if (drp_dvdtitle.Items.Count == 0)\r
 +                MessageBox.Show("\83^\83C\83g\83\8b\82ª\8c©\82Â\82©\82è\82Ü\82¹\82ñ\81B\90³\82µ\82¢\95Ï\8a·\8c³\82ð\91I\91ð\82µ\82Ä\82¢\82é\82©\82²\8am\94F\82­\82¾\82³\82¢\81B\82Ü\82½\81A\83R\83s\81[\83v\83\8d\83e\83N\83g\82³\82ê\82½\83f\83B\83X\83N\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
++*/\r
+                 UpdateSourceLabel();\r
+                 return;\r
+             }\r
  \r
-             lbl_encode.Text = "";\r
-         }\r
+             if (file.StartsWith("\\")) // NO UNC Paths\r
+             {\r
+                 MessageBox.Show(\r
 -                    "Sorry, HandBrake does not support UNC file paths. \nTry mounting the share as a network drive in My Computer",\r
++                    "HandBrake\82ÍUNC\83p\83X\82É\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B\n\8b¤\97L\83t\83H\83\8b\83_\82ð\83}\83E\83\93\83g\82µ\82Ä\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B",\r
+                     "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+                 UpdateSourceLabel();\r
+                 return;\r
+             }\r
  \r
+             sourcePath = Path.GetFileName(file);\r
+             startScan(file);\r
+         }\r
          private void drp_dvdtitle_Click(object sender, EventArgs e)\r
          {\r
              if ((drp_dvdtitle.Items.Count == 1) && (drp_dvdtitle.Items[0].ToString() == "Automatic"))\r
              if (DVD_Save.ShowDialog() == DialogResult.OK)\r
              {\r
                  if (DVD_Save.FileName.StartsWith("\\"))\r
 -                    MessageBox.Show("Sorry, HandBrake does not support UNC file paths. \nTry mounting the share as a network drive in My Computer", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
 +                    MessageBox.Show("HandBrake\82ÍUNC\83p\83X\82É\91Î\89\9e\82µ\82Ä\82¢\82Ü\82¹\82ñ\81B\n\8b¤\97L\83t\83H\83\8b\83_\82ð\83}\83E\83\93\83g\82µ\82Ä\8eÀ\8ds\82µ\82Ä\82­\82¾\82³\82¢\81B","Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
                  else\r
                  {\r
-                     setAudioByContainer(DVD_Save.FileName);\r
+                     // Add a file extension manually, as FileDialog.AddExtension has issues with dots in filenames\r
+                     switch (DVD_Save.FilterIndex)\r
+                     {\r
+                         case 1:\r
+                             if (!Path.GetExtension(DVD_Save.FileName).Equals(".mp4", StringComparison.InvariantCultureIgnoreCase))\r
+                                 if (Properties.Settings.Default.useM4v)\r
+                                     DVD_Save.FileName = DVD_Save.FileName.Replace(".mp4", ".m4v").Replace(".mkv", ".m4v");\r
+                                 else\r
+                                     DVD_Save.FileName = DVD_Save.FileName.Replace(".m4v", ".mp4").Replace(".mkv", ".mp4");\r
+                             break;\r
+                         case 2:\r
+                             if (!Path.GetExtension(DVD_Save.FileName).Equals(".mkv", StringComparison.InvariantCultureIgnoreCase))\r
+                                 DVD_Save.FileName = DVD_Save.FileName.Replace(".mp4", ".mkv").Replace(".m4v", ".mkv");\r
+                             break;\r
+                         default:\r
+                             //do nothing  \r
+                             break;\r
+                     }\r
                      text_destination.Text = DVD_Save.FileName;\r
  \r
                      // Quicktime requires .m4v file for chapter markers to work. If checked, change the extension to .m4v (mp4 and m4v are the same thing)\r
              }\r
              else\r
              {\r
-                 string destination = text_destination.Text;\r
-                 destination = destination.Replace(".m4v", ".mp4");\r
-                 text_destination.Text = destination;\r
-                 data_chpt.Rows.Clear();\r
+                 if (drop_format.SelectedIndex != 1 && !Properties.Settings.Default.useM4v)\r
+                     SetExtension(".mp4");\r
                  data_chpt.Enabled = false;\r
+                 btn_importChapters.Enabled = false;\r
              }\r
          }\r
\r
-         // Advanced Tab\r
-         private void drop_refFrames_SelectedIndexChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("ref", this);\r
-         }\r
-         private void check_mixedReferences_CheckedChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("mixed-refs", this);\r
-         }\r
-         private void drop_bFrames_SelectedIndexChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("bframes", this);\r
-         }\r
-         private void drop_directPrediction_SelectedIndexChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("direct", this);\r
-         }\r
-         private void check_weightedBFrames_CheckedChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("weightb", this);\r
-         }\r
-         private void check_bFrameDistortion_CheckedChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("brdo", this);\r
-         }\r
-         private void check_BidirectionalRefinement_CheckedChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("bime", this);\r
-         }\r
-         private void check_pyrmidalBFrames_CheckedChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("b-pyramid", this);\r
-         }\r
-         private void drop_MotionEstimationMethod_SelectedIndexChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("me", this);\r
-         }\r
-         private void drop_MotionEstimationRange_SelectedIndexChanged(object sender, EventArgs e)\r
+         private void btn_importChapters_Click(object sender, EventArgs e)\r
          {\r
-             x264PanelFunctions.on_x264_WidgetChange("merange", this);\r
+             if (File_ChapterImport.ShowDialog() == DialogResult.OK)\r
+             {\r
+                 String filename = File_ChapterImport.FileName;\r
+                 DataGridView imported = Main.importChapterNames(data_chpt, filename);\r
+                 if (imported != null)\r
+                     data_chpt = imported;\r
+             }\r
          }\r
-         private void drop_subpixelMotionEstimation_SelectedIndexChanged(object sender, EventArgs e)\r
+         private void mnu_resetChapters_Click(object sender, EventArgs e)\r
          {\r
-             x264PanelFunctions.on_x264_WidgetChange("subq", this);\r
+             data_chpt.Rows.Clear();\r
+             DataGridView chapterGridView = Main.chapterNaming(data_chpt, drop_chapterFinish.Text);\r
+             if (chapterGridView != null)\r
+             {\r
+                 data_chpt = chapterGridView;\r
+             }\r
          }\r
-         private void drop_analysis_SelectedIndexChanged(object sender, EventArgs e)\r
\r
+         // Query Editor Tab\r
+         private void btn_generate_Query_Click(object sender, EventArgs e)\r
          {\r
-             x264PanelFunctions.on_x264_WidgetChange("analyse", this);\r
+             rtf_query.Text = queryGen.GenerateCLIQuery(this, 0, null);\r
          }\r
-         private void check_8x8DCT_CheckedChanged(object sender, EventArgs e)\r
+         private void btn_clear_Click(object sender, EventArgs e)\r
          {\r
-             x264PanelFunctions.on_x264_WidgetChange("8x8dct", this);\r
+             rtf_query.Clear();\r
          }\r
-         private void drop_deblockAlpha_SelectedIndexChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("deblock", this);\r
+         #endregion\r
  \r
-         }\r
-         private void drop_deblockBeta_SelectedIndexChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("deblock", this);\r
+         // MainWindow Components, Actions and Functions ***********************\r
  \r
+         #region Source Scan\r
+         public Boolean isScanning { get; set; }\r
+         private static int scanProcessID { get; set; }\r
+         private void startScan(String filename)\r
+         {\r
+             // Setup the GUI components for the scan.\r
+             sourcePath = filename;\r
+             foreach (Control ctrl in Controls)\r
+                 if (!(ctrl is StatusStrip || ctrl is MenuStrip || ctrl is ToolStrip))\r
+                     ctrl.Enabled = false;\r
\r
+             lbl_encode.Visible = true;\r
+             lbl_encode.Text = "Scanning ...";\r
+             btn_source.Enabled = false;\r
+             btn_start.Enabled = false;\r
+             btn_showQueue.Enabled = false;\r
+             btn_add2Queue.Enabled = false;\r
+             tb_preview.Enabled = false;\r
+             mnu_killCLI.Visible = true;\r
\r
+             // Start hte Scan Thread\r
+             try\r
+             {\r
+                 if (ActivityWindow != null)\r
+                     ActivityWindow.SetLogView(true);\r
+                 isScanning = true;\r
+                 ThreadPool.QueueUserWorkItem(scanProcess);\r
+             }\r
+             catch (Exception exc)\r
+             {\r
+                 MessageBox.Show("frmMain.cs - startScan " + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+             }\r
          }\r
-         private void drop_trellis_SelectedIndexChanged(object sender, EventArgs e)\r
-         {\r
-             x264PanelFunctions.on_x264_WidgetChange("trellis", this);\r
-         }\r
-         private void check_noFastPSkip_CheckedChanged(object sender, EventArgs e)\r
+         private void scanProcess(object state)\r
          {\r
-             x264PanelFunctions.on_x264_WidgetChange("no-fast-pskip", this);\r
+             try\r
+             {\r
+                 string handbrakeCLIPath = Path.Combine(Application.StartupPath, "HandBrakeCLI.exe");\r
+                 string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";\r
+                 string dvdInfoPath = Path.Combine(logDir, "last_scan_log.txt");\r
\r
+                 // Make we don't pick up a stale last_encode_log.txt (and that we have rights to the file)\r
+                 if (File.Exists(dvdInfoPath))\r
+                     File.Delete(dvdInfoPath);\r
\r
+                 String dvdnav = string.Empty;\r
+                 if (Properties.Settings.Default.noDvdNav)\r
+                     dvdnav = " --no-dvdnav";\r
+                 string strCmdLine = String.Format(@"cmd /c """"{0}"" -i ""{1}"" -t0 {2} -v >""{3}"" 2>&1""", handbrakeCLIPath, sourcePath, dvdnav, dvdInfoPath);\r
\r
+                 ProcessStartInfo hbParseDvd = new ProcessStartInfo("CMD.exe", strCmdLine) { WindowStyle = ProcessWindowStyle.Hidden };\r
\r
+                 Boolean cleanExit = true;\r
+                 using (hbproc = Process.Start(hbParseDvd))\r
+                 {\r
+                     Process[] before = Process.GetProcesses(); // Get a list of running processes before starting.\r
+                     scanProcessID = Main.getCliProcess(before);\r
+                     hbproc.WaitForExit();\r
+                     if (hbproc.ExitCode != 0)\r
+                         cleanExit = false;\r
+                 }\r
\r
+                 if (cleanExit) // If 0 exit code, CLI exited cleanly.\r
+                 {\r
+                     if (!File.Exists(dvdInfoPath))\r
+                         throw new Exception("Unable to retrieve the DVD Info. last_scan_log.txt is missing. \nExpected location of last_scan_log.txt: \n"\r
+                                             + dvdInfoPath);\r
\r
+                     using (StreamReader sr = new StreamReader(dvdInfoPath))\r
+                     {\r
+                         thisDVD = DVD.Parse(sr);\r
+                         sr.Close();\r
+                         sr.Dispose();\r
+                     }\r
\r
+                     updateUIafterScan();\r
+                 }\r
+             }\r
+             catch (Exception exc)\r
+             {\r
+                 MessageBox.Show("frmMain.cs - scanProcess() " + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+                 enableGUI();\r
+             }\r
          }\r
-         private void check_noDCTDecimate_CheckedChanged(object sender, EventArgs e)\r
+         private void updateUIafterScan()\r
          {\r
-             x264PanelFunctions.on_x264_WidgetChange("no-dct-decimate", this);\r
+             try\r
+             {\r
+                 if (InvokeRequired)\r
+                 {\r
+                     BeginInvoke(new UpdateWindowHandler(updateUIafterScan));\r
+                     return;\r
+                 }\r
\r
+                 // Setup some GUI components\r
+                 drp_dvdtitle.Items.Clear();\r
+                 if (thisDVD.Titles.Count != 0)\r
+                     drp_dvdtitle.Items.AddRange(thisDVD.Titles.ToArray());\r
\r
+                 // Now select the longest title\r
+                 if (thisDVD.Titles.Count != 0)\r
+                     drp_dvdtitle.SelectedItem = Main.selectLongestTitle(thisDVD);\r
\r
+                 // Enable the creation of chapter markers if the file is an image of a dvd.\r
+                 if (sourcePath.ToLower().Contains(".iso") || sourcePath.Contains("VIDEO_TS"))\r
+                     Check_ChapterMarkers.Enabled = true;\r
+                 else if (Directory.Exists(Path.Combine(sourcePath, "VIDEO_TS")))\r
+                     Check_ChapterMarkers.Enabled = true;\r
+                 else\r
+                 {\r
+                     Check_ChapterMarkers.Enabled = false;\r
+                     Check_ChapterMarkers.Checked = false;\r
+                     data_chpt.Rows.Clear();\r
+                 }\r
  \r
+                 // If no titles were found, Display an error message\r
+                 if (drp_dvdtitle.Items.Count == 0)\r
+                 {\r
+                     MessageBox.Show(\r
+                         "No Title(s) found. \n\nYour Source may be copy protected, badly mastered or in a format which HandBrake does not support. \nPlease refer to the Documentation and FAQ (see Help Menu).",\r
+                         "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+                     sourcePath = string.Empty;\r
+                 }\r
+                 UpdateSourceLabel();\r
\r
+                 // Enable the GUI components and enable any disabled components\r
+                 enableGUI();\r
+             }\r
+             catch (Exception exc)\r
+             {\r
+                 MessageBox.Show("frmMain.cs - updateUIafterScan " + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+                 enableGUI();\r
+             }\r
          }\r
-         private void check_Cabac_CheckedChanged(object sender, EventArgs e)\r
+         private void enableGUI()\r
          {\r
\r
-             x264PanelFunctions.on_x264_WidgetChange("cabac", this);\r
+             try\r
+             {\r
+                 if (InvokeRequired)\r
+                     BeginInvoke(new UpdateWindowHandler(enableGUI));\r
+                 lbl_encode.Text = "Scan Completed";\r
+                 foreach (Control ctrl in Controls)\r
+                     ctrl.Enabled = true;\r
+                 btn_start.Enabled = true;\r
+                 btn_showQueue.Enabled = true;\r
+                 btn_add2Queue.Enabled = true;\r
+                 tb_preview.Enabled = true;\r
+                 btn_source.Enabled = true;\r
+                 mnu_killCLI.Visible = false;\r
+             }\r
+             catch (Exception exc)\r
+             {\r
+                 MessageBox.Show("frmMain.cs - enableGUI() " + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+             }\r
          }\r
\r
-         private void rtf_x264Query_TextChanged(object sender, EventArgs e)\r
+         private void killScan()\r
          {\r
-             if (rtf_x264Query.Text.EndsWith("\n"))\r
+             try\r
              {\r
-                 rtf_x264Query.Text = rtf_x264Query.Text.Replace("\n", "");\r
-                 x264PanelFunctions.X264_StandardizeOptString(this);\r
-                 x264PanelFunctions.X264_SetCurrentSettingsInPanel(this);\r
+                 enableGUI();\r
+                 resetGUI();\r
  \r
-                 if (rtf_x264Query.Text == string.Empty)\r
-                     x264PanelFunctions.reset2Defaults(this);\r
+                 Process[] prs = Process.GetProcesses();\r
+                 foreach (Process process in prs)\r
+                 {\r
+                     if (process.Id == scanProcessID)\r
+                     {\r
+                         process.Refresh();\r
+                         if (!process.HasExited)\r
+                             process.Kill();\r
+                     }\r
+                 }\r
              }\r
++/* HEAD\r
 +        }\r
 +        private void btn_reset_Click(object sender, EventArgs e)\r
 +        {\r
 +            rtf_x264Query.Text = "";\r
 +            x264PanelFunctions.reset2Defaults(this);\r
 +        }\r
 +\r
 +        // Query Editor Tab\r
 +        private void btn_generate_Query_Click(object sender, EventArgs e)\r
 +        {\r
 +            rtf_query.Text = queryGen.GenerateTheQuery(this);\r
 +        }\r
 +        private void btn_clear_Click(object sender, EventArgs e)\r
 +        {\r
 +            rtf_query.Clear();\r
 +        }\r
 +\r
 +        // Presets\r
 +        private void btn_addPreset_Click(object sender, EventArgs e)\r
 +        {\r
 +            // Remember each nodes expanded status so we can reload it\r
 +            List<Boolean> nodeStatus = saveTreeViewState();\r
 +            nodeStatus.Add(true);\r
 +\r
 +            // Now add the new preset\r
 +            Form preset = new frmAddPreset(this, queryGen.GenerateTheQuery(this), presetHandler);\r
 +            preset.ShowDialog();\r
 +\r
 +            // Now reload the TreeView states\r
 +            loadTreeViewStates(nodeStatus);\r
 +        }\r
 +        private void btn_removePreset_Click(object sender, EventArgs e)\r
 +        {\r
 +            DialogResult result = MessageBox.Show("\91I\91ð\82µ\82½\83v\83\8a\83Z\83b\83g\82ð\8dí\8f\9c\82µ\82Ü\82·\82©\81H", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
 +            if (result == DialogResult.Yes)\r
++*/\r
+             catch (Exception ex)\r
              {\r
-                 if (treeView_presets.SelectedNode != null)\r
-                     presetHandler.remove(treeView_presets.SelectedNode.Text);\r
\r
-                 // Remember each nodes expanded status so we can reload it\r
-                 List<Boolean> nodeStatus = saveTreeViewState();\r
\r
-                 // Now reload the preset panel\r
-                 loadPresetPanel();\r
\r
-                 // Now reload the TreeView states\r
-                 loadTreeViewStates(nodeStatus);\r
+                 MessageBox.Show("Unable to kill HandBrakeCLI.exe \nYou may need to manually kill HandBrakeCLI.exe using the Windows Task Manager if it does not close automatically within the next few minutes. \n\nError Information: \n" + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
              }\r
-             treeView_presets.Select();\r
          }\r
-         private void btn_setDefault_Click(object sender, EventArgs e)\r
+         private void resetGUI()\r
          {\r
++/* HEAD\r
 +            String query = queryGen.GenerateTheQuery(this);\r
 +            Properties.Settings.Default.defaultUserSettings = query;\r
 +            // Save the new default Settings\r
 +            Properties.Settings.Default.Save();\r
 +            MessageBox.Show("\83f\83t\83H\83\8b\83g\90Ý\92è\82ª\95Û\91\82³\82ê\82Ü\82µ\82½", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
++*/\r
+             drp_dvdtitle.Items.Clear();\r
+             drop_chapterStart.Items.Clear();\r
+             drop_chapterFinish.Items.Clear();\r
+             lbl_duration.Text = "Select a Title";\r
+             PictureSettings.lbl_src_res.Text = "Select a Title";\r
+             PictureSettings.lbl_Aspect.Text = "Select a Title";\r
+             sourcePath = String.Empty;\r
+             text_destination.Text = String.Empty;\r
+             thisDVD = null;\r
+             selectedTitle = null;\r
+             isScanning = false;\r
          }\r
-         private void treeView_presets_AfterSelect(object sender, TreeViewEventArgs e)\r
+         private void UpdateSourceLabel()\r
          {\r
-             // Ok, so, we've selected a preset. Now we want to load it.\r
-             string presetName = treeView_presets.SelectedNode.Text;\r
-             string query = presetHandler.getCliForPreset(presetName);\r
\r
-             if (query != null)\r
-             {\r
-                 //Ok, Reset all the H264 widgets before changing the preset\r
-                 x264PanelFunctions.reset2Defaults(this);\r
\r
-                 // Send the query from the file to the Query Parser class\r
-                 Functions.QueryParser presetQuery = Functions.QueryParser.Parse(query);\r
\r
-                 // Now load the preset\r
-                 presetLoader.presetLoader(this, presetQuery, presetName);\r
\r
-                 // The x264 widgets will need updated, so do this now:\r
-                 x264PanelFunctions.X264_StandardizeOptString(this);\r
-                 x264PanelFunctions.X264_SetCurrentSettingsInPanel(this);\r
-             }\r
+             labelSource.Text = string.IsNullOrEmpty(sourcePath) ? "Select \"Source\" to continue." : this.SourceName;\r
          }\r
-         private void treeView_presets_deleteKey(object sender, KeyEventArgs e)\r
+         #endregion\r
\r
+         #region GUI\r
+         /// <summary>\r
+         /// Set the GUI to it's finished encoding state.\r
+         /// </summary>\r
+         private void setEncodeFinished()\r
          {\r
-             if (e.KeyCode == Keys.Delete)\r
+             try\r
              {\r
++/* HEAD\r
 +                DialogResult result = MessageBox.Show("\91I\91ð\82µ\82½\83v\83\8a\83Z\83b\83g\82ð\8dí\8f\9c\82µ\82Ü\82·\82©\81H", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
 +                if (result == DialogResult.Yes)\r
++*/\r
+                 if (InvokeRequired)\r
                  {\r
-                     if (treeView_presets.SelectedNode != null)\r
-                         presetHandler.remove(treeView_presets.SelectedNode.Text);\r
\r
-                     // Remember each nodes expanded status so we can reload it\r
-                     List<Boolean> nodeStatus = new List<Boolean>();\r
-                     foreach (TreeNode node in treeView_presets.Nodes)\r
-                         nodeStatus.Add(node.IsExpanded);\r
+                     BeginInvoke(new UpdateWindowHandler(setEncodeFinished));\r
+                     return;\r
+                 }\r
  \r
-                     // Now reload the preset panel\r
-                     loadPresetPanel();\r
+                 lbl_encode.Text = "Encoding Finished";\r
+                 btn_start.Text = "Start";\r
+                 btn_start.ToolTipText = "Start the encoding process";\r
+                 btn_start.Image = Properties.Resources.Play;\r
  \r
-                     // And finally, re-expand any of the nodes if required\r
-                     int i = 0;\r
-                     foreach (TreeNode node in treeView_presets.Nodes)\r
+                 // If the window is minimized, display the notification in a popup.\r
+                 if (Properties.Settings.Default.trayIconAlerts)\r
+                     if (FormWindowState.Minimized == this.WindowState)\r
                      {\r
-                         if (nodeStatus[i] == true)\r
-                             node.Expand();\r
\r
-                         i++;\r
+                         notifyIcon.BalloonTipText = lbl_encode.Text;\r
+                         notifyIcon.ShowBalloonTip(500);\r
                      }\r
-                 }\r
              }\r
-         }\r
\r
-         #endregion\r
\r
-         #region Preset Expand / Collaspe\r
-         private List<Boolean> saveTreeViewState()\r
-         {\r
-             // Remember each nodes expanded status so we can reload it\r
-             List<Boolean> nodeStatus = new List<Boolean>();\r
-             foreach (TreeNode node in treeView_presets.Nodes)\r
+             catch (Exception exc)\r
              {\r
-                 nodeStatus.Add(node.IsExpanded);\r
-                 foreach (TreeNode subNode in node.Nodes)\r
-                     nodeStatus.Add(node.IsExpanded);\r
+                 MessageBox.Show(exc.ToString());\r
              }\r
-             return nodeStatus;\r
          }\r
  \r
-         private void loadTreeViewStates(List<Boolean> nodeStatus)\r
+         /// <summary>\r
+         /// Set the GUI to it's started encoding state.\r
+         /// </summary>\r
+         private void setEncodeStarted()\r
          {\r
-             // And finally, re-expand any of the nodes if required\r
-             int i = 0;\r
-             foreach (TreeNode node in treeView_presets.Nodes)\r
+             try\r
              {\r
-                 if (nodeStatus[i] == true)\r
-                     node.Expand();\r
\r
-                 foreach (TreeNode subNode in node.Nodes)\r
+                 if (InvokeRequired)\r
                  {\r
-                     if (nodeStatus[i] == true)\r
-                         subNode.Expand();\r
+                     BeginInvoke(new UpdateWindowHandler(setEncodeStarted));\r
+                     return;\r
                  }\r
  \r
-                 i++;\r
+                 lbl_encode.Visible = true;\r
+                 lbl_encode.Text = "Encoding with " + encodeQueue.Count + " encode(s) pending";\r
+                 btn_start.Text = "Stop";\r
+                 btn_start.ToolTipText = "Stop the encoding process.";\r
+                 btn_start.Image = Properties.Resources.stop;\r
              }\r
-         }\r
-         #endregion\r
\r
-         #region Functions\r
-         private void loadNormalPreset()\r
-         {\r
-             treeView_presets.Nodes.Find("Normal", true);\r
\r
-             foreach (TreeNode treenode in treeView_presets.Nodes)\r
+             catch (Exception exc)\r
              {\r
-                 foreach (TreeNode node in treenode.Nodes)\r
-                 {\r
-                     if (node.Text.ToString().Equals("Normal"))\r
-                         treeView_presets.SelectedNode = treeView_presets.Nodes[treenode.Index].Nodes[0];\r
-                 }\r
+                 MessageBox.Show(exc.ToString());\r
              }\r
          }\r
-         /// <summary>\r
-         /// Take in a File destination and change it's file extension to a new Extension\r
-         /// </summary>\r
-         /// <param name="destination"></param>\r
-         /// <param name="newExtension"></param>\r
-         /// <returns>String of the new file path and extension</returns>\r
-         public void setExtension(string newExtension)\r
-         {\r
-             text_destination.Text = text_destination.Text.Replace(".mp4", newExtension);\r
-             text_destination.Text = text_destination.Text.Replace(".m4v", newExtension);\r
-             text_destination.Text = text_destination.Text.Replace(".mkv", newExtension);\r
-             text_destination.Text = text_destination.Text.Replace(".avi", newExtension);\r
-             text_destination.Text = text_destination.Text.Replace(".ogm", newExtension);\r
-         }\r
          #endregion\r
  \r
-         #region Drive Detection\r
-         // Source Button Drive Detection\r
-         private delegate void ProgressUpdateHandler();\r
+         #region DVD Drive Detection\r
          private void getDriveInfoThread()\r
          {\r
              try\r
                  DriveInfo[] theCollectionOfDrives = DriveInfo.GetDrives();\r
                  foreach (DriveInfo curDrive in theCollectionOfDrives)\r
                  {\r
-                     if (curDrive.DriveType == DriveType.CDRom)\r
+                     if (curDrive.DriveType == DriveType.CDRom && curDrive.IsReady)\r
                      {\r
-                         if (curDrive.IsReady)\r
+                         if (File.Exists(curDrive.RootDirectory + "VIDEO_TS\\VIDEO_TS.IFO"))\r
                          {\r
++/* HEAD\r
 +                            if (File.Exists(curDrive.RootDirectory.ToString() + "VIDEO_TS\\VIDEO_TS.IFO"))\r
 +                                mnu_dvd_drive.Text = curDrive.RootDirectory.ToString() + "VIDEO_TS (" + curDrive.VolumeLabel + ")";\r
 +                            else\r
 +                                mnu_dvd_drive.Text = "[DVD\83h\83\89\83C\83u\82É\83f\83B\83X\83N\82ª\82 \82è\82Ü\82¹\82ñ]";\r
 +\r
++*/\r
+                             this.dvdDrivePath = curDrive.RootDirectory + "VIDEO_TS";\r
+                             this.dvdDriveLabel = curDrive.VolumeLabel;\r
+                             mnu_dvd_drive.Text = this.dvdDrivePath + " (" + this.dvdDriveLabel + ")";\r
                              foundDrive = true;\r
\r
+                             break;\r
                          }\r
                      }\r
                  }\r
              }\r
              catch (Exception)\r
              {\r
 -                mnu_dvd_drive.Text = "[No DVD Drive Ready / Found]";\r
 +                mnu_dvd_drive.Text = "[DVD\83h\83\89\83C\83u\82É\83f\83B\83X\83N\82ª\82 \82è\82Ü\82¹\82ñ]";\r
 +            }\r
 +        }\r
 +        #endregion\r
 +\r
++/* HEAD\r
 +        #region Audio Panel Stuff\r
 +        public void setAudioByContainer(String path)\r
 +        {\r
 +            string oldval = "";\r
 +\r
 +            if ((path.EndsWith(".mp4")) || (path.EndsWith(".m4v")))\r
 +            {\r
 +                oldval = drp_audenc_1.Text;\r
 +                drp_audenc_1.Items.Clear();\r
 +                drp_audenc_1.Items.Add("AAC");\r
 +                drp_audenc_1.Items.Add("AC3");\r
 +                if ((oldval != "AAC") && (oldval != "AC3"))\r
 +                    drp_audenc_1.SelectedIndex = 0;\r
 +\r
 +                oldval = drp_audenc_2.Text;\r
 +                drp_audenc_2.Items.Clear();\r
 +                drp_audenc_2.Items.Add("AAC");\r
 +                drp_audenc_2.Items.Add("AC3");\r
 +                if (drp_audenc_2.Enabled)\r
 +                {\r
 +                    if ((oldval != "AAC") && (oldval != "AC3"))\r
 +                        drp_audenc_2.SelectedIndex = 0;\r
 +                }\r
 +\r
 +                oldval = drp_audenc_3.Text;\r
 +                drp_audenc_3.Items.Clear();\r
 +                drp_audenc_3.Items.Add("AAC");\r
 +                drp_audenc_3.Items.Add("AC3");\r
 +                if (drp_audenc_3.Enabled)\r
 +                {\r
 +                    if ((oldval != "AAC") && (oldval != "AC3"))\r
 +                        drp_audenc_3.SelectedIndex = 0;\r
 +                }\r
 +\r
 +                oldval = drp_audenc_4.Text;\r
 +                drp_audenc_4.Items.Clear();\r
 +                drp_audenc_4.Items.Add("AAC");\r
 +                drp_audenc_4.Items.Add("AC3");\r
 +                if (drp_audenc_4.Enabled)\r
 +                {\r
 +                    if ((oldval != "AAC") && (oldval != "AC3"))\r
 +                        drp_audenc_4.SelectedIndex = 0;\r
 +                }\r
 +            }\r
 +            else if (path.EndsWith(".avi"))\r
 +            {\r
 +                oldval = drp_audenc_1.Text;\r
 +                drp_audenc_1.Items.Clear();\r
 +                drp_audenc_1.Items.Add("MP3");\r
 +                drp_audenc_1.Items.Add("AC3");\r
 +                if ((oldval != "MP3") && (oldval != "AC3"))\r
 +                    drp_audenc_1.SelectedIndex = 0;\r
 +\r
 +                oldval = drp_audenc_2.Text;\r
 +                drp_audenc_2.Items.Clear();\r
 +                drp_audenc_2.Items.Add("MP3");\r
 +                drp_audenc_2.Items.Add("AC3");\r
 +                if (drp_audenc_2.Enabled)\r
 +                {\r
 +                    if ((oldval != "MP3") && (oldval != "AC3"))\r
 +                        drp_audenc_2.SelectedIndex = 0;\r
 +                }\r
 +\r
 +\r
 +                oldval = drp_audenc_3.Text;\r
 +                drp_audenc_3.Items.Clear();\r
 +                drp_audenc_3.Items.Add("MP3");\r
 +                drp_audenc_3.Items.Add("AC3");\r
 +                if (drp_audenc_3.Enabled)\r
 +                {\r
 +                    if ((oldval != "MP3") && (oldval != "AC3"))\r
 +                        drp_audenc_3.SelectedIndex = 0;\r
 +                }\r
 +\r
 +                oldval = drp_audenc_4.Text;\r
 +                drp_audenc_4.Items.Clear();\r
 +                drp_audenc_4.Items.Add("MP3");\r
 +                drp_audenc_4.Items.Add("AC3");\r
 +                if (drp_audenc_4.Enabled)\r
 +                {\r
 +                    if ((oldval != "MP3") && (oldval != "AC3"))\r
 +                        drp_audenc_4.SelectedIndex = 0;\r
 +                }\r
 +            }\r
 +            else if (path.EndsWith(".ogm"))\r
 +            {\r
 +                drp_audenc_1.Items.Clear();\r
 +                drp_audenc_1.Items.Add("Vorbis");\r
 +                drp_audenc_1.SelectedIndex = 0;\r
 +\r
 +                drp_audenc_2.Items.Clear();\r
 +                drp_audenc_2.Items.Add("Vorbis");\r
 +                if (drp_audenc_2.Enabled)\r
 +                    drp_audenc_2.SelectedIndex = 0;\r
 +\r
 +                drp_audenc_3.Items.Clear();\r
 +                drp_audenc_3.Items.Add("Vorbis");\r
 +                if (drp_audenc_3.Enabled)\r
 +                    drp_audenc_3.SelectedIndex = 0;\r
 +\r
 +                drp_audenc_4.Items.Clear();\r
 +                drp_audenc_4.Items.Add("Vorbis");\r
 +                if (drp_audenc_4.Enabled)\r
 +                    drp_audenc_4.SelectedIndex = 0;\r
 +            }\r
 +            else if (path.EndsWith(".mkv"))\r
 +            {\r
 +                drp_audenc_1.Items.Clear();\r
 +                drp_audenc_1.Items.Add("AAC");\r
 +                drp_audenc_1.Items.Add("MP3");\r
 +                drp_audenc_1.Items.Add("AC3");\r
 +                drp_audenc_1.Items.Add("Vorbis");\r
 +                if (drp_audenc_1.Text == string.Empty)\r
 +                    drp_audenc_1.SelectedIndex = 0;\r
 +\r
 +\r
 +                drp_audenc_2.Items.Clear();\r
 +                drp_audenc_2.Items.Add("AAC");\r
 +                drp_audenc_2.Items.Add("MP3");\r
 +                drp_audenc_2.Items.Add("AC3");\r
 +                drp_audenc_2.Items.Add("Vorbis");\r
 +                if (drp_audenc_2.Enabled)\r
 +                {\r
 +                    if (drp_audenc_2.Text == string.Empty)\r
 +                        drp_audenc_2.SelectedIndex = 0;\r
 +                }\r
 +\r
 +                drp_audenc_3.Items.Clear();\r
 +                drp_audenc_3.Items.Add("AAC");\r
 +                drp_audenc_3.Items.Add("MP3");\r
 +                drp_audenc_3.Items.Add("AC3");\r
 +                drp_audenc_3.Items.Add("Vorbis");\r
 +                if (drp_audenc_3.Enabled)\r
 +                {\r
 +                    if (drp_audenc_3.Text == string.Empty)\r
 +                        drp_audenc_3.SelectedIndex = 0;\r
 +                }\r
 +\r
 +                drp_audenc_4.Items.Clear();\r
 +                drp_audenc_4.Items.Add("AAC");\r
 +                drp_audenc_4.Items.Add("MP3");\r
 +                drp_audenc_4.Items.Add("AC3");\r
 +                drp_audenc_4.Items.Add("Vorbis");\r
 +                if (drp_audenc_4.Enabled)\r
 +                {\r
 +                    if (drp_audenc_4.Text == string.Empty)\r
 +                        drp_audenc_4.SelectedIndex = 0;\r
 +                }\r
 +            }\r
 +        }\r
 +        public void setVideoByContainer(String path)\r
 +        {\r
 +            string oldval = "";\r
 +\r
 +            if ((path.EndsWith(".mp4")) || (path.EndsWith(".m4v")))\r
 +            {\r
 +                oldval = drp_videoEncoder.Text;\r
 +                drp_videoEncoder.Items.Clear();\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (XviD)");\r
 +                drp_videoEncoder.Items.Add("H.264 (x264)");\r
 +                if (oldval == "VP3 (Theora)")\r
 +                    drp_videoEncoder.SelectedIndex = 2;\r
 +                else\r
 +                    drp_videoEncoder.Text = oldval;\r
 +\r
 +            }\r
 +            else if (path.EndsWith(".avi"))\r
 +            {\r
 +                oldval = drp_videoEncoder.Text;\r
 +                drp_videoEncoder.Items.Clear();\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (XviD)");\r
 +                drp_videoEncoder.Items.Add("H.264 (x264)");\r
 +                if (oldval == "VP3 (Theora)")\r
 +                    drp_videoEncoder.SelectedIndex = 2;\r
 +                else\r
 +                    drp_videoEncoder.Text = oldval;\r
 +            }\r
 +            else if (path.EndsWith(".ogm"))\r
 +            {\r
 +                oldval = drp_videoEncoder.Text;\r
 +                drp_videoEncoder.Items.Clear();\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (XviD)");\r
 +                drp_videoEncoder.Items.Add("VP3 (Theora)");\r
 +                if (oldval == "H.264 (x264)")\r
 +                    drp_videoEncoder.SelectedIndex = 2;\r
 +                else\r
 +                    drp_videoEncoder.Text = oldval;\r
              }\r
 +            else if (path.EndsWith(".mkv"))\r
 +            {\r
 +                oldval = drp_videoEncoder.Text;\r
 +                drp_videoEncoder.Items.Clear();\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
 +                drp_videoEncoder.Items.Add("MPEG-4 (XviD)");\r
 +                drp_videoEncoder.Items.Add("H.264 (x264)");\r
 +                drp_videoEncoder.Items.Add("VP3 (Theora)");\r
 +                drp_videoEncoder.Text = oldval;\r
 +            }\r
 +        }\r
 +        public void setBitrateSelections384(ComboBox dropDown)\r
 +        {\r
 +            dropDown.Items.Clear();\r
 +            dropDown.Items.Add("32");\r
 +            dropDown.Items.Add("40");\r
 +            dropDown.Items.Add("48");\r
 +            dropDown.Items.Add("56");\r
 +            dropDown.Items.Add("64");\r
 +            dropDown.Items.Add("80");\r
 +            dropDown.Items.Add("86");\r
 +            dropDown.Items.Add("112");\r
 +            dropDown.Items.Add("128");\r
 +            dropDown.Items.Add("160");\r
 +            dropDown.Items.Add("192");\r
 +            dropDown.Items.Add("224");\r
 +            dropDown.Items.Add("256");\r
 +            dropDown.Items.Add("320");\r
 +            dropDown.Items.Add("384");\r
 +        }\r
 +        public void setBitrateSelections320(ComboBox dropDown)\r
 +        {\r
 +            dropDown.Items.Clear();\r
 +            dropDown.Items.Add("32");\r
 +            dropDown.Items.Add("40");\r
 +            dropDown.Items.Add("48");\r
 +            dropDown.Items.Add("56");\r
 +            dropDown.Items.Add("64");\r
 +            dropDown.Items.Add("80");\r
 +            dropDown.Items.Add("86");\r
 +            dropDown.Items.Add("112");\r
 +            dropDown.Items.Add("128");\r
 +            dropDown.Items.Add("160");\r
 +            dropDown.Items.Add("192");\r
 +            dropDown.Items.Add("224");\r
 +            dropDown.Items.Add("256");\r
 +            dropDown.Items.Add("320");\r
 +        }\r
 +        public void setBitrateSelections160(ComboBox dropDown)\r
 +        {\r
 +            dropDown.Items.Clear();\r
 +            dropDown.Items.Add("32");\r
 +            dropDown.Items.Add("40");\r
 +            dropDown.Items.Add("48");\r
 +            dropDown.Items.Add("56");\r
 +            dropDown.Items.Add("64");\r
 +            dropDown.Items.Add("80");\r
 +            dropDown.Items.Add("86");\r
 +            dropDown.Items.Add("112");\r
 +            dropDown.Items.Add("128");\r
 +            dropDown.Items.Add("160");\r
          }\r
          #endregion\r
  \r
 +        #region Encoding\r
 +\r
 +        // Declarations\r
 +        private delegate void UpdateUIHandler();\r
 +\r
 +        // Encoding Functions\r
 +        private void procMonitor(object state)\r
 +        {\r
 +            // Make sure we are not already encoding and if we are then display an error.\r
 +            if (hbProc != null)\r
 +                hbProc.CloseMainWindow();\r
 +            else\r
 +            {\r
 +                hbProc = cliObj.runCli(this, (string)state);\r
 +                hbProc.WaitForExit();\r
 +                setEncodeLabelFinished();\r
 +                hbProc = null;\r
 +\r
 +                // If the window is minimized, display the notification in a popup.\r
 +                if (FormWindowState.Minimized == this.WindowState)\r
 +                {\r
 +                    notifyIcon.BalloonTipText = lbl_encode.Text;\r
 +                    notifyIcon.ShowBalloonTip(500);\r
 +                }\r
 +\r
 +                // After the encode is done, we may want to shutdown, suspend etc.\r
 +                cliObj.addCLIQueryToLog((string)state);\r
 +                cliObj.copyLog((string)state); // Make a copy of the log in the users desired location if necessary\r
 +                cliObj.afterEncodeAction();\r
 +            }\r
 +        }\r
 +        private void setEncodeLabelFinished()\r
 +        {\r
 +            if (this.InvokeRequired)\r
 +            {\r
 +                this.BeginInvoke(new UpdateUIHandler(setEncodeLabelFinished));\r
 +                return;\r
 +            }\r
 +            lbl_encode.Text = "\83G\83\93\83R\81[\83h\8a®\97¹";\r
 +            btn_start.Text = "\95Ï\8a·\8aJ\8en";\r
 +            btn_start.ToolTipText = "\83G\83\93\83R\81[\83h\8f\88\97\9d\82ð\8aJ\8en\82µ\82Ü\82·";\r
 +            btn_start.Image = Properties.Resources.Play;\r
 +        }\r
 +\r
 +        #endregion\r
 +\r
++*/\r
          #region Public Methods\r
\r
          /// <summary>\r
-         /// Is the mainWindow currently monitoring an encoding session\r
+         /// Access the preset Handler and setup the preset panel.\r
          /// </summary>\r
-         /// <returns>boolean</returns>\r
-         public Boolean isEncoding()\r
+         public void loadPresetPanel()\r
          {\r
-             if (hbProc == null)\r
-                 return false;\r
-             else\r
-                 return true;\r
-         }\r
+             if (presetHandler.CheckIfPresetsAreOutOfDate())\r
+                 if (!Properties.Settings.Default.presetNotification)\r
+                     MessageBox.Show(splash,\r
+                     "HandBrake has determined your built-in presets are out of date... These presets will now be updated.",\r
+                     "Preset Update", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
  \r
-         /// <summary>\r
-         /// Action can be "encode" or "scan"\r
-         /// Set the last action varible in the main window.\r
-         /// This is used to control which log file is displayed when the Activity window is displayed.\r
-         /// </summary>\r
-         /// <param name="last">String</param>\r
-         public void setLastAction(string last)\r
-         {\r
-             this.lastAction = last;\r
+             presetHandler.GetPresetPanel(ref treeView_presets);\r
+             treeView_presets.Update();\r
          }\r
+         #endregion\r
  \r
+         #region Overrides\r
          /// <summary>\r
-         /// DVD parseing. Pass in a parsed DVD.\r
+         /// If the queue is being processed, prompt the user to confirm application close.\r
          /// </summary>\r
-         /// <param name="dvd"></param>\r
-         public void setStreamReader(Parsing.DVD dvd)\r
+         /// <param name="e"></param>\r
+         protected override void OnFormClosing(FormClosingEventArgs e)\r
          {\r
-             this.thisDVD = dvd;\r
+             // If currently encoding, the queue isn't paused, and there are queue items to process, prompt to confirm close.\r
+             if ((encodeQueue.isEncoding) && (!encodeQueue.PauseRequested) && (encodeQueue.Count > 0))\r
+             {\r
+                 DialogResult result = MessageBox.Show("HandBrake has queue items to process. Closing HandBrake will not stop the current encoding, but will stop processing the queue.\n\nDo you want to close HandBrake?",\r
+                     "Close HandBrake?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);\r
+                 if (result == DialogResult.No)\r
+                     e.Cancel = true;\r
+             }\r
+             base.OnFormClosing(e);\r
          }\r
+         #endregion\r
  \r
-         /// <summary>\r
-         /// Reload the preset panel display\r
-         /// </summary>\r
-         public void loadPresetPanel()\r
+         #region In-GUI Encode Status (Experimental)\r
+         private void encodeMonitorThread()\r
          {\r
-             presetHandler.loadPresetData();\r
\r
-             treeView_presets.Nodes.Clear();\r
\r
-             List<Presets.Preset> presetNameList = new List<Presets.Preset>();\r
-             List<string> presetNames = new List<string>();\r
-             TreeNode preset_treeview = new TreeNode();\r
\r
-             TreeNode rootNode = new TreeNode();\r
-             TreeNode rootNodeTwo = new TreeNode();\r
-             TreeNode childNode = new TreeNode();\r
-             int workingLevel = 0;\r
-             string previousCategory = String.Empty;\r
-             string currentCategory = String.Empty;\r
\r
-             presetNameList = presetHandler.getBuildInPresets();\r
-             if (presetNameList.Count != 0)\r
+             try\r
              {\r
-                 foreach (Presets.Preset preset in presetNameList)\r
-                 {\r
-                     // Handle Root Nodes\r
\r
-                     // First Case - No presets have been read yet so setup the root category\r
-                     if (preset.Level == 1 && currentCategory == String.Empty)\r
-                     {\r
-                         rootNode = new TreeNode(preset.Category);\r
-                         workingLevel = preset.Level;\r
-                         currentCategory = preset.Category;\r
-                         previousCategory = preset.Category;\r
-                     }\r
\r
-                     // Second Case - This is the first sub child node.\r
-                     if (preset.Level == 2 && workingLevel == 1 && currentCategory != preset.Category)\r
-                     {\r
-                         rootNodeTwo = new TreeNode(preset.Category);\r
-                         workingLevel = preset.Level;\r
-                         currentCategory = preset.Category;\r
-                         rootNode.Nodes.Add(rootNodeTwo);\r
-                     }\r
\r
-                     // Third Case - Any presets the sub presets detected in the above if statment.\r
-                     if (preset.Level == 1 && workingLevel == 2)\r
-                     {\r
-                         workingLevel = preset.Level;\r
-                         currentCategory = preset.Category;\r
-                     }\r
\r
-                     // Fourth Case - We've finished this root node and are onto the next root node.\r
-                     if (preset.Level == 1 && workingLevel == 1 && previousCategory != preset.Category)\r
-                     {\r
-                         treeView_presets.Nodes.Add(rootNode); // Add the finished node\r
\r
-                         rootNode = new TreeNode(preset.Category);\r
-                         workingLevel = preset.Level;\r
-                         currentCategory = preset.Category;\r
-                         previousCategory = preset.Category;\r
-                     }\r
\r
-                     // Handle Child Nodes\r
-                     // Add First level child nodes to the current root node\r
-                     if (preset.Level == 1 && workingLevel == 1 && currentCategory == preset.Category)\r
-                     {\r
-                         childNode = new TreeNode(preset.Name);\r
-                         rootNode.Nodes.Add(childNode);\r
-                     }\r
\r
-                     // Add Second level child nodes to the current sub root node\r
-                     if (preset.Level == 2 && workingLevel == 2 && currentCategory == preset.Category)\r
-                     {\r
-                         childNode = new TreeNode(preset.Name);\r
-                         rootNodeTwo.Nodes.Add(childNode);\r
-                     }\r
-                 }\r
\r
-                 // Add the final root node which does not get added above.\r
-                 treeView_presets.Nodes.Add(rootNode);\r
+                 Parser encode = new Parser(encodeQueue.hbProcess.StandardOutput.BaseStream);\r
+                 encode.OnEncodeProgress += encodeOnEncodeProgress;\r
+                 while (!encode.EndOfStream)\r
+                     encode.readEncodeStatus();\r
              }\r
\r
\r
-             // User Presets\r
-             presetNames = presetHandler.getUserPresetNames();\r
-             foreach (string preset in presetNames)\r
+             catch (Exception exc)\r
              {\r
-                 preset_treeview = new TreeNode(preset);\r
-                 preset_treeview.ForeColor = Color.Black;\r
\r
-                 // Now Fill Out List View with Items\r
-                 treeView_presets.Nodes.Add(preset_treeview);\r
+                 MessageBox.Show(exc.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
              }\r
          }\r
\r
-         #endregion\r
\r
-         #region Taskbar Tray Icon\r
-         private void frmMain_Resize(object sender, EventArgs e)\r
+         private void encodeOnEncodeProgress(object Sender, int CurrentTask, int TaskCount, float PercentComplete, float CurrentFps, float AverageFps, TimeSpan TimeRemaining)\r
          {\r
-             if (FormWindowState.Minimized == this.WindowState)\r
+             if (this.InvokeRequired)\r
              {\r
-                 notifyIcon.Visible = true;\r
-                 if (lbl_encode.Text != "")\r
-                     notifyIcon.BalloonTipText = lbl_encode.Text;\r
-                 else\r
-                     notifyIcon.BalloonTipText = "Not Encoding";\r
-                 notifyIcon.ShowBalloonTip(500);\r
-                 this.Hide();\r
+                 this.BeginInvoke(new EncodeProgressEventHandler(encodeOnEncodeProgress),\r
+                     new object[] { Sender, CurrentTask, TaskCount, PercentComplete, CurrentFps, AverageFps, TimeRemaining });\r
+                 return;\r
              }\r
-             else if (FormWindowState.Normal == this.WindowState)\r
-                 notifyIcon.Visible = false;\r
-         }\r
-         private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)\r
-         {\r
-             this.Visible = true;\r
-             this.Activate();\r
-             this.WindowState = FormWindowState.Normal;\r
-             notifyIcon.Visible = false;\r
-         }\r
-         private void btn_minimize_Click(object sender, EventArgs e)\r
-         {\r
-             this.WindowState = FormWindowState.Minimized;\r
+             lbl_encode.Text = string.Format("Encode Progress: {0}%,       FPS: {1},       Avg FPS: {2},       Time Remaining: {3} ", PercentComplete, CurrentFps, AverageFps, TimeRemaining);\r
          }\r
-         private void btn_restore_Click(object sender, EventArgs e)\r
+         #endregion\r
\r
+         #region enum\r
+         private enum SourceType\r
          {\r
-             this.Visible = true;\r
-             this.Activate();\r
-             this.WindowState = FormWindowState.Normal;\r
-             notifyIcon.Visible = false;\r
+             None = 0,\r
+             Folder,\r
+             DvdDrive,\r
+             VideoFile\r
          }\r
          #endregion\r
  \r
@@@ -989,4 -963,13 +963,13 @@@ Note: Currently, if you wish to use a 
          AAD6AQAA4AEAAMABAACAAQAAgAEAAMBBAADAYQAAjGEAAIRhAADc+wAA3/8AAA==\r
  </value>\r
    </data>\r
- </root>
+   <metadata name="File_Save.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+     <value>664, 15</value>\r
+   </metadata>\r
+   <metadata name="openPreset.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+     <value>680, 54</value>\r
+   </metadata>\r
+   <metadata name="File_ChapterImport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+     <value>787, 54</value>\r
+   </metadata>\r
 -</root>
++</root>\r
@@@ -135,204 -202,379 +202,463 @@@ namespace Handbrak
              // \r
              // tab_general\r
              // \r
+             this.tab_general.Controls.Add(this.check_growlEncode);\r
+             this.tab_general.Controls.Add(this.check_GrowlQueue);\r
+             this.tab_general.Controls.Add(this.check_m4v);\r
+             this.tab_general.Controls.Add(this.label1);\r
              this.tab_general.Controls.Add(this.label7);\r
-             this.tab_general.Controls.Add(this.label5);\r
-             this.tab_general.Controls.Add(this.txt_autoNameFormat);\r
-             this.tab_general.Controls.Add(this.btn_browse);\r
-             this.tab_general.Controls.Add(this.label10);\r
-             this.tab_general.Controls.Add(this.text_an_path);\r
+             this.tab_general.Controls.Add(this.drp_completeOption);\r
+             this.tab_general.Controls.Add(this.drop_updateCheckDays);\r
              this.tab_general.Controls.Add(this.check_autoNaming);\r
-             this.tab_general.Controls.Add(this.label13);\r
+             this.tab_general.Controls.Add(this.txt_autoNameFormat);\r
              this.tab_general.Controls.Add(this.check_tooltip);\r
+             this.tab_general.Controls.Add(this.label5);\r
              this.tab_general.Controls.Add(this.check_updateCheck);\r
-             this.tab_general.Controls.Add(this.check_userDefaultSettings);\r
-             this.tab_general.Controls.Add(this.label1);\r
+             this.tab_general.Controls.Add(this.label10);\r
+             this.tab_general.Controls.Add(this.btn_browse);\r
              this.tab_general.Controls.Add(this.label2);\r
-             this.tab_general.Controls.Add(this.drp_completeOption);\r
+             this.tab_general.Controls.Add(this.label13);\r
+             this.tab_general.Controls.Add(this.text_an_path);\r
              this.tab_general.Location = new System.Drawing.Point(4, 22);\r
              this.tab_general.Name = "tab_general";\r
-             this.tab_general.Size = new System.Drawing.Size(482, 259);\r
+             this.tab_general.Padding = new System.Windows.Forms.Padding(10);\r
+             this.tab_general.Size = new System.Drawing.Size(580, 334);\r
              this.tab_general.TabIndex = 3;\r
 -            this.tab_general.Text = "General";\r
 +            this.tab_general.Text = "\88ê\94Ê";\r
              this.tab_general.UseVisualStyleBackColor = true;\r
              // \r
+             // check_growlEncode\r
+             // \r
+             this.check_growlEncode.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_growlEncode.AutoSize = true;\r
+             this.check_growlEncode.BackColor = System.Drawing.Color.Transparent;\r
+             this.check_growlEncode.Location = new System.Drawing.Point(282, 122);\r
+             this.check_growlEncode.Name = "check_growlEncode";\r
+             this.check_growlEncode.Size = new System.Drawing.Size(171, 17);\r
+             this.check_growlEncode.TabIndex = 99;\r
+             this.check_growlEncode.Text = "Growl after Encode Completes";\r
+             this.ToolTip.SetToolTip(this.check_growlEncode, "If you have \"Growl for Windows\" installed, you can use this feature to see growl " +\r
+                     "alerts on your desktop.");\r
+             this.check_growlEncode.UseVisualStyleBackColor = false;\r
+             this.check_growlEncode.CheckedChanged += new System.EventHandler(this.check_growlEncode_CheckedChanged);\r
+             // \r
+             // check_GrowlQueue\r
+             // \r
+             this.check_GrowlQueue.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_GrowlQueue.AutoSize = true;\r
+             this.check_GrowlQueue.BackColor = System.Drawing.Color.Transparent;\r
+             this.check_GrowlQueue.Location = new System.Drawing.Point(108, 122);\r
+             this.check_GrowlQueue.Name = "check_GrowlQueue";\r
+             this.check_GrowlQueue.Size = new System.Drawing.Size(168, 17);\r
+             this.check_GrowlQueue.TabIndex = 98;\r
+             this.check_GrowlQueue.Text = "Growl after Queue Completes";\r
+             this.ToolTip.SetToolTip(this.check_GrowlQueue, "If you have \"Growl for Windows\" installed, you can use this feature to see growl " +\r
+                     "alerts on your desktop.");\r
+             this.check_GrowlQueue.UseVisualStyleBackColor = false;\r
+             this.check_GrowlQueue.CheckedChanged += new System.EventHandler(this.check_GrowlQueue_CheckedChanged);\r
+             // \r
+             // check_m4v\r
+             // \r
+             this.check_m4v.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_m4v.AutoSize = true;\r
+             this.check_m4v.Location = new System.Drawing.Point(108, 279);\r
+             this.check_m4v.Name = "check_m4v";\r
+             this.check_m4v.Size = new System.Drawing.Size(319, 17);\r
+             this.check_m4v.TabIndex = 82;\r
+             this.check_m4v.Text = "Always use iPod/iTunes friendly file extension (.m4v) for MP4";\r
+             this.ToolTip.SetToolTip(this.check_m4v, resources.GetString("check_m4v.ToolTip"));\r
+             this.check_m4v.UseVisualStyleBackColor = true;\r
+             this.check_m4v.CheckedChanged += new System.EventHandler(this.check_m4v_CheckedChanged);\r
+             // \r
+             // label1\r
+             // \r
+             this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.label1.AutoSize = true;\r
+             this.label1.BackColor = System.Drawing.Color.Transparent;\r
+             this.label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label1.Location = new System.Drawing.Point(15, 15);\r
+             this.label1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 0);\r
+             this.label1.Name = "label1";\r
+             this.label1.Size = new System.Drawing.Size(66, 13);\r
+             this.label1.TabIndex = 67;\r
+             this.label1.Text = "At Launch:";\r
+             // \r
              // label7\r
              // \r
+             this.label7.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.label7.AutoSize = true;\r
-             this.label7.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label7.Location = new System.Drawing.Point(197, 222);\r
+             this.label7.Location = new System.Drawing.Point(179, 260);\r
+             this.label7.Margin = new System.Windows.Forms.Padding(3);\r
              this.label7.Name = "label7";\r
-             this.label7.Size = new System.Drawing.Size(221, 12);\r
+             this.label7.Size = new System.Drawing.Size(225, 13);\r
              this.label7.TabIndex = 81;\r
 -            this.label7.Text = "Available Options: {source} {title} {chapters}";\r
 +            this.label7.Text = "\97\98\97p\89Â\94\\83I\83v\83V\83\87\83\93: {source} {title} {chapters}";\r
              // \r
++/* HEAD\r
 +            // label5\r
 +            // \r
 +            this.label5.AutoSize = true;\r
 +            this.label5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label5.Location = new System.Drawing.Point(139, 201);\r
 +            this.label5.Name = "label5";\r
 +            this.label5.Size = new System.Drawing.Size(55, 13);\r
 +            this.label5.TabIndex = 80;\r
 +            this.label5.Text = "\83t\83H\81[\83}\83b\83g:";\r
 +            // \r
 +            // txt_autoNameFormat\r
 +            // \r
 +            this.txt_autoNameFormat.Location = new System.Drawing.Point(199, 198);\r
 +            this.txt_autoNameFormat.Name = "txt_autoNameFormat";\r
 +            this.txt_autoNameFormat.Size = new System.Drawing.Size(255, 21);\r
 +            this.txt_autoNameFormat.TabIndex = 79;\r
 +            this.ToolTip.SetToolTip(this.txt_autoNameFormat, "\83t\83@\83C\83\8b\96¼\82Ì\8e©\93®\90Ý\92è\83\8b\81[\83\8b\82ð\8ew\92è\82µ\82Ü\82·\81B\r\n\97á:  {source}_{title}_some-text\r\n{source} {title} {chapters}" +\r
 +                    " \82Í\8e©\93®\93I\82É\95Ï\8a·\8c³\82É\82 \82í\82¹\82Ä\90Ý\92è\82³\82ê\82Ü\82·");\r
 +            this.txt_autoNameFormat.TextChanged += new System.EventHandler(this.txt_autoNameFormat_TextChanged);\r
 +            // \r
 +            // btn_browse\r
 +            // \r
 +            this.btn_browse.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
 +            this.btn_browse.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.btn_browse.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
 +            this.btn_browse.Location = new System.Drawing.Point(386, 171);\r
 +            this.btn_browse.Name = "btn_browse";\r
 +            this.btn_browse.Size = new System.Drawing.Size(68, 22);\r
 +            this.btn_browse.TabIndex = 78;\r
 +            this.btn_browse.Text = "\83u\83\89\83E\83Y...";\r
 +            this.btn_browse.UseVisualStyleBackColor = true;\r
 +            this.btn_browse.Click += new System.EventHandler(this.btn_browse_Click);\r
 +            // \r
 +            // label10\r
 +            // \r
 +            this.label10.AutoSize = true;\r
 +            this.label10.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label10.Location = new System.Drawing.Point(80, 174);\r
 +            this.label10.Name = "label10";\r
 +            this.label10.Size = new System.Drawing.Size(115, 13);\r
 +            this.label10.TabIndex = 77;\r
 +            this.label10.Text = "\83f\83t\83H\83\8b\83g\82Ì\83t\83@\83C\83\8b\95Û\91\90æ:";\r
 +            // \r
 +            // text_an_path\r
 +            // \r
 +            this.text_an_path.Location = new System.Drawing.Point(199, 171);\r
 +            this.text_an_path.Name = "text_an_path";\r
 +            this.text_an_path.Size = new System.Drawing.Size(181, 21);\r
 +            this.text_an_path.TabIndex = 76;\r
 +            this.ToolTip.SetToolTip(this.text_an_path, "\8fo\97Í\83t\83@\83C\83\8b\82Ì\83f\83t\83H\83\8b\83g\95Û\91\90æ\82ð\8ew\92è\82µ\82Ü\82·");\r
 +            this.text_an_path.TextChanged += new System.EventHandler(this.text_an_path_TextChanged);\r
++*/\r
+             // drop_updateCheckDays\r
+             // \r
+             this.drop_updateCheckDays.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.drop_updateCheckDays.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.drop_updateCheckDays.FormattingEnabled = true;\r
+             this.drop_updateCheckDays.Items.AddRange(new object[] {\r
+             "Daily",\r
+             "Weekly",\r
+             "Monthly"});\r
+             this.drop_updateCheckDays.Location = new System.Drawing.Point(127, 35);\r
+             this.drop_updateCheckDays.Name = "drop_updateCheckDays";\r
+             this.drop_updateCheckDays.Size = new System.Drawing.Size(97, 21);\r
+             this.drop_updateCheckDays.TabIndex = 97;\r
+             this.ToolTip.SetToolTip(this.drop_updateCheckDays, "Check for updates: Daily, Weekly or Monthly\r\nDefault: Weekly");\r
+             this.drop_updateCheckDays.SelectedIndexChanged += new System.EventHandler(this.drop_updateCheckDays_SelectedIndexChanged);\r
              // \r
              // check_autoNaming\r
              // \r
+             this.check_autoNaming.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.check_autoNaming.AutoSize = true;\r
-             this.check_autoNaming.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.check_autoNaming.Location = new System.Drawing.Point(114, 148);\r
+             this.check_autoNaming.Location = new System.Drawing.Point(108, 174);\r
              this.check_autoNaming.Name = "check_autoNaming";\r
-             this.check_autoNaming.Size = new System.Drawing.Size(166, 17);\r
+             this.check_autoNaming.Size = new System.Drawing.Size(176, 17);\r
              this.check_autoNaming.TabIndex = 72;\r
 -            this.check_autoNaming.Text = "Automatically name output files";\r
 -            this.ToolTip.SetToolTip(this.check_autoNaming, "Automatically name output files");\r
 +            this.check_autoNaming.Text = "\8fo\97Í\83t\83@\83C\83\8b\96¼\82ð\8e©\93®\93I\82É\90Ý\92è\82·\82é";\r
 +            this.ToolTip.SetToolTip(this.check_autoNaming, "\8fo\97Í\83t\83@\83C\83\8b\96¼\82ð\8e©\93®\93I\82É\90Ý\92è\82µ\82Ü\82·");\r
              this.check_autoNaming.UseVisualStyleBackColor = true;\r
              this.check_autoNaming.CheckedChanged += new System.EventHandler(this.check_autoNaming_CheckedChanged);\r
              // \r
-             // label13\r
+             // txt_autoNameFormat\r
              // \r
++/* HEAD\r
 +            this.label13.AutoSize = true;\r
 +            this.label13.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label13.Location = new System.Drawing.Point(10, 149);\r
 +            this.label13.Name = "label13";\r
 +            this.label13.Size = new System.Drawing.Size(65, 13);\r
 +            this.label13.TabIndex = 71;\r
 +            this.label13.Text = "\8fo\97Í\83t\83@\83C\83\8b:";\r
++*/\r
+             this.txt_autoNameFormat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.txt_autoNameFormat.Location = new System.Drawing.Point(182, 233);\r
+             this.txt_autoNameFormat.Name = "txt_autoNameFormat";\r
+             this.txt_autoNameFormat.Size = new System.Drawing.Size(349, 21);\r
+             this.txt_autoNameFormat.TabIndex = 79;\r
+             this.ToolTip.SetToolTip(this.txt_autoNameFormat, "Define the format of the automatically named file.\r\ne.g  {source}_{title}_some-te" +\r
+                     "xt\r\n{source} {title} {chapters} will be automatically substituted for the input " +\r
+                     "sources values.");\r
+             this.txt_autoNameFormat.TextChanged += new System.EventHandler(this.txt_autoNameFormat_TextChanged);\r
              // \r
              // check_tooltip\r
              // \r
+             this.check_tooltip.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.check_tooltip.AutoSize = true;\r
              this.check_tooltip.BackColor = System.Drawing.Color.Transparent;\r
-             this.check_tooltip.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.check_tooltip.Location = new System.Drawing.Point(114, 41);\r
+             this.check_tooltip.Location = new System.Drawing.Point(108, 62);\r
              this.check_tooltip.Name = "check_tooltip";\r
-             this.check_tooltip.Size = new System.Drawing.Size(115, 17);\r
+             this.check_tooltip.Size = new System.Drawing.Size(117, 17);\r
              this.check_tooltip.TabIndex = 70;\r
 -            this.check_tooltip.Text = "Enable GUI tooltips";\r
 -            this.ToolTip.SetToolTip(this.check_tooltip, "Enable the built in tooltips for gui controls. (Requires Restart)");\r
 +            this.check_tooltip.Text = "\83c\81[\83\8b\83`\83b\83v\82ð\95\\8e¦\82·\82é";\r
-             this.ToolTip.SetToolTip(this.check_tooltip, "\83c\81[\83\8b\83`\83b\83v\82Ì\95\\8e¦/\94ñ\95\\8e¦\82ð\90Ý\92è\82µ\82Ü\82·");\r
++            this.ToolTip.SetToolTip(this.check_tooltip, "\83c\81[\83\8b\83`\83b\83v\82Ì\95\\8e¦/\94ñ\95\\8e¦\82ð\90Ý\92è\82µ\82Ü\82·\81i\94½\89f\82É\82Í\8dÄ\8bN\93®\82ª\95K\97v\81j");\r
              this.check_tooltip.UseVisualStyleBackColor = false;\r
              this.check_tooltip.CheckedChanged += new System.EventHandler(this.check_tooltip_CheckedChanged);\r
              // \r
+             // label5\r
+             // \r
+             this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.label5.AutoSize = true;\r
+             this.label5.Location = new System.Drawing.Point(105, 236);\r
+             this.label5.Name = "label5";\r
+             this.label5.Size = new System.Drawing.Size(45, 13);\r
+             this.label5.TabIndex = 80;\r
+             this.label5.Text = "Format:";\r
+             // \r
              // check_updateCheck\r
              // \r
+             this.check_updateCheck.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.check_updateCheck.AutoSize = true;\r
              this.check_updateCheck.BackColor = System.Drawing.Color.Transparent;\r
-             this.check_updateCheck.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.check_updateCheck.Location = new System.Drawing.Point(114, 18);\r
+             this.check_updateCheck.Location = new System.Drawing.Point(108, 14);\r
              this.check_updateCheck.Name = "check_updateCheck";\r
-             this.check_updateCheck.Size = new System.Drawing.Size(99, 17);\r
+             this.check_updateCheck.Size = new System.Drawing.Size(114, 17);\r
              this.check_updateCheck.TabIndex = 68;\r
 -            this.check_updateCheck.Text = "Check for updates";\r
 -            this.ToolTip.SetToolTip(this.check_updateCheck, "Enables the built in update checker. This check is performed when the application" +\r
 -                    " starts.");\r
 +            this.check_updateCheck.Text = "\83A\83b\83v\83f\81[\83g\82ð\8am\94F";\r
 +            this.ToolTip.SetToolTip(this.check_updateCheck, "\83A\83b\83v\83f\81[\83g\8am\94F\8b@\94\\82ð\97L\8cø\82É\82µ\82Ü\82·\81B\83A\83b\83v\83f\81[\83g\82Ì\8am\94F\82ÍHandBrake\82Ì\8bN\93®\8e\9e\82É\8ds\82í\82ê\82Ü\82·");\r
              this.check_updateCheck.UseVisualStyleBackColor = false;\r
              this.check_updateCheck.CheckedChanged += new System.EventHandler(this.check_updateCheck_CheckedChanged);\r
              // \r
-             // check_userDefaultSettings\r
+             // label10\r
              // \r
++/*\r
 +            this.check_userDefaultSettings.AutoSize = true;\r
 +            this.check_userDefaultSettings.BackColor = System.Drawing.Color.Transparent;\r
 +            this.check_userDefaultSettings.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_userDefaultSettings.Location = new System.Drawing.Point(114, 64);\r
 +            this.check_userDefaultSettings.Name = "check_userDefaultSettings";\r
 +            this.check_userDefaultSettings.Size = new System.Drawing.Size(112, 17);\r
 +            this.check_userDefaultSettings.TabIndex = 69;\r
 +            this.check_userDefaultSettings.Text = "\8cÂ\90l\90Ý\92è\82ð\83\8d\81[\83h\82·\82é";\r
 +            this.ToolTip.SetToolTip(this.check_userDefaultSettings, "\92Ê\8fí\82Ì\83v\83\8a\83Z\83b\83g\82æ\82è\82à\97D\90æ\82µ\82Ä\8cÂ\90l\90Ý\92è\82ð\83\8d\81[\83h\82µ\82Ü\82·");\r
 +            this.check_userDefaultSettings.UseVisualStyleBackColor = false;\r
 +            this.check_userDefaultSettings.CheckedChanged += new System.EventHandler(this.check_userDefaultSettings_CheckedChanged);\r
++*/\r
+             this.label10.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.label10.AutoSize = true;\r
+             this.label10.Location = new System.Drawing.Point(105, 209);\r
+             this.label10.Name = "label10";\r
+             this.label10.Size = new System.Drawing.Size(71, 13);\r
+             this.label10.TabIndex = 77;\r
+             this.label10.Text = "Default Path:";\r
              // \r
-             // label1\r
+             // btn_browse\r
              // \r
++/* HEAD\r
 +            this.label1.AutoSize = true;\r
 +            this.label1.BackColor = System.Drawing.Color.Transparent;\r
 +            this.label1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label1.Location = new System.Drawing.Point(21, 19);\r
 +            this.label1.Name = "label1";\r
 +            this.label1.Size = new System.Drawing.Size(44, 13);\r
 +            this.label1.TabIndex = 67;\r
 +            this.label1.Text = "\8bN\93®\8e\9e:";\r
++*/\r
+             this.btn_browse.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.btn_browse.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
+             this.btn_browse.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_browse.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
+             this.btn_browse.Location = new System.Drawing.Point(456, 204);\r
+             this.btn_browse.Name = "btn_browse";\r
+             this.btn_browse.Size = new System.Drawing.Size(75, 23);\r
+             this.btn_browse.TabIndex = 78;\r
+             this.btn_browse.Text = "Browse";\r
+             this.btn_browse.UseVisualStyleBackColor = true;\r
+             this.btn_browse.Click += new System.EventHandler(this.btn_browse_Click);\r
              // \r
              // label2\r
              // \r
+             this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
              this.label2.AutoSize = true;\r
-             this.label2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label2.Location = new System.Drawing.Point(12, 103);\r
+             this.label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label2.Location = new System.Drawing.Point(7, 98);\r
              this.label2.Name = "label2";\r
-             this.label2.Size = new System.Drawing.Size(66, 13);\r
+             this.label2.Size = new System.Drawing.Size(74, 13);\r
              this.label2.TabIndex = 54;\r
 -            this.label2.Text = "When Done:";\r
 +            this.label2.Text = "\8f\88\97\9d\8a®\97¹\8cã:";\r
              // \r
+             // label13\r
+             // \r
+             this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.label13.AutoSize = true;\r
+             this.label13.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label13.Location = new System.Drawing.Point(4, 164);\r
+             this.label13.Margin = new System.Windows.Forms.Padding(3, 5, 3, 0);\r
+             this.label13.Name = "label13";\r
+             this.label13.Size = new System.Drawing.Size(77, 13);\r
+             this.label13.TabIndex = 71;\r
+             this.label13.Text = "Output Files:";\r
+             // \r
+             // text_an_path\r
+             // \r
+             this.text_an_path.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.text_an_path.Location = new System.Drawing.Point(182, 206);\r
+             this.text_an_path.Name = "text_an_path";\r
+             this.text_an_path.Size = new System.Drawing.Size(253, 21);\r
+             this.text_an_path.TabIndex = 76;\r
+             this.ToolTip.SetToolTip(this.text_an_path, "This is the default location where your encoded files will be stored if \"Automati" +\r
+                     "cally name output files\" is enabled.");\r
+             this.text_an_path.TextChanged += new System.EventHandler(this.text_an_path_TextChanged);\r
+             // \r
              // tab_picture\r
              // \r
-             this.tab_picture.Controls.Add(this.txt_decomb);\r
-             this.tab_picture.Controls.Add(this.label3);\r
+             this.tab_picture.Controls.Add(this.tableLayoutPanel2);\r
              this.tab_picture.Location = new System.Drawing.Point(4, 22);\r
              this.tab_picture.Name = "tab_picture";\r
-             this.tab_picture.Size = new System.Drawing.Size(482, 259);\r
+             this.tab_picture.Padding = new System.Windows.Forms.Padding(10);\r
+             this.tab_picture.Size = new System.Drawing.Size(580, 334);\r
              this.tab_picture.TabIndex = 5;\r
 -            this.tab_picture.Text = "Picture";\r
 +            this.tab_picture.Text = "\89æ\91\9c";\r
              this.tab_picture.UseVisualStyleBackColor = true;\r
              // \r
-             // txt_decomb\r
-             // \r
-             this.txt_decomb.Location = new System.Drawing.Point(90, 16);\r
-             this.txt_decomb.Name = "txt_decomb";\r
-             this.txt_decomb.Size = new System.Drawing.Size(181, 21);\r
-             this.txt_decomb.TabIndex = 78;\r
-             this.ToolTip.SetToolTip(this.txt_decomb, "Default: 4:10:15:9:10:35:9");\r
-             this.txt_decomb.TextChanged += new System.EventHandler(this.txt_decomb_TextChanged);\r
+             // tableLayoutPanel2\r
+             // \r
+             this.tableLayoutPanel2.AutoSize = true;\r
+             this.tableLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;\r
+             this.tableLayoutPanel2.ColumnCount = 4;\r
+             this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+             this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+             this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel2.Controls.Add(this.label29, 0, 0);\r
+             this.tableLayoutPanel2.Controls.Add(this.btn_vlcPath, 3, 0);\r
+             this.tableLayoutPanel2.Controls.Add(this.txt_vlcPath, 2, 0);\r
+             this.tableLayoutPanel2.Location = new System.Drawing.Point(10, 10);\r
+             this.tableLayoutPanel2.Name = "tableLayoutPanel2";\r
+             this.tableLayoutPanel2.RowCount = 2;\r
+             this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+             this.tableLayoutPanel2.Size = new System.Drawing.Size(560, 28);\r
+             this.tableLayoutPanel2.TabIndex = 84;\r
+             // \r
+             // label29\r
+             // \r
+             this.label29.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.label29.AutoSize = true;\r
+             this.label29.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label29.Location = new System.Drawing.Point(3, 5);\r
+             this.label29.Margin = new System.Windows.Forms.Padding(3, 5, 3, 0);\r
+             this.label29.Name = "label29";\r
+             this.tableLayoutPanel2.SetRowSpan(this.label29, 2);\r
+             this.label29.Size = new System.Drawing.Size(59, 13);\r
+             this.label29.TabIndex = 79;\r
+             this.label29.Text = "VLC Path:";\r
+             // \r
+             // btn_vlcPath\r
+             // \r
+             this.btn_vlcPath.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.btn_vlcPath.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
+             this.btn_vlcPath.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_vlcPath.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
+             this.btn_vlcPath.Location = new System.Drawing.Point(489, 3);\r
+             this.btn_vlcPath.Name = "btn_vlcPath";\r
+             this.btn_vlcPath.Size = new System.Drawing.Size(68, 22);\r
+             this.btn_vlcPath.TabIndex = 83;\r
+             this.btn_vlcPath.Text = "Browse";\r
+             this.btn_vlcPath.UseVisualStyleBackColor = true;\r
+             this.btn_vlcPath.Click += new System.EventHandler(this.btn_vlcPath_Click);\r
+             // \r
+             // txt_vlcPath\r
+             // \r
+             this.txt_vlcPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.txt_vlcPath.Location = new System.Drawing.Point(88, 3);\r
+             this.txt_vlcPath.Name = "txt_vlcPath";\r
+             this.txt_vlcPath.Size = new System.Drawing.Size(395, 21);\r
+             this.txt_vlcPath.TabIndex = 81;\r
+             this.ToolTip.SetToolTip(this.txt_vlcPath, "The path where VLC is installed on this system.\r\nThis is used for the video previ" +\r
+                     "ew feature.");\r
+             this.txt_vlcPath.TextChanged += new System.EventHandler(this.txt_vlcPath_TextChanged);\r
+             // \r
+             // tab_audio_sub\r
+             // \r
+             this.tab_audio_sub.Controls.Add(this.label31);\r
+             this.tab_audio_sub.Controls.Add(this.label15);\r
+             this.tab_audio_sub.Controls.Add(this.radio_foreignAndSubs);\r
+             this.tab_audio_sub.Controls.Add(this.drop_preferredLang);\r
+             this.tab_audio_sub.Controls.Add(this.radio_dub);\r
+             this.tab_audio_sub.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_audio_sub.Name = "tab_audio_sub";\r
+             this.tab_audio_sub.Padding = new System.Windows.Forms.Padding(3);\r
+             this.tab_audio_sub.Size = new System.Drawing.Size(580, 334);\r
+             this.tab_audio_sub.TabIndex = 6;\r
+             this.tab_audio_sub.Text = "Audio / Subtitles";\r
+             this.tab_audio_sub.UseVisualStyleBackColor = true;\r
+             // \r
+             // label31\r
+             // \r
+             this.label31.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.label31.AutoSize = true;\r
+             this.label31.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label31.Location = new System.Drawing.Point(16, 19);\r
+             this.label31.Margin = new System.Windows.Forms.Padding(3, 5, 3, 0);\r
+             this.label31.Name = "label31";\r
+             this.label31.Size = new System.Drawing.Size(52, 13);\r
+             this.label31.TabIndex = 91;\r
+             this.label31.Text = "Actions:";\r
              // \r
-             // label3\r
+             // label15\r
              // \r
-             this.label3.AutoSize = true;\r
-             this.label3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label3.Location = new System.Drawing.Point(21, 19);\r
-             this.label3.Name = "label3";\r
-             this.label3.Size = new System.Drawing.Size(63, 13);\r
-             this.label3.TabIndex = 77;\r
-             this.label3.Text = "Decomb:";\r
+             this.label15.AutoSize = true;\r
+             this.label15.Location = new System.Drawing.Point(87, 19);\r
+             this.label15.Name = "label15";\r
+             this.label15.Size = new System.Drawing.Size(107, 13);\r
+             this.label15.TabIndex = 88;\r
+             this.label15.Text = "Preferred Language:";\r
+             // \r
+             // radio_foreignAndSubs\r
+             // \r
+             this.radio_foreignAndSubs.AutoSize = true;\r
+             this.radio_foreignAndSubs.Location = new System.Drawing.Point(200, 76);\r
+             this.radio_foreignAndSubs.Name = "radio_foreignAndSubs";\r
+             this.radio_foreignAndSubs.Size = new System.Drawing.Size(358, 17);\r
+             this.radio_foreignAndSubs.TabIndex = 90;\r
+             this.radio_foreignAndSubs.TabStop = true;\r
+             this.radio_foreignAndSubs.Text = "Use foreign language audio and add first preferred language subtitle.";\r
+             this.ToolTip.SetToolTip(this.radio_foreignAndSubs, "Use foreign language audio and add first subtitle track of prefered language.\r\n");\r
+             this.radio_foreignAndSubs.UseVisualStyleBackColor = true;\r
+             this.radio_foreignAndSubs.CheckedChanged += new System.EventHandler(this.radio_foreignAndSubs_CheckedChanged);\r
+             // \r
+             // drop_preferredLang\r
+             // \r
+             this.drop_preferredLang.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.drop_preferredLang.FormattingEnabled = true;\r
+             this.drop_preferredLang.Location = new System.Drawing.Point(200, 16);\r
+             this.drop_preferredLang.Name = "drop_preferredLang";\r
+             this.drop_preferredLang.Size = new System.Drawing.Size(118, 21);\r
+             this.drop_preferredLang.TabIndex = 87;\r
+             this.ToolTip.SetToolTip(this.drop_preferredLang, "The number of processor\'s / processor cores. Unless your having problems, leave o" +\r
+                     "n Automatic.");\r
+             this.drop_preferredLang.SelectedIndexChanged += new System.EventHandler(this.drop_preferredLang_SelectedIndexChanged);\r
+             // \r
+             // radio_dub\r
+             // \r
+             this.radio_dub.AutoSize = true;\r
+             this.radio_dub.Location = new System.Drawing.Point(200, 53);\r
+             this.radio_dub.Name = "radio_dub";\r
+             this.radio_dub.Size = new System.Drawing.Size(164, 17);\r
+             this.radio_dub.TabIndex = 89;\r
+             this.radio_dub.TabStop = true;\r
+             this.radio_dub.Text = "DUB Foreign Language Audio";\r
+             this.ToolTip.SetToolTip(this.radio_dub, "This option will select your prefered language of audio for the source if one exi" +\r
+                     "sts.");\r
+             this.radio_dub.UseVisualStyleBackColor = true;\r
+             this.radio_dub.CheckedChanged += new System.EventHandler(this.radio_dub_CheckedChanged);\r
              // \r
              // tab_cli\r
              // \r
              this.tab_cli.Text = "CLI";\r
              this.tab_cli.UseVisualStyleBackColor = true;\r
              // \r
-             // label15\r
-             // \r
+             // tableLayoutPanel3\r
+             // \r
+             this.tableLayoutPanel3.AutoSize = true;\r
+             this.tableLayoutPanel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;\r
+             this.tableLayoutPanel3.ColumnCount = 7;\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+             this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel3.Controls.Add(this.label12, 0, 0);\r
+             this.tableLayoutPanel3.Controls.Add(this.check_cli_minimized, 2, 0);\r
+             this.tableLayoutPanel3.Controls.Add(this.label9, 0, 4);\r
+             this.tableLayoutPanel3.Controls.Add(this.btn_saveLog, 6, 7);\r
+             this.tableLayoutPanel3.Controls.Add(this.check_logsInSpecifiedLocation, 2, 6);\r
+             this.tableLayoutPanel3.Controls.Add(this.Label11, 2, 1);\r
+             this.tableLayoutPanel3.Controls.Add(this.check_saveLogWithVideo, 2, 5);\r
+             this.tableLayoutPanel3.Controls.Add(this.Label4, 2, 2);\r
+             this.tableLayoutPanel3.Controls.Add(this.label3, 2, 4);\r
+             this.tableLayoutPanel3.Controls.Add(this.text_logPath, 3, 7);\r
+             this.tableLayoutPanel3.Controls.Add(this.cb_logVerboseLvl, 3, 4);\r
+             this.tableLayoutPanel3.Controls.Add(this.drp_Priority, 3, 2);\r
+             this.tableLayoutPanel3.Controls.Add(this.drp_processors, 3, 1);\r
+             this.tableLayoutPanel3.Controls.Add(this.btn_viewLogs, 2, 8);\r
+             this.tableLayoutPanel3.Controls.Add(this.btn_clearLogs, 4, 8);\r
+             this.tableLayoutPanel3.Controls.Add(this.label14, 2, 7);\r
+             this.tableLayoutPanel3.Location = new System.Drawing.Point(10, 10);\r
+             this.tableLayoutPanel3.Name = "tableLayoutPanel3";\r
+             this.tableLayoutPanel3.RowCount = 10;\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel3.Size = new System.Drawing.Size(560, 227);\r
+             this.tableLayoutPanel3.TabIndex = 62;\r
+             // \r
++/* \r
 +            this.label15.AutoSize = true;\r
 +            this.label15.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label15.Location = new System.Drawing.Point(195, 197);\r
 +            this.label15.Name = "label15";\r
 +            this.label15.Size = new System.Drawing.Size(36, 13);\r
 +            this.label15.TabIndex = 84;\r
 +            this.label15.Text = "\82à\82µ\82­\82Í";\r
++*/\r
+             // label12\r
              // \r
-             // check_saveLogWithVideo\r
+             this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.label12.AutoSize = true;\r
+             this.label12.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label12.Location = new System.Drawing.Point(11, 5);\r
+             this.label12.Margin = new System.Windows.Forms.Padding(3, 5, 3, 0);\r
+             this.label12.Name = "label12";\r
+             this.tableLayoutPanel3.SetRowSpan(this.label12, 2);\r
+             this.label12.Size = new System.Drawing.Size(28, 13);\r
+             this.label12.TabIndex = 75;\r
+             this.label12.Text = "CLI:";\r
              // \r
 -            this.ToolTip.SetToolTip(this.check_cli_minimized, "Starts a CLI window minimized.");\r
++/* HEAD\r
 +            this.check_saveLogWithVideo.AutoSize = true;\r
 +            this.check_saveLogWithVideo.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_saveLogWithVideo.Location = new System.Drawing.Point(71, 177);\r
 +            this.check_saveLogWithVideo.Name = "check_saveLogWithVideo";\r
 +            this.check_saveLogWithVideo.Size = new System.Drawing.Size(233, 17);\r
 +            this.check_saveLogWithVideo.TabIndex = 83;\r
 +            this.check_saveLogWithVideo.Text = "\8cÂ\95Ê\82Ì\83G\83\93\83R\81[\83h\83\8d\83O\82ð\93®\89æ\83t\83@\83C\83\8b\82Æ\93¯\82\8fê\8f\8a\82É\95Û\91¶";\r
 +            this.ToolTip.SetToolTip(this.check_saveLogWithVideo, "\83G\83\93\83R\81[\83h\83\8d\83O\82Ì\83R\83s\81[\82ð\93®\89æ\82Ì\95Û\91\90æ\82Æ\93¯\82\8fê\8f\8a\82É\95Û\91\82µ\82Ü\82·");\r
 +            this.check_saveLogWithVideo.UseVisualStyleBackColor = true;\r
 +            this.check_saveLogWithVideo.CheckedChanged += new System.EventHandler(this.check_saveLogWithVideo_CheckedChanged);\r
++*/\r
+             // check_cli_minimized\r
+             // \r
+             this.check_cli_minimized.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_cli_minimized.AutoSize = true;\r
+             this.tableLayoutPanel3.SetColumnSpan(this.check_cli_minimized, 5);\r
+             this.check_cli_minimized.Location = new System.Drawing.Point(65, 3);\r
+             this.check_cli_minimized.Name = "check_cli_minimized";\r
+             this.check_cli_minimized.Size = new System.Drawing.Size(137, 17);\r
+             this.check_cli_minimized.TabIndex = 76;\r
+             this.check_cli_minimized.Text = "Start window minimized";\r
++            this.ToolTip.SetToolTip(this.check_cli_minimized, "\83R\83}\83\93\83h\83E\83B\83\93\83h\83E\82ð\8bN\93®\8e\9e\82É\8dÅ\8f¬\89»\82·\82é");\r
+             this.check_cli_minimized.UseVisualStyleBackColor = true;\r
+             this.check_cli_minimized.CheckedChanged += new System.EventHandler(this.check_cli_minimized_CheckedChanged);\r
+             // \r
+             // label9\r
+             // \r
+             this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.label9.AutoSize = true;\r
+             this.label9.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label9.Location = new System.Drawing.Point(3, 102);\r
+             this.label9.Margin = new System.Windows.Forms.Padding(3, 5, 3, 0);\r
+             this.label9.Name = "label9";\r
+             this.tableLayoutPanel3.SetRowSpan(this.label9, 2);\r
+             this.label9.Size = new System.Drawing.Size(36, 13);\r
+             this.label9.TabIndex = 77;\r
+             this.label9.Text = "Logs:";\r
              // \r
              // btn_saveLog\r
              // \r
+             this.btn_saveLog.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.btn_saveLog.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
-             this.btn_saveLog.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_saveLog.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_saveLog.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_saveLog.Location = new System.Drawing.Point(343, 218);\r
+             this.btn_saveLog.Location = new System.Drawing.Point(480, 173);\r
              this.btn_saveLog.Name = "btn_saveLog";\r
-             this.btn_saveLog.Size = new System.Drawing.Size(68, 22);\r
+             this.btn_saveLog.Size = new System.Drawing.Size(77, 22);\r
              this.btn_saveLog.TabIndex = 82;\r
 -            this.btn_saveLog.Text = "Browse";\r
 +            this.btn_saveLog.Text = "\83u\83\89\83E\83Y...";\r
              this.btn_saveLog.UseVisualStyleBackColor = true;\r
              this.btn_saveLog.Click += new System.EventHandler(this.btn_saveLog_Click);\r
              // \r
-             // label14\r
+             // check_logsInSpecifiedLocation\r
              // \r
++/* HEAD\r
 +            this.label14.AutoSize = true;\r
 +            this.label14.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label14.Location = new System.Drawing.Point(68, 221);\r
 +            this.label14.Name = "label14";\r
 +            this.label14.Size = new System.Drawing.Size(65, 13);\r
 +            this.label14.TabIndex = 81;\r
 +            this.label14.Text = "\83\8d\83O\82Ì\95Û\91\90æ:";\r
++*/\r
+             this.check_logsInSpecifiedLocation.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_logsInSpecifiedLocation.AutoSize = true;\r
+             this.tableLayoutPanel3.SetColumnSpan(this.check_logsInSpecifiedLocation, 5);\r
+             this.check_logsInSpecifiedLocation.Location = new System.Drawing.Point(65, 150);\r
+             this.check_logsInSpecifiedLocation.Name = "check_logsInSpecifiedLocation";\r
+             this.check_logsInSpecifiedLocation.Size = new System.Drawing.Size(306, 17);\r
+             this.check_logsInSpecifiedLocation.TabIndex = 87;\r
+             this.check_logsInSpecifiedLocation.Text = "Put a copy of individual encode logs in a specified location:";\r
+             this.ToolTip.SetToolTip(this.check_logsInSpecifiedLocation, "Place a copy of the encode log in the same folder as the encoded movie.");\r
+             this.check_logsInSpecifiedLocation.UseVisualStyleBackColor = true;\r
+             this.check_logsInSpecifiedLocation.CheckedChanged += new System.EventHandler(this.check_logsInSpecifiedLocation_CheckedChanged);\r
              // \r
-             // text_logPath\r
+             // Label11\r
              // \r
++/* HEAD\r
 +            this.text_logPath.Location = new System.Drawing.Point(135, 218);\r
 +            this.text_logPath.Name = "text_logPath";\r
 +            this.text_logPath.Size = new System.Drawing.Size(202, 21);\r
 +            this.text_logPath.TabIndex = 80;\r
 +            this.ToolTip.SetToolTip(this.text_logPath, "\83f\83t\83H\83\8b\83g\82Ì\95Û\91\90æ\82Í\8fo\97Í\83t\83@\83C\83\8b\82Ì\8e©\93®\95Û\91\90æ\82Æ\93¯\82\82Å\82·");\r
 +            this.text_logPath.TextChanged += new System.EventHandler(this.text_logPath_TextChanged);\r
+             this.Label11.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.Label11.AutoSize = true;\r
+             this.Label11.BackColor = System.Drawing.Color.Transparent;\r
+             this.Label11.Location = new System.Drawing.Point(65, 30);\r
+             this.Label11.Name = "Label11";\r
+             this.Label11.Size = new System.Drawing.Size(87, 13);\r
+             this.Label11.TabIndex = 40;\r
+             this.Label11.Text = "Processor cores:";\r
              // \r
-             // check_keepLogs\r
+             // check_saveLogWithVideo\r
              // \r
++/* HEAD\r
 +            this.check_keepLogs.AutoSize = true;\r
 +            this.check_keepLogs.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_keepLogs.Location = new System.Drawing.Point(71, 135);\r
 +            this.check_keepLogs.Name = "check_keepLogs";\r
 +            this.check_keepLogs.Size = new System.Drawing.Size(134, 17);\r
 +            this.check_keepLogs.TabIndex = 79;\r
 +            this.check_keepLogs.Text = "\8cÂ\95Ê\82Ì\83G\83\93\83R\81[\83h\83\8d\83O\82ð\95Û\91¶";\r
 +            this.ToolTip.SetToolTip(this.check_keepLogs, "On\82É\82·\82é\82Æ\81A\83G\83\93\83R\81[\83h\82Ì\8a®\97¹\8cã\82É\83G\83\93\83R\81[\83h\83\8d\83O\82ð\8e©\93®\95Û\91\82µ\82Ü\82·");\r
 +            this.check_keepLogs.UseVisualStyleBackColor = true;\r
 +            this.check_keepLogs.CheckedChanged += new System.EventHandler(this.check_keepLogs_CheckedChanged);\r
++*/\r
+             this.check_saveLogWithVideo.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_saveLogWithVideo.AutoSize = true;\r
+             this.tableLayoutPanel3.SetColumnSpan(this.check_saveLogWithVideo, 5);\r
+             this.check_saveLogWithVideo.Location = new System.Drawing.Point(65, 127);\r
+             this.check_saveLogWithVideo.Name = "check_saveLogWithVideo";\r
+             this.check_saveLogWithVideo.Size = new System.Drawing.Size(382, 17);\r
+             this.check_saveLogWithVideo.TabIndex = 83;\r
+             this.check_saveLogWithVideo.Text = "Put a copy of individual encode logs in the same location as encoded video";\r
+             this.ToolTip.SetToolTip(this.check_saveLogWithVideo, "Place a copy of the encode log in the same folder as the encoded movie.");\r
+             this.check_saveLogWithVideo.UseVisualStyleBackColor = true;\r
+             this.check_saveLogWithVideo.CheckedChanged += new System.EventHandler(this.check_saveLogWithVideo_CheckedChanged);\r
              // \r
-             // label9\r
+             // Label4\r
              // \r
++/* HEAD\r
 +            this.label9.AutoSize = true;\r
 +            this.label9.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.label9.Location = new System.Drawing.Point(12, 136);\r
 +            this.label9.Name = "label9";\r
 +            this.label9.Size = new System.Drawing.Size(28, 13);\r
 +            this.label9.TabIndex = 77;\r
 +            this.label9.Text = "\83\8d\83O:";\r
++*/\r
+             this.Label4.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.Label4.AutoSize = true;\r
+             this.Label4.BackColor = System.Drawing.Color.Transparent;\r
+             this.Label4.Location = new System.Drawing.Point(65, 57);\r
+             this.Label4.Name = "Label4";\r
+             this.Label4.Size = new System.Drawing.Size(70, 13);\r
+             this.Label4.TabIndex = 42;\r
+             this.Label4.Text = "Priority level:";\r
              // \r
-             // check_cli_minimized\r
+             // label3\r
              // \r
++/* HEAD\r
 +            this.check_cli_minimized.AutoSize = true;\r
 +            this.check_cli_minimized.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_cli_minimized.Location = new System.Drawing.Point(71, 18);\r
 +            this.check_cli_minimized.Name = "check_cli_minimized";\r
 +            this.check_cli_minimized.Size = new System.Drawing.Size(143, 17);\r
 +            this.check_cli_minimized.TabIndex = 76;\r
 +            this.check_cli_minimized.Text = "\83R\83}\83\93\83h\83E\83B\83\93\83h\83E\82ð\8dÅ\8f¬\89»\82·\82é";\r
 +            this.ToolTip.SetToolTip(this.check_cli_minimized, "On\82É\82·\82é\82Æ\81A\83R\83}\83\93\83h\83E\83B\83\93\83h\83E\82ð\8dÅ\8f¬\89»\82µ\82½\8fó\91Ô\82ÅCLI\82ð\8bN\93®\82µ\82Ü\82·");\r
 +            this.check_cli_minimized.UseVisualStyleBackColor = true;\r
 +            this.check_cli_minimized.CheckedChanged += new System.EventHandler(this.check_cli_minimized_CheckedChanged);\r
++*/\r
+             this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.label3.AutoSize = true;\r
+             this.label3.BackColor = System.Drawing.Color.Transparent;\r
+             this.label3.Location = new System.Drawing.Point(65, 104);\r
+             this.label3.Name = "label3";\r
+             this.label3.Size = new System.Drawing.Size(101, 13);\r
+             this.label3.TabIndex = 85;\r
+             this.label3.Text = "Log verbosity level:";\r
              // \r
-             // label12\r
+             // text_logPath\r
              // \r
-             this.label12.AutoSize = true;\r
-             this.label12.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label12.Location = new System.Drawing.Point(21, 19);\r
-             this.label12.Name = "label12";\r
-             this.label12.Size = new System.Drawing.Size(32, 13);\r
-             this.label12.TabIndex = 75;\r
-             this.label12.Text = "CLI:";\r
+             this.text_logPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));\r
+             this.tableLayoutPanel3.SetColumnSpan(this.text_logPath, 3);\r
+             this.text_logPath.Location = new System.Drawing.Point(172, 173);\r
+             this.text_logPath.Name = "text_logPath";\r
+             this.text_logPath.Size = new System.Drawing.Size(302, 21);\r
+             this.text_logPath.TabIndex = 80;\r
+             this.ToolTip.SetToolTip(this.text_logPath, "The default location where auto named files are stored.");\r
+             this.text_logPath.TextChanged += new System.EventHandler(this.text_logPath_TextChanged);\r
+             // \r
+             // cb_logVerboseLvl\r
+             // \r
+             this.cb_logVerboseLvl.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.tableLayoutPanel3.SetColumnSpan(this.cb_logVerboseLvl, 4);\r
+             this.cb_logVerboseLvl.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.cb_logVerboseLvl.FormattingEnabled = true;\r
+             this.cb_logVerboseLvl.Items.AddRange(new object[] {\r
+             "0",\r
+             "1",\r
+             "2"});\r
+             this.cb_logVerboseLvl.Location = new System.Drawing.Point(172, 100);\r
+             this.cb_logVerboseLvl.Name = "cb_logVerboseLvl";\r
+             this.cb_logVerboseLvl.Size = new System.Drawing.Size(111, 21);\r
+             this.cb_logVerboseLvl.TabIndex = 86;\r
+             this.ToolTip.SetToolTip(this.cb_logVerboseLvl, "Activity Log Verbosity Level");\r
+             this.cb_logVerboseLvl.SelectedIndexChanged += new System.EventHandler(this.cb_logVerboseLvl_SelectedIndexChanged);\r
              // \r
              // drp_Priority\r
              // \r
              this.drp_Priority.Name = "drp_Priority";\r
              this.drp_Priority.Size = new System.Drawing.Size(111, 21);\r
              this.drp_Priority.TabIndex = 43;\r
 -            this.ToolTip.SetToolTip(this.drp_Priority, "Set the application priority level for the CLI. \r\nIt\'s best to leave this on Belo" +\r
 -                    "w Normal if you wish to use your system whilst encoding with HandBrake.\r\n");\r
 +            this.ToolTip.SetToolTip(this.drp_Priority, "CLI\82Ì\8eÀ\8ds\97D\90æ\93x\82ð\8ew\92è\82µ\82Ü\82·\81B\r\n\82à\82µHandBrake\82Å\82Ì\83G\83\93\83R\81[\83h\8dì\8bÆ\92\86\82É\82Ù\82©\82Ì\8dì\8bÆ\82ð\8ds\82¤\82È\82ç\81A\81uBelow Normal\81v\82ð\91I\91ð\82·\82é\82Æ\82æ\82¢\82Å\82µ\82å\82¤");\r
              this.drp_Priority.SelectedIndexChanged += new System.EventHandler(this.drp_Priority_SelectedIndexChanged);\r
              // \r
++/* HEAD\r
 +            // Label11\r
 +            // \r
 +            this.Label11.AutoSize = true;\r
 +            this.Label11.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label11.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label11.Location = new System.Drawing.Point(68, 48);\r
 +            this.Label11.Name = "Label11";\r
 +            this.Label11.Size = new System.Drawing.Size(61, 13);\r
 +            this.Label11.TabIndex = 40;\r
 +            this.Label11.Text = "CPU\83R\83A\90\94:";\r
 +            // \r
++*/\r
              // drp_processors\r
              // \r
+             this.drp_processors.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.tableLayoutPanel3.SetColumnSpan(this.drp_processors, 4);\r
              this.drp_processors.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
-             this.drp_processors.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.drp_processors.FormattingEnabled = true;\r
              this.drp_processors.Items.AddRange(new object[] {\r
              "Automatic",\r
              this.drp_processors.Name = "drp_processors";\r
              this.drp_processors.Size = new System.Drawing.Size(111, 21);\r
              this.drp_processors.TabIndex = 41;\r
 -            this.ToolTip.SetToolTip(this.drp_processors, "The number of processor\'s / processor cores. Unless your having problems, leave o" +\r
 -                    "n Automatic.");\r
 +            this.ToolTip.SetToolTip(this.drp_processors, "\83v\83\8d\83Z\83b\83T\82Ì\83R\83A\90\94\82ð\8ew\92è\82µ\82Ü\82·\81B\96â\91è\82ª\96³\82¢\8cÀ\82è\81A\81uAutomatic\81v\82ð\91I\91ð\82µ\82Ä\82­\82¾\82³\82¢");\r
              this.drp_processors.SelectedIndexChanged += new System.EventHandler(this.drp_processors_SelectedIndexChanged);\r
              // \r
-             // Label4\r
-             // \r
+             // btn_viewLogs\r
+             // \r
+             this.btn_viewLogs.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.tableLayoutPanel3.SetColumnSpan(this.btn_viewLogs, 2);\r
+             this.btn_viewLogs.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_viewLogs.ForeColor = System.Drawing.Color.DarkOrange;\r
+             this.btn_viewLogs.Location = new System.Drawing.Point(65, 201);\r
+             this.btn_viewLogs.Name = "btn_viewLogs";\r
+             this.btn_viewLogs.Size = new System.Drawing.Size(139, 23);\r
+             this.btn_viewLogs.TabIndex = 89;\r
+             this.btn_viewLogs.Text = "View Log Directory";\r
+             this.btn_viewLogs.UseVisualStyleBackColor = true;\r
+             this.btn_viewLogs.Click += new System.EventHandler(this.btn_viewLogs_Click);\r
+             // \r
+             // btn_clearLogs\r
+             // \r
+             this.btn_clearLogs.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.btn_clearLogs.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.btn_clearLogs.ForeColor = System.Drawing.Color.DarkOrange;\r
+             this.btn_clearLogs.Location = new System.Drawing.Point(210, 201);\r
+             this.btn_clearLogs.Name = "btn_clearLogs";\r
+             this.btn_clearLogs.Size = new System.Drawing.Size(135, 23);\r
+             this.btn_clearLogs.TabIndex = 88;\r
+             this.btn_clearLogs.Text = "Clear Log History";\r
+             this.btn_clearLogs.UseVisualStyleBackColor = true;\r
+             this.btn_clearLogs.Click += new System.EventHandler(this.btn_clearLogs_Click);\r
+             // \r
++/* HEAD\r
 +            this.Label4.AutoSize = true;\r
 +            this.Label4.BackColor = System.Drawing.Color.Transparent;\r
 +            this.Label4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.Label4.Location = new System.Drawing.Point(68, 75);\r
 +            this.Label4.Name = "Label4";\r
 +            this.Label4.Size = new System.Drawing.Size(70, 13);\r
 +            this.Label4.TabIndex = 42;\r
 +            this.Label4.Text = "\8f\88\97\9d\82Ì\97D\90æ\93x:";\r
++*/\r
+             // label14\r
+             // \r
+             this.label14.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.label14.AutoSize = true;\r
+             this.label14.Location = new System.Drawing.Point(65, 177);\r
+             this.label14.Name = "label14";\r
+             this.label14.Size = new System.Drawing.Size(53, 13);\r
+             this.label14.TabIndex = 81;\r
 -            this.label14.Text = "Log Path:";\r
++            this.label14.Text = "\83\8d\83O\82Ì\95Û\91\90æ:";\r
              // \r
              // tab_advanced\r
              // \r
-             this.tab_advanced.Controls.Add(this.lbl_appcastUnstable);\r
-             this.tab_advanced.Controls.Add(this.check_snapshot);\r
-             this.tab_advanced.Controls.Add(this.btn_drive_detect);\r
-             this.tab_advanced.Controls.Add(this.label6);\r
+             this.tab_advanced.Controls.Add(this.tableLayoutPanel4);\r
              this.tab_advanced.Location = new System.Drawing.Point(4, 22);\r
              this.tab_advanced.Name = "tab_advanced";\r
-             this.tab_advanced.Padding = new System.Windows.Forms.Padding(3);\r
-             this.tab_advanced.Size = new System.Drawing.Size(482, 259);\r
+             this.tab_advanced.Padding = new System.Windows.Forms.Padding(10);\r
+             this.tab_advanced.Size = new System.Drawing.Size(580, 334);\r
              this.tab_advanced.TabIndex = 4;\r
 -            this.tab_advanced.Text = "Advanced / Other";\r
++/* HEAD\r
 +            this.tab_advanced.Text = "\92Ç\89Á\90Ý\92è";\r
 +            this.tab_advanced.UseVisualStyleBackColor = true;\r
 +            // \r
 +            // lbl_appcastUnstable\r
 +            // \r
 +            this.lbl_appcastUnstable.AutoSize = true;\r
 +            this.lbl_appcastUnstable.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.lbl_appcastUnstable.Location = new System.Drawing.Point(6, 42);\r
 +            this.lbl_appcastUnstable.Name = "lbl_appcastUnstable";\r
 +            this.lbl_appcastUnstable.Size = new System.Drawing.Size(62, 13);\r
 +            this.lbl_appcastUnstable.TabIndex = 81;\r
 +            this.lbl_appcastUnstable.Text = "\83A\83b\83v\83f\81[\83g:";\r
 +            // \r
 +            // check_snapshot\r
 +            // \r
 +            this.check_snapshot.AutoSize = true;\r
 +            this.check_snapshot.BackColor = System.Drawing.Color.Transparent;\r
 +            this.check_snapshot.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.check_snapshot.Location = new System.Drawing.Point(76, 41);\r
 +            this.check_snapshot.Name = "check_snapshot";\r
 +            this.check_snapshot.Size = new System.Drawing.Size(153, 17);\r
 +            this.check_snapshot.TabIndex = 80;\r
 +            this.check_snapshot.Text = "\8aJ\94­\94Å\82Ì\83A\83b\83v\83f\81[\83g\82à\8am\94F\82·\82é";\r
 +            this.ToolTip.SetToolTip(this.check_snapshot, "\82±\82ê\82ðOn\82É\82·\82é\82Æ\81A\8dÅ\90V\82Ì\8aJ\94­\94Å\82ª\91\8dÝ\82·\82é\82©\82Ç\82¤\82©\8am\94F\82·\82é\82æ\82¤\82É\82È\82è\82Ü\82·\81B\r\n\8aJ\94­\94Å\82Í\95s\88À\92è\82Å\82 \82è\81A\96â\91è\82ª\94­\90\82·\82é\89Â\94\\90«\82ª\82 \82è\82Ü\82·");\r
 +            this.check_snapshot.UseVisualStyleBackColor = false;\r
 +            this.check_snapshot.CheckedChanged += new System.EventHandler(this.check_snapshot_CheckedChanged);\r
 +            // \r
 +            // btn_drive_detect\r
 +            // \r
 +            this.btn_drive_detect.AutoSize = true;\r
 +            this.btn_drive_detect.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
 +            this.btn_drive_detect.Location = new System.Drawing.Point(76, 18);\r
 +            this.btn_drive_detect.Name = "btn_drive_detect";\r
 +            this.btn_drive_detect.Size = new System.Drawing.Size(327, 17);\r
 +            this.btn_drive_detect.TabIndex = 72;\r
 +            this.btn_drive_detect.Text = "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82Ì\83h\83\8d\83b\83v\83_\83E\83\93\83\81\83j\83\85\81[\82©\82çDVD\83h\83\89\83C\83u\82Ö\82Ì\83A\83N\83Z\83X\82ð\89Â\94\\82É";\r
 +            this.ToolTip.SetToolTip(this.btn_drive_detect, "\81u\95Ï\8a·\8c³\81v\83{\83^\83\93\82©\82çDVD\82ð\8c\9f\8fo\82Å\82«\82é\82æ\82¤\82É\82µ\82Ü\82·\81B\r\n\82±\82Ì\8d\80\96Ú\82ðOn\82É\82·\82é\82Æ\81ADVD\82ª\81u\95Ï\8a·\8c³\81v\83\81\83j\83\85\81[\82É\95\\8e¦\82³\82ê\82é\82æ\82¤\82É\82È\82è\82Ü\82·");\r
 +            this.btn_drive_detect.UseVisualStyleBackColor = true;\r
 +            this.btn_drive_detect.CheckedChanged += new System.EventHandler(this.btn_drive_detect_CheckedChanged);\r
++*/\r
++            this.tab_advanced.Text = "\92Ç\89Á\90Ý\92è";\r
+             this.tab_advanced.UseVisualStyleBackColor = true;\r
+             // \r
+             // tableLayoutPanel4\r
+             // \r
+             this.tableLayoutPanel4.AutoSize = true;\r
+             this.tableLayoutPanel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;\r
+             this.tableLayoutPanel4.ColumnCount = 6;\r
+             this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+             this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+             this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+             this.tableLayoutPanel4.Controls.Add(this.check_promptOnUnmatchingQueries, 3, 4);\r
+             this.tableLayoutPanel4.Controls.Add(this.check_dvdnav, 2, 10);\r
+             this.tableLayoutPanel4.Controls.Add(this.check_trayStatusAlerts, 3, 2);\r
+             this.tableLayoutPanel4.Controls.Add(this.label32, 0, 10);\r
+             this.tableLayoutPanel4.Controls.Add(this.label6, 0, 0);\r
+             this.tableLayoutPanel4.Controls.Add(this.drop_x264step, 4, 8);\r
+             this.tableLayoutPanel4.Controls.Add(this.label30, 2, 8);\r
+             this.tableLayoutPanel4.Controls.Add(this.check_mainMinimize, 2, 1);\r
+             this.tableLayoutPanel4.Controls.Add(this.label28, 0, 8);\r
+             this.tableLayoutPanel4.Controls.Add(this.check_queryEditorTab, 2, 3);\r
+             this.tableLayoutPanel4.Controls.Add(this.check_disablePresetNotification, 2, 5);\r
+             this.tableLayoutPanel4.Controls.Add(this.check_inGuiStatus, 2, 6);\r
+             this.tableLayoutPanel4.Location = new System.Drawing.Point(10, 10);\r
+             this.tableLayoutPanel4.Name = "tableLayoutPanel4";\r
+             this.tableLayoutPanel4.RowCount = 12;\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+             this.tableLayoutPanel4.Size = new System.Drawing.Size(395, 228);\r
+             this.tableLayoutPanel4.TabIndex = 62;\r
+             // \r
+             // check_promptOnUnmatchingQueries\r
+             // \r
+             this.check_promptOnUnmatchingQueries.AutoSize = true;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.check_promptOnUnmatchingQueries, 3);\r
+             this.check_promptOnUnmatchingQueries.Location = new System.Drawing.Point(87, 72);\r
+             this.check_promptOnUnmatchingQueries.Name = "check_promptOnUnmatchingQueries";\r
+             this.check_promptOnUnmatchingQueries.Size = new System.Drawing.Size(305, 17);\r
+             this.check_promptOnUnmatchingQueries.TabIndex = 63;\r
+             this.check_promptOnUnmatchingQueries.Text = "Prompt when a manual query does not match GUI settings";\r
+             this.check_promptOnUnmatchingQueries.UseVisualStyleBackColor = true;\r
+             this.check_promptOnUnmatchingQueries.CheckedChanged += new System.EventHandler(this.check_promptOnUnmatchingQueries_CheckedChanged);\r
+             // \r
+             // check_dvdnav\r
+             // \r
+             this.check_dvdnav.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_dvdnav.AutoSize = true;\r
+             this.check_dvdnav.BackColor = System.Drawing.Color.Transparent;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.check_dvdnav, 4);\r
+             this.check_dvdnav.Location = new System.Drawing.Point(67, 208);\r
+             this.check_dvdnav.Name = "check_dvdnav";\r
+             this.check_dvdnav.Size = new System.Drawing.Size(276, 17);\r
+             this.check_dvdnav.TabIndex = 90;\r
+             this.check_dvdnav.Text = "Disable LibDVDNav. (libdvdread will be used instead)";\r
+             this.check_dvdnav.UseVisualStyleBackColor = false;\r
+             this.check_dvdnav.CheckedChanged += new System.EventHandler(this.check_dvdnav_CheckedChanged);\r
+             // \r
+             // check_trayStatusAlerts\r
+             // \r
+             this.check_trayStatusAlerts.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_trayStatusAlerts.AutoSize = true;\r
+             this.check_trayStatusAlerts.BackColor = System.Drawing.Color.Transparent;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.check_trayStatusAlerts, 3);\r
+             this.check_trayStatusAlerts.Location = new System.Drawing.Point(87, 26);\r
+             this.check_trayStatusAlerts.Name = "check_trayStatusAlerts";\r
+             this.check_trayStatusAlerts.Size = new System.Drawing.Size(296, 17);\r
+             this.check_trayStatusAlerts.TabIndex = 93;\r
+             this.check_trayStatusAlerts.Text = "Display status messages from tray icon (balloon popups)";\r
+             this.ToolTip.SetToolTip(this.check_trayStatusAlerts, "Minimize the window to the system tray rather than the task bar.\r\nThe system tray" +\r
+                     " icon has encode status notifications.\r\nNote: requires restart to take effect!\r\n" +\r
+                     "");\r
+             this.check_trayStatusAlerts.UseVisualStyleBackColor = false;\r
+             this.check_trayStatusAlerts.CheckedChanged += new System.EventHandler(this.check_trayStatusAlerts_CheckedChanged);\r
+             // \r
+             // label32\r
+             // \r
+             this.label32.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
+             this.label32.AutoSize = true;\r
+             this.label32.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label32.Location = new System.Drawing.Point(8, 210);\r
+             this.label32.Name = "label32";\r
+             this.label32.Size = new System.Drawing.Size(33, 13);\r
+             this.label32.TabIndex = 89;\r
+             this.label32.Text = "DVD:";\r
              // \r
              // label6\r
              // \r
              this.label6.TabIndex = 71;\r
              this.label6.Text = "GUI:";\r
              // \r
+             // drop_x264step\r
+             // \r
+             this.tableLayoutPanel4.SetColumnSpan(this.drop_x264step, 2);\r
+             this.drop_x264step.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+             this.drop_x264step.FormattingEnabled = true;\r
+             this.drop_x264step.Items.AddRange(new object[] {\r
+             "1.0",\r
+             "0.50",\r
+             "0.25",\r
+             "0.20"});\r
+             this.drop_x264step.Location = new System.Drawing.Point(262, 161);\r
+             this.drop_x264step.Name = "drop_x264step";\r
+             this.drop_x264step.Size = new System.Drawing.Size(85, 21);\r
+             this.drop_x264step.TabIndex = 86;\r
+             this.ToolTip.SetToolTip(this.drop_x264step, "The number of processor\'s / processor cores. Unless your having problems, leave o" +\r
+                     "n Automatic.");\r
+             this.drop_x264step.SelectedIndexChanged += new System.EventHandler(this.x264step_SelectedIndexChanged);\r
+             // \r
+             // label30\r
+             // \r
+             this.label30.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.label30.AutoSize = true;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.label30, 2);\r
+             this.label30.Location = new System.Drawing.Point(67, 165);\r
+             this.label30.Name = "label30";\r
+             this.label30.Size = new System.Drawing.Size(189, 13);\r
+             this.label30.TabIndex = 87;\r
+             this.label30.Text = "Constant quality fractional granularity";\r
+             // \r
+             // check_mainMinimize\r
+             // \r
+             this.check_mainMinimize.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_mainMinimize.AutoSize = true;\r
+             this.check_mainMinimize.BackColor = System.Drawing.Color.Transparent;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.check_mainMinimize, 4);\r
+             this.check_mainMinimize.Location = new System.Drawing.Point(67, 3);\r
+             this.check_mainMinimize.Name = "check_mainMinimize";\r
+             this.check_mainMinimize.Size = new System.Drawing.Size(138, 17);\r
+             this.check_mainMinimize.TabIndex = 82;\r
+             this.check_mainMinimize.Text = "Minimize to system tray";\r
+             this.ToolTip.SetToolTip(this.check_mainMinimize, "Minimize the window to the system tray rather than the task bar.\r\nThe system tray" +\r
+                     " icon has encode status notifications.\r\nNote: requires restart to take effect!\r\n" +\r
+                     "");\r
+             this.check_mainMinimize.UseVisualStyleBackColor = false;\r
+             this.check_mainMinimize.CheckedChanged += new System.EventHandler(this.check_mainMinimize_CheckedChanged);\r
+             // \r
+             // label28\r
+             // \r
+             this.label28.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
+             this.label28.AutoSize = true;\r
+             this.label28.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label28.Location = new System.Drawing.Point(3, 165);\r
+             this.label28.Name = "label28";\r
+             this.label28.Size = new System.Drawing.Size(38, 13);\r
+             this.label28.TabIndex = 85;\r
+             this.label28.Text = "x264:";\r
+             // \r
+             // check_queryEditorTab\r
+             // \r
+             this.check_queryEditorTab.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_queryEditorTab.AutoSize = true;\r
+             this.check_queryEditorTab.BackColor = System.Drawing.Color.Transparent;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.check_queryEditorTab, 4);\r
+             this.check_queryEditorTab.Location = new System.Drawing.Point(67, 49);\r
+             this.check_queryEditorTab.Name = "check_queryEditorTab";\r
+             this.check_queryEditorTab.Size = new System.Drawing.Size(241, 17);\r
+             this.check_queryEditorTab.TabIndex = 84;\r
+             this.check_queryEditorTab.Text = "Enable \"Query Editor\" tab (Requires Restart)";\r
+             this.ToolTip.SetToolTip(this.check_queryEditorTab, "Enables the Query Editor tab on the main window. Requires program restart to take" +\r
+                     " effect.");\r
+             this.check_queryEditorTab.UseVisualStyleBackColor = false;\r
+             this.check_queryEditorTab.CheckedChanged += new System.EventHandler(this.check_queryEditorTab_CheckedChanged);\r
+             // \r
+             // check_disablePresetNotification\r
+             // \r
+             this.check_disablePresetNotification.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_disablePresetNotification.AutoSize = true;\r
+             this.check_disablePresetNotification.BackColor = System.Drawing.Color.Transparent;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.check_disablePresetNotification, 4);\r
+             this.check_disablePresetNotification.Location = new System.Drawing.Point(67, 95);\r
+             this.check_disablePresetNotification.Name = "check_disablePresetNotification";\r
+             this.check_disablePresetNotification.Size = new System.Drawing.Size(222, 17);\r
+             this.check_disablePresetNotification.TabIndex = 91;\r
+             this.check_disablePresetNotification.Text = "Disable built-in preset update notification";\r
+             this.ToolTip.SetToolTip(this.check_disablePresetNotification, "Disables the notification you recieve when presets are updated when a new version" +\r
+                     " of HandBrake is installed.");\r
+             this.check_disablePresetNotification.UseVisualStyleBackColor = false;\r
+             this.check_disablePresetNotification.CheckedChanged += new System.EventHandler(this.check_disablePresetNotification_CheckedChanged);\r
+             // \r
+             // check_inGuiStatus\r
+             // \r
+             this.check_inGuiStatus.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
+             this.check_inGuiStatus.AutoSize = true;\r
+             this.check_inGuiStatus.BackColor = System.Drawing.Color.Transparent;\r
+             this.tableLayoutPanel4.SetColumnSpan(this.check_inGuiStatus, 4);\r
+             this.check_inGuiStatus.Location = new System.Drawing.Point(67, 118);\r
+             this.check_inGuiStatus.Name = "check_inGuiStatus";\r
+             this.check_inGuiStatus.Size = new System.Drawing.Size(235, 17);\r
+             this.check_inGuiStatus.TabIndex = 92;\r
+             this.check_inGuiStatus.Text = "Enable in-GUI encode status (experimental)";\r
+             this.ToolTip.SetToolTip(this.check_inGuiStatus, "Displays the CLI status in the GUI windows instead of the CLI window.");\r
+             this.check_inGuiStatus.UseVisualStyleBackColor = false;\r
+             this.check_inGuiStatus.CheckedChanged += new System.EventHandler(this.check_inGuiStatus_CheckedChanged);\r
+             // \r
+             // tab_debug\r
+             // \r
+             this.tab_debug.Controls.Add(this.check_disableResCalc);\r
+             this.tab_debug.Location = new System.Drawing.Point(4, 22);\r
+             this.tab_debug.Name = "tab_debug";\r
+             this.tab_debug.Padding = new System.Windows.Forms.Padding(3);\r
+             this.tab_debug.Size = new System.Drawing.Size(580, 334);\r
+             this.tab_debug.TabIndex = 7;\r
+             this.tab_debug.Text = "Debug";\r
+             this.tab_debug.UseVisualStyleBackColor = true;\r
+             // \r
+             // check_disableResCalc\r
+             // \r
+             this.check_disableResCalc.AutoSize = true;\r
+             this.check_disableResCalc.Location = new System.Drawing.Point(13, 15);\r
+             this.check_disableResCalc.Name = "check_disableResCalc";\r
+             this.check_disableResCalc.Size = new System.Drawing.Size(327, 17);\r
+             this.check_disableResCalc.TabIndex = 0;\r
+             this.check_disableResCalc.Text = "Disable Resolution Calculation for \"None\" and \"Custom\" modes.";\r
+             this.ToolTip.SetToolTip(this.check_disableResCalc, resources.GetString("check_disableResCalc.ToolTip"));\r
+             this.check_disableResCalc.UseVisualStyleBackColor = true;\r
+             this.check_disableResCalc.CheckedChanged += new System.EventHandler(this.check_disableResCalc_CheckedChanged);\r
+             // \r
              // label8\r
              // \r
+             this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left;\r
              this.label8.AutoSize = true;\r
-             this.label8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label8.Location = new System.Drawing.Point(50, 24);\r
+             this.label8.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label8.Location = new System.Drawing.Point(41, 11);\r
              this.label8.Name = "label8";\r
-             this.label8.Size = new System.Drawing.Size(141, 13);\r
+             this.label8.Size = new System.Drawing.Size(115, 13);\r
              this.label8.TabIndex = 61;\r
 -            this.label8.Text = "HandBrake Options";\r
 +            this.label8.Text = "HandBrake\83I\83v\83V\83\87\83\93\90Ý\92è";\r
              // \r
              // pictureBox2\r
              // \r
Simple merge
@@@ -57,22 -57,36 +57,52 @@@ namespace Handbrak
              this.mnu_batch = new System.Windows.Forms.ToolStripMenuItem();\r
              this.mnu_import = new System.Windows.Forms.ToolStripMenuItem();\r
              this.mnu_export = new System.Windows.Forms.ToolStripMenuItem();\r
+             this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();\r
+             this.mnu_readd = new System.Windows.Forms.ToolStripMenuItem();\r
              this.SaveFile = new System.Windows.Forms.SaveFileDialog();\r
              this.list_queue = new System.Windows.Forms.ListView();\r
 +            this.\83^\83C\83g\83\8b = new System.Windows.Forms.ColumnHeader();\r
 +            this.\83`\83\83\83v\83^\81[ = new System.Windows.Forms.ColumnHeader();\r
 +            this.\95Ï\8a·\8c³ = new System.Windows.Forms.ColumnHeader();\r
 +            this.\95Û\91\90æ = new System.Windows.Forms.ColumnHeader();\r
 +            this.\93®\89æ\83G\83\93\83R\81[\83_\81[ = new System.Windows.Forms.ColumnHeader();\r
 +            this.\89¹\90º\83G\83\93\83R\81[\83_\81[ = new System.Windows.Forms.ColumnHeader();\r
++/*\r
 +            this.statusStrip1 = new System.Windows.Forms.StatusStrip();\r
 +            this.lbl_encodesPending = new System.Windows.Forms.ToolStripStatusLabel();\r
 +            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();\r
 +            this.progressBar = new System.Windows.Forms.ToolStripProgressBar();\r
 +            this.lbl_progressValue = new System.Windows.Forms.ToolStripStatusLabel();\r
 +            this.OpenFile = new System.Windows.Forms.OpenFileDialog();\r
++*/\r
++/*\r
+             this.Title = new System.Windows.Forms.ColumnHeader();\r
+             this.Chapters = new System.Windows.Forms.ColumnHeader();\r
+             this.Source = new System.Windows.Forms.ColumnHeader();\r
+             this.Destination = new System.Windows.Forms.ColumnHeader();\r
+             this.EncoderVideo = new System.Windows.Forms.ColumnHeader();\r
+             this.Audio = new System.Windows.Forms.ColumnHeader();\r
++*/\r
+             this.mnu_queue = new System.Windows.Forms.ContextMenuStrip(this.components);\r
+             this.mnu_up = new System.Windows.Forms.ToolStripMenuItem();\r
+             this.mnu_Down = new System.Windows.Forms.ToolStripMenuItem();\r
+             this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();\r
+             this.mnu_delete = new System.Windows.Forms.ToolStripMenuItem();\r
+             this.statusStrip1 = new System.Windows.Forms.StatusStrip();\r
+             this.lbl_encodesPending = new System.Windows.Forms.ToolStripStatusLabel();\r
+             this.OpenFile = new System.Windows.Forms.OpenFileDialog();\r
+             this.splitContainer1 = new System.Windows.Forms.SplitContainer();\r
+             this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();\r
+             this.panel3 = new System.Windows.Forms.Panel();\r
+             this.panel2 = new System.Windows.Forms.Panel();\r
+             this.panel1 = new System.Windows.Forms.Panel();\r
              this.toolStrip1.SuspendLayout();\r
+             this.mnu_queue.SuspendLayout();\r
              this.statusStrip1.SuspendLayout();\r
+             this.splitContainer1.Panel1.SuspendLayout();\r
+             this.splitContainer1.Panel2.SuspendLayout();\r
+             this.splitContainer1.SuspendLayout();\r
+             this.tableLayoutPanel1.SuspendLayout();\r
              this.SuspendLayout();\r
              // \r
              // btn_down\r
              this.btn_down.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
              this.btn_down.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_down.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_down.Location = new System.Drawing.Point(613, 110);\r
+             this.btn_down.Location = new System.Drawing.Point(625, 52);\r
              this.btn_down.Name = "btn_down";\r
-             this.btn_down.Size = new System.Drawing.Size(75, 22);\r
+             this.tableLayoutPanel1.SetRowSpan(this.btn_down, 2);\r
+             this.btn_down.Size = new System.Drawing.Size(64, 22);\r
              this.btn_down.TabIndex = 33;\r
              this.btn_down.TabStop = false;\r
 -            this.btn_down.Text = "Down";\r
 +            this.btn_down.Text = "\81«";\r
              this.toolTip1.SetToolTip(this.btn_down, "Move the selected item down 1 place in the queue");\r
              this.btn_down.UseVisualStyleBackColor = true;\r
              this.btn_down.Click += new System.EventHandler(this.btn_down_Click);\r
              this.btn_up.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
              this.btn_up.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_up.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_up.Location = new System.Drawing.Point(543, 110);\r
+             this.btn_up.Location = new System.Drawing.Point(564, 52);\r
              this.btn_up.Name = "btn_up";\r
-             this.btn_up.Size = new System.Drawing.Size(64, 22);\r
+             this.tableLayoutPanel1.SetRowSpan(this.btn_up, 2);\r
+             this.btn_up.Size = new System.Drawing.Size(55, 22);\r
              this.btn_up.TabIndex = 32;\r
              this.btn_up.TabStop = false;\r
 -            this.btn_up.Text = "Up";\r
 +            this.btn_up.Text = "\81ª";\r
              this.toolTip1.SetToolTip(this.btn_up, "Move the selected item up 1 place in the queue.");\r
              this.btn_up.UseVisualStyleBackColor = true;\r
              this.btn_up.Click += new System.EventHandler(this.btn_up_Click);\r
              this.btn_delete.FlatAppearance.BorderColor = System.Drawing.Color.Black;\r
              this.btn_delete.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.btn_delete.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));\r
-             this.btn_delete.Location = new System.Drawing.Point(695, 110);\r
+             this.btn_delete.Location = new System.Drawing.Point(695, 52);\r
              this.btn_delete.Name = "btn_delete";\r
-             this.btn_delete.Size = new System.Drawing.Size(75, 22);\r
+             this.tableLayoutPanel1.SetRowSpan(this.btn_delete, 2);\r
+             this.btn_delete.Size = new System.Drawing.Size(64, 22);\r
              this.btn_delete.TabIndex = 31;\r
              this.btn_delete.TabStop = false;\r
 -            this.btn_delete.Text = "Delete";\r
 +            this.btn_delete.Text = "\8dí\8f\9c";\r
              this.toolTip1.SetToolTip(this.btn_delete, "Remove the selected item from the queue");\r
              this.btn_delete.UseVisualStyleBackColor = true;\r
              this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);\r
              // \r
              this.label4.AutoSize = true;\r
              this.label4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label4.Location = new System.Drawing.Point(225, 98);\r
+             this.label4.Location = new System.Drawing.Point(125, 49);\r
              this.label4.Name = "label4";\r
-             this.label4.Size = new System.Drawing.Size(33, 26);\r
+             this.tableLayoutPanel1.SetRowSpan(this.label4, 2);\r
+             this.label4.Size = new System.Drawing.Size(48, 26);\r
              this.label4.TabIndex = 70;\r
 -            this.label4.Text = "Video:\r\nAudio:";\r
 +            this.label4.Text = "\93®\89æ:\r\n\89¹\90º:";\r
              // \r
              // lbl_chapt\r
              // \r
              // \r
              this.label1.AutoSize = true;\r
              this.label1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label1.Location = new System.Drawing.Point(12, 72);\r
+             this.label1.Location = new System.Drawing.Point(3, 23);\r
              this.label1.Name = "label1";\r
-             this.label1.Size = new System.Drawing.Size(89, 52);\r
+             this.tableLayoutPanel1.SetRowSpan(this.label1, 4);\r
+             this.label1.Size = new System.Drawing.Size(99, 52);\r
              this.label1.TabIndex = 63;\r
 -            this.label1.Text = "Source:\r\nDestination:\r\nDVD Title:\r\nDVD Chapters:";\r
 +            this.label1.Text = "\95Ï\8a·\8c³:\r\n\95Û\91\90æ:\r\nDVD\82Ì\83^\83C\83g\83\8b:\r\nDVD\82Ì\83`\83\83\83v\83^\81[:";\r
              // \r
              // label3\r
              // \r
              this.label3.AutoSize = true;\r
              this.label3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label3.Location = new System.Drawing.Point(12, 50);\r
+             this.label3.Location = new System.Drawing.Point(3, 0);\r
              this.label3.Name = "label3";\r
 -            this.label3.Size = new System.Drawing.Size(82, 13);\r
 +            this.label3.Size = new System.Drawing.Size(73, 13);\r
              this.label3.TabIndex = 62;\r
 -            this.label3.Text = "Current Job";\r
 +            this.label3.Text = "\8dì\8bÆ\92\86\82Ì\83W\83\87\83u";\r
              // \r
              // toolStrip1\r
              // \r
              this.btn_encode.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.btn_encode.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.btn_encode.Name = "btn_encode";\r
-             this.btn_encode.Size = new System.Drawing.Size(92, 36);\r
+             this.btn_encode.Size = new System.Drawing.Size(82, 36);\r
 -            this.btn_encode.Text = "Encode";\r
 +            this.btn_encode.Text = "\95Ï\8a·\8aJ\8en";\r
              this.btn_encode.Click += new System.EventHandler(this.btn_encode_Click);\r
              // \r
-             // btn_stop\r
+             // btn_pause\r
              // \r
-             this.btn_stop.Image = global::Handbrake.Properties.Resources.Pause;\r
-             this.btn_stop.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
-             this.btn_stop.ImageTransparentColor = System.Drawing.Color.Magenta;\r
-             this.btn_stop.Name = "btn_stop";\r
-             this.btn_stop.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never;\r
-             this.btn_stop.Size = new System.Drawing.Size(92, 36);\r
+             this.btn_pause.Image = global::Handbrake.Properties.Resources.Pause;\r
+             this.btn_pause.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
+             this.btn_pause.ImageTransparentColor = System.Drawing.Color.Magenta;\r
+             this.btn_pause.Name = "btn_pause";\r
+             this.btn_pause.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never;\r
+             this.btn_pause.Size = new System.Drawing.Size(74, 36);\r
 -            this.btn_pause.Text = "Pause";\r
 +            this.btn_stop.Text = "\88ê\8e\9e\92â\8e~";\r
-             this.btn_stop.Visible = false;\r
-             this.btn_stop.Click += new System.EventHandler(this.btn_stop_Click);\r
+             this.btn_pause.Visible = false;\r
+             this.btn_pause.Click += new System.EventHandler(this.btn_pause_Click);\r
              // \r
              // toolStripSeparator1\r
              // \r
              this.drop_button_queue.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
              this.drop_button_queue.ImageTransparentColor = System.Drawing.Color.Magenta;\r
              this.drop_button_queue.Name = "drop_button_queue";\r
-             this.drop_button_queue.Size = new System.Drawing.Size(89, 36);\r
+             this.drop_button_queue.Size = new System.Drawing.Size(87, 36);\r
 -            this.drop_button_queue.Text = "Queue";\r
 +            this.drop_button_queue.Text = "\83L\83\85\81[";\r
              // \r
              // mnu_batch\r
              // \r
              this.mnu_batch.Image = global::Handbrake.Properties.Resources.Output_Small;\r
              this.mnu_batch.Name = "mnu_batch";\r
-             this.mnu_batch.Size = new System.Drawing.Size(208, 22);\r
+             this.mnu_batch.Size = new System.Drawing.Size(187, 22);\r
 -            this.mnu_batch.Text = "Generate Batch Script";\r
 +            this.mnu_batch.Text = "\83o\83b\83`\83X\83N\83\8a\83v\83g\82ð\8dì\90¬";\r
              this.mnu_batch.Click += new System.EventHandler(this.mnu_batch_Click);\r
              // \r
              // mnu_import\r
              // \r
              this.mnu_import.Image = global::Handbrake.Properties.Resources.folder;\r
              this.mnu_import.Name = "mnu_import";\r
-             this.mnu_import.Size = new System.Drawing.Size(208, 22);\r
+             this.mnu_import.Size = new System.Drawing.Size(187, 22);\r
 -            this.mnu_import.Text = "Import Queue";\r
 +            this.mnu_import.Text = "\83L\83\85\81[\82ð\83C\83\93\83|\81[\83g";\r
              this.mnu_import.Click += new System.EventHandler(this.mnu_import_Click);\r
              // \r
              // mnu_export\r
              // \r
              this.mnu_export.Image = global::Handbrake.Properties.Resources.save;\r
              this.mnu_export.Name = "mnu_export";\r
-             this.mnu_export.Size = new System.Drawing.Size(208, 22);\r
+             this.mnu_export.Size = new System.Drawing.Size(187, 22);\r
 -            this.mnu_export.Text = "Export Queue";\r
 +            this.mnu_export.Text = "\83L\83\85\81[\82ð\83G\83N\83X\83|\81[\83g";\r
              this.mnu_export.Click += new System.EventHandler(this.mnu_export_Click);\r
              // \r
+             // toolStripSeparator2\r
+             // \r
+             this.toolStripSeparator2.Name = "toolStripSeparator2";\r
+             this.toolStripSeparator2.Size = new System.Drawing.Size(184, 6);\r
+             // \r
+             // mnu_readd\r
+             // \r
+             this.mnu_readd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;\r
+             this.mnu_readd.Image = global::Handbrake.Properties.Resources.AddToQueue_small;\r
+             this.mnu_readd.Name = "mnu_readd";\r
+             this.mnu_readd.Size = new System.Drawing.Size(187, 22);\r
+             this.mnu_readd.Text = "Re-Add Current Job";\r
+             this.mnu_readd.Click += new System.EventHandler(this.mnu_readd_Click);\r
+             // \r
              // SaveFile\r
              // \r
              this.SaveFile.Filter = "Batch|.bat";\r
              // list_queue\r
              // \r
              this.list_queue.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {\r
 -            this.Title,\r
 -            this.Chapters,\r
 -            this.Source,\r
 -            this.Destination,\r
 -            this.EncoderVideo,\r
 -            this.Audio});\r
 +            this.\83^\83C\83g\83\8b,\r
 +            this.\83`\83\83\83v\83^\81[,\r
 +            this.\95Ï\8a·\8c³,\r
 +            this.\95Û\91\90æ,\r
 +            this.\93®\89æ\83G\83\93\83R\81[\83_\81[,\r
 +            this.\89¹\90º\83G\83\93\83R\81[\83_\81[});\r
+             this.list_queue.ContextMenuStrip = this.mnu_queue;\r
+             this.list_queue.Dock = System.Windows.Forms.DockStyle.Fill;\r
              this.list_queue.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.list_queue.FullRowSelect = true;\r
              this.list_queue.GridLines = true;\r
              this.list_queue.View = System.Windows.Forms.View.Details;\r
              this.list_queue.KeyUp += new System.Windows.Forms.KeyEventHandler(this.list_queue_deleteKey);\r
              // \r
 -            // Title\r
 +            // \83^\83C\83g\83\8b\r
              // \r
 -            this.Title.Text = "Title";\r
 -            this.Title.Width = 39;\r
 +            this.\83^\83C\83g\83\8b.Text = "\83^\83C\83g\83\8b";\r
 +            this.\83^\83C\83g\83\8b.Width = 39;\r
              // \r
 -            // Chapters\r
 +            // \83`\83\83\83v\83^\81[\r
              // \r
 -            this.Chapters.Text = "Chapters";\r
 -            this.Chapters.Width = 71;\r
 +            this.\83`\83\83\83v\83^\81[.Text = "\83`\83\83\83v\83^\81[";\r
 +            this.\83`\83\83\83v\83^\81[.Width = 71;\r
              // \r
 -            // Source\r
 +            // \95Ï\8a·\8c³\r
              // \r
 -            this.Source.Text = "Source";\r
 -            this.Source.Width = 219;\r
 +            this.\95Ï\8a·\8c³.Text = "\95Ï\8a·\8c³";\r
 +            this.\95Ï\8a·\8c³.Width = 219;\r
              // \r
 -            // Destination\r
 +            // \95Û\91\90æ\r
              // \r
 +            this.\95Û\91\90æ.Text = "\95Û\91\90æ";\r
 +            this.\95Û\91\90æ.Width = 215;\r
++/* ORIGINAL\r
+             this.Destination.Text = "Destination";\r
+             this.Destination.Width = 210;\r
++*/\r
              // \r
 -            // EncoderVideo\r
 +            // \93®\89æ\83G\83\93\83R\81[\83_\81[\r
              // \r
 -            this.EncoderVideo.Text = "Video Encoder";\r
 -            this.EncoderVideo.Width = 110;\r
 +            this.\93®\89æ\83G\83\93\83R\81[\83_\81[.Text = "\93®\89æ\83G\83\93\83R\81[\83_\81[";\r
 +            this.\93®\89æ\83G\83\93\83R\81[\83_\81[.Width = 110;\r
              // \r
 -            // Audio\r
 +            // \89¹\90º\83G\83\93\83R\81[\83_\81[\r
              // \r
 -            this.Audio.Text = "Audio Encoder";\r
 -            this.Audio.Width = 94;\r
 +            this.\89¹\90º\83G\83\93\83R\81[\83_\81[.Text = "\89¹\90º\83G\83\93\83R\81[\83_\81[";\r
 +            this.\89¹\90º\83G\83\93\83R\81[\83_\81[.Width = 94;\r
              // \r
-             // statusStrip1\r
+             // mnu_queue\r
              // \r
-             this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
-             this.lbl_encodesPending,\r
-             this.toolStripStatusLabel1,\r
-             this.progressBar,\r
-             this.lbl_progressValue});\r
-             this.statusStrip1.Location = new System.Drawing.Point(0, 359);\r
-             this.statusStrip1.Name = "statusStrip1";\r
-             this.statusStrip1.Size = new System.Drawing.Size(779, 31);\r
-             this.statusStrip1.TabIndex = 73;\r
-             this.statusStrip1.Text = "statusStrip1";\r
+             this.mnu_queue.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
+             this.mnu_up,\r
+             this.mnu_Down,\r
+             this.toolStripSeparator3,\r
+             this.mnu_delete});\r
+             this.mnu_queue.Name = "mnu_queue";\r
+             this.mnu_queue.Size = new System.Drawing.Size(139, 76);\r
              // \r
++/* HEAD\r
 +            // lbl_encodesPending\r
 +            // \r
 +            this.lbl_encodesPending.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
 +            this.lbl_encodesPending.Margin = new System.Windows.Forms.Padding(0, 3, 10, 2);\r
 +            this.lbl_encodesPending.Name = "lbl_encodesPending";\r
 +            this.lbl_encodesPending.Size = new System.Drawing.Size(123, 26);\r
 +            this.lbl_encodesPending.Text = "0\8cÂ\82Ì\83W\83\87\83u\82ª\91Ò\8b@\92\86";\r
 +            // \r
 +            // toolStripStatusLabel1\r
 +            // \r
 +            this.toolStripStatusLabel1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
 +            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";\r
 +            this.toolStripStatusLabel1.Size = new System.Drawing.Size(37, 26);\r
 +            this.toolStripStatusLabel1.Text = "\90i\92»:";\r
++*/\r
+             // mnu_up\r
              // \r
-             // progressBar\r
+             this.mnu_up.Name = "mnu_up";\r
+             this.mnu_up.Size = new System.Drawing.Size(138, 22);\r
+             this.mnu_up.Text = "Move Up";\r
+             this.mnu_up.Click += new System.EventHandler(this.mnu_up_Click);\r
              // \r
-             this.progressBar.Name = "progressBar";\r
-             this.progressBar.Size = new System.Drawing.Size(500, 25);\r
-             this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;\r
+             // mnu_Down\r
              // \r
-             // lbl_progressValue\r
+             this.mnu_Down.Name = "mnu_Down";\r
+             this.mnu_Down.Size = new System.Drawing.Size(138, 22);\r
+             this.mnu_Down.Text = "Move Down";\r
+             this.mnu_Down.Click += new System.EventHandler(this.mnu_Down_Click);\r
              // \r
+             // toolStripSeparator3\r
+             // \r
++/* HEAD\r
 +            this.lbl_progressValue.Name = "lbl_progressValue";\r
 +            this.lbl_progressValue.Size = new System.Drawing.Size(35, 26);\r
 +            this.lbl_progressValue.Text = " 0 %";\r
++/*\r
+             this.toolStripSeparator3.Name = "toolStripSeparator3";\r
+             this.toolStripSeparator3.Size = new System.Drawing.Size(135, 6);\r
+             // \r
+             // mnu_delete\r
+             // \r
+             this.mnu_delete.Name = "mnu_delete";\r
+             this.mnu_delete.Size = new System.Drawing.Size(138, 22);\r
+             this.mnu_delete.Text = "Delete";\r
+             this.mnu_delete.Click += new System.EventHandler(this.mnu_delete_Click);\r
+             // \r
+             // statusStrip1\r
+             // \r
+             this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
+             this.lbl_encodesPending});\r
+             this.statusStrip1.Location = new System.Drawing.Point(0, 368);\r
+             this.statusStrip1.Name = "statusStrip1";\r
+             this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 12, 0);\r
+             this.statusStrip1.Size = new System.Drawing.Size(787, 22);\r
+             this.statusStrip1.TabIndex = 73;\r
+             this.statusStrip1.Text = "statusStrip1";\r
+             // \r
+             // lbl_encodesPending\r
+             // \r
+             this.lbl_encodesPending.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
+             this.lbl_encodesPending.Margin = new System.Windows.Forms.Padding(0, 3, 10, 2);\r
+             this.lbl_encodesPending.Name = "lbl_encodesPending";\r
+             this.lbl_encodesPending.Size = new System.Drawing.Size(115, 17);\r
+             this.lbl_encodesPending.Text = "0 encode(s) pending";\r
              // \r
              // OpenFile\r
              // \r
          private System.Windows.Forms.ToolStrip toolStrip1;\r
          private System.Windows.Forms.ToolStripButton btn_encode;\r
          private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;\r
-         private System.Windows.Forms.ToolStripButton btn_stop;\r
+         private System.Windows.Forms.ToolStripButton btn_pause;\r
          private System.Windows.Forms.SaveFileDialog SaveFile;\r
          private System.Windows.Forms.ListView list_queue;\r
 -        private System.Windows.Forms.ColumnHeader Title;\r
 -        private System.Windows.Forms.ColumnHeader Chapters;\r
 -        private System.Windows.Forms.ColumnHeader Source;\r
 -        private System.Windows.Forms.ColumnHeader Destination;\r
 -        private System.Windows.Forms.ColumnHeader EncoderVideo;\r
 -        private System.Windows.Forms.ColumnHeader Audio;\r
 +        private System.Windows.Forms.ColumnHeader \83^\83C\83g\83\8b;\r
 +        private System.Windows.Forms.ColumnHeader \83`\83\83\83v\83^\81[;\r
 +        private System.Windows.Forms.ColumnHeader \95Ï\8a·\8c³;\r
 +        private System.Windows.Forms.ColumnHeader \95Û\91\90æ;\r
 +        private System.Windows.Forms.ColumnHeader \93®\89æ\83G\83\93\83R\81[\83_\81[;\r
 +        private System.Windows.Forms.ColumnHeader \89¹\90º\83G\83\93\83R\81[\83_\81[;\r
          private System.Windows.Forms.StatusStrip statusStrip1;\r
-         private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;\r
-         private System.Windows.Forms.ToolStripProgressBar progressBar;\r
-         private System.Windows.Forms.ToolStripStatusLabel lbl_progressValue;\r
          private System.Windows.Forms.ToolStripDropDownButton drop_button_queue;\r
          private System.Windows.Forms.ToolStripMenuItem mnu_batch;\r
          private System.Windows.Forms.ToolStripMenuItem mnu_import;\r
@@@ -38,214 -47,154 +47,239 @@@ namespace Handbrak
          /// <summary>\r
          /// Initializes the Queue list with the Arraylist from the Queue class\r
          /// </summary>\r
-         /// <param name="qw"></param>\r
-         public void setQueue(Functions.Queue qw)\r
+         public void setQueue()\r
          {\r
++/* HEAD:\r
 +            queue = qw;\r
 +            redrawQueue();\r
 +            lbl_encodesPending.Text = list_queue.Items.Count + "\8cÂ\82Ì\83W\83\87\83u\82ª\91Ò\8b@\92\86";\r
++*/\r
+             updateUIElements();\r
          }\r
  \r
          /// <summary>\r
-         /// Returns if there is currently an item being encoded by the queue\r
+         /// Initializes the Queue list, then shows and activates the window\r
          /// </summary>\r
-         /// <returns>Boolean true if encoding</returns>\r
-         public Boolean isEncoding()\r
+         public new void Show()\r
          {\r
-             if (hbProc == null)\r
-                 return false;\r
-             else\r
-                 return true;\r
+            Show(true);\r
          }\r
  \r
-         // Redraw's the queue with the latest data from the Queue class\r
-         private void redrawQueue()\r
+         /// <summary>\r
+         /// Initializes the Queue list only if doSetQueue is true, then shows and activates the window\r
+         /// </summary>\r
+         /// <param name="doSetQueue">Indicates whether to call setQueue() before showing the window</param>\r
+         public void Show(bool doSetQueue)\r
          {\r
++/* HEAD:\r
 +            list_queue.Items.Clear();\r
 +            ArrayList theQueue = queue.getQueue();\r
 +            foreach (ArrayList queue_item in theQueue)\r
 +            {\r
 +                string q_item = queue_item[1].ToString();\r
 +                Functions.QueryParser parsed = Functions.QueryParser.Parse(q_item);\r
 +\r
 +                // Get the DVD Title\r
 +                string title = "";\r
 +                if (parsed.DVDTitle == 0)\r
 +                    title = "Automatic";\r
 +                else\r
 +                    title = parsed.DVDTitle.ToString();\r
 +\r
 +                // Get the DVD Chapters\r
 +                string chapters = "";\r
 +                if (parsed.DVDChapterStart == 0)\r
 +                    chapters = "Auto";\r
 +                else\r
 +                {\r
 +                    chapters = parsed.DVDChapterStart.ToString();\r
 +                    if (parsed.DVDChapterFinish != 0)\r
 +                        chapters = chapters + " - " + parsed.DVDChapterFinish;\r
 +                }\r
 +\r
 +                ListViewItem item = new ListViewItem();\r
 +                item.Text = title; // Title\r
 +                item.SubItems.Add(chapters); // Chapters\r
 +                item.SubItems.Add(parsed.Source); // Source\r
 +                item.SubItems.Add(parsed.Destination); // Destination\r
 +                item.SubItems.Add(parsed.VideoEncoder); // Video\r
 +                item.SubItems.Add(parsed.AudioEncoder1); // Audio\r
++*/\r
+             if (doSetQueue) setQueue();\r
+             base.Show();\r
  \r
-                 list_queue.Items.Add(item);\r
-             }\r
+             //Activate();\r
          }\r
  \r
-         // Initializes the encode process\r
+         // Start and Stop Controls\r
          private void btn_encode_Click(object sender, EventArgs e)\r
          {\r
-             mainWindow.setLastAction("encode");\r
-             \r
-             if (queue.count() != 0)\r
+             if (queue.PauseRequested)\r
              {\r
-                 btn_encode.Enabled = false;\r
+                 setUIEncodeStarted();\r
+                 MessageBox.Show("Encoding restarted", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);\r
              }\r
-             cancel = false;\r
  \r
-             // Start the encode\r
-             try\r
+             if (!queue.isEncoding)\r
+                 queue.StartEncodeQueue();\r
\r
+         }\r
+         private void btn_pause_Click(object sender, EventArgs e)\r
+         {\r
+             queue.RequestPause();\r
+             setUIEncodeFinished();\r
+             resetQueue();\r
+             MessageBox.Show("No further items on the queue will start. The current encode process will continue until it is finished. \nClick 'Encode' when you wish to continue encoding the queue.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+         }\r
\r
+         // Window Display Management\r
+         private void setUIEncodeStarted()\r
+         {\r
+             if (InvokeRequired)\r
              {\r
-                 if (queue.count() != 0)\r
-                 {\r
-                     // Setup or reset some values\r
-                     btn_stop.Visible = true;\r
-                     progressBar.Value = 0;\r
-                     lbl_progressValue.Text = "0 %";\r
-                     progressBar.Step = 100 / queue.count();\r
-                     Thread theQ = new Thread(startProc);\r
-                     theQ.IsBackground = true;\r
-                     theQ.Start();\r
-                 }\r
+                 BeginInvoke(new UpdateHandler(setUIEncodeStarted));\r
+                 return;\r
              }\r
-             catch (Exception exc)\r
+             btn_encode.Enabled = false;\r
+             btn_pause.Visible = true;\r
+         }\r
+         private void setUIEncodeFinished()\r
+         {\r
+             if (InvokeRequired)\r
              {\r
-                 MessageBox.Show(exc.ToString());\r
+                 BeginInvoke(new UpdateHandler(setUIEncodeFinished));\r
+                 return;\r
              }\r
+             btn_pause.Visible = false;\r
+             btn_encode.Enabled = true;\r
          }\r
\r
-         // Starts the encoding process\r
-         private void startProc(object state)\r
+         private void resetQueue()\r
          {\r
-             try\r
+             if (InvokeRequired)\r
              {\r
-                 // Run through each item on the queue\r
-                 while (queue.count() != 0)\r
-                 {\r
-                     string query = queue.getNextItemForEncoding();\r
-                     queue.write2disk("hb_queue_recovery.dat"); // Update the queue recovery file\r
\r
-                     setEncValue();\r
-                     updateUIElements();\r
\r
-                     hbProc = cliObj.runCli(this, query);\r
\r
-                     hbProc.WaitForExit();\r
-                     cliObj.addCLIQueryToLog(query);\r
-                     cliObj.copyLog(query);\r
\r
-                     hbProc.Close();\r
-                     hbProc.Dispose();\r
-                     hbProc = null;\r
-                     query = "";\r
\r
-                     if (cancel == true)\r
-                     {\r
-                         break;\r
-                     }\r
-                 }\r
+                 BeginInvoke(new UpdateHandler(resetQueue));\r
+                 return;\r
+             }\r
+             btn_pause.Visible = false;\r
+             btn_encode.Enabled = true;\r
  \r
-                 resetQueue();\r
+             lbl_source.Text = "-";\r
+             lbl_dest.Text = "-";\r
+             lbl_vEnc.Text = "-";\r
+             lbl_aEnc.Text = "-";\r
+             lbl_title.Text = "-";\r
+             lbl_chapt.Text = "-";\r
  \r
-                 // After the encode is done, we may want to shutdown, suspend etc.\r
-                 cliObj.afterEncodeAction();\r
-             }\r
-             catch (Exception exc)\r
+             lbl_encodesPending.Text = list_queue.Items.Count + " encode(s) pending";\r
+         }\r
+         private void redrawQueue()\r
+         {\r
+             if (InvokeRequired)\r
              {\r
-                 MessageBox.Show(exc.ToString());\r
+                 BeginInvoke(new UpdateHandler(redrawQueue));\r
+                 return;\r
              }\r
-         }\r
  \r
-         // Reset's the window to the default state.\r
-         private void resetQueue()\r
-         {\r
-             try\r
+             list_queue.Items.Clear();\r
+             ReadOnlyCollection<Job> theQueue = queue.CurrentQueue;\r
+             foreach (Job queue_item in theQueue)\r
              {\r
-                 if (this.InvokeRequired)\r
-                 {\r
-                     this.BeginInvoke(new ProgressUpdateHandler(resetQueue));\r
-                     return;\r
+                 string q_item = queue_item.Query;\r
+                 Functions.QueryParser parsed = Functions.QueryParser.Parse(q_item);\r
  \r
-                 }\r
-                 btn_stop.Visible = false;\r
-                 btn_encode.Enabled = true;\r
+                 // Get the DVD Title\r
+                 string title = parsed.DVDTitle == 0 ? "Auto" : parsed.DVDTitle.ToString();\r
  \r
++/* HEAD\r
 +                if (cancel == true)\r
 +                {\r
 +                    lbl_progressValue.Text = "\83G\83\93\83R\81[\83h\82ª\83L\83\83\83\93\83Z\83\8b\82³\82ê\82Ü\82µ\82½";\r
 +                }\r
 +                else\r
 +                {\r
 +                    lbl_progressValue.Text = "\83G\83\93\83R\81[\83h\8dì\8bÆ\82ð\8a®\97¹\82µ\82Ü\82µ\82½";\r
++*/\r
+                 // Get the DVD Chapters\r
+                 string chapters;\r
+                 if (parsed.DVDChapterStart == 0)\r
+                     chapters = "Auto";\r
+                 else\r
+                 {\r
+                     chapters = parsed.DVDChapterStart.ToString();\r
+                     if (parsed.DVDChapterFinish != 0)\r
+                         chapters = chapters + " - " + parsed.DVDChapterFinish;\r
                  }\r
  \r
-                 progressBar.Value = 0;\r
+                 ListViewItem item = new ListViewItem();\r
+                 item.Text = title; // Title\r
+                 item.SubItems.Add(chapters); // Chapters\r
+                 item.SubItems.Add(queue_item.Source); // Source\r
+                 item.SubItems.Add(queue_item.Destination); // Destination\r
+                 item.SubItems.Add(parsed.VideoEncoder); // Video\r
  \r
-                 lbl_source.Text = "-";\r
-                 lbl_dest.Text = "-";\r
-                 lbl_vEnc.Text = "-";\r
-                 lbl_aEnc.Text = "-";\r
-                 lbl_title.Text = "-";\r
-                 lbl_chapt.Text = "-";\r
+                 // Display The Audio Track Information\r
+                 string audio = string.Empty;\r
+                 foreach (Functions.AudioTrack track in parsed.AudioInformation)\r
+                 {\r
+                     if (audio != "")\r
+                         audio += ", " + track.Encoder;\r
+                     else\r
+                         audio = track.Encoder;\r
+                 }\r
+                 item.SubItems.Add(audio); // Audio\r
  \r
-             {\r
-                 MessageBox.Show(exc.ToString());\r
++/* HEAD\r
 +                lbl_encodesPending.Text = list_queue.Items.Count + "\8cÂ\82Ì\83W\83\87\83u\82ª\91Ò\8b@\92\86";\r
 +            }\r
 +            catch (Exception exc)\r
 +            {\r
 +                MessageBox.Show(exc.ToString());\r
 +            }\r
 +        }\r
 +\r
 +        // Stop's the queue from continuing. \r
 +        private void btn_stop_Click(object sender, EventArgs e)\r
 +        {\r
 +            cancel = true;\r
 +            btn_stop.Visible = false;\r
 +            btn_encode.Enabled = true;\r
 +            MessageBox.Show("\83L\83\85\81[\82Ì\8eÀ\8ds\82ª\92â\8e~\82³\82ê\82Ü\82µ\82½\81B. \8c»\8dÝ\83G\83\93\83R\81[\83h\92\86\82Ì\8f\88\97\9d\82Í\8a®\97¹\82·\82é\82Ü\82Å\8cp\91±\82³\82ê\82Ü\82·\81B\n\83L\83\85\81[\82Ì\8dì\8bÆ\82ð\8dÄ\8aJ\82µ\82½\82¢\8fê\8d\87\82Í\81u\83G\83\93\83R\81[\83h\81v\82ð\83N\83\8a\83b\83N\82µ\82Ä\82­\82¾\82³\82¢\81B", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
 +        }\r
 +\r
 +        // Updates the progress bar and progress label for a new status.\r
 +        private void updateUIElements()\r
 +        {\r
 +            try\r
 +            {\r
 +                if (this.InvokeRequired)\r
 +                {\r
 +                    this.BeginInvoke(new ProgressUpdateHandler(updateUIElements));\r
 +                    return;\r
 +                }\r
 +\r
 +                redrawQueue();\r
 +\r
 +                progressBar.PerformStep();\r
 +                lbl_progressValue.Text = string.Format("{0} %", progressBar.Value);\r
 +                lbl_encodesPending.Text = list_queue.Items.Count + "\8cÂ\82Ì\83W\83\87\83u\82ª\91Ò\8b@\92\86";\r
 +            }\r
 +            catch (Exception exc)\r
++*/\r
+                 list_queue.Items.Add(item);\r
              }\r
          }\r
+         private void updateUIElements()\r
+         {\r
+             if (InvokeRequired)\r
+             {\r
+                 BeginInvoke(new UpdateHandler(updateUIElements));\r
+                 return;\r
+             }\r
  \r
-         // Set's the information lables about the current encode.\r
-         private void setEncValue()\r
+             redrawQueue();\r
+             lbl_encodesPending.Text = list_queue.Items.Count + " encode(s) pending";\r
+         }\r
+         private void setCurrentEncodeInformation()\r
          {\r
              try\r
              {\r
                  }\r
  \r
                  // found query is a global varible\r
-                 Functions.QueryParser parsed = Functions.QueryParser.Parse(queue.getLastQuery());\r
-                 lbl_source.Text = parsed.Source;\r
-                 lbl_dest.Text = parsed.Destination;\r
+                 Functions.QueryParser parsed = Functions.QueryParser.Parse(queue.LastEncode.Query);\r
+                 lbl_source.Text = queue.LastEncode.Source;\r
+                 lbl_dest.Text = queue.LastEncode.Destination;\r
  \r
+                 lbl_title.Text = parsed.DVDTitle == 0 ? "Auto" : parsed.DVDTitle.ToString();\r
  \r
++/* HEAD\r
 +                if (parsed.DVDTitle == 0)\r
 +                    lbl_title.Text = "Automatic";\r
 +                else\r
 +                    lbl_title.Text = parsed.DVDTitle.ToString();\r
 +\r
 +                string chapters = "";\r
 +                if (parsed.DVDChapterStart == 0)\r
 +                {\r
++*/\r
+                 if (Equals(parsed.DVDChapterStart, 0))\r
                      lbl_chapt.Text = "Auto";\r
-                 }\r
                  else\r
                  {\r
-                     chapters = parsed.DVDChapterStart.ToString();\r
+                     string chapters = parsed.DVDChapterStart.ToString();\r
                      if (parsed.DVDChapterFinish != 0)\r
                          chapters = chapters + " - " + parsed.DVDChapterFinish;\r
                      lbl_chapt.Text = chapters;\r
                  // Do Nothing\r
              }\r
          }\r
\r
-         // Move an item up the Queue\r
-         private void btn_up_Click(object sender, EventArgs e)\r
+         private void deleteSelectedItems()\r
          {\r
-             if (list_queue.SelectedIndices.Count != 0)\r
+             // If there are selected items\r
+             if (list_queue.SelectedIndices.Count > 0)\r
              {\r
-                 int selected = list_queue.SelectedIndices[0];\r
+                 // Save the selected indices to select them after the move\r
+                 List<int> selectedIndices = new List<int>(list_queue.SelectedIndices.Count);\r
+                 foreach (int selectedIndex in list_queue.SelectedIndices)\r
+                     selectedIndices.Add(selectedIndex);\r
  \r
-                 queue.moveUp(selected);\r
-                 queue.write2disk("hb_queue_recovery.dat"); // Update the queue recovery file\r
-                 redrawQueue();\r
+                 int firstSelectedIndex = selectedIndices[0];\r
\r
+                 // Reverse the list to delete the items from last to first (preserves indices)\r
+                 selectedIndices.Reverse();\r
  \r
-                 if (selected - 1 > 0) \r
-                     list_queue.Items[selected -1].Selected = true;\r
+                 // Remove each selected item\r
+                 foreach (int selectedIndex in selectedIndices)\r
+                     queue.RemoveJob(selectedIndex);\r
  \r
-                 list_queue.Select();\r
+                 updateUIElements();\r
\r
+                 // Select the item where the first deleted item was previously\r
+                 if (firstSelectedIndex < list_queue.Items.Count)\r
+                     list_queue.Items[firstSelectedIndex].Selected = true;\r
              }\r
\r
+             list_queue.Select(); // Activate the control to show the selected items\r
          }\r
  \r
-         // Move an item down the Queue\r
+         // Queue Management\r
+         private void mnu_up_Click(object sender, EventArgs e)\r
+         {\r
+             moveUp();\r
+         }\r
+         private void mnu_Down_Click(object sender, EventArgs e)\r
+         {\r
+             moveDown();\r
+         }\r
+         private void mnu_delete_Click(object sender, EventArgs e)\r
+         {\r
+             deleteSelectedItems();\r
+         }\r
+         private void btn_up_Click(object sender, EventArgs e)\r
+         {\r
+             moveUp();\r
+         }\r
          private void btn_down_Click(object sender, EventArgs e)\r
          {\r
-             if (list_queue.SelectedIndices.Count != 0)\r
+             moveDown();\r
+         }\r
+         private void btn_delete_Click(object sender, EventArgs e)\r
+         {\r
+             deleteSelectedItems();\r
+         }\r
+         private void list_queue_deleteKey(object sender, KeyEventArgs e)\r
+         {\r
+             if (e.KeyCode == Keys.Delete)\r
+                 deleteSelectedItems();\r
+         }\r
+         private void moveUp()\r
+         {\r
+             // If there are selected items and the first item is not selected\r
+             if (list_queue.SelectedIndices.Count > 0 && !list_queue.SelectedIndices.Contains(0))\r
              {\r
-                 int selected = list_queue.SelectedIndices[0];\r
+                 // Copy the selected indices to preserve them during the movement\r
+                 List<int> selectedIndices = new List<int>(list_queue.SelectedIndices.Count);\r
+                 foreach (int selectedIndex in list_queue.SelectedIndices)\r
+                     selectedIndices.Add(selectedIndex);\r
  \r
-                 queue.moveDown(list_queue.SelectedIndices[0]);\r
-                 queue.write2disk("hb_queue_recovery.dat"); // Update the queue recovery file\r
-                 redrawQueue();\r
+                 // Move up each selected item\r
+                 foreach (int selectedIndex in selectedIndices)\r
+                     queue.MoveUp(selectedIndex);\r
  \r
-                 if (selected +1 < list_queue.Items.Count) \r
-                     list_queue.Items[selected + 1].Selected = true;\r
+                 updateUIElements();\r
  \r
-                 list_queue.Select();\r
+                 // Keep the selected item(s) selected, now moved up one index\r
+                 foreach (int selectedIndex in selectedIndices)\r
+                     if (selectedIndex - 1 > -1) // Defensive programming: ensure index is good\r
+                         list_queue.Items[selectedIndex - 1].Selected = true;\r
              }\r
-         }\r
  \r
-         // Remove an item from the queue\r
-         private void btn_delete_Click(object sender, EventArgs e)\r
+             list_queue.Select(); // Activate the control to show the selected items\r
+         }\r
+         private void moveDown()\r
          {\r
-             if (list_queue.SelectedIndices.Count != 0)\r
+             // If there are selected items and the last item is not selected\r
+             if (list_queue.SelectedIndices.Count > 0 &&\r
+                 !list_queue.SelectedIndices.Contains(list_queue.Items[list_queue.Items.Count - 1].Index))\r
              {\r
++/* HEAD\r
 +                queue.remove(list_queue.SelectedIndices[0]);\r
 +                queue.write2disk("hb_queue_recovery.dat"); // Update the queue recovery file\r
 +                redrawQueue();\r
 +                lbl_encodesPending.Text = list_queue.Items.Count + "\8cÂ\82Ì\83W\83\87\83u\82ª\91Ò\8b@\92\86";\r
++*/\r
+                 // Copy the selected indices to preserve them during the movement\r
+                 List<int> selectedIndices = new List<int>(list_queue.SelectedIndices.Count);\r
+                 foreach (int selectedIndex in list_queue.SelectedIndices)\r
+                     selectedIndices.Add(selectedIndex);\r
\r
+                 // Reverse the indices to move the items down from last to first (preserves indices)\r
+                 selectedIndices.Reverse();\r
\r
+                 // Move down each selected item\r
+                 foreach (int selectedIndex in selectedIndices)\r
+                     queue.MoveDown(selectedIndex);\r
\r
+                 updateUIElements();\r
\r
+                 // Keep the selected item(s) selected, now moved down one index\r
+                 foreach (int selectedIndex in selectedIndices)\r
+                     if (selectedIndex + 1 < list_queue.Items.Count) // Defensive programming: ensure index is good\r
+                         list_queue.Items[selectedIndex + 1].Selected = true;\r
              }\r
\r
+             list_queue.Select(); // Activate the control to show the selected items\r
          }\r
  \r
-         // Generate a Saveable batch script on the users request\r
+         // Queue Import/Export Features\r
          private void mnu_batch_Click(object sender, EventArgs e)\r
          {\r
              SaveFile.FileName = "";\r
@@@ -63,22 -63,21 +63,21 @@@ namespace Handbrak
              // label1\r
              // \r
              this.label1.AutoSize = true;\r
-             this.label1.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label1.Location = new System.Drawing.Point(82, 12);\r
+             this.label1.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label1.Location = new System.Drawing.Point(84, 12);\r
              this.label1.Name = "label1";\r
-             this.label1.Size = new System.Drawing.Size(298, 16);\r
+             this.label1.Size = new System.Drawing.Size(273, 16);\r
              this.label1.TabIndex = 25;\r
 -            this.label1.Text = "A New Version of Handbrake is available!";\r
 +            this.label1.Text = "HandBrake\82Ì\90V\83o\81[\83W\83\87\83\93\82ª\97\98\97p\89Â\94\\82Å\82·\81I";\r
              // \r
              // label6\r
              // \r
              this.label6.AutoSize = true;\r
-             this.label6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
              this.label6.Location = new System.Drawing.Point(82, 49);\r
              this.label6.Name = "label6";\r
-             this.label6.Size = new System.Drawing.Size(113, 13);\r
+             this.label6.Size = new System.Drawing.Size(175, 13);\r
              this.label6.TabIndex = 30;\r
 -            this.label6.Text = "Would you like to download it now?";\r
 +            this.label6.Text = "\82·\82®\82É\83_\83E\83\93\83\8d\81[\83h\82µ\82Ü\82·\82©\81H";\r
              // \r
              // btn_skip\r
              // \r
              // label3\r
              // \r
              this.label3.AutoSize = true;\r
-             this.label3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.label3.Location = new System.Drawing.Point(82, 84);\r
+             this.label3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+             this.label3.Location = new System.Drawing.Point(84, 87);\r
              this.label3.Name = "label3";\r
-             this.label3.Size = new System.Drawing.Size(68, 13);\r
+             this.label3.Size = new System.Drawing.Size(90, 13);\r
              this.label3.TabIndex = 57;\r
 -            this.label3.Text = "Release Notes:";\r
 +            this.label3.Text = "\83\8a\83\8a\81[\83X\83m\81[\83g:";\r
              // \r
              // PictureBox1\r
              // \r
              // lbl_update_text\r
              // \r
              this.lbl_update_text.AutoSize = true;\r
-             this.lbl_update_text.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-             this.lbl_update_text.Location = new System.Drawing.Point(82, 34);\r
+             this.lbl_update_text.Location = new System.Drawing.Point(84, 36);\r
              this.lbl_update_text.Name = "lbl_update_text";\r
-             this.lbl_update_text.Size = new System.Drawing.Size(501, 13);\r
+             this.lbl_update_text.Size = new System.Drawing.Size(409, 13);\r
              this.lbl_update_text.TabIndex = 58;\r
 -            this.lbl_update_text.Text = "HandBrake {0.0.0} (000000000) is now available. (You have: {0.0.0} (000000000))";\r
 +            this.lbl_update_text.Text = "HandBrake {0.0.0} (000000000) \82ª\83_\83E\83\93\83\8d\81[\83h\82Å\82«\82Ü\82·. (\8c»\8dÝ\82Ì\83o\81[\83W\83\87\83\93\82Í: {0.0.0} (000000000))";\r
              // \r
              // panel1\r
              // \r
@@@ -31,9 -29,9 +29,9 @@@ namespace Handbrak
  \r
          private void setVersions()\r
          {\r
 -            string old = "(You have: " + Properties.Settings.Default.hb_version.Trim() + " / " + Properties.Settings.Default.hb_build.ToString().Trim() + ")";\r
 +            string old = "(\8c»\8dÝ\82Ì\83o\81[\83W\83\87\83\93\82Í " + Properties.Settings.Default.hb_version.Trim() + " / " + Properties.Settings.Default.hb_build.ToString().Trim() + "\82Å\82·)";\r
-             string newBuild = appcast.version().Trim() + " (" + appcast.build() + ")";\r
+             string newBuild = appcast.version.Trim() + " (" + appcast.build + ")";\r
 -            lbl_update_text.Text = "HandBrake " + newBuild + " is now available. " + old;\r
 +            lbl_update_text.Text = "HandBrake " + newBuild + " \82ª\97\98\97p\89Â\94\\82Å\82·\81B " + old;\r
          }\r
  \r
          private void btn_installUpdate_Click(object sender, EventArgs e)\r