id o_wizard; /* VLCWizard */
id o_extended; /* VLCExtended */
id o_bookmarks; /* VLCBookmarks */
+#ifdef ENABLE_VLM
id o_vlm; /* VLCVLMController */
+#endif
id o_embedded_list; /* VLCEmbeddedList*/
id o_coredialogs; /* VLCCoreDialogProvider */
VLCInformation * o_info; /* VLCInformation */
BOOL nib_bookmarks_loaded; /* bookmarks nibfile */
BOOL nib_prefs_loaded; /* preferences nibfile */
BOOL nib_info_loaded; /* information panel nibfile */
+#ifdef ENABLE_VLM
BOOL nib_vlm_loaded; /* VLM Panel nibfile */
+#endif
BOOL nib_coredialogs_loaded; /* CoreDialogs nibfile */
IBOutlet VLCControllerWindow * o_window; /* main window */
#import "AppleRemote.h"
#import "eyetv.h"
#import "simple_prefs.h"
+#ifdef ENABLE_VLM
#import "vlm.h"
+#endif
#import <AddressBook/AddressBook.h> /* for crashlog send mechanism */
#import <IOKit/hidsystem/ev_keymap.h> /* for the media key support */
o_prefs = nil;
o_open = [[VLCOpen alloc] init];
o_wizard = [[VLCWizard alloc] init];
+#ifdef ENABLE_VLM
o_vlm = [[VLCVLMController alloc] init];
+#endif
o_extended = nil;
o_bookmarks = [[VLCBookmarks alloc] init];
o_embedded_list = [[VLCEmbeddedList alloc] init];
return nil;
}
+#ifdef ENABLE_VLM
- (id)vlm
{
return o_vlm;
}
+#endif
- (id)bookmarks
{
- (IBAction)showVLM:(id)sender
{
+#ifdef ENABLE_VLM
if( !nib_vlm_loaded )
nib_vlm_loaded = [NSBundle loadNibNamed:@"VLM" owner: NSApp];
[o_vlm showVLMWindow];
+#else
+ NSAlert *theAlert;
+ theAlert = [NSAlert alertWithMessageText:_NS("VLM not available") defaultButton:_NS("OK") alternateButton:nil otherButton:nil informativeTextWithFormat:_NS("The VideoLAN Manager was not enabled in this version of VLC.")];
+ [theAlert runModal];
+#endif
}
- (IBAction)showExtended:(id)sender