summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/Controller.m14
-rw-r--r--macosx/HBPreviewController.h3
-rw-r--r--macosx/HBPreviewController.m22
-rw-r--r--macosx/PictureController.h2
-rw-r--r--macosx/PictureController.m8
5 files changed, 44 insertions, 5 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 5bba38c54..86674adea 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -594,19 +594,23 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
}
- if (b) {
+ if (b)
+ {
/* if we're enabling the interface, check if the audio mixdown controls need to be enabled or not */
/* these will have been enabled by the mass control enablement above anyway, so we're sense-checking it here */
[self setEnabledStateOfAudioMixdownControls:nil];
/* we also call calculatePictureSizing here to sense check if we already have vfr selected */
[self calculatePictureSizing:nil];
-
- } else {
+ /* Also enable the preview window hud controls */
+ [fPictureController enablePreviewHudControls];
+ }
+ else
+ {
[fPresetsOutlineView setEnabled: NO];
-
- }
+ [fPictureController disablePreviewHudControls];
+ }
[self videoMatrixChanged:nil];
[fAdvancedOptions enableUI:b];
diff --git a/macosx/HBPreviewController.h b/macosx/HBPreviewController.h
index 3d26e6927..1394a9730 100644
--- a/macosx/HBPreviewController.h
+++ b/macosx/HBPreviewController.h
@@ -97,6 +97,9 @@
- (IBAction)goWindowedScreen:(id)sender;
/* HUD overlay */
+- (void) enableHudControls;
+- (void) disableHudControls;
+
- (void) startHudTimer;
- (void) stopHudTimer;
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 10b239d5d..7fa8a8449 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -487,6 +487,28 @@
}
#pragma mark Hud Control Overlay
+/* enableHudControls and disableHudControls are used to sync enableUI
+ * in HBController so that during a scan we do not attempt to access source
+ * images, etc. which can cause a crash. In general this ui behavior will mirror
+ * the main window ui's enableUI method and in fact is called from there */
+- (void) enableHudControls
+{
+ [fPictureSlider setEnabled:YES];
+ [fScaleToScreenToggleButton setEnabled:YES];
+ [fCreatePreviewMovieButton setEnabled:YES];
+ [fGoToStillPreviewButton setEnabled:YES];
+ [fHBController writeToActivityLog: "Preview: Enabling HUD Controls"];
+}
+
+- (void) disableHudControls
+{
+ [fPictureSlider setEnabled:NO];
+ [fScaleToScreenToggleButton setEnabled:NO];
+ [fCreatePreviewMovieButton setEnabled:NO];
+ [fGoToStillPreviewButton setEnabled:NO];
+ [fHBController writeToActivityLog: "Preview: Disabling HUD Controls"];
+}
+
- (void) mouseMoved:(NSEvent *)theEvent
{
[super mouseMoved:theEvent];
diff --git a/macosx/PictureController.h b/macosx/PictureController.h
index 96ea118ae..56dbe5f21 100644
--- a/macosx/PictureController.h
+++ b/macosx/PictureController.h
@@ -170,6 +170,8 @@
- (IBAction) resizeInspectorForTab: (id)sender;
- (IBAction) showPreviewWindow: (id)sender;
+- (void) enablePreviewHudControls;
+- (void) disablePreviewHudControls;
- (IBAction) adjustSizingDisplay: (id) sender;
diff --git a/macosx/PictureController.m b/macosx/PictureController.m
index 4cc39331f..78174102e 100644
--- a/macosx/PictureController.m
+++ b/macosx/PictureController.m
@@ -395,7 +395,15 @@
[fPreviewController showWindow:sender];
}
+- (void) enablePreviewHudControls
+{
+ [fPreviewController enableHudControls];
+}
+- (void) disablePreviewHudControls
+{
+ [fPreviewController disableHudControls];
+}
- (void) setToWindowedMode
{