* controls.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: controls.m,v 1.30 2003/04/06 23:21:13 massiot Exp $
+ * $Id: controls.m,v 1.31 2003/04/15 14:05:13 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
#include "intf.h"
#include "vout.h"
+#include "open.h"
#include "controls.h"
/*****************************************************************************
else
{
vlc_object_release( p_playlist );
- [o_open openFile: nil];
+ [o_open openFileGeneric: nil];
}
}
}
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.69 2003/04/06 23:21:13 massiot Exp $
+ * $Id: intf.m,v 1.70 2003/04/15 14:05:13 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
- (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename
{
+ intf_thread_t * p_intf = [NSApp getIntf];
+
[o_playlist appendArray:
[NSArray arrayWithObject: o_filename] atPos: -1 enqueue: NO];
-
+
+ config_PutPsz( [NSApp getIntf], "sub-file", "" );
+ config_PutInt( p_intf, "sub-delay", 0 );
+ config_PutFloat( p_intf, "sub-fps", 0.0 );
+ config_PutPsz( p_intf, "sout", "" );
+
return( TRUE );
}
* open.m: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: open.m,v 1.28 2003/04/09 14:12:49 hartman Exp $
+ * $Id: open.m,v 1.29 2003/04/15 14:05:13 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
int i_result;
[o_tabview selectTabViewItemAtIndex: i_type];
- [o_ckbox_enqueue setState: NSOnState];
[o_file_sub_ckbox setState: NSOffState];
i_result = [NSApp runModalForWindow: o_panel];
{
config_PutPsz( p_intf, "sout", [o_sout lossyCString] );
}
+ else
+ {
+ config_PutPsz( p_intf, "sout", "" );
+ }
NSString *o_source = [o_mrl stringValue];
BOOL b_enq = [o_ckbox_enqueue state] == NSOnState ? YES : NO;
sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
[o_playlist appendArray: o_values atPos: -1 enqueue:NO];
+ config_PutPsz( p_intf, "sub-file", "" );
+ config_PutInt( p_intf, "sub-delay", 0 );
+ config_PutFloat( p_intf, "sub-fps", 0.0 );
+ config_PutPsz( p_intf, "sout", "" );
}
}
* playlist.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: playlist.m,v 1.19 2003/04/15 12:40:03 hartman Exp $
+ * $Id: playlist.m,v 1.20 2003/04/15 14:05:13 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
NSArray * o_values;
NSPasteboard * o_pasteboard;
+ intf_thread_t * p_intf = [NSApp getIntf];
o_pasteboard = [o_info draggingPasteboard];
if( [[o_pasteboard types] containsObject: NSFilenamesPboardType] )
o_values = [[o_pasteboard propertyListForType: NSFilenamesPboardType]
sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
[self appendArray: o_values atPos: i_proposed_row enqueue:YES];
-
+
+ config_PutPsz( p_intf, "sub-file", "" );
+ config_PutInt( p_intf, "sub-delay", 0 );
+ config_PutFloat( p_intf, "sub-fps", 0.0 );
+ config_PutPsz( p_intf, "sout", "" );
+
return( YES );
}