Previous IDL Interface Guide: The IDL Development Environment Next

Components of the IDLDE

The IDL Development Environment (IDLDE) is a convenient multiple-document graphical user interface that includes built-in editing and debugging tools. This section describes briefly the components of the IDLDE. The Windows version is shown on the left and the UNIX version is shown on the right within the following figure.

Figure 3-1: The IDL Development Environment
for Windows (left) and UNIX (right).

Figure 3-1: The IDL Development Environment
for Windows (left) and UNIX (right).


Note
Individual components are similar across platforms.

Menu Bar

The menu bar, located at the top of the main IDLDE window, allows you to control various IDLDE features. When you select an option from a menu item in the IDLDE, the Status Bar displays a brief description.

You can display menu commands for each menu using the following methods:

You can select or execute a menu command using the following methods:

The menu bar consists of the following menu items:

 

Table 3-1: The IDLDE Menus 

Table 3-1: The IDLDE Menus 
Menu Item
Description of Functions
The File Menu gives you options such as opening, closing and creating new Editor windows and Projects and other options such as printing, printer setup, preferences and exiting IDL.
The Edit Menu provides edit-related options such as undo, redo, cut, copy, paste, delete, select all, clear all and clear log.
The Search Menu allows you to find text in currently active Editor windows as well as other options such as find again, find selection, enter selection, replace, replace & find, go to line and go to definition.
Run Menu items are enabled when an IDL program is loaded into an IDL Editor window. The run menu allows you program related functionality such as compiling, resolving dependencies, resetting, and editing programs among other things. For more information on running programs in IDL, see Creating and Running Programs in IDL.
The Project Menu provides project-related functionality such as adding/removing files, grouping and moving files, building, running and exporting projects and so on. For more information on working with IDL projects, see Creating IDL Projects.
The Macro Menu provides functionality for creating new macros and using existing macros in IDL. Fore more about working with macros in IDL, see Creating Development Environment Macros.
The Window Menu gives functionality related to Multiple Document Panel windows.
The Help Menu allows you to call IDL Online Help. You can call the entire Online Help system in the IDL Online Help Viewer or find help by topic. For more information on the IDL Help System, see Getting Help with IDL.

Toolbars

There are three toolbars in the IDLDE: Standard, Run & Debug, and Macros. In addition, when you open an IDL GUIBuilder window (Windows only), its associated toolbar is displayed. When you position the mouse pointer over a toolbar button, the Status Bar displays a brief description. If you click on a toolbar button which represents an IDL command, the IDL command issued is displayed in the Output Log. Display or hide toolbars by making selections among the Windows Toolbars items.

Project Window

The Project Window displays information about the current Project you have open in the IDLDE. IDL Projects allow you to easily develop applications in IDL. Through a Project, you can compile, run, and create distributions of your IDL application. The IDL Project Window allows you to access and manage all of the files required for your application. This makes it easier to create a distribution for other developers, colleagues, or users.

For further information on the IDL Projects, refer to Creating IDL Projects.

Multiple Document Panel

The section of the main IDL window where IDL Editor windows and GUIBuilder windows are displayed is known as the multiple document panel. Any number of files may be open at a single time. You can access different files from the Windows menu by clicking on the appropriate file.

Editor Windows

IDL Editor windows allow you to write and edit IDL programs (and other text files) from within IDL. Any number of Editor windows can exist simultaneously. No Editor windows are open when IDL is first started. Editor windows can be created by selecting File New or File Open. See Maximizing the Editor's Capabilities for more information on the IDL Editor.

To see the Multiple Document Panel at work, open the file examples.pro by typing .COMPILE examples.pro at the IDL command line. (See Command Line for details.)

The following figure shows the IDL program file opened in the Windows IDLDE.

Figure 3-2: Editor Window showing example.pro

Figure 3-2: Editor Window showing example.pro

GUIBuilder Windows

Under Microsoft Windows, IDL GUIBuilder windows allow you to interactively create user interfaces. Then, you can generate the IDL code that defines the interface and the code to contain the event-handling routines. You can modify the code, compile, and run the application in the IDLDE. To open a GUIBuilder window, you can select File New GUI or you can select File Open. See Using the IDL GUIBuilder. for more information on the GUIBuilder.

Graphics Windows

IDL Graphics windows are not displayed in the Multiple Document Panel, but do appear when you use IDL to plot or display data. You can copy the contents of a Graphics window—iTool, Object or Direct—directly to the operating system clipboard in a bitmap format using Ctrl+C.

When an IDL Graphics window is minimized (iconized), the icon displays the name of the IDL window. This icon appears on the desktop, not in the Multiple Document Panel, as with an iconized Editor window.


Warning
If the backing store is not set when a window is iconized, it will not be refreshed upon return. For more information about setting the backing store for graphics windows, see Graphics Preferences.

Command Line

The Command Line is an IDL prompt where you can enter IDL commands. The text output by IDL commands is displayed in the Output Log window. IDL is an interpreted language and commands entered at the Command Line are executed immediately. To see the IDL Command Line in action, enter the following in the Command Line at the IDL prompt and press Enter:

print, 'Hello World!'  

 

Figure 3-3: IDLDE Command Line

Figure 3-3: IDLDE Command Line

If you click the right mouse button while positioned over the Command Input Line, a popup menu appears displaying the last 20 entries in the command history. Select an entry to reissue the command. See Recalling Commands for additional information about the command recall buffer.

Output Log

Output from IDL is displayed in the Output Log window, which appears by default when the IDLDE is first started. Notice the result of our print command in the Output Log in the following figure.

Figure 3-4: The IDL Output Log

Figure 3-4: The IDL Output Log

If you click the right mouse button while positioned over the Output Log, a context menu appears allowing you to move to a specified error or clear the contents of the Output Log. An additional Windows-only context menu option allows you to copy selected contents.

Variable Watch Window

The Variable Watch window appears by default when you start the IDLDE. It keeps track of variables as they appear and change during program execution (tabs exist for viewing variables by type; Locals, Params, Common and System). For more information about the Variable Watch window, see The Variable Watch Window.

Status Bar

When you position the mouse pointer over a Control Panel or Toolbar button, or select an option from a menu in IDLDE, the Status Bar displays a brief description.

Docking/Undocking

In IDL for Windows, four sections of the IDLDE can be moved within and unanchored from the main IDLDE window: the Toolbars, Output Log, Variable Watch Window, and Command Line. Click on the border and drag the left mouse button. You will notice the outline of the chosen section moving with your mouse. When a location is chosen, release the mouse button to dock the window. If you move this outline so that it overlaps an edge of the window space being used by the IDLDE, the section will be docked to the nearest available side of the main IDLDE window. The Toolbars, Output Log, Variable Watch window, and Command Line will remain between the Menu Bar and the Status Bar when docked. They can be docked in any order to an edge. If the outline doesn't overlap an edge, the section will float on the desktop. If you hold down the [Ctrl] key, the sections will float instead of docking to the nearest available side of the IDLDE.

Control Panel Buttons

In IDL for UNIX, the Control Panel buttons issue IDL commands for the currently-selected Editor window when pressed. The IDL command issued is displayed in the Output Log. By default, there are three different toolbars and the buttons displayed as well as the commands they issue are completely configurable (see Setting IDL Preferences for more on these toolbars). When you position the mouse pointer over a Control Panel Button, the Status Bar displays a brief description.

  IDL Online Help (March 06, 2007)