The Window Selector allows you to manage windows and dialogs within the EiffelBuild project and all windows are accessible through this tool. Using the window selector, you may add new windows to your project; delete windows; assign a root window (launched from the generated application); and group windows into directories. The Window Selector has the following appearance:
To add a window or dialog to your project, pick the window or dialog type from the type selector, and drop into the Window Selector. There are two possible drop targets within the window selector:
Note: The selected window in the Window Selector is automatically targeted as the root window of the layout constructor, permitting building. You may not build directly into the representation of a window within the Window Constructor.
The root window of a project is launched by the application class of the generated EiffelBuild project when executed. By assigning a window as a root, you ensure that it will be displayed on screen as the "root" window of the generated system when the system is launched.
The root window of the project is highlighted with a star, indicating that it is the root. Looking at the screenshot at the top of this page, the window named "main_window" is currently flagged as the root window of the project. To set a window as the the root window of the project, select the window in the Window Selector, and press the button displayed at the top of the Window Selector.
The ability to add directories to your project permit organization of windows into sub groups as necessitated by your design. To add a directory to the project, select the button displayed at the top of the Window selector, which displays the following dialog, prompting for the name of the directory to add:
Enter a unique name that is not already in use, and select "OK" to add the directory to your project. The newly added directory is then visible, as a node in the Window Selector.
Note: Creating a new directory in the Window Selector causes the actual directory on the disk to be created immediately.
You may insert windows into a directory, or move a window between directories by picking the window from its representation in the Window Selector, and dropping on the desired directory.
Note: If you move a window between directories within an EiffelBuild project that has already generated the Eiffel code for that window, the code files are moved on the disk.
It is not possible to nest directories, only a single level of directories is permitted in the root of the project.
The
button displayed at the top of the Window Selector expands all nodes contained.
See also:
Layout constructor