From: Felix Paul Kühne Date: Sun, 19 Dec 2004 12:54:21 +0000 (+0000) Subject: * small clean-up, so the about-class is not needed in the main-nib anymore X-Git-Tag: 0.8.2~1445 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1fc910ce3a920004a1f03d8da132fcf5eff9fa4c;p=vlc * small clean-up, so the about-class is not needed in the main-nib anymore --- diff --git a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib index dfcdc839b8..1e0c4b19fb 100644 --- a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib +++ b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib @@ -113,6 +113,7 @@ openWebsite = id; reportABug = id; timesliderUpdate = id; + viewAbout = id; viewPreferences = id; }; CLASS = VLCMain; diff --git a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib index 6af1c0e3a9..ee2c196459 100644 --- a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib +++ b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib @@ -3,7 +3,7 @@ IBDocumentLocation - 172 -174 505 517 0 0 1024 746 + 47 61 505 517 0 0 800 578 IBEditorPositions 1617 @@ -11,7 +11,7 @@ 2197 237 313 596 367 0 0 1024 746 29 - 84 667 419 44 0 0 1024 746 + 421 486 419 44 0 0 800 578 915 731 416 165 180 0 0 1024 746 @@ -26,10 +26,9 @@ IBOpenObjects - 29 21 IBSystem Version - 7R28 + 7S215 diff --git a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib index 86ea5cd798..77d6dd901b 100644 Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib differ diff --git a/modules/gui/macosx/about.h b/modules/gui/macosx/about.h index d6ce84bdf9..a516be72ab 100644 --- a/modules/gui/macosx/about.h +++ b/modules/gui/macosx/about.h @@ -49,6 +49,6 @@ } + (VLAboutBox *)sharedInstance; -- (IBAction)showPanel:(id)sender; +- (void)showPanel; @end diff --git a/modules/gui/macosx/about.m b/modules/gui/macosx/about.m index 048a424468..9de9c918d6 100644 --- a/modules/gui/macosx/about.m +++ b/modules/gui/macosx/about.m @@ -50,7 +50,7 @@ static VLAboutBox *_o_sharedInstance = nil; return _o_sharedInstance; } -- (IBAction)showPanel:(id)sender +- (void)showPanel { if (!o_credits_path) { diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h index 278bdec77b..d39aeecbb0 100644 --- a/modules/gui/macosx/intf.h +++ b/modules/gui/macosx/intf.h @@ -82,6 +82,7 @@ struct intf_sys_t { intf_thread_t *p_intf; /* The main intf object */ id o_prefs; /* VLCPrefs */ + id o_about; /* VLAboutBox */ IBOutlet id o_window; /* main window */ IBOutlet id o_scrollfield; /* info field */ @@ -259,6 +260,7 @@ struct intf_sys_t - (IBAction)clearRecentItems:(id)sender; - (void)openRecentItem:(id)sender; +- (IBAction)viewAbout:(id)sender; - (IBAction)viewPreferences:(id)sender; - (IBAction)closeError:(id)sender; - (IBAction)openReadMe:(id)sender; diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index afb39695c8..ce7710ee22 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -36,6 +36,7 @@ #include "prefs.h" #include "playlist.h" #include "controls.h" +#include "about.h" /***************************************************************************** * Local prototypes. @@ -289,7 +290,9 @@ static VLCMain *_o_sharedMainInstance = nil; } else { _o_sharedMainInstance = [super init]; } - + + o_about = [[VLAboutBox alloc] init]; + return _o_sharedMainInstance; } @@ -1277,6 +1280,11 @@ static VLCMain *_o_sharedMainInstance = nil; [self application: nil openFile: [sender title]]; } +- (IBAction)viewAbout:(id)sender +{ + [o_about showPanel]; +} + - (IBAction)viewPreferences:(id)sender { [o_prefs showPrefs];