]> git.sesse.net Git - vlc/commitdiff
* added "Magnify" to the available video filters
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 12 May 2006 17:54:28 +0000 (17:54 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 12 May 2006 17:54:28 +0000 (17:54 +0000)
    - re-designed the view a bit, so it is smaller (and nicer IMO)
    - string fix

extras/MacOSX/Resources/English.lproj/Extended.nib/classes.nib
extras/MacOSX/Resources/English.lproj/Extended.nib/info.nib
extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib
modules/gui/macosx/extended.h
modules/gui/macosx/extended.m

index 306bb1647487fe8b03ded36230bf6b960d63e152..8cad7a30ddc8573707d14445fd0440ad16aaa3f4 100644 (file)
@@ -33,6 +33,7 @@
                 "o_ckb_imgClone" = id; 
                 "o_ckb_imgCrop" = id; 
                 "o_ckb_imgInvers" = id; 
+                "o_ckb_intZoom" = id; 
                 "o_ckb_trnsform" = id; 
                 "o_ckb_vlme_norm" = id; 
                 "o_expBtn_adjustImage" = id; 
index ceb2178a2b96f7ac4b8be9e1bfeb86d404a21c63..97e8056f3c5db0c34f5a90191d789b4d66dee8f0 100644 (file)
                <key>32</key>
                <string>525 487 390 233 0 0 1440 878 </string>
                <key>5</key>
-               <string>525 506 390 196 0 0 1440 878 </string>
+               <string>467 464 392 178 0 0 1440 878 </string>
        </dict>
        <key>IBFramework Version</key>
-       <string>437.0</string>
+       <string>443.0</string>
        <key>IBLockedObjects</key>
        <array>
                <integer>32</integer>
        <key>IBOpenObjects</key>
        <array>
                <integer>18</integer>
-               <integer>32</integer>
-               <integer>13</integer>
+               <integer>5</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>8C46</string>
+       <string>8I127</string>
 </dict>
 </plist>
index 9b779b814baa425548912a39704e18ee5ccdac84..f4e5259b18ebbf5509d0a51c793d6e62f12f6f0e 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib and b/extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib differ
index 5b3c7f560a049c5fcb62888ac5c2e0e471f2f3b3..20660390f70f873235101421190d3fb9a342b326 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * extended.h: MacOS X Extended interface panel
  *****************************************************************************
- * Copyright (C) 2005 the VideoLAN team
+ * Copyright (C) 2005-2006 the VideoLAN team
  * $Id$
  *
  * Authors: Felix Kühne <fkuehne@users.sf.net>
@@ -59,6 +59,7 @@
     IBOutlet id o_ckb_imgCrop;
     IBOutlet id o_ckb_imgInvers;
     IBOutlet id o_ckb_trnsform;
+    IBOutlet id o_ckb_intZoom;
     
     /* audio filters */
     IBOutlet id o_ckb_vlme_norm;
index 8987b6d308cab54eb1c69a54756815bc0a1cccb4..09a8aabde6c1bdb80d9d2afcaab66f26bd7aa7be 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * extended.m: MacOS X Extended interface panel
  *****************************************************************************
- * Copyright (C) 2005 the VideoLAN team
+ * Copyright (C) 2005-2006 the VideoLAN team
  * $Id$
  *
  * Authors: Felix Kühne <fkuehne@users.sf.net>
@@ -88,7 +88,7 @@ static VLCExtended *_o_sharedInstance = nil;
     [o_ckb_distortion setTitle: _NS("Distortion")];
     [o_ckb_distortion setToolTip: _NS("Adds distortion effects")];
     [o_ckb_imgClone setTitle: _NS("Image clone")];
-    [o_ckb_imgClone setToolTip: _NS("Creates several copies of the Video " \
+    [o_ckb_imgClone setToolTip: _NS("Creates several copies of the Video "
                                     "output window" )];
     [o_ckb_imgCrop setTitle: _NS("Image cropping")];
     [o_ckb_imgCrop setToolTip: _NS("Crops a defined part of the image")];
@@ -96,11 +96,13 @@ static VLCExtended *_o_sharedInstance = nil;
     [o_ckb_imgInvers setToolTip: _NS("Inverts the colors of the image")];
     [o_ckb_trnsform setTitle: _NS("Transformation")];
     [o_ckb_trnsform setToolTip: _NS("Rotates or flips the image")];
+    [o_ckb_intZoom setTitle: _NS("Interactive Zoom")];
+    [o_ckb_intZoom setToolTip: _NS("Enables an interactive Zoom feature")];
     [o_ckb_vlme_norm setTitle: _NS("Volume normalization")];
-    [o_ckb_vlme_norm setToolTip: _NS("Prevents the audio output from going " \
+    [o_ckb_vlme_norm setToolTip: _NS("Prevents the audio output from going "
         "over a predefined value.")];
     [o_ckb_hdphnVirt setTitle: _NS("Headphone virtualization")];
-    [o_ckb_hdphnVirt setToolTip: _NS("Imitates the effect of surround sound " \
+    [o_ckb_hdphnVirt setToolTip: _NS("Imitates the effect of surround sound "
         "when using headphones.")];
     [o_lbl_maxLevel setStringValue: _NS("Maximum level")];
     [o_btn_rstrDefaults setTitle: _NS("Restore Defaults")];
@@ -233,7 +235,7 @@ static VLCExtended *_o_sharedInstance = nil;
         [o_sld_maxLevel setFloatValue: f_value ];
     }
 
-    [o_sld_opaque setFloatValue: (config_GetFloat( p_intf, \
+    [o_sld_opaque setFloatValue: (config_GetFloat( p_intf,
         "macosx-opaqueness") * 100)];
 
 
@@ -351,7 +353,7 @@ static VLCExtended *_o_sharedInstance = nil;
     id o_window = [NSApp keyWindow];
     NSArray *o_windows = [NSApp orderedWindows];
     NSEnumerator *o_enumerator = [o_windows objectEnumerator];
-    playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST, \
+    playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST,
         FIND_ANYWHERE );
     vout_thread_t *p_vout = vlc_object_find( VLCIntf, VLC_OBJECT_VOUT, FIND_ANYWHERE );
     vout_thread_t *p_real_vout;
@@ -459,7 +461,6 @@ static VLCExtended *_o_sharedInstance = nil;
     if (o_adjImg_expanded)
     {
         o_box_adjImg_rect.size.height = [o_box_adjImg frame].size.height - 171;
-        msg_Dbg( VLCIntf, "collapsed adjust-image section");
         o_adjImg_expanded = NO;
     } else {
         /* insert view */
@@ -468,7 +469,6 @@ static VLCExtended *_o_sharedInstance = nil;
         [o_adjustImg_view setNeedsDisplay:YES];
         [o_adjustImg_view setAutoresizesSubviews: YES];
         [[o_box_adjImg contentView] addSubview: o_adjustImg_view];
-        msg_Dbg( VLCIntf, "expanded adjust-image section");
         o_adjImg_expanded = YES;
     }
     [o_box_adjImg setFrameFromContentFrame: o_box_adjImg_rect];
@@ -501,7 +501,6 @@ static VLCExtended *_o_sharedInstance = nil;
     if (o_audFlts_expanded)
     {
         o_box_audFlts_rect.size.height = [o_box_audFlts frame].size.height - 66;
-        msg_Dbg( VLCIntf, "collapsed audio-filters section");
         o_audFlts_expanded = NO;
     } else {
         /* insert view */
@@ -510,7 +509,6 @@ static VLCExtended *_o_sharedInstance = nil;
         [o_audioFlts_view setNeedsDisplay:YES];
         [o_audioFlts_view setAutoresizesSubviews: YES];
         [[o_box_audFlts contentView] addSubview: o_audioFlts_view];
-        msg_Dbg( VLCIntf, "expanded audio-filters section");
         o_audFlts_expanded = YES;
     }
     [o_box_audFlts setFrameFromContentFrame: o_box_audFlts_rect];
@@ -527,18 +525,18 @@ static VLCExtended *_o_sharedInstance = nil;
     {
         /* move the window contents upwards (partially done through settings
          * inside the nib) and resize the window */
-        o_win_rect.size.height = o_win_rect.size.height - 134;
-        o_win_rect.origin.y = [o_extended_window frame].origin.y + 134;
-        o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y + 134;
+        o_win_rect.size.height = o_win_rect.size.height - 116;
+        o_win_rect.origin.y = [o_extended_window frame].origin.y + 116;
+        o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y + 116;
         
         /* remove the inserted view */
         [o_videoFilters_view removeFromSuperviewWithoutNeedingDisplay];
     }else{
     
         /* move the window contents downwards and resize the window */
-        o_win_rect.size.height = o_win_rect.size.height + 134;
-        o_win_rect.origin.y = [o_extended_window frame].origin.y - 134;
-        o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y - 134;
+        o_win_rect.size.height = o_win_rect.size.height + 116;
+        o_win_rect.origin.y = [o_extended_window frame].origin.y - 116;
+        o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y - 116;
     }
     
     [o_box_audFlts setFrameFromContentFrame: o_box_audFlts_rect];
@@ -547,17 +545,15 @@ static VLCExtended *_o_sharedInstance = nil;
     
     if (o_vidFlts_expanded)
     {
-        o_box_vidFlts_rect.size.height = [o_box_vidFlts frame].size.height - 134;
-        msg_Dbg( VLCIntf, "collapsed video-filters section");
+        o_box_vidFlts_rect.size.height = [o_box_vidFlts frame].size.height - 116;
         o_vidFlts_expanded = NO;
     } else {
         /* insert view */
-        o_box_vidFlts_rect.size.height = [o_box_vidFlts frame].size.height + 134;
-        [o_videoFilters_view setFrame: NSMakeRect( 20, -10, 370, 144)];
+        o_box_vidFlts_rect.size.height = [o_box_vidFlts frame].size.height + 116;
+        [o_videoFilters_view setFrame: NSMakeRect( 20, -10, 370, 116)];
         [o_videoFilters_view setNeedsDisplay:YES];
         [o_videoFilters_view setAutoresizesSubviews: YES];
         [[o_box_vidFlts contentView] addSubview: o_videoFilters_view];
-        msg_Dbg( VLCIntf, "expanded video-filters section");
         o_vidFlts_expanded = YES;
     }
     [o_box_vidFlts setFrameFromContentFrame: o_box_vidFlts_rect];
@@ -589,22 +585,25 @@ static VLCExtended *_o_sharedInstance = nil;
     else if (sender == o_ckb_trnsform)
     {
         [self changeVFiltersString: "transform" onOrOff: [o_ckb_trnsform state]];
+    }
+    else if (sender == o_ckb_intZoom )
+    {
+        [self changeVFiltersString: "magnify" onOrOff: [o_ckb_intZoom state]];
     } else {
         /* this shouldn't happen */
-        msg_Warn (VLCIntf, "cannot find selected video-filter");
+        msg_Warn (VLCIntf, "cannot find switched video-filter");
     }
 }
 
 - (IBAction)vidFlts_mrInfo:(id)sender
 {
     /* show info sheet */
-/// \bug [String] Misplaced \n
-    NSBeginInformationalAlertSheet(_NS("More Information"), _NS("OK"), @"", @"", \
-        o_extended_window, nil, nil, nil, nil, _NS("This panel allows to " \
-        "select video effects filters to apply.\n" \
-        "The filters can be configured indivudually in the Preferences, in " \
-        "the subsections of Video/Filters\n." \
-        "To choose the order in which the filter are applied, a filter " \
+    NSBeginInformationalAlertSheet(_NS("More Information"), _NS("OK"), @"", @"",
+        o_extended_window, nil, nil, nil, nil, _NS("This panel allows to "
+        "select video effects filters to apply.\n"
+        "The filters can be configured individually in the Preferences, in "
+        "the subsections of Video/Filters.\n"
+        "To choose the order in which the filter are applied, a filter "
         "option string can be set in the Preferences, Video / Filters section."));
 }
 
@@ -761,24 +760,24 @@ static VLCExtended *_o_sharedInstance = nil;
 {    
     /* save the preferences to make sure that our module-changes will up on
      * next launch again */
-    playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST, \
+    playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST,
         FIND_ANYWHERE );
     int returnedValue;
     NSArray * theModules;
-    theModules = [[NSArray alloc] initWithObjects: @"main", @"headphone", \
-        @"transform", @"adjust", @"invert", @"motionblur", @"distort", \
-        @"clone", @"crop", @"normvol", @"headphone_channel_mixer", @"macosx", \
+    theModules = [[NSArray alloc] initWithObjects: @"main", @"headphone",
+        @"transform", @"adjust", @"invert", @"motionblur", @"distort",
+        @"clone", @"crop", @"normvol", @"headphone_channel_mixer", @"macosx",
         nil];
     unsigned int x = 0;
     
     while ( x != [theModules count] )
     {
-        returnedValue = config_SaveConfigFile( p_playlist, [[theModules \
+        returnedValue = config_SaveConfigFile( p_playlist, [[theModules
             objectAtIndex: x] UTF8String] );
 
         if (returnedValue != 0)
         {
-            msg_Err(p_playlist, "unable to save the preferences of the " \
+            msg_Err(p_playlist, "unable to save the preferences of the "
             "extended control attribute '%s' (%i)", 
             [[theModules objectAtIndex: x] UTF8String] , returnedValue);
             [theModules release];