Changeset 1405cf748a267b5e7ad21b606172a27d688eda56
- Timestamp:
- 15/06/08 23:31:19 (6 months ago)
- git-parent:
- Files:
-
- extras/package/macosx/Resources/English.lproj/Extended.nib/classes.nib (modified) (1 diff)
- extras/package/macosx/Resources/English.lproj/Extended.nib/info.nib (modified) (1 diff)
- extras/package/macosx/Resources/English.lproj/Extended.nib/keyedobjects.nib (modified) (previous)
- modules/gui/macosx/extended.h (modified) (4 diffs)
- modules/gui/macosx/extended.m (modified) (4 diffs)
- modules/gui/macosx/intf.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
extras/package/macosx/Resources/English.lproj/Extended.nib/classes.nib
r2e888fd r1405cf7 1 1 { 2 IBClasses = ( 3 { 4 ACTIONS = { 5 alignCenter = id; 6 alignJustified = id; 7 alignLeft = id; 8 alignRight = id; 9 arrangeInFront = id; 10 centerSelectionInVisibleArea = id; 11 changeFont = id; 12 checkSpelling = id; 13 clear = id; 14 clearRecentDocuments = id; 15 complete = id; 16 copy = id; 17 copyFont = id; 18 copyRuler = id; 19 cut = id; 20 delete = id; 21 deminiaturize = id; 22 fax = id; 23 hide = id; 24 hideOtherApplications = id; 25 loosenKerning = id; 26 lowerBaseline = id; 27 makeKeyAndOrderFront = id; 28 miniaturize = id; 29 newDocument = id; 30 openDocument = id; 31 orderBack = id; 32 orderFront = id; 33 orderFrontColorPanel = id; 34 orderFrontHelpPanel = id; 35 orderOut = id; 36 outline = id; 37 paste = id; 38 pasteAsPlainText = id; 39 pasteAsRichText = id; 40 pasteFont = id; 41 pasteRuler = id; 42 pause = id; 43 performClose = id; 44 performFindPanelAction = id; 45 performMiniaturize = id; 46 performZoom = id; 47 play = id; 48 print = id; 49 printDocument = id; 50 raiseBaseline = id; 51 record = id; 52 redo = id; 53 resume = id; 54 revertDocumentToSaved = id; 55 run = id; 56 runPageLayout = id; 57 runToolbarCustomizationPalette = id; 58 saveAllDocuments = id; 59 saveDocument = id; 60 saveDocumentAs = id; 61 saveDocumentTo = id; 62 selectAll = id; 63 selectText = id; 64 showGuessPanel = id; 65 showHelp = id; 66 start = id; 67 startSpeaking = id; 68 stop = id; 69 stopSpeaking = id; 70 subscript = id; 71 superscript = id; 72 terminate = id; 73 tightenKerning = id; 74 toggleContinuousSpellChecking = id; 75 toggleRuler = id; 76 toggleToolbarShown = id; 77 turnOffKerning = id; 78 turnOffLigatures = id; 79 underline = id; 80 undo = id; 81 unhideAllApplications = id; 82 unscript = id; 83 useAllLigatures = id; 84 useStandardKerning = id; 85 useStandardLigatures = id; 86 }; 87 CLASS = FirstResponder; 88 LANGUAGE = ObjC; 89 SUPERCLASS = NSObject; 90 }, 91 { 92 CLASS = IBInspector; 93 LANGUAGE = ObjC; 94 OUTLETS = {inspectorView = NSView; }; 95 SUPERCLASS = NSObject; 96 }, 97 { 98 CLASS = IBLibraryObjectTemplate; 99 LANGUAGE = ObjC; 100 OUTLETS = {draggedView = NSView; representedObject = NSObject; }; 101 SUPERCLASS = NSView; 102 }, 103 {CLASS = NSDateFormatter; LANGUAGE = ObjC; SUPERCLASS = NSFormatter; }, 104 {CLASS = NSFormatter; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 105 {CLASS = NSNumberFormatter; LANGUAGE = ObjC; SUPERCLASS = NSFormatter; }, 106 { 107 CLASS = PDFThumbnailView; 108 LANGUAGE = ObjC; 109 OUTLETS = {pdfView = PDFView; }; 110 SUPERCLASS = NSView; 111 }, 112 { 113 ACTIONS = { 114 goBack = id; 115 goForward = id; 116 goToFirstPage = id; 117 goToLastPage = id; 118 goToNextPage = id; 119 goToPreviousPage = id; 120 selectAll = id; 121 takeBackgroundColorFrom = id; 122 zoomIn = id; 123 zoomOut = id; 124 }; 125 CLASS = PDFView; 126 LANGUAGE = ObjC; 127 SUPERCLASS = NSView; 128 }, 129 { 130 ACTIONS = { 131 enableAdjustImage = id; 132 enableHeadphoneVirtualizer = id; 133 enableVolumeNormalization = id; 134 expandAdjustImage = id; 135 expandAudioFilters = id; 136 expandVideoFilters = id; 137 moreInfoVideoFilters = id; 138 opaqueSliderAction = id; 139 restoreDefaultsForAdjustImage = id; 140 sliderActionAdjustImage = id; 141 sliderActionMaximumAudioLevel = id; 142 videoFilterAction = id; 143 }; 144 CLASS = VLCExtended; 145 LANGUAGE = ObjC; 146 OUTLETS = { 147 "o_adjustImg_view" = id; 148 "o_audioFlts_view" = id; 149 "o_box_adjImg" = id; 150 "o_box_audFlts" = id; 151 "o_box_vidFlts" = id; 152 "o_btn_rstrDefaults" = id; 153 "o_btn_vidFlts_mrInfo" = id; 154 "o_ckb_blur" = id; 155 "o_ckb_enblAdjustImg" = id; 156 "o_ckb_gradient" = id; 157 "o_ckb_hdphnVirt" = id; 158 "o_ckb_imgClone" = id; 159 "o_ckb_imgCrop" = id; 160 "o_ckb_imgInvers" = id; 161 "o_ckb_intZoom" = id; 162 "o_ckb_psycho" = id; 163 "o_ckb_ripple" = id; 164 "o_ckb_trnsform" = id; 165 "o_ckb_vlme_norm" = id; 166 "o_ckb_wave" = id; 167 "o_expBtn_adjustImage" = id; 168 "o_expBtn_audioFlts" = id; 169 "o_expBtn_videoFlts" = id; 170 "o_extended_window" = id; 171 "o_lbl_adjustImage" = id; 172 "o_lbl_audio" = id; 173 "o_lbl_audioFlts" = id; 174 "o_lbl_brightness" = id; 175 "o_lbl_contrast" = id; 176 "o_lbl_distort" = id; 177 "o_lbl_gamma" = id; 178 "o_lbl_general" = id; 179 "o_lbl_hue" = id; 180 "o_lbl_maxLevel" = id; 181 "o_lbl_opaque" = id; 182 "o_lbl_saturation" = id; 183 "o_lbl_video" = id; 184 "o_lbl_videoFlts" = id; 185 "o_sld_brightness" = id; 186 "o_sld_contrast" = id; 187 "o_sld_gamma" = id; 188 "o_sld_hue" = id; 189 "o_sld_maxLevel" = id; 190 "o_sld_opaque" = id; 191 "o_sld_saturation" = id; 192 "o_videoFilters_view" = id; 193 }; 194 SUPERCLASS = NSObject; 2 IBClasses = ( 3 { 4 ACTIONS = { 5 alignCenter = id; 6 alignJustified = id; 7 alignLeft = id; 8 alignRight = id; 9 arrangeInFront = id; 10 centerSelectionInVisibleArea = id; 11 changeFont = id; 12 checkSpelling = id; 13 clear = id; 14 clearRecentDocuments = id; 15 complete = id; 16 copy = id; 17 copyFont = id; 18 copyRuler = id; 19 cut = id; 20 delete = id; 21 deminiaturize = id; 22 fax = id; 23 hide = id; 24 hideOtherApplications = id; 25 loosenKerning = id; 26 lowerBaseline = id; 27 makeKeyAndOrderFront = id; 28 miniaturize = id; 29 newDocument = id; 30 openDocument = id; 31 orderBack = id; 32 orderFront = id; 33 orderFrontColorPanel = id; 34 orderFrontHelpPanel = id; 35 orderOut = id; 36 outline = id; 37 paste = id; 38 pasteAsPlainText = id; 39 pasteAsRichText = id; 40 pasteFont = id; 41 pasteRuler = id; 42 pause = id; 43 performClose = id; 44 performFindPanelAction = id; 45 performMiniaturize = id; 46 performZoom = id; 47 play = id; 48 print = id; 49 printDocument = id; 50 raiseBaseline = id; 51 record = id; 52 redo = id; 53 resume = id; 54 revertDocumentToSaved = id; 55 run = id; 56 runPageLayout = id; 57 runToolbarCustomizationPalette = id; 58 saveAllDocuments = id; 59 saveDocument = id; 60 saveDocumentAs = id; 61 saveDocumentTo = id; 62 selectAll = id; 63 selectText = id; 64 showGuessPanel = id; 65 showHelp = id; 66 start = id; 67 startSpeaking = id; 68 stop = id; 69 stopSpeaking = id; 70 subscript = id; 71 superscript = id; 72 terminate = id; 73 tightenKerning = id; 74 toggleContinuousSpellChecking = id; 75 toggleRuler = id; 76 toggleToolbarShown = id; 77 turnOffKerning = id; 78 turnOffLigatures = id; 79 underline = id; 80 undo = id; 81 unhideAllApplications = id; 82 unscript = id; 83 useAllLigatures = id; 84 useStandardKerning = id; 85 useStandardLigatures = id; 86 }; 87 CLASS = FirstResponder; 88 LANGUAGE = ObjC; 89 SUPERCLASS = NSObject; 90 }, 91 { 92 CLASS = IBInspector; 93 LANGUAGE = ObjC; 94 OUTLETS = { 95 inspectorView = NSView; 96 }; 97 SUPERCLASS = NSObject; 98 }, 99 { 100 CLASS = IBLibraryObjectTemplate; 101 LANGUAGE = ObjC; 102 OUTLETS = { 103 draggedView = NSView; 104 representedObject = NSObject; 105 }; 106 SUPERCLASS = NSView; 107 }, 108 { 109 CLASS = NSDateFormatter; 110 LANGUAGE = ObjC; 111 SUPERCLASS = NSFormatter; 112 }, 113 { 114 CLASS = NSFormatter; 115 LANGUAGE = ObjC; 116 SUPERCLASS = NSObject; 117 }, 118 { 119 CLASS = NSNumberFormatter; 120 LANGUAGE = ObjC; 121 SUPERCLASS = NSFormatter; 122 }, 123 { 124 CLASS = PDFThumbnailView; 125 LANGUAGE = ObjC; 126 OUTLETS = { 127 pdfView = PDFView; 128 }; 129 SUPERCLASS = NSView; 130 }, 131 { 132 ACTIONS = { 133 goBack = id; 134 goForward = id; 135 goToFirstPage = id; 136 goToLastPage = id; 137 goToNextPage = id; 138 goToPreviousPage = id; 139 selectAll = id; 140 takeBackgroundColorFrom = id; 141 zoomIn = id; 142 zoomOut = id; 143 }; 144 CLASS = PDFView; 145 LANGUAGE = ObjC; 146 SUPERCLASS = NSView; 147 }, 148 { 149 ACTIONS = { 150 enableAdjustImage = id; 151 enableHeadphoneVirtualizer = id; 152 enableVolumeNormalization = id; 153 moreInfoVideoFilters = id; 154 opaqueSliderAction = id; 155 restoreDefaultsForAdjustImage = id; 156 sliderActionAdjustImage = id; 157 sliderActionMaximumAudioLevel = id; 158 videoFilterAction = id; 159 viewSelectorAction = id; 160 }; 161 CLASS = VLCExtended; 162 LANGUAGE = ObjC; 163 OUTLETS = { 164 "o_adjustImg_view" = id; 165 "o_audioFlts_view" = id; 166 "o_btn_rstrDefaults" = id; 167 "o_btn_vidFlts_mrInfo" = id; 168 "o_ckb_blur" = id; 169 "o_ckb_enblAdjustImg" = id; 170 "o_ckb_gradient" = id; 171 "o_ckb_hdphnVirt" = id; 172 "o_ckb_imgClone" = id; 173 "o_ckb_imgCrop" = id; 174 "o_ckb_imgInvers" = id; 175 "o_ckb_intZoom" = id; 176 "o_ckb_psycho" = id; 177 "o_ckb_ripple" = id; 178 "o_ckb_trnsform" = id; 179 "o_ckb_vlme_norm" = id; 180 "o_ckb_wave" = id; 181 "o_extended_window" = id; 182 "o_lbl_brightness" = id; 183 "o_lbl_contrast" = id; 184 "o_lbl_distort" = id; 185 "o_lbl_gamma" = id; 186 "o_lbl_general" = id; 187 "o_lbl_hue" = id; 188 "o_lbl_maxLevel" = id; 189 "o_lbl_opaque" = id; 190 "o_lbl_saturation" = id; 191 "o_selector_pop" = id; 192 "o_sld_brightness" = id; 193 "o_sld_contrast" = id; 194 "o_sld_gamma" = id; 195 "o_sld_hue" = id; 196 "o_sld_maxLevel" = id; 197 "o_sld_opaque" = id; 198 "o_sld_saturation" = id; 199 "o_top_controls_box" = id; 200 "o_videoFilters_view" = id; 201 }; 202 SUPERCLASS = NSObject; 195 203 } 196 ); 197 IBVersion = 1; 204 ); 205 IBVersion = 1; 198 206 } extras/package/macosx/Resources/English.lproj/Extended.nib/info.nib
r2e888fd r1405cf7 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 3 3 <plist version="1.0"> 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 69 85 356 240 0 0 1440 878 </string>6 <string>59 108 356 240 0 0 1280 778 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>13</key> 10 <string> 153 575 390 138 0 0 1440 878 </string>10 <string>444 613 390 120 0 0 1280 778 </string> 11 11 <key>32</key> 12 <string> 525 476 390 255 0 0 1440 878 </string>12 <string>445 426 390 237 0 0 1280 778 </string> 13 13 <key>5</key> 14 <string>5 18 235 390 230 0 0 1440 878 </string>14 <string>57 437 390 214 0 0 1280 778 </string> 15 15 </dict> 16 16 <key>IBFramework Version</key> 17 <string>4 46.1</string>17 <string>489.0</string> 18 18 <key>IBOpenObjects</key> 19 19 <array> 20 <integer>13</integer>21 20 <integer>5</integer> 22 21 <integer>18</integer> 23 22 <integer>32</integer> 23 <integer>13</integer> 24 24 </array> 25 25 <key>IBSystem Version</key> 26 <string> 8P135</string>26 <string>9D34</string> 27 27 <key>targetFramework</key> 28 28 <string>IBCocoaFramework</string> modules/gui/macosx/extended.h
r3561b9b r1405cf7 39 39 40 40 /* window content */ 41 IBOutlet id o_expBtn_adjustImage; 42 IBOutlet id o_expBtn_audioFlts; 43 IBOutlet id o_expBtn_videoFlts; 44 IBOutlet id o_lbl_audioFlts; 45 IBOutlet id o_lbl_videoFlts; 46 IBOutlet id o_lbl_adjustImage; 47 IBOutlet id o_lbl_video; 48 IBOutlet id o_lbl_audio; 49 IBOutlet id o_box_vidFlts; 50 IBOutlet id o_box_audFlts; 51 IBOutlet id o_box_adjImg; 41 IBOutlet id o_selector_pop; 42 IBOutlet id o_top_controls_box; 52 43 53 44 /* video filters */ … … 89 80 90 81 /* global variables */ 91 BOOL o_adjImg_expanded; 92 BOOL o_audFlts_expanded; 93 BOOL o_vidFlts_expanded; 94 82 NSView * o_currentlyshown_view; 95 83 BOOL o_config_changed; 96 84 } 97 85 86 - (IBAction)viewSelectorAction:(id)sender; 98 87 - (IBAction)enableAdjustImage:(id)sender; 99 88 - (IBAction)restoreDefaultsForAdjustImage:(id)sender; … … 103 92 - (IBAction)sliderActionMaximumAudioLevel:(id)sender; 104 93 - (IBAction)enableVolumeNormalization:(id)sender; 105 - (IBAction)expandAdjustImage:(id)sender;106 - (IBAction)expandAudioFilters:(id)sender;107 - (IBAction)expandVideoFilters:(id)sender;108 94 - (IBAction)videoFilterAction:(id)sender; 109 95 - (IBAction)moreInfoVideoFilters:(id)sender; … … 111 97 + (VLCExtended *)sharedInstance; 112 98 - (BOOL)getConfigChanged; 113 - (void)collapsAll;114 99 115 100 - (void)showPanel; modules/gui/macosx/extended.m
r449fd28 r1405cf7 66 66 /* method is called from intf.m (in method showExtended) */ 67 67 [o_extended_window setTitle: _NS("Extended controls")]; 68 [o_lbl_video setStringValue: _NS("Video")];69 [o_lbl_audio setStringValue: _NS("Audio")];70 [o_lbl_audioFlts setStringValue: _NS("Audio filters")];71 [o_lbl_videoFlts setStringValue: _NS("Video filters")];72 [o_lbl_adjustImage setStringValue: _NS("Image adjustment")];73 68 [o_btn_vidFlts_mrInfo setToolTip: _NS("Shows more information about the available video filters.")]; 74 69 [o_ckb_wave setTitle: _NS("Wave")]; … … 171 166 free( psz_afilters ); 172 167 } 173 } 174 175 - (void)collapsAll 176 { 177 /* collaps all views so Cocoa saves the window position correctly */ 178 if( o_adjImg_expanded ) 179 [self expandAdjustImage: nil]; 180 181 if( o_audFlts_expanded ) 182 [self expandAudioFilters: nil]; 183 184 if( o_vidFlts_expanded ) 185 [self expandVideoFilters: nil]; 168 169 /* fill the popup button according to our available views */ 170 [o_selector_pop removeAllItems]; 171 [o_selector_pop addItemWithTitle: _NS("Adjust Image")]; 172 [o_selector_pop addItemWithTitle: _NS("Video Filter")]; 173 [o_selector_pop addItemWithTitle: _NS("Audio Filter")]; 174 [o_selector_pop selectItemAtIndex: 0]; 175 176 /* make sure we draw a view on launch */ 177 [self viewSelectorAction: self]; 178 179 [self initStrings]; 186 180 } 187 181 … … 231 225 [o_extended_window displayIfNeeded]; 232 226 [o_extended_window makeKeyAndOrderFront:nil]; 227 } 228 229 - (IBAction)viewSelectorAction:(id)sender 230 { 231 NSView *o_toBeShown_view; 232 /* check which view to show */ 233 if( [[[o_selector_pop selectedItem] title] isEqualToString: _NS("Adjust Image")] ) 234 o_toBeShown_view = o_adjustImg_view; 235 else if( [[[o_selector_pop selectedItem] title] isEqualToString: _NS("Audio Filter")] ) 236 o_toBeShown_view = o_audioFlts_view; 237 else if( [[[o_selector_pop selectedItem] title] isEqualToString: _NS("Video Filter")] ) 238 o_toBeShown_view = o_videoFilters_view; 239 else 240 msg_Err( VLCIntf, "invalid ui view requested" ); 241 242 NSRect o_win_rect, o_view_rect, o_old_view_rect; 243 o_win_rect = [o_extended_window frame]; 244 o_view_rect = [o_toBeShown_view frame]; 245 246 if( o_currentlyshown_view != nil ) 247 { 248 /* restore our window's height, if we've shown another category previously */ 249 o_old_view_rect = [o_currentlyshown_view frame]; 250 o_win_rect.size.height = o_win_rect.size.height - o_old_view_rect.size.height; 251 o_win_rect.origin.y = ( o_win_rect.origin.y + o_old_view_rect.size.height ) - o_view_rect.size.height; 252 253 /* remove our previous category view */ 254 [o_currentlyshown_view removeFromSuperviewWithoutNeedingDisplay]; 255 } 256 257 o_win_rect.size.height = o_win_rect.size.height + o_view_rect.size.height; 258 259 //[o_extended_window displayIfNeeded]; 260 [o_extended_window setFrame: o_win_rect display:YES animate: YES]; 261 262 [o_toBeShown_view setFrame: NSMakeRect( 0, 263 0, //[o_top_controls_box frame].size.height, 264 o_view_rect.size.width, 265 o_view_rect.size.height )]; 266 [o_toBeShown_view setNeedsDisplay: YES]; 267 [o_toBeShown_view setAutoresizesSubviews: YES]; 268 [[o_extended_window contentView] addSubview: o_toBeShown_view]; 269 270 /* keep our current category for further reference */ 271 [o_currentlyshown_view release]; 272 o_currentlyshown_view = o_toBeShown_view; 273 [o_currentlyshown_view retain]; 233 274 } 234 275 … … 432 473 else 433 474 [self changeAFiltersString: "normvol" onOrOff: NO ]; 434 }435 436 - (IBAction)expandAdjustImage:(id)sender437 {438 /* expand or collapse adjImg */439 NSRect o_win_rect = [o_extended_window frame];440 NSRect o_box_audFlts_rect = [o_box_audFlts frame];441 NSRect o_box_vidFlts_rect = [o_box_vidFlts frame];442 NSRect o_box_adjImg_rect = [o_box_adjImg frame];443 444 if( o_adjImg_expanded )445 {446 /* move the window contents upwards (partially done through settings447 * inside the nib) and resize the window */448 o_win_rect.size.height = o_win_rect.size.height - 193;449 o_win_rect.origin.y = [o_extended_window frame].origin.y + 193;450 o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y + 193;451 o_box_vidFlts_rect.origin.y = o_box_vidFlts_rect.origin.y + 193;452 453 /* remove the inserted view */454 [o_adjustImg_view removeFromSuperviewWithoutNeedingDisplay];455 }456 else457 {458 /* move the window contents downwards and resize the window */459 o_win_rect.size.height = o_win_rect.size.height + 193;460 o_win_rect.origin.y = [o_extended_window frame].origin.y - 193;461 o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y - 193;462 o_box_vidFlts_rect.origin.y = o_box_vidFlts_rect.origin.y - 193;463 }464 465 [o_box_audFlts setFrameFromContentFrame: o_box_audFlts_rect];466 [o_box_vidFlts setFrameFromContentFrame: o_box_vidFlts_rect];467 [o_extended_window displayIfNeeded];468 [o_extended_window setFrame: o_win_rect display:YES animate: YES];469 470 if( o_adjImg_expanded )471 {472 o_box_adjImg_rect.size.height = [o_box_adjImg frame].size.height - 193;473 o_adjImg_expanded = NO;474 }475 else476 {477 /* insert view */478 o_box_adjImg_rect.size.height = [o_box_adjImg frame].size.height + 193;479 [o_adjustImg_view setFrame: NSMakeRect( 20, -10, 370, 203)];480 [o_adjustImg_view setNeedsDisplay:YES];481 [o_adjustImg_view setAutoresizesSubviews: YES];482 [[o_box_adjImg contentView] addSubview: o_adjustImg_view];483 o_adjImg_expanded = YES;484 }485 [o_box_adjImg setFrameFromContentFrame: o_box_adjImg_rect];486 }487 488 - (IBAction)expandAudioFilters:(id)sender489 {490 /* expand or collapse audFlts */491 NSRect o_win_rect = [o_extended_window frame];492 NSRect o_box_audFlts_rect = [o_box_audFlts frame];493 494 if( o_audFlts_expanded )495 {496 /* move the window contents upwards (partially done through settings497 * inside the nib) and resize the window */498 o_win_rect.size.height = o_win_rect.size.height - 66;499 o_win_rect.origin.y = [o_extended_window frame].origin.y + 66;500 501 /* remove the inserted view */502 [o_audioFlts_view removeFromSuperviewWithoutNeedingDisplay];503 }504 else505 {506 /* move the window contents downwards and resize the window */507 o_win_rect.size.height = o_win_rect.size.height + 66;508 o_win_rect.origin.y = [o_extended_window frame].origin.y - 66;509 }510 [o_extended_window displayIfNeeded];511 [o_extended_window setFrame: o_win_rect display:YES animate: YES];512 513 514 if( o_audFlts_expanded )515 {516 o_box_audFlts_rect.size.height = [o_box_audFlts frame].size.height - 66;517 o_audFlts_expanded = NO;518 }519 else520 {521 /* insert view */522 o_box_audFlts_rect.size.height = [o_box_audFlts frame].size.height + 66;523 [o_audioFlts_view setFrame: NSMakeRect( 20, -20, 370, 76)];524 [o_audioFlts_view setNeedsDisplay:YES];525 [o_audioFlts_view setAutoresizesSubviews: YES];526 [[o_box_audFlts contentView] addSubview: o_audioFlts_view];527 o_audFlts_expanded = YES;528 }529 [o_box_audFlts setFrameFromContentFrame: o_box_audFlts_rect];530 }531 532 - (IBAction)expandVideoFilters:(id)sender533 {534 /* expand or collapse vidFlts */535 NSRect o_win_rect = [o_extended_window frame];536 NSRect o_box_audFlts_rect = [o_box_audFlts frame];537 NSRect o_box_vidFlts_rect = [o_box_vidFlts frame];538 539 if( o_vidFlts_expanded )540 {541 /* move the window contents upwards (partially done through settings542 * inside the nib) and resize the window */543 o_win_rect.size.height = o_win_rect.size.height - 172;544 o_win_rect.origin.y = [o_extended_window frame].origin.y + 172;545 o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y + 172;546 547 /* remove the inserted view */548 [o_videoFilters_view removeFromSuperviewWithoutNeedingDisplay];549 }550 else551 {552 /* move the window contents downwards and resize the window */553 o_win_rect.size.height = o_win_rect.size.height + 172;554 o_win_rect.origin.y = [o_extended_window frame].origin.y - 172;555 o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y - 172;556 }557 558 [o_box_audFlts setFrameFromContentFrame: o_box_audFlts_rect];559 [o_extended_window displayIfNeeded];560 [o_extended_window setFrame: o_win_rect display:YES animate: YES];561 562 if( o_vidFlts_expanded )563 {564 o_box_vidFlts_rect.size.height = [o_box_vidFlts frame].size.height - 172;565 o_vidFlts_expanded = NO;566 }567 else568 {569 /* insert view */570 o_box_vidFlts_rect.size.height = [o_box_vidFlts frame].size.height + 172;571 [o_videoFilters_view setFrame: NSMakeRect( 20, -10, 370, 172)];572 [o_videoFilters_view setNeedsDisplay:YES];573 [o_videoFilters_view setAutoresizesSubviews: YES];574 [[o_box_vidFlts contentView] addSubview: o_videoFilters_view];575 o_vidFlts_expanded = YES;576 }577 [o_box_vidFlts setFrameFromContentFrame: o_box_vidFlts_rect];578 475 } 579 476 modules/gui/macosx/intf.m
r3646783 r1405cf7 1818 1818 if( nib_extended_loaded ) 1819 1819 { 1820 [o_extended collapsAll];1821 1820 [o_extended release]; 1822 1821 } … … 1945 1944 { 1946 1945 if( o_extended == nil ) 1947 {1948 1946 o_extended = [[VLCExtended alloc] init]; 1949 } 1947 1950 1948 if( !nib_extended_loaded ) 1951 {1952 1949 nib_extended_loaded = [NSBundle loadNibNamed:@"Extended" owner:self]; 1953 [o_extended initStrings]; 1954 [o_extended showPanel]; 1955 } else { 1956 [o_extended showPanel]; 1957 } 1950 1951 [o_extended showPanel]; 1958 1952 } 1959 1953
