Previous IDL Interface Guide: The IDL Development Environment Next

File Menu

The following options are available in the File menu.


Note
See Using Keyboard Accelerators for information about using IDL's keyboard shortcuts on a Macintosh.

Table 3-2: IDLDE File Menu Items 

Table 3-2: IDLDE File Menu Items 
Menu Item
Description
New                
Select from the following sub-menu items:
  • Editor [Ctrl+N]: Opens a new IDL Editor window.
  •  

  • GUI (Microsoft Windows Only): opens a new IDL GUIBuilder file. See Using the IDL GUIBuilder for details.
  •  

  • Project...: opens the New Project dialog.
  •  

  • Visualization: Launches an iTool. See Introducing the iTools.
New windows are Untitledn or UntitledPrcn (where n is the numerical index of the new file) until saved with another name.
Open...
Ctrl+O
Select this option to open single or multiple text files for editing. (On Microsoft Windows platforms, you can also select an IDL GUIBuilder *.prc portable resource file.) In the Open dialog, you can select a continuous range of files by holding down the Shift key after selecting the first file, or select multiple, separate files by selecting each file while holding down the Control key. A new IDL Editor window is created to contain each text file.
Note - On Motif platforms, if the Multiple Windows option is selected, a new IDL Editor window is created outside the main window to contain each text file. See Layout Preferences for details.
Note - You can also open text files from the Command Line. Enter the following at the IDL prompt:
.EDIT file1 [file2 ... filen]
where file is the name of the text file you want to open. If the file is not in a directory included in the !PATH system variable, you must enter the full path for file. See .EDIT for more information.
Close
Select this option to close the currently-selected IDL Editor window. If you have made changes in an IDL Editor window, you are asked if you want to save the changes before closing the window.
Open Project...
Select this option to open a new IDL Project. The Open dialog appears. Select the project you want to open and click Open.
Save Project
Select this option to save the current IDL Project. If the Project has not yet been saved, you are prompted for a filename with the Save As dialog.
Save Project As...
Select this option to save the current IDL Project to a specified filename. The Save As dialog appears.
Close Project
Select this option to close the current IDL Project. If you have made changes in to the project, you are asked if you want to save the changes before closing the window.
Save
Ctrl+S
Select this option to save the contents of an IDL Editor window. If the file has not yet been saved, you are prompted for a filename with the Save As dialog.
Note - Changes made to a previously-compiled routine are not available to IDL until that routine is re-compiled. Executing the routine without first saving and re-compiling simply re-runs the previously-compiled version, without incorporating recent changes.
Select the Compile option in the Run menu to return to the main program level and re-compile the routine. Select Compile from Memory in the Run menu to save and compile recent changes to a temporary file.
Save As...
Ctrl+W (Motif)
Select this option to save the contents of an IDL Editor window to a specified filename. The Save As dialog appears. On Windows, when the File Save As... option is selected, the default file name is the name of the last procedure or function in the file. On UNIX, the default file name is *.pro. For portability between platforms, the filename is lowercase letters.
Revert to Saved
Select this option to reload the last saved version of the document.
Warning - Unsaved changes are lost without warning.
Generate .pro
Microsoft Windows Only
On a Microsoft Windows system, select this option to generate source code files from GUIBuilder interface definitions. When you generate code for the first time, all options open the Save As dialog so that you can select a location and specify a filename. The following are generated:
  • The widget definition code to a *.pro file.
  •  

  • The event-handler callback code to a *_eventcb.pro file.
For information about the IDL GUIBuilder generated code, see Generating Files.
Print...
Ctrl+P
On Microsoft Windows systems, select this option to immediately print the contents of the currently-selected window to the default printer.
On Motif systems, the Print dialog appears. Select Numbered Lines to include line numbers in the printout. Select Wrapped Lines to cause lines longer than the width of the printed page to wrap to a new line. Select Two Pages to print two pages per sheet of paper (each logical page is printed at half normal size). Select Header to include file information at the top of each page.
Print Setup...
Select this option to change the printer and printing options. The Print (Windows) or Printer Setup (Motif) dialog appears. For further information on setting up a printer, see Printing in IDL.
Recent Files
Select this option to open recently opened or created files. This menu item lists the last ten opened or created files. (On Microsoft Windows systems, it includes both text and GUIBuilder files.) To open a file on this list, select it.
On Motif systems, to change the maximum number of files displayed from ten to another number, modify the idlde.numRecentFiles resource in your .idlde resource file. See Customizing IDL on Motif Systems, for details.
Recent Projects
Select this option to open recently opened project files.
Preferences...
Select this option to display the tabbed Preferences dialog, which allows you to customize your interaction with the IDLDE. The options available via the Preferences dialog are described in detail in Setting IDL Preferences.
Exit
Ctrl+Q
Select this option to exit IDL.

  IDL Online Help (March 06, 2007)