Changeset 32519ebf91a96bcf7a075052e79abbba49630810

Show
Ignore:
Timestamp:
11/05/02 04:57:16 (6 years ago)
Author:
Jon Lech Johansen <jlj@videolan.org>
git-committer:
Jon Lech Johansen <jlj@videolan.org> 1036468636 +0000
git-parent:

[4d0e2b16bb4fbcbf1e857424db92ec1fc59a3d98]

git-author:
Jon Lech Johansen <jlj@videolan.org> 1036468636 +0000
Message:
  • ./modules/gui/macosx/prefs.m: new configuration interface
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    r0bea9a7 r32519eb  
    22Not released yet 
    33 
     4  * ./modules/gui/macosx/prefs.m: new configuration interface 
    45  * ./src/misc/netutils.c: GetMacAddress Darwin support 
    56  * ./src/libvlc.h: default to en0 instead of eth0 under Darwin 
  • extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib

    r3820b43 r32519eb  
    2929        },  
    3030        { 
    31             ACTIONS = {clearRecentItems = id; };  
     31            ACTIONS = {clearRecentItems = id; viewPreferences = id; };  
    3232            CLASS = VLCMain;  
    3333            LANGUAGE = ObjC;  
     
    5858                "o_mi_open_file" = id;  
    5959                "o_mi_open_net" = id;  
    60                 "o_mi_open_quickly" = id;  
    6160                "o_mi_open_recent" = id;  
    6261                "o_mi_open_recent_cm" = id;  
     
    6564                "o_mi_play" = id;  
    6665                "o_mi_playlist" = id;  
     66                "o_mi_prefs" = id;  
    6767                "o_mi_previous" = id;  
    6868                "o_mi_program" = id;  
  • extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib

    r3820b43 r32519eb  
    1717    <array> 
    1818        <integer>636</integer> 
     19        <integer>29</integer> 
    1920    </array> 
    2021    <key>IBSystem Version</key> 
  • modules/gui/macosx/Modules.am

    r4f2beec r32519eb  
    55    modules/gui/macosx/intf.m \ 
    66    modules/gui/macosx/open.m \ 
     7    modules/gui/macosx/prefs.m \ 
    78    modules/gui/macosx/playlist.m \ 
    89    modules/gui/macosx/controls.m \ 
     
    1213    modules/gui/macosx/intf.h \ 
    1314    modules/gui/macosx/open.h \ 
     15    modules/gui/macosx/prefs.h \ 
    1416    modules/gui/macosx/playlist.h \ 
    1517    modules/gui/macosx/vout.h \ 
  • modules/gui/macosx/intf.h

    r4f2beec r32519eb  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: intf.h,v 1.2 2002/10/02 22:56:53 massiot Exp $ 
     5 * $Id: intf.h,v 1.3 2002/11/05 03:57:16 jlj Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
     
    8383@interface VLCMain : NSObject 
    8484{ 
     85    id o_prefs;                 /* VLCPrefs       */ 
     86 
    8587    IBOutlet id o_window;       /* main window    */ 
    8688 
     
    9597 
    9698    IBOutlet id o_mi_about; 
     99    IBOutlet id o_mi_prefs; 
    97100    IBOutlet id o_mi_hide; 
    98101    IBOutlet id o_mi_hide_others; 
     
    104107    IBOutlet id o_mi_open_disc; 
    105108    IBOutlet id o_mi_open_net; 
    106     IBOutlet id o_mi_open_quickly; 
    107109    IBOutlet id o_mi_open_recent; 
    108110    IBOutlet id o_mi_open_recent_cm; 
     
    167169//- (void)selectAction:(id)sender; 
    168170 
     171- (IBAction)viewPreferences:(id)sender; 
     172 
    169173@end 
    170174 
  • modules/gui/macosx/intf.m

    r4f2beec r32519eb  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: intf.m,v 1.3 2002/10/02 22:56:53 massiot Exp $ 
     5 * $Id: intf.m,v 1.4 2002/11/05 03:57:16 jlj Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
     
    3434#include "intf.h" 
    3535#include "vout.h" 
     36#include "prefs.h" 
    3637#include "playlist.h" 
    3738#include "asystm.h" 
     
    165166@implementation VLCMain 
    166167 
     168- (id)init 
     169{ 
     170    self = [super init]; 
     171 
     172    if( self != nil ) 
     173    { 
     174        o_prefs = nil; 
     175    } 
     176 
     177    return( self );  
     178} 
     179 
    167180- (void)awakeFromNib 
    168181{ 
     
    176189 
    177190    [o_mi_about setTitle: _NS("About vlc")]; 
     191    [o_mi_prefs setTitle: _NS("Preferences")]; 
    178192    [o_mi_hide setTitle: _NS("Hide vlc")]; 
    179193    [o_mi_hide_others setTitle: _NS("Hide Others")]; 
     
    185199    [o_mi_open_disc setTitle: _NS("Open Disc")]; 
    186200    [o_mi_open_net setTitle: _NS("Open Network")]; 
    187     [o_mi_open_quickly setTitle: _NS("Open Quickly...")]; 
    188201    [o_mi_open_recent setTitle: _NS("Open Recent")]; 
    189202    [o_mi_open_recent_cm setTitle: _NS("Clear Menu")]; 
     
    425438    } 
    426439 
     440    if( o_prefs != nil ) 
     441    { 
     442        [o_prefs release]; 
     443        o_prefs = nil; 
     444    } 
     445 
    427446    [NSApp stop: nil]; 
    428447 
     
    742761{ 
    743762    [self application: nil openFile: [sender title]];  
     763} 
     764 
     765- (IBAction)viewPreferences:(id)sender 
     766{ 
     767    if( o_prefs == nil ) 
     768    { 
     769        o_prefs = [[VLCPrefs alloc] init]; 
     770    } 
     771 
     772    [o_prefs createPrefPanel: @"main"]; 
    744773} 
    745774