Commit 71042a86 authored by FUJISAWA Tooru's avatar FUJISAWA Tooru Committed by Felix Paul Kühne

Add subscreen/follow mouse options in open dialog.

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 17102037
...@@ -2,36 +2,18 @@ ...@@ -2,36 +2,18 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>IBDocumentLocation</key>
<string>-8 61 505 517 0 0 800 578 </string>
<key>IBEditorPositions</key>
<dict>
<key>2297</key>
<string>366 460 548 183 0 0 1280 778 </string>
<key>2301</key>
<string>366 460 548 183 0 0 1280 778 </string>
<key>2304</key>
<string>366 460 547 183 0 0 1280 778 </string>
<key>2346</key>
<string>366 460 548 183 0 0 1280 778 </string>
</dict>
<key>IBFramework Version</key> <key>IBFramework Version</key>
<string>489.0</string> <string>677</string>
<key>IBLockedObjects</key> <key>IBOldestOS</key>
<array> <integer>5</integer>
<integer>2203</integer>
<integer>2208</integer>
<integer>2206</integer>
<integer>2199</integer>
</array>
<key>IBOpenObjects</key> <key>IBOpenObjects</key>
<array> <array>
<integer>2304</integer> <integer>678</integer>
<integer>2297</integer> <integer>2346</integer>
<integer>636</integer>
<integer>2301</integer>
</array> </array>
<key>IBSystem Version</key> <key>IBSystem Version</key>
<string>9E17</string> <string>9G55</string>
<key>targetFramework</key>
<string>IBCocoaFramework</string>
</dict> </dict>
</plist> </plist>
...@@ -106,11 +106,9 @@ int screen_InitCapture( demux_t *p_demux ) ...@@ -106,11 +106,9 @@ int screen_InitCapture( demux_t *p_demux )
p_data->left = p_sys->i_left; p_data->left = p_sys->i_left;
p_data->top = p_sys->i_top; p_data->top = p_sys->i_top;
p_data->src_width = var_CreateGetInteger( p_demux, "screen-width" ); p_data->src_width = var_CreateGetInteger( p_demux, "screen-width" );
if (p_data->src_width <= 0) {
p_data->src_width = p_data->screen_width;
}
p_data->src_height = var_CreateGetInteger( p_demux, "screen-height" ); p_data->src_height = var_CreateGetInteger( p_demux, "screen-height" );
if (p_data->src_height <= 0) { if (p_data->src_width <= 0 || p_data->src_height <= 0) {
p_data->src_width = p_data->screen_width;
p_data->src_height = p_data->screen_height; p_data->src_height = p_data->screen_height;
} }
p_data->dest_width = p_data->src_width; p_data->dest_width = p_data->src_width;
......
...@@ -128,6 +128,15 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class ); ...@@ -128,6 +128,15 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
IBOutlet id o_screen_long_lbl; IBOutlet id o_screen_long_lbl;
IBOutlet id o_screen_fps_stp; IBOutlet id o_screen_fps_stp;
IBOutlet id o_screen_fps_lbl; IBOutlet id o_screen_fps_lbl;
IBOutlet id o_screen_left_fld;
IBOutlet id o_screen_left_lbl;
IBOutlet id o_screen_top_fld;
IBOutlet id o_screen_top_lbl;
IBOutlet id o_screen_width_fld;
IBOutlet id o_screen_width_lbl;
IBOutlet id o_screen_height_fld;
IBOutlet id o_screen_height_lbl;
IBOutlet id o_screen_follow_mouse_btn;
BOOL b_autoplay; BOOL b_autoplay;
id o_currentCaptureView; id o_currentCaptureView;
......
...@@ -209,6 +209,10 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -209,6 +209,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_screen_lbl setStringValue: _NS("Screen Capture Input")]; [o_screen_lbl setStringValue: _NS("Screen Capture Input")];
[o_screen_long_lbl setStringValue: _NS("This facility allows you to process your screen's output.")]; [o_screen_long_lbl setStringValue: _NS("This facility allows you to process your screen's output.")];
[o_screen_fps_lbl setStringValue: _NS("Frames per Second:")]; [o_screen_fps_lbl setStringValue: _NS("Frames per Second:")];
[o_screen_left_lbl setStringValue: _NS("Subscreen left:")];
[o_screen_top_lbl setStringValue: _NS("Subscreen top:")];
[o_screen_width_lbl setStringValue: _NS("Subscreen width:")];
[o_screen_height_lbl setStringValue: _NS("Subscreen height:")];
[o_eyetv_currentChannel_lbl setStringValue: _NS("Current channel:")]; [o_eyetv_currentChannel_lbl setStringValue: _NS("Current channel:")];
[o_eyetv_previousProgram_btn setTitle: _NS("Previous Channel")]; [o_eyetv_previousProgram_btn setTitle: _NS("Previous Channel")];
[o_eyetv_nextProgram_btn setTitle: _NS("Next Channel")]; [o_eyetv_nextProgram_btn setTitle: _NS("Next Channel")];
...@@ -409,6 +413,13 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -409,6 +413,13 @@ static VLCOpen *_o_sharedMainInstance = nil;
{ {
if( [[[o_capture_mode_pop selectedItem] title] isEqualToString: _NS("Screen")] ) if( [[[o_capture_mode_pop selectedItem] title] isEqualToString: _NS("Screen")] )
[o_options addObject: [NSString stringWithFormat: @"screen-fps=%i", [o_screen_fps_fld intValue]]]; [o_options addObject: [NSString stringWithFormat: @"screen-fps=%i", [o_screen_fps_fld intValue]]];
[o_options addObject: [NSString stringWithFormat: @"screen-left=%i", [o_screen_left_fld intValue]]];
[o_options addObject: [NSString stringWithFormat: @"screen-top=%i", [o_screen_top_fld intValue]]];
[o_options addObject: [NSString stringWithFormat: @"screen-width=%i", [o_screen_width_fld intValue]]];
[o_options addObject: [NSString stringWithFormat: @"screen-height=%i", [o_screen_height_fld intValue]]];
if ([o_screen_follow_mouse_btn state]) {
[o_options addObject: @"screen-follow-mouse"];
}
} }
/* apply the options to our item(s) */ /* apply the options to our item(s) */
......
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