Changeset 32519ebf91a96bcf7a075052e79abbba49630810
- 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
| r0bea9a7 |
r32519eb |
|
| 2 | 2 | Not released yet |
|---|
| 3 | 3 | |
|---|
| | 4 | * ./modules/gui/macosx/prefs.m: new configuration interface |
|---|
| 4 | 5 | * ./src/misc/netutils.c: GetMacAddress Darwin support |
|---|
| 5 | 6 | * ./src/libvlc.h: default to en0 instead of eth0 under Darwin |
|---|
| r3820b43 |
r32519eb |
|
| 29 | 29 | }, |
|---|
| 30 | 30 | { |
|---|
| 31 | | ACTIONS = {clearRecentItems = id; }; |
|---|
| | 31 | ACTIONS = {clearRecentItems = id; viewPreferences = id; }; |
|---|
| 32 | 32 | CLASS = VLCMain; |
|---|
| 33 | 33 | LANGUAGE = ObjC; |
|---|
| … | … | |
| 58 | 58 | "o_mi_open_file" = id; |
|---|
| 59 | 59 | "o_mi_open_net" = id; |
|---|
| 60 | | "o_mi_open_quickly" = id; |
|---|
| 61 | 60 | "o_mi_open_recent" = id; |
|---|
| 62 | 61 | "o_mi_open_recent_cm" = id; |
|---|
| … | … | |
| 65 | 64 | "o_mi_play" = id; |
|---|
| 66 | 65 | "o_mi_playlist" = id; |
|---|
| | 66 | "o_mi_prefs" = id; |
|---|
| 67 | 67 | "o_mi_previous" = id; |
|---|
| 68 | 68 | "o_mi_program" = id; |
|---|
| r3820b43 |
r32519eb |
|
| 17 | 17 | <array> |
|---|
| 18 | 18 | <integer>636</integer> |
|---|
| | 19 | <integer>29</integer> |
|---|
| 19 | 20 | </array> |
|---|
| 20 | 21 | <key>IBSystem Version</key> |
|---|
| r4f2beec |
r32519eb |
|
| 5 | 5 | modules/gui/macosx/intf.m \ |
|---|
| 6 | 6 | modules/gui/macosx/open.m \ |
|---|
| | 7 | modules/gui/macosx/prefs.m \ |
|---|
| 7 | 8 | modules/gui/macosx/playlist.m \ |
|---|
| 8 | 9 | modules/gui/macosx/controls.m \ |
|---|
| … | … | |
| 12 | 13 | modules/gui/macosx/intf.h \ |
|---|
| 13 | 14 | modules/gui/macosx/open.h \ |
|---|
| | 15 | modules/gui/macosx/prefs.h \ |
|---|
| 14 | 16 | modules/gui/macosx/playlist.h \ |
|---|
| 15 | 17 | modules/gui/macosx/vout.h \ |
|---|
| r4f2beec |
r32519eb |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 83 | 83 | @interface VLCMain : NSObject |
|---|
| 84 | 84 | { |
|---|
| | 85 | id o_prefs; /* VLCPrefs */ |
|---|
| | 86 | |
|---|
| 85 | 87 | IBOutlet id o_window; /* main window */ |
|---|
| 86 | 88 | |
|---|
| … | … | |
| 95 | 97 | |
|---|
| 96 | 98 | IBOutlet id o_mi_about; |
|---|
| | 99 | IBOutlet id o_mi_prefs; |
|---|
| 97 | 100 | IBOutlet id o_mi_hide; |
|---|
| 98 | 101 | IBOutlet id o_mi_hide_others; |
|---|
| … | … | |
| 104 | 107 | IBOutlet id o_mi_open_disc; |
|---|
| 105 | 108 | IBOutlet id o_mi_open_net; |
|---|
| 106 | | IBOutlet id o_mi_open_quickly; |
|---|
| 107 | 109 | IBOutlet id o_mi_open_recent; |
|---|
| 108 | 110 | IBOutlet id o_mi_open_recent_cm; |
|---|
| … | … | |
| 167 | 169 | //- (void)selectAction:(id)sender; |
|---|
| 168 | 170 | |
|---|
| | 171 | - (IBAction)viewPreferences:(id)sender; |
|---|
| | 172 | |
|---|
| 169 | 173 | @end |
|---|
| 170 | 174 | |
|---|
| r4f2beec |
r32519eb |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 34 | 34 | #include "intf.h" |
|---|
| 35 | 35 | #include "vout.h" |
|---|
| | 36 | #include "prefs.h" |
|---|
| 36 | 37 | #include "playlist.h" |
|---|
| 37 | 38 | #include "asystm.h" |
|---|
| … | … | |
| 165 | 166 | @implementation VLCMain |
|---|
| 166 | 167 | |
|---|
| | 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 | |
|---|
| 167 | 180 | - (void)awakeFromNib |
|---|
| 168 | 181 | { |
|---|
| … | … | |
| 176 | 189 | |
|---|
| 177 | 190 | [o_mi_about setTitle: _NS("About vlc")]; |
|---|
| | 191 | [o_mi_prefs setTitle: _NS("Preferences")]; |
|---|
| 178 | 192 | [o_mi_hide setTitle: _NS("Hide vlc")]; |
|---|
| 179 | 193 | [o_mi_hide_others setTitle: _NS("Hide Others")]; |
|---|
| … | … | |
| 185 | 199 | [o_mi_open_disc setTitle: _NS("Open Disc")]; |
|---|
| 186 | 200 | [o_mi_open_net setTitle: _NS("Open Network")]; |
|---|
| 187 | | [o_mi_open_quickly setTitle: _NS("Open Quickly...")]; |
|---|
| 188 | 201 | [o_mi_open_recent setTitle: _NS("Open Recent")]; |
|---|
| 189 | 202 | [o_mi_open_recent_cm setTitle: _NS("Clear Menu")]; |
|---|
| … | … | |
| 425 | 438 | } |
|---|
| 426 | 439 | |
|---|
| | 440 | if( o_prefs != nil ) |
|---|
| | 441 | { |
|---|
| | 442 | [o_prefs release]; |
|---|
| | 443 | o_prefs = nil; |
|---|
| | 444 | } |
|---|
| | 445 | |
|---|
| 427 | 446 | [NSApp stop: nil]; |
|---|
| 428 | 447 | |
|---|
| … | … | |
| 742 | 761 | { |
|---|
| 743 | 762 | [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"]; |
|---|
| 744 | 773 | } |
|---|
| 745 | 774 | |
|---|