Changeset ba45505c117110c367d6dc034653c6a9c0a6bcc4
- Timestamp:
- 07/16/02 22:41:48
(6 years ago)
- Author:
- Jon Lech Johansen <jlj@videolan.org>
- git-committer:
- Jon Lech Johansen <jlj@videolan.org> 1026852108 +0000
- git-parent:
[974052ffdfacbaaaf63f6855488167040ed9bfc9]
- git-author:
- Jon Lech Johansen <jlj@videolan.org> 1026852108 +0000
- Message:
- MacOS X: added deinterlace submenu
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r57e1951 |
rba45505 |
|
| 6 | 6 | Not released yet |
|---|
| 7 | 7 | |
|---|
| | 8 | * ./plugins/access/http.c: fixed a double free bug and a memory leak. |
|---|
| 8 | 9 | * MacOS X: added messages and playlist panel, dock menu, context menu |
|---|
| 9 | 10 | in video view and localization support. |
|---|
| r57e1951 |
rba45505 |
|
| 4 | 4 | { |
|---|
| 5 | 5 | ACTIONS = { |
|---|
| | 6 | deinterlace = id; |
|---|
| 6 | 7 | faster = id; |
|---|
| 7 | 8 | fullscreen = id; |
|---|
| … | … | |
| 43 | 44 | o_mi_copy = id; |
|---|
| 44 | 45 | o_mi_cut = id; |
|---|
| | 46 | o_mi_deinterlace = id; |
|---|
| 45 | 47 | o_mi_faster = id; |
|---|
| 46 | 48 | o_mi_fullscreen = id; |
|---|
| r57e1951 |
rba45505 |
|
| 16 | 16 | <key>IBOpenObjects</key> |
|---|
| 17 | 17 | <array> |
|---|
| 18 | | <integer>29</integer> |
|---|
| 19 | 18 | <integer>21</integer> |
|---|
| 20 | 19 | </array> |
|---|
| r57e1951 |
rba45505 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: intf_controls.m,v 1.1 2002/07/15 01:54:03 jlj Exp $ |
|---|
| | 5 | * $Id: intf_controls.m,v 1.2 2002/07/16 20:41:48 jlj Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 61 | 61 | - (IBAction)mute:(id)sender; |
|---|
| 62 | 62 | - (IBAction)fullscreen:(id)sender; |
|---|
| | 63 | - (IBAction)deinterlace:(id)sender; |
|---|
| 63 | 64 | |
|---|
| 64 | 65 | - (IBAction)toggleProgram:(id)sender; |
|---|
| … | … | |
| 265 | 266 | { |
|---|
| 266 | 267 | [o_window toggleFullscreen]; |
|---|
| | 268 | } |
|---|
| | 269 | } |
|---|
| | 270 | |
|---|
| | 271 | - (IBAction)deinterlace:(id)sender |
|---|
| | 272 | { |
|---|
| | 273 | intf_thread_t * p_intf = [NSApp getIntf]; |
|---|
| | 274 | BOOL bEnable = [sender state] == NSOffState; |
|---|
| | 275 | |
|---|
| | 276 | if( bEnable ) |
|---|
| | 277 | { |
|---|
| | 278 | config_PutPsz( p_intf, "filter", "deinterlace" ); |
|---|
| | 279 | config_PutPsz( p_intf, "deinterlace-mode", |
|---|
| | 280 | [[sender title] lossyCString] ); |
|---|
| | 281 | } |
|---|
| | 282 | else |
|---|
| | 283 | { |
|---|
| | 284 | config_PutPsz( p_intf, "filter", NULL ); |
|---|
| 267 | 285 | } |
|---|
| 268 | 286 | } |
|---|
| … | … | |
| 371 | 389 | { |
|---|
| 372 | 390 | BOOL bEnabled = TRUE; |
|---|
| | 391 | NSMenu * o_menu = [o_mi menu]; |
|---|
| 373 | 392 | intf_thread_t * p_intf = [NSApp getIntf]; |
|---|
| 374 | 393 | |
|---|
| … | … | |
| 455 | 474 | if( [[o_window className] isEqualToString: @"VLCWindow"] ) |
|---|
| 456 | 475 | { |
|---|
| 457 | | [o_mi setState: [o_window isFullscreen]]; |
|---|
| | 476 | [o_mi setState: [o_window isFullscreen] ? |
|---|
| | 477 | NSOnState : NSOffState]; |
|---|
| 458 | 478 | } |
|---|
| 459 | 479 | else |
|---|
| … | … | |
| 462 | 482 | } |
|---|
| 463 | 483 | } |
|---|
| | 484 | else if( o_menu != nil && |
|---|
| | 485 | [[o_menu title] isEqualToString: _NS("Deinterlace")] ) |
|---|
| | 486 | { |
|---|
| | 487 | char * psz_filter = config_GetPsz( p_intf, "filter" ); |
|---|
| | 488 | |
|---|
| | 489 | if( psz_filter != NULL ) |
|---|
| | 490 | { |
|---|
| | 491 | free( psz_filter ); |
|---|
| | 492 | |
|---|
| | 493 | psz_filter = config_GetPsz( p_intf, "deinterlace-mode" ); |
|---|
| | 494 | } |
|---|
| | 495 | |
|---|
| | 496 | if( psz_filter != NULL ) |
|---|
| | 497 | { |
|---|
| | 498 | if( strcmp( psz_filter, [[o_mi title] lossyCString] ) == 0 ) |
|---|
| | 499 | { |
|---|
| | 500 | [o_mi setState: NSOnState]; |
|---|
| | 501 | } |
|---|
| | 502 | else |
|---|
| | 503 | { |
|---|
| | 504 | [o_mi setState: NSOffState]; |
|---|
| | 505 | } |
|---|
| | 506 | |
|---|
| | 507 | free( psz_filter ); |
|---|
| | 508 | } |
|---|
| | 509 | else |
|---|
| | 510 | { |
|---|
| | 511 | [o_mi setState: NSOffState]; |
|---|
| | 512 | } |
|---|
| | 513 | } |
|---|
| 464 | 514 | |
|---|
| 465 | 515 | return( bEnabled ); |
|---|
| r57e1951 |
rba45505 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: intf_macosx.h,v 1.1 2002/07/15 01:54:03 jlj Exp $ |
|---|
| | 5 | * $Id: intf_macosx.h,v 1.2 2002/07/16 20:41:48 jlj Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 126 | 126 | IBOutlet id o_mi_mute; |
|---|
| 127 | 127 | IBOutlet id o_mi_fullscreen; |
|---|
| | 128 | IBOutlet id o_mi_deinterlace; |
|---|
| 128 | 129 | IBOutlet id o_mi_program; |
|---|
| 129 | 130 | IBOutlet id o_mi_title; |
|---|
| r063bbcd |
rba45505 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: intf_macosx.m,v 1.7 2002/07/15 20:09:31 sam Exp $ |
|---|
| | 5 | * $Id: intf_macosx.m,v 1.8 2002/07/16 20:41:48 jlj Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 224 | 224 | [o_mi_mute setTitle: _NS("Mute")]; |
|---|
| 225 | 225 | [o_mi_fullscreen setTitle: _NS("Fullscreen")]; |
|---|
| | 226 | [o_mi_deinterlace setTitle: _NS("Deinterlace")]; |
|---|
| 226 | 227 | [o_mi_program setTitle: _NS("Program")]; |
|---|
| 227 | 228 | [o_mi_title setTitle: _NS("Title")]; |
|---|
| r063bbcd |
rba45505 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: vout_macosx.m,v 1.11 2002/07/15 20:09:31 sam Exp $ |
|---|
| | 5 | * $Id: vout_macosx.m,v 1.12 2002/07/16 20:41:48 jlj Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Colin Delacroix <colin@zoy.org> |
|---|
| … | … | |
| 33 | 33 | #include <vlc/vlc.h> |
|---|
| 34 | 34 | #include <vlc/vout.h> |
|---|
| | 35 | #include <vlc/aout.h> |
|---|
| 35 | 36 | #include <vlc/intf.h> |
|---|
| 36 | 37 | |
|---|