};
CLASS = VLCControls;
LANGUAGE = ObjC;
- OUTLETS = {
- "o_btn_fullscreen" = id;
- "o_main" = id;
- "o_open" = id;
- "o_volumeslider" = id;
- };
+ OUTLETS = {"o_btn_fullscreen" = id; "o_main" = id; "o_volumeslider" = id; };
SUPERCLASS = NSObject;
},
{
"o_mu_videotrack" = id;
"o_mu_visual" = id;
"o_mu_window" = id;
- "o_open" = id;
"o_playlist" = id;
"o_scrollfield" = id;
"o_timefield" = id;
};
SUPERCLASS = NSObject;
},
- {
- ACTIONS = {};
- CLASS = VLCOpen;
- LANGUAGE = ObjC;
- OUTLETS = {};
- SUPERCLASS = NSObject;
- },
- {
- ACTIONS = {};
- CLASS = VLCOutput;
- LANGUAGE = ObjC;
- OUTLETS = {};
- SUPERCLASS = NSObject;
- },
+ {CLASS = VLCOpen; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {CLASS = VLCOutput; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
{
ACTIONS = {
deleteItem = id;
id o_prefs; /* VLCPrefs */
id o_about; /* VLAboutBox */
id o_open; /* VLCOpen */
+ BOOL nib_open_loaded; /* reference to the open-nib */
IBOutlet id o_window; /* main window */
IBOutlet id o_scrollfield; /* info field */
o_about = [[VLAboutBox alloc] init];
o_prefs = [[VLCPrefs alloc] init];
+ o_open = [[VLCOpen alloc] init];
return _o_sharedMainInstance;
}
[self setSubmenusEnabled: FALSE];
[self manageVolumeSlider];
-
- /* let's load the open and sout-option dialogues and init the related classes */
- o_open = [[VLCOpen alloc] init];
- [o_open getReady];
p_playlist = (playlist_t *) vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- (IBAction)intfOpenFile:(id)sender
{
- [o_open openFile];
+ if (!nib_open_loaded)
+ {
+ nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner:self];
+ [o_open awakeFromNib];
+ [o_open openFile];
+ } else {
+ [o_open openFile];
+ }
}
- (IBAction)intfOpenFileGeneric:(id)sender
{
- [o_open openFileGeneric];
+ if (!nib_open_loaded)
+ {
+ nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner:self];
+ [o_open awakeFromNib];
+ [o_open openFileGeneric];
+ } else {
+ [o_open openFileGeneric];
+ }
}
- (IBAction)intfOpenDisc:(id)sender
{
- [o_open openDisc];
+ if (!nib_open_loaded)
+ {
+ nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner:self];
+ [o_open awakeFromNib];
+ [o_open openDisc];
+ } else {
+ [o_open openDisc];
+ }
}
- (IBAction)intfOpenNet:(id)sender
{
- [o_open openNet];
+ if (!nib_open_loaded)
+ {
+ nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner:self];
+ [o_open awakeFromNib];
+ [o_open openNet];
+ } else {
+ [o_open openNet];
+ }
}
- (IBAction)viewAbout:(id)sender