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;
<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>
<integer>4</integer>
<key>IBOpenObjects</key>
<array>
- <integer>2436</integer>
<integer>29</integer>
+ <integer>21</integer>
</array>
<key>IBSystem Version</key>
<string>8R2218</string>
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;
+
}
}
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];
}