Commit 7911a920 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: copyright fixes

parent 62f6855c
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* or (at your option) any later version. * or (at your option) any later version.
* Thus, the following statements apply to our changes: * Thus, the following statements apply to our changes:
* *
* Copyright (C) 2006-2007 the VideoLAN team * Copyright (C) 2006-2007 VLC authors and VideoLAN
* Authors: Eric Petit <titer@m0k.org> * Authors: Eric Petit <titer@m0k.org>
* Felix Kühne <fkuehne at videolan dot org> * Felix Kühne <fkuehne at videolan dot org>
* *
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* or (at your option) any later version. * or (at your option) any later version.
* Thus, the following statements apply to our changes: * Thus, the following statements apply to our changes:
* *
* Copyright (C) 2006-2009 the VideoLAN team * Copyright (C) 2006-2009 VLC authors and VideoLAN
* Authors: Eric Petit <titer@m0k.org> * Authors: Eric Petit <titer@m0k.org>
* Felix Kühne <fkuehne at videolan dot org> * Felix Kühne <fkuehne at videolan dot org>
* *
......
/***************************************************************************** /*****************************************************************************
* AudioEffects.h: MacOS X interface module * AudioEffects.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2004-2011 the VideoLAN team * Copyright (C) 2004-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
...@@ -48,6 +48,22 @@ ...@@ -48,6 +48,22 @@
IBOutlet id o_eq_band10_sld; IBOutlet id o_eq_band10_sld;
IBOutlet id o_eq_preamp_sld; IBOutlet id o_eq_preamp_sld;
/* equalizer presets */
IBOutlet id o_eqp_panel;
IBOutlet id o_eqp_ok_btn;
IBOutlet id o_eqp_cancel_btn;
IBOutlet id o_eqp_new_lbl;
IBOutlet id o_eqp_new_fld;
IBOutlet id o_eq_manage_panel;
IBOutlet id o_eq_manage_ok_btn;
IBOutlet id o_eq_manage_cancel_btn;
IBOutlet id o_eq_manage_rename_btn;
IBOutlet id o_eq_manage_delete_btn;
IBOutlet id o_eq_manage_table;
NSMutableArray *o_eq_custom_presets;
NSMutableArray *o_eq_custom_presetnames;
NSInteger i_to_be_renamed_preset;
/* Compressor */ /* Compressor */
IBOutlet id o_comp_enable_ckb; IBOutlet id o_comp_enable_ckb;
IBOutlet id o_comp_reset_btn; IBOutlet id o_comp_reset_btn;
...@@ -106,6 +122,7 @@ ...@@ -106,6 +122,7 @@
/* Equalizer */ /* Equalizer */
- (void)setupEqualizer; - (void)setupEqualizer;
- (void)rebuildEqMenu;
- (void)equalizerUpdated; - (void)equalizerUpdated;
- (void)setBandSlidersValues:(float *)values; - (void)setBandSlidersValues:(float *)values;
- (void)initBandSliders; - (void)initBandSliders;
...@@ -115,6 +132,10 @@ ...@@ -115,6 +132,10 @@
- (IBAction)eq_enable:(id)sender; - (IBAction)eq_enable:(id)sender;
- (IBAction)eq_preampSliderUpdated:(id)sender; - (IBAction)eq_preampSliderUpdated:(id)sender;
- (IBAction)eq_twopass:(id)sender; - (IBAction)eq_twopass:(id)sender;
- (IBAction)eq_nameButtonAction:(id)sender;
- (IBAction)eq_manageAction:(id)sender;
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex;
/* Compressor */ /* Compressor */
- (void)resetCompressor; - (void)resetCompressor;
......
/***************************************************************************** /*****************************************************************************
* AudioEffects.m: MacOS X interface module * AudioEffects.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2004-2011 the VideoLAN team * Copyright (C) 2004-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
...@@ -54,12 +54,22 @@ static VLCAudioEffects *_o_sharedInstance = nil; ...@@ -54,12 +54,22 @@ static VLCAudioEffects *_o_sharedInstance = nil;
[self dealloc]; [self dealloc];
} else { } else {
p_intf = VLCIntf; p_intf = VLCIntf;
o_eq_custom_presets = [[NSMutableArray alloc] init];
o_eq_custom_presetnames = [[NSMutableArray alloc] init];
_o_sharedInstance = [super init]; _o_sharedInstance = [super init];
} }
return _o_sharedInstance; return _o_sharedInstance;
} }
- (void)dealloc
{
[o_eq_custom_presets release];
[o_eq_custom_presetnames release];
[super dealloc];
}
- (void)awakeFromNib - (void)awakeFromNib
{ {
/* setup the user's language */ /* setup the user's language */
...@@ -67,12 +77,16 @@ static VLCAudioEffects *_o_sharedInstance = nil; ...@@ -67,12 +77,16 @@ static VLCAudioEffects *_o_sharedInstance = nil;
[o_eq_enable_ckb setTitle:_NS("Enable")]; [o_eq_enable_ckb setTitle:_NS("Enable")];
[o_eq_twopass_ckb setTitle:_NS("2 Pass")]; [o_eq_twopass_ckb setTitle:_NS("2 Pass")];
[o_eq_preamp_lbl setStringValue:_NS("Preamp")]; [o_eq_preamp_lbl setStringValue:_NS("Preamp")];
[o_eq_presets_popup removeAllItems]; [self rebuildEqMenu];
for( int i = 0; i < NB_PRESETS ; i++ ) [o_eqp_panel setTitle: _NS("New Preset Name")];
{ [o_eqp_ok_btn setTitle: _NS("OK")];
[o_eq_presets_popup addItemWithTitle: _NS(preset_list_text[i])]; [o_eqp_cancel_btn setTitle: _NS("Cancel")];
[[o_eq_presets_popup lastItem] setTag: i]; [o_eqp_new_lbl setStringValue: _NS("New Preset Name")];
} [o_eq_manage_panel setTitle: _NS("Manage Presets")];
[o_eq_manage_ok_btn setTitle: _NS("OK")];
[o_eq_manage_cancel_btn setTitle: _NS("Cancel")];
[o_eq_manage_rename_btn setTitle: _NS("Rename")];
[o_eq_manage_delete_btn setTitle: _NS("Delete")];
/* Compressor */ /* Compressor */
[o_comp_enable_ckb setTitle:_NS("Enable dynamic range compressor")]; [o_comp_enable_ckb setTitle:_NS("Enable dynamic range compressor")];
...@@ -190,7 +204,7 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf, ...@@ -190,7 +204,7 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
{ {
vlc_object_t *p_object= VLC_OBJECT(getAout()); vlc_object_t *p_object= VLC_OBJECT(getAout());
if( p_object == NULL ) if( p_object == NULL )
p_object = pl_Get( VLCIntf ); p_object = vlc_object_hold(pl_Get( VLCIntf ));
if( p_object ) if( p_object )
{ {
...@@ -234,11 +248,37 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf, ...@@ -234,11 +248,37 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
} }
} }
free( psz_preset ); free( psz_preset );
vlc_object_release( p_object );
} }
[self equalizerUpdated]; [self equalizerUpdated];
} }
- (void)rebuildEqMenu
{
[o_eq_presets_popup removeAllItems];
[o_eq_presets_popup addItemWithTitle: _NS("Add Preset")];
[[o_eq_presets_popup lastItem] setTag: 300];
[o_eq_presets_popup addItemWithTitle: _NS("Manage Presets")];
[[o_eq_presets_popup lastItem] setTag: 301];
[[o_eq_presets_popup menu] addItem: [NSMenuItem separatorItem]];
for (int i = 0; i < NB_PRESETS ; i++)
{
[o_eq_presets_popup addItemWithTitle: _NS(preset_list_text[i])];
[[o_eq_presets_popup lastItem] setTag: i];
}
if ([o_eq_custom_presetnames count] > 0)
{
[[o_eq_presets_popup menu] addItem: [NSMenuItem separatorItem]];
NSUInteger count = [o_eq_custom_presetnames count];
for (unsigned int i = 0; i < count; i++)
{
[o_eq_presets_popup addItemWithTitle: [o_eq_custom_presetnames objectAtIndex:i]];
[[o_eq_presets_popup lastItem] setTag: i + 200];
}
}
}
- (void)equalizerUpdated - (void)equalizerUpdated
{ {
float f_preamp, f_band[10]; float f_preamp, f_band[10];
...@@ -360,33 +400,52 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf, ...@@ -360,33 +400,52 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
} }
- (IBAction)eq_changePreset:(id)sender - (IBAction)eq_changePreset:(id)sender
{ {
vlc_object_t *p_object= VLC_OBJECT(getAout());
if( p_object == NULL )
p_object = vlc_object_hold(pl_Get( p_intf ));
NSInteger numberOfChosenPreset = [[sender selectedItem] tag]; NSInteger numberOfChosenPreset = [[sender selectedItem] tag];
if (numberOfChosenPreset == 300)
var_SetString( p_object , "equalizer-preset" , preset_list[numberOfChosenPreset] );
NSString *preset = @"";
const char *psz_values;
for( int i = 0; i < EQZ_BANDS_MAX; i++ )
{ {
preset = [preset stringByAppendingFormat:@"%.1f ", eqz_preset_10b[numberOfChosenPreset].f_amp[i] ]; // add new preset
i_to_be_renamed_preset = -1;
[NSApp runModalForWindow: o_eqp_panel];
} }
psz_values = [preset UTF8String]; else if(numberOfChosenPreset == 301)
var_SetString( p_object, "equalizer-bands", psz_values ); {
var_SetFloat( p_object, "equalizer-preamp", eqz_preset_10b[[[sender selectedItem] tag]].f_preamp); // manage presets
[o_eq_manage_table reloadData];
[o_eq_preamp_sld setFloatValue: eqz_preset_10b[numberOfChosenPreset].f_preamp]; [NSApp runModalForWindow: o_eq_manage_panel];
}
[self setBandSlidersValues:(float *)eqz_preset_10b[numberOfChosenPreset].f_amp]; else if(numberOfChosenPreset >= 200)
{
/* save changed to config */ // custom preset, TODO
config_PutPsz( p_intf, "equalizer-bands", psz_values ); }
config_PutFloat( p_intf, "equalizer-preamp", eqz_preset_10b[numberOfChosenPreset].f_preamp ); else
config_PutPsz( p_intf, "equalizer-preset", preset_list[numberOfChosenPreset] ); {
vlc_object_t *p_object= VLC_OBJECT(getAout());
if( p_object == NULL )
p_object = vlc_object_hold(pl_Get( p_intf ));
vlc_object_release( p_object ); var_SetString( p_object , "equalizer-preset" , preset_list[numberOfChosenPreset] );
NSString *preset = @"";
const char *psz_values;
for( int i = 0; i < EQZ_BANDS_MAX; i++ )
{
preset = [preset stringByAppendingFormat:@"%.1f ", eqz_preset_10b[numberOfChosenPreset].f_amp[i] ];
}
psz_values = [preset UTF8String];
var_SetString( p_object, "equalizer-bands", psz_values );
var_SetFloat( p_object, "equalizer-preamp", eqz_preset_10b[numberOfChosenPreset].f_preamp);
[o_eq_preamp_sld setFloatValue: eqz_preset_10b[numberOfChosenPreset].f_preamp];
[self setBandSlidersValues:(float *)eqz_preset_10b[numberOfChosenPreset].f_amp];
/* save changed to config */
config_PutPsz( p_intf, "equalizer-bands", psz_values );
config_PutFloat( p_intf, "equalizer-preamp", eqz_preset_10b[numberOfChosenPreset].f_preamp );
config_PutPsz( p_intf, "equalizer-preset", preset_list[numberOfChosenPreset] );
vlc_object_release( p_object );
}
} }
- (IBAction)eq_preampSliderUpdated:(id)sender - (IBAction)eq_preampSliderUpdated:(id)sender
{ {
...@@ -419,6 +478,64 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf, ...@@ -419,6 +478,64 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
vlc_object_release( p_object ); vlc_object_release( p_object );
} }
- (IBAction)eq_nameButtonAction:(id)sender
{
[NSApp stopModal];
[[sender window] orderOut:sender];
if (sender == o_eqp_ok_btn)
{
if (i_to_be_renamed_preset != -1)
{
// rename existing preset
[o_eq_custom_presetnames replaceObjectAtIndex:i_to_be_renamed_preset withObject:[o_eqp_new_fld stringValue]];
[o_eq_manage_table reloadData];
[self rebuildEqMenu];
}
else
{
// add new preset
[o_eq_custom_presetnames addObject: [o_eqp_new_fld stringValue]];
[self rebuildEqMenu];
// TODO
}
}
}
- (IBAction)eq_manageAction:(id)sender
{
if (sender == o_eq_manage_cancel_btn || sender == o_eq_manage_ok_btn) {
[NSApp stopModal];
[[sender window] orderOut:sender];
}
else if( sender == o_eq_manage_delete_btn )
{
[o_eq_custom_presets removeObjectAtIndex: [o_eq_manage_table selectedRow]];
[o_eq_custom_presetnames removeObjectAtIndex: [o_eq_manage_table selectedRow]];
[o_eq_manage_table reloadData];
[self rebuildEqMenu];
}
else
{
i_to_be_renamed_preset = [o_eq_manage_table selectedRow];
[o_eqp_new_fld setStringValue: [o_eq_custom_presetnames objectAtIndex: i_to_be_renamed_preset]];
[NSApp stopModal];
[[sender window] orderOut:sender];
[NSApp runModalForWindow: o_eqp_panel];
}
}
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
{
return [o_eq_custom_presets count];
}
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
{
return [o_eq_custom_presetnames objectAtIndex:rowIndex];
}
#pragma mark - #pragma mark -
#pragma mark Compressor #pragma mark Compressor
- (void)resetCompressor - (void)resetCompressor
......
/***************************************************************************** /*****************************************************************************
* sdkfixes.h: MacOS X interface module * CompatibilityFixes.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2011 VideoLAN * Copyright (C) 2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
......
/***************************************************************************** /*****************************************************************************
* MainWindow.h: MacOS X interface module * MainWindow.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 VideoLAN * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
......
/***************************************************************************** /*****************************************************************************
* MainWindow.h: MacOS X interface module * MainWindow.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 VideoLAN * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
......
/***************************************************************************** /*****************************************************************************
* TrackSynchronization.h: MacOS X interface module * TrackSynchronization.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2011 VideoLAN * Copyright (C) 2011 VLC authors and VideoLAN
* Copyright (C) 2011 Felix Paul Kühne * Copyright (C) 2011 Felix Paul Kühne
* $Id$ * $Id$
* *
......
/***************************************************************************** /*****************************************************************************
* TrackSynchronization.m: MacOS X interface module * TrackSynchronization.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2011 VideoLAN * Copyright (C) 2011 VLC authors and VideoLAN
* Copyright (C) 2011 Felix Paul Kühne * Copyright (C) 2011 Felix Paul Kühne
* $Id$ * $Id$
* *
......
/***************************************************************************** /*****************************************************************************
* VideoView.h: MacOS X video output module * VideoView.h: MacOS X video output module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <hartman at videolan dot org> * Authors: Derk-Jan Hartman <hartman at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* VideoView.m: MacOS X video output module * VideoView.m: MacOS X video output module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <hartman at videolan dot org> * Authors: Derk-Jan Hartman <hartman at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* about.h: MacOS X About Panel * about.h: MacOS X About Panel
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2007 the VideoLAN team * Copyright (C) 2001-2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
......
/***************************************************************************** /*****************************************************************************
* about.m: MacOS X About Panel * about.m: MacOS X About Panel
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2011 the VideoLAN team * Copyright (C) 2001-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
......
/***************************************************************************** /*****************************************************************************
* applescript.h: MacOS X AppleScript support * applescript.h: MacOS X AppleScript support
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003, 2005, 2007 the VideoLAN team * Copyright (C) 2002-2003, 2005, 2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
......
/***************************************************************************** /*****************************************************************************
* applescript.m: MacOS X AppleScript support * applescript.m: MacOS X AppleScript support
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2009 the VideoLAN team * Copyright (C) 2002-2009 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
......
/***************************************************************************** /*****************************************************************************
* bookmarks.h: MacOS X Bookmarks window * bookmarks.h: MacOS X Bookmarks window
***************************************************************************** *****************************************************************************
* Copyright (C) 2005, 2007 the VideoLAN team * Copyright (C) 2005, 2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne at videolan dot org> * Authors: Felix Kühne <fkuehne at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* bookmarks.m: MacOS X Bookmarks window * bookmarks.m: MacOS X Bookmarks window
***************************************************************************** *****************************************************************************
* Copyright (C) 2005 - 2007 the VideoLAN team * Copyright (C) 2005 - 2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne at videolan dot org> * Authors: Felix Kühne <fkuehne at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* controls.h: MacOS X interface module * controls.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* controls.m: MacOS X interface module * controls.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* coredialogs.h: Mac OS X Core Dialogs * coredialogs.h: Mac OS X Core Dialogs
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2009 the VideoLAN team * Copyright (C) 2005-2009 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <hartman at videolan dot org> * Authors: Derk-Jan Hartman <hartman at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* coredialogs.m: Mac OS X Core Dialogs * coredialogs.m: Mac OS X Core Dialogs
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2009 the VideoLAN team * Copyright (C) 2005-2009 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <hartman at videolan dot org> * Authors: Derk-Jan Hartman <hartman at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* eyetv.h: small class to control the notification parts of the EyeTV plugin * eyetv.h: small class to control the notification parts of the EyeTV plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2006-2007 the VideoLAN team * Copyright (C) 2006-2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne at videolan dot org> * Authors: Felix Kühne <fkuehne at videolan dot org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
@interface VLCEyeTVController : NSObject @interface VLCEyeTVController : NSObject
{ {
BOOL b_eyeTVactive; BOOL b_eyeTVactive;
BOOL b_deviceConnected; BOOL b_deviceConnected;
} }
- (void)globalNotificationReceived: (NSNotification *)theNotification; - (void)globalNotificationReceived: (NSNotification *)theNotification;
- (BOOL)isEyeTVrunning; - (BOOL)isEyeTVrunning;
- (BOOL)isDeviceConnected; - (BOOL)isDeviceConnected;
- (void)launchEyeTV; - (void)launchEyeTV;
- (int)currentChannel; - (int)currentChannel;
- (int)switchChannelUp:(BOOL)b_yesOrNo; - (int)switchChannelUp:(BOOL)b_yesOrNo;
- (void)selectChannel:(int)theChannelNum; - (void)selectChannel:(int)theChannelNum;
- (NSEnumerator *)allChannels; - (NSEnumerator *)allChannels;
@end @end
/***************************************************************************** /*****************************************************************************
* eyetv.m: small class to control the notification parts of the EyeTV plugin * eyetv.m: small class to control the notification parts of the EyeTV plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2006-2011 the VideoLAN team * Copyright (C) 2006-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne at videolan dot org> * Authors: Felix Kühne <fkuehne at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* intf.h: MacOS X interface module * intf.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* intf.m: MacOS X interface module * intf.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* macosx.m: Mac OS X module for vlc * macosx.m: Mac OS X module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2011 the VideoLAN team * Copyright (C) 2001-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Colin Delacroix <colin@zoy.org> * Authors: Colin Delacroix <colin@zoy.org>
......
/***************************************************************************** /*****************************************************************************
* misc.h: code not specific to vlc * misc.h: code not specific to vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2003-2011 the VideoLAN team * Copyright (C) 2003-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* misc.m: code not specific to vlc * misc.m: code not specific to vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2003-2011 the VideoLAN team * Copyright (C) 2003-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* open.h: Open dialogues for VLC's MacOS X port * open.h: Open dialogues for VLC's MacOS X port
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* open.m: Open dialogues for VLC's MacOS X port * open.m: Open dialogues for VLC's MacOS X port
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* output.h: MacOS X Output Dialog * output.h: MacOS X Output Dialog
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2007 the VideoLAN team * Copyright (C) 2002-2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* output.m: MacOS X Output Dialog * output.m: MacOS X Output Dialog
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2007 the VideoLAN team * Copyright (C) 2002-2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* playlist.h: MacOS X interface module * playlist.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2006 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* playlist.m: MacOS X interface module * playlist.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2009 the VideoLAN team * Copyright (C) 2002-2009 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* playlistinfo.h: MacOS X interface module * playlistinfo.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2008 the VideoLAN team * Copyright (C) 2002-2008 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Benjamin Pracht <bigben at videolan dot org> * Authors: Benjamin Pracht <bigben at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
r playlistinfo.m: MacOS X interface module r playlistinfo.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2009 the VideoLAN team * Copyright (C) 2002-2009 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Benjamin Pracht <bigben at videolan dot org> * Authors: Benjamin Pracht <bigben at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* prefs.h: MacOS X module for vlc * prefs.h: MacOS X module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2007 the VideoLAN team * Copyright (C) 2002-2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* prefs.m: MacOS X module for vlc * prefs.m: MacOS X module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2006 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
......
/***************************************************************************** /*****************************************************************************
* prefs_widgets.h: Preferences controls * prefs_widgets.h: Preferences controls
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2007 the VideoLAN team * Copyright (C) 2002-2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <hartman at videolan.org> * Authors: Derk-Jan Hartman <hartman at videolan.org>
......
/***************************************************************************** /*****************************************************************************
* prefs_widgets.m: Preferences controls * prefs_widgets.m: Preferences controls
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team * Copyright (C) 2002-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Derk-Jan Hartman <hartman at videolan.org> * Authors: Derk-Jan Hartman <hartman at videolan.org>
......
/***************************************************************************** /*****************************************************************************
* simple_prefs.h: Simple Preferences for Mac OS X * simple_prefs.h: Simple Preferences for Mac OS X
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2011 the VideoLAN team * Copyright (C) 2008-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne at videolan dot org> * Authors: Felix Paul Kühne <fkuehne at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* simple_prefs.m: Simple Preferences for Mac OS X * simple_prefs.m: Simple Preferences for Mac OS X
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2011 the VideoLAN team * Copyright (C) 2008-2011 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne at videolan dot org> * Authors: Felix Paul Kühne <fkuehne at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* wizard.h: MacOS X Streaming Wizard * wizard.h: MacOS X Streaming Wizard
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2007 the VideoLAN team * Copyright (C) 2005-2007 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne at videolan dot org> * Authors: Felix Kühne <fkuehne at videolan dot org>
......
/***************************************************************************** /*****************************************************************************
* wizard.m: MacOS X Streaming Wizard * wizard.m: MacOS X Streaming Wizard
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2009 the VideoLAN team * Copyright (C) 2005-2009 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne at videolan dot org> * Authors: Felix Kühne <fkuehne at videolan dot org>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment