diff options
author | dynaflash <[email protected]> | 2007-08-19 05:34:59 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-08-19 05:34:59 +0000 |
commit | 9881280c50134cb530a1c89156f8ab4f47f1f061 (patch) | |
tree | e5fd50bb8f4224981611ee21422703531c939f5f | |
parent | dc7de71e4a72544d35853838b1737c564b51e934 (diff) |
MacGui: Fix main menu enabling if user cancels the source browse window
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@834 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/classes.nib | 7 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/info.nib | 4 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/keyedobjects.nib | bin | 135313 -> 135987 bytes | |||
-rw-r--r-- | macosx/ScanController.h | 12 | ||||
-rw-r--r-- | macosx/ScanController.mm | 12 |
5 files changed, 33 insertions, 2 deletions
diff --git a/macosx/English.lproj/MainMenu.nib/classes.nib b/macosx/English.lproj/MainMenu.nib/classes.nib index 2d93f6edd..a949990ee 100644 --- a/macosx/English.lproj/MainMenu.nib/classes.nib +++ b/macosx/English.lproj/MainMenu.nib/classes.nib @@ -311,7 +311,14 @@ fFolderCell = NSButtonCell; fFolderField = NSTextField; fIndicator = NSProgressIndicator; + fMainMenuAddToQueue = NSMenuItem; + fMainMenuOpenSource = NSMenuItem; + fMainMenuPauseEncode = NSMenuItem; + fMainMenuStartEncode = NSMenuItem; + fMainWindowSrcName = NSTextField; fMatrix = NSMatrix; + fMenuPicturePanelShow = NSMenuItem; + fMenuQueuePanelShow = NSMenuItem; fOpenButton = NSButton; fPanel = NSPanel; fSelectString = NSTextField; diff --git a/macosx/English.lproj/MainMenu.nib/info.nib b/macosx/English.lproj/MainMenu.nib/info.nib index 1a4031744..7c2bddc03 100644 --- a/macosx/English.lproj/MainMenu.nib/info.nib +++ b/macosx/English.lproj/MainMenu.nib/info.nib @@ -3,7 +3,7 @@ <plist version="1.0"> <dict> <key>IBDocumentLocation</key> - <string>106 75 451 803 0 0 1440 878 </string> + <string>5 70 451 803 0 0 1440 878 </string> <key>IBEditorPositions</key> <dict> <key>1843</key> @@ -27,8 +27,8 @@ <integer>4</integer> <key>IBOpenObjects</key> <array> - <integer>2436</integer> <integer>29</integer> + <integer>21</integer> </array> <key>IBSystem Version</key> <string>8R2218</string> diff --git a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib Binary files differindex 6d1c0a613..16076eacd 100644 --- a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib +++ b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib diff --git a/macosx/ScanController.h b/macosx/ScanController.h index 5bd72cd38..8c21b4909 100644 --- a/macosx/ScanController.h +++ b/macosx/ScanController.h @@ -18,6 +18,18 @@ IBOutlet NSTextField * fStatusField; IBOutlet NSProgressIndicator * fIndicator; + IBOutlet NSTextField * fMainWindowSrcName; + + /* Menu Items */ + /* File Menu */ + IBOutlet NSMenuItem * fMainMenuOpenSource; + IBOutlet NSMenuItem * fMainMenuAddToQueue; + IBOutlet NSMenuItem * fMainMenuStartEncode; + IBOutlet NSMenuItem * fMainMenuPauseEncode; + /* Window Menu */ + IBOutlet NSMenuItem * fMenuQueuePanelShow; + IBOutlet NSMenuItem * fMenuPicturePanelShow; + } diff --git a/macosx/ScanController.mm b/macosx/ScanController.mm index 81b27236c..01aa0026e 100644 --- a/macosx/ScanController.mm +++ b/macosx/ScanController.mm @@ -95,6 +95,18 @@ } else // User clicked Cancel in browse window { + /* use the outlets to the main menu bar to determine what to + enable and disable */ + [fMainMenuOpenSource setEnabled: YES]; + /* if we have a title loaded up */ + if ([[fMainWindowSrcName stringValue] length] > 0) + { + [fMainMenuAddToQueue setEnabled: YES]; + [fMainMenuStartEncode setEnabled: YES]; + //[fMainMenuPauseEncode setEnabled: YES]; + [fMenuQueuePanelShow setEnabled: YES]; + [fMenuPicturePanelShow setEnabled: YES]; + } [self Cancel: nil]; } |