- }
-}
-
-- (IBAction)extWin_exp_adjImg:(id)sender
-{
- /* expand or collapse adjImg */
- NSRect o_win_rect = [o_extended_window frame];
- NSRect o_box_audFlts_rect = [o_box_audFlts frame];
- NSRect o_box_vidFlts_rect = [o_box_vidFlts frame];
- NSRect o_box_adjImg_rect = [o_box_adjImg frame];
-
- if (o_adjImg_expanded)
- {
- /* 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 - 171;
- o_win_rect.origin.y = [o_extended_window frame].origin.y + 171;
- o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y + 171;
- o_box_vidFlts_rect.origin.y = o_box_vidFlts_rect.origin.y + 171;
-
- /* remove the inserted view */
- [o_adjustImg_view removeFromSuperviewWithoutNeedingDisplay];
- }else{
-
- /* move the window contents downwards and resize the window */
- o_win_rect.size.height = o_win_rect.size.height + 171;
- o_win_rect.origin.y = [o_extended_window frame].origin.y - 171;
- o_box_audFlts_rect.origin.y = o_box_audFlts_rect.origin.y - 171;
- o_box_vidFlts_rect.origin.y = o_box_vidFlts_rect.origin.y - 171;
- }
-
- [o_box_audFlts setFrameFromContentFrame: o_box_audFlts_rect];
- [o_box_vidFlts setFrameFromContentFrame: o_box_vidFlts_rect];
- [o_extended_window displayIfNeeded];
- [o_extended_window setFrame: o_win_rect display:YES animate: YES];
-
- 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 */
- o_box_adjImg_rect.size.height = [o_box_adjImg frame].size.height + 171;
- [o_adjustImg_view setFrame: NSMakeRect( 20, -10, 370, 181)];
- [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];
-}
-
-- (IBAction)extWin_exp_audFlts:(id)sender
-{
- /* expand or collapse audFlts */
- NSRect o_win_rect = [o_extended_window frame];
- NSRect o_box_audFlts_rect = [o_box_audFlts frame];
-
- if (o_audFlts_expanded)
- {
- /* 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 - 66;
- o_win_rect.origin.y = [o_extended_window frame].origin.y + 66;
-
- /* remove the inserted view */
- [o_audioFlts_view removeFromSuperviewWithoutNeedingDisplay];
- }else{
- /* move the window contents downwards and resize the window */
- o_win_rect.size.height = o_win_rect.size.height + 66;
- o_win_rect.origin.y = [o_extended_window frame].origin.y - 66;
- }
- [o_extended_window displayIfNeeded];
- [o_extended_window setFrame: o_win_rect display:YES animate: YES];
-
-
- 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 */
- o_box_audFlts_rect.size.height = [o_box_audFlts frame].size.height + 66;
- [o_audioFlts_view setFrame: NSMakeRect( 20, -20, 370, 76)];
- [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];
-}
-
-- (IBAction)extWin_exp_vidFlts:(id)sender
-{
- /* expand or collapse vidFlts */
- NSRect o_win_rect = [o_extended_window frame];
- NSRect o_box_audFlts_rect = [o_box_audFlts frame];
- NSRect o_box_vidFlts_rect = [o_box_vidFlts frame];
-
- if (o_vidFlts_expanded)
- {
- /* 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;
-
- /* 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_box_audFlts setFrameFromContentFrame: o_box_audFlts_rect];
- [o_extended_window displayIfNeeded];
- [o_extended_window setFrame: o_win_rect display:YES animate: YES];
-
- 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_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_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];