Changeset 967acfe76318ec2999308a47ee7fa43318d5723d
- Timestamp:
- 06/15/08 00:04:43
(3 months ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1213481083 +0200
- git-parent:
[a9654857c29c01272d235c1a85a3e4df95057d6a]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1213392149 +0200
- Message:
Added some stuff to make sure that we get nice fps values for screen capture (range: 1 to 30)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re541f7f |
r967acfe |
|
| 269 | 269 | eyetvSwitchChannel = id; |
|---|
| 270 | 270 | openCaptureModeChanged = id; |
|---|
| 271 | | openCaptureStepperChanged = id; |
|---|
| 272 | 271 | openDisc = id; |
|---|
| 273 | 272 | openDiscMenusChanged = id; |
|---|
| … | … | |
| 284 | 283 | panelCancel = id; |
|---|
| 285 | 284 | panelOk = id; |
|---|
| | 285 | screenStepperChanged = id; |
|---|
| 286 | 286 | subCloseSheet = id; |
|---|
| 287 | 287 | subDelayStepperChanged = id; |
|---|
| re541f7f |
r967acfe |
|
| 14 | 14 | <string>366 462 547 183 0 0 1280 778 </string> |
|---|
| 15 | 15 | <key>2346</key> |
|---|
| 16 | | <string>366 462 548 183 0 0 1280 778 </string> |
|---|
| | 16 | <string>15 513 548 183 0 0 1280 778 </string> |
|---|
| 17 | 17 | </dict> |
|---|
| 18 | 18 | <key>IBFramework Version</key> |
|---|
| … | … | |
| 25 | 25 | <integer>2199</integer> |
|---|
| 26 | 26 | </array> |
|---|
| | 27 | <key>IBOpenObjects</key> |
|---|
| | 28 | <array> |
|---|
| | 29 | <integer>636</integer> |
|---|
| | 30 | <integer>2346</integer> |
|---|
| | 31 | </array> |
|---|
| 27 | 32 | <key>IBSystem Version</key> |
|---|
| 28 | 33 | <string>9D34</string> |
|---|
| re541f7f |
r967acfe |
|
| 160 | 160 | - (void)openCapture; |
|---|
| 161 | 161 | - (void)showCaptureView: theView; |
|---|
| 162 | | - (IBAction)openCaptureStepperChanged:(id)sender; |
|---|
| 163 | 162 | - (IBAction)openCaptureModeChanged:(id)sender; |
|---|
| 164 | 163 | - (IBAction)eyetvSwitchChannel:(id)sender; |
|---|
| … | … | |
| 166 | 165 | - (void)eyetvChanged:(NSNotification *)o_notification; |
|---|
| 167 | 166 | - (void)setupChannelInfo; |
|---|
| | 167 | - (IBAction)screenStepperChanged:(id)sender; |
|---|
| | 168 | - (void)screenFPSfieldChanged:(NSNotification *)o_notification; |
|---|
| 168 | 169 | |
|---|
| 169 | 170 | - (IBAction)subsChanged:(id)sender; |
|---|
| re541f7f |
r967acfe |
|
| 259 | 259 | object: o_net_http_url]; |
|---|
| 260 | 260 | |
|---|
| 261 | | [[NSNotificationCenter defaultCenter] addObserver: self |
|---|
| 262 | | selector: @selector(screenFPSChanged:) |
|---|
| 263 | | name: NSControlTextDidChangeNotification |
|---|
| 264 | | object: o_screen_fps_fld]; |
|---|
| 265 | | |
|---|
| 266 | 261 | [[NSDistributedNotificationCenter defaultCenter] addObserver: self |
|---|
| 267 | 262 | selector: @selector(eyetvChanged:) |
|---|
| … | … | |
| 269 | 264 | object: @"VLCEyeTVSupport" |
|---|
| 270 | 265 | suspensionBehavior: NSNotificationSuspensionBehaviorDeliverImmediately]; |
|---|
| 271 | | |
|---|
| | 266 | |
|---|
| | 267 | [[NSNotificationCenter defaultCenter] addObserver: self |
|---|
| | 268 | selector: @selector(screenFPSfieldChanged:) |
|---|
| | 269 | name: NSControlTextDidChangeNotification |
|---|
| | 270 | object: o_screen_fps_fld]; |
|---|
| | 271 | |
|---|
| 272 | 272 | /* register clicks on text fields */ |
|---|
| 273 | 273 | [[NSNotificationCenter defaultCenter] addObserver: self |
|---|
| … | … | |
| 878 | 878 | } |
|---|
| 879 | 879 | |
|---|
| 880 | | - (IBAction)openCaptureStepperChanged:(id)sender |
|---|
| | 880 | - (IBAction)screenStepperChanged:(id)sender |
|---|
| 881 | 881 | { |
|---|
| 882 | 882 | [o_screen_fps_fld setIntValue: [o_screen_fps_stp intValue]]; |
|---|
| 883 | 883 | [o_panel makeFirstResponder: o_screen_fps_fld]; |
|---|
| 884 | 884 | [o_mrl setStringValue: [NSString stringWithFormat:@"screen:// :screen-fps=%@", [o_screen_fps_fld stringValue]]]; |
|---|
| | 885 | } |
|---|
| | 886 | |
|---|
| | 887 | - (void)screenFPSfieldChanged:(NSNotification *)o_notification |
|---|
| | 888 | { |
|---|
| | 889 | [o_screen_fps_stp setIntValue: [o_screen_fps_fld intValue]]; |
|---|
| | 890 | if( [[o_screen_fps_fld stringValue] isEqualToString: @""] ) |
|---|
| | 891 | [o_screen_fps_fld setIntValue: 1]; |
|---|
| | 892 | [o_mrl setStringValue: [NSString stringWithFormat:@"screen:// :screen-fps=%i", [o_screen_fps_fld intValue]]]; |
|---|
| 885 | 893 | } |
|---|
| 886 | 894 | |
|---|
| … | … | |
| 943 | 951 | else |
|---|
| 944 | 952 | msg_Warn( VLCIntf, "unknown external notify '%s' received", [[o_notification name] UTF8String] ); |
|---|
| 945 | | } |
|---|
| | 953 | } |
|---|
| 946 | 954 | |
|---|
| 947 | 955 | /* little helper method, since this code needs to be run by multiple objects */ |
|---|