Table of Contents Previous Chapter 23 The SDL Editor
The menu bar provides commands available in menus and menu choices for editing diagrams and pages of diagrams. Most the functionality that the SDL Editor offers is contained within the commands from the menu bar.
The SDL Editor's menu bar provides the following menus:
Figure 273 : The File Menu.
-----
(fig)
-----
The File menu supports the following commands on diagrams:
This command creates a new SDL diagram. Following the menu choice, the SDL Editor prompts to specify the name and type of the diagram to be created (see Figure 274).
Figure 274 : Creating a New Diagram.
-----
(fig)
-----
This command opens an SDL diagram. A Standard File Selection Dialog is issued (see Figure 275). For a complete description of this dialog and how to take advantage of it, see the chapter The SDT Graphical User Interface.
Figure 275 : Opening a Diagram.
-----
(fig)
-----
The Filter field is set to *.s?? by default. This extension corresponds to the default file extensions that are applied to SDL diagrams. See "Save" on page 1189 for information about default file extensions.
-------------------------------------------------------------------
Note:
SDT does not impose any specific file extension on SDL diagrams.
If other file extensions than the ones suggested by SDT have been
used when saving diagrams, a different filter than *.s?? should be
applied
-------------------------------------------------------------------
As a file is selected in the Files list, relevant one-line information related to the file is displayed in the status bar at the foot of the SDL Editor window.
This menu choice saves the current diagram. The menu choice reads Save (Not needed) if no changes have been done to the diagram since the last Save.
When a newly created diagram is to be saved, a Standard File Selection Dialog is issued following the Save menu choice. The dialog prompts to specify what file to save the diagram on.
Figure 276 : Save of a New Diagram.
-----
(fig)
-----
-------------------------------------------------------------------
Note: Default file names
The default file name that the SDL Editor suggests consists of:
· <diagramname> appended with
· an enumerated integer value (1, 2, ..., N) if the
<diagramname>/file extension already exists,
· a default file extension (see Figure 276 and "Default File Exten
sion", below). Reserving these default file extensions for SDL
diagrams makes it easier to locate them in the file system.
-------------------------------------------------------------------
----------------------------------------
Diagram Type Default File Extension
----------------------------------------
System .ssy
Block .sbk
Substructure .ssu
Service .ssv
Process .spr
Procedure .spd
System Type .sst
Block Type .sbt
Service Type .svt
Process Type .spt
Macro Definition .smc
Operator .sop
Package .sun
Overview .sov
----------------------------------------
This menu choice saves the SDL diagram currently being edited on a new file. The SDL Editor associates the diagram with the new file and the Organizer reconnects the diagram icon with the newly created file in order to maintain consistency.
The name of the new file is to be specified in a Standard File Selection Dialog. The SDL Editor suggests a default file name, using the same rules as for Save of newly created diagrams (see page 1190).
If the user changes the suggested file name to specify a file that already exists, the SDL Editor issues a confirmation dialog:
Figure 277 : The Save Confirm Dialog.
-----
(fig)
-----
- A click on the OK button confirms the overwriting of the existing file.
- A click on Cancel returns control to the Standard File Selection Dialog, prompting to specify another file to save the copy on.
This menu choice saves a copy of the current diagram on a new file.
--------------------------------------------------------------------
Note:
The SDL Editor window will hold the original file in its window,
not the newly saved copy of the diagram. The diagram remains
connected to the old file and the Organizer's structure is left unaf
fected by the operation
--------------------------------------------------------------------
The name of the new file is to be specified in a Standard File Selection Dialog. The SDL Editor suggests a default file name, using the same rules as for Save of newly created diagrams (see page 1190).
If the name of an already existing file is entered, the SDL Editor prompts the user to confirm the operation:
Figure 278 : The Save Confirm Dialog.
-----
(fig)
-----
- A click on the OK button confirms the overwriting of the existing file.
- A click on Cancel returns control to the Standard File Selection Dialog, prompting to specify another file to save the copy on.
This menu choice saves all modified SDL diagrams that are open in the SDL Editor. This menu choice is dimmed if no modifications have been made to any diagrams currently being edited.
Any new diagram that needs to be saved will cause a file section dialog to be issued (see "Save of newly created diagrams" on page 1190).
This command closes the current SDL diagram and its associated window. If the diagram has been modified, the SDL Editor will prompt to save the changes before closing the diagram.
Figure 279 : The Close Diagram Dialog.
-----
(fig)
-----
- Clicking Save saves the diagram and closes it.
- Clicking No save closes the diagram without saving it.
- Clicking Cancel returns control to the SDL Editor without closing the diagram.
This menu choice invokes the SDL Editor print utility. Following the selection of this command, a Print dialog is issued in order to specify what to print and how to print it.
Figure 280 : The SDL Editor Print Dialog.
-----
(fig)
-----
See page 1456 for further description.
This menu choice closes all SDL Editor windows that are open, and terminates the SDL Editor session. When Exit is selected, the following menu - see Figure 281 appears for each of the diagrams open which have been modified.
Figure 281 : The Exit Dialog.
-----
(fig)
-----
- Save
Saves any changes made to the current diagram. Once the diagram has been saved, the SDL editor will then proceed with the next diagram in turn to be saved (in which case the Save dialog is issued again).
- No Save
Closes the current diagram without saving it. The SDL Editor will then prompt for the next diagram to be saved.
- Save All
Saves all the changes and modifications made on all diagrams during the current session without prompting for each diagram, and then exits the SDL Editor.
- Quit All
Exits the SDL Editor without saving any changes.
- Cancel
Cancels the exit request without exiting the SDL Editor.
Figure 282 : The Edit Menu.
-----
(fig)
-----
The Edit menu provides editing functions that can be performed on the objects in the drawing area. It is also possible adjust the actual drawing area.
The Edit menu functions that are available differ depending on the type of diagram being edited, either:
There is also an Undo feature which reverses the last action performed, and returns the SDL Editor status to the situation prior to the unwanted action which was performed. It is only available for operations on symbols, lines and text attributes. Text editing operations cannot be undone.
------------------------------------------------------------------
Note: Undo for Text editing
An Undo function is available for text via the Grammar Help or Sig
nal Dictionary functions. See page 1240 and page 1251.
------------------------------------------------------------------
The Edit functions are as follows:
This command restores the content of the drawing area to its state prior to the most recently performed operation. The following operations can be undone:
This command removes the current selection from the drawing area, and saves it in the clipboard buffer. Cut is only valid if a selection is defined.
This command makes a copy of the current selection in the clipboard buffer. The content of the drawing area is not affected by this menu choice. Copy is only valid if a selection is defined.
This command inserts the contents of the clipboard buffer into the drawing area. Paste is only valid if a selection has previously ben cut or copied into the clipboard buffer.
The contents of the clipboard buffer is inserted in the same way as when inserting a symbol from the symbol menu (by clicking it and placing it on the drawing area). See "Appending Symbols" on page 76 in the chapter Editing SDL Diagrams. (No lines will be drawn between the pasted symbols and the symbols already present in the drawing area.)
---------------------------------------------------------------
Note:
The Paste operation can be interrupted by pressing <Esc>.
---------------------------------------------------------------
This function has the similar functionality as the Paste function, but is only available for flow pages. It inserts necessary space after the selected symbol before pasting the clipboard buffer and connecting the two flows.
The function requires that the clipboard is not empty and that exactly one symbol or line is selected. Otherwise, the menu choice is dimmed. The menu choice is also dimmed if connecting the two symbol flows would violate the Z.100 syntax rules.
Before inserting the selection, the SDL Editor allocates the necessary space by pushing the required objects downwards. If this is not possible, the following dialog is displayed:
Figure 283 : The Increase Page Dialog.
-----
(fig)
-----
- Clicking Increase Page transfers control to the Drawing Size dialog (see page 1200), where the new width and height of the SDL page are to be specified. When this is done, the SDL Editor carries on the operation and inserts the selection.
- Clicking Cancel closes the dialog without doing anything.
This command removes the selected objects from the drawing area. The content of the clipboard buffer is not affected by this menu choice. Clear is only valid if a selection is defined.
This command changes the direction of a selected channel, signal route or gate. The new direction is denoted by changing the orientation and position of the arrow, leaving the arrowhead pointing in the opposite direction. Subsequent redirections result in the signal list toggling between two directions.
----------------------------------------------------------------
Note:
The only way to draw a channel from the environment to a symbol
is to:
1. draw a channel from that symbol to the environment, and then
2. redirect the channel.
----------------------------------------------------------------
This command changes the selected channel, signal route or gate to be bidirectional. A new arrowhead and an empty signal list are generated. A bidirected channel or signal route is changed back into a single-directional object by clicking on the unwanted arrowhead and selecting the Clear function from the Edit menu.
This command creates a vertically symmetrical copy of the selected symbol(s). This command is valid on the following symbols only:
- input symbol,
- output symbol,
- priority input symbol,
- text extension symbol and
- comment symbol.
The flow lines connected to a mirrored text extension symbol or comment symbol are redrawn in order to reconnect them to the opposite side.
A dashed reference symbol is used in an SDL subtype when referring to an object that is defined elsewhere in one of the supertypes of the current subtype.
In a similar fashion, a dashed gate indicates that the gate is already defined in one of the supertypes in the inheritance chain.
Figure 284 : A Dashed Process Reference Symbol and
a Dashed Gate.
-----
(fig)
-----
The Dash/Undash command is available on the following diagrams:
- System Types
- Block Types
- Process Types
- Service Types
The Undash is a toggle command.
This menu choice sets the size of the drawing area for the current SDL page. A dialog is issued, as shown in Figure 285.
Figure 285 : The Drawing Area Size Dialog.
-----
(fig)
-----
- Type in the desired width and height. Sizes must be within the ranges shown in the dialog.
- Clicking OK applies the width and height values. The drawing area is resized accordingly. The values are saved on file when saving the diagram.
----------------------------------------------------------------------
Note:
Enlarging the drawing, the current SDL page may not fit any longer
into the paper that is defined with the Print preferences; the result
may be an SDL page that requires multiple sheets of paper when
printed.
----------------------------------------------------------------------
- Clicking Cancel exits the command without changing the drawing area size.
This command selects the currently selected symbol and all objects beneath it within the tree (following the flow lines).
This operation selects all objects within the drawing area.
Figure 286 : The View Menu.
-----
(fig)
-----
The View menu provides rescaling functions and access to various options that affect the behavior of the SDL Editor.
The following choices are available beneath the View menu:
This menu choice issues a dialog where the scale can be adjusted (see Figure 287).
Figure 287 : The Scale Dialog.
-----
(fig)
-----
- The dialog presents a bar and a Slide Bar where the current scale value is shown.
- Clicking the Scale button applies the value currently defined on the slider. When saving the diagram, the scale is saved as well.
- Clicking the Overview button applies a scale required to display an overview of the drawing area. What scale this corresponds to is indicated on the button. The smallest possible scale is 20%. The overview scale is saved on file as well.
- Clicking Cancel exits this menu choice without rescaling.
This menu choice issues a dialog where to set the options that affect the window properties (see Figure 288).
Figure 288 : The Window Options Dialog.
-----
(fig)
-----
The various window options are described below.
- Clicking OK applies the options as defined in the dialog to the current window only.
- Clicking All Windows applies the options as defined in the dialog to all windows opened by the SDL Editor.
- Clicking Cancel closes the dialog without changing the windows options.
- Tool Bar
This option determines whether the tool bar (featuring the Quick Buttons) should be displayed or not. Situated immediately below the menu bar, a set of quick buttons form the content of the toolbar. They offers a quick and handy method of performing certain routine actions.
- Status Bar
This option determines whether the Status Bar should be displayed or not. At the base of the window, it contains one line of information that provides additional information on the selected menu choice or symbol.
- Symbol Menu
This option determines whether Symbol Menu should be visible or not. The space allocated to the symbol menu will be reused by the drawing area when hiding the symbol menu.
- Text Window
This option determines whether Text Window should be visible or not. The space allocated to the text window will be reused by the drawing area when hiding the text window.
- Page Breaks
This option determines whether physical page breaks, with the appearance of dashed horizontal and vertical lines, should be displayed or not in the drawing area. These page breaks are defined by the print preferences; they show where the print utility will break the diagram into multiple printout pages.
This menu choice issues a dialog where to set the options that affect the editing properties applied on the current diagram.
The following dialog is displayed on remote diagrams:
Figure 289 : The Diagram Options Dialog (Remote Diagrams).
-----
(fig)
-----
- Use Grid
This option determines whether or not the symbols that are appended, resized or moved should adhere to the symbol grid or not. By default the symbol grid is active.
By disabling the symbol grid, the SDL Editor will use a resolution of 5 * 5 mm.
- Syntax check
This option determines whether the SDL Editor should adhere to the formal SDL syntax rules regarding symbols and the connection of symbols. Ideally the syntax check should always be on.
- Endpoints fixed at frame
- When the Endpoint fixed to frame option is toggled to on, the endpoint of a channel or signal route connected to the frame symbol remains static at the environment when moving a symbol.
- Toggling the option to mean that when the symbol is moved, the endpoint moves in parallel along the frame too.
- Clicking OK applies the options to the current diagram. The diagrams options are also saved on file when the diagram is saved.
- Clicking Cancel closes the dialog without changing the options.
The following dialog is displayed on overview diagrams:
Figure 290 : The Diagram Options Dialog (Overview Diagrams).
-----
(fig)
-----
- Show line names
This option governs whether the names of lines (such as channels and signal routes) should be displayed or not.
- Show signal lists
This option governs whether the signal lists associated to channels and signal routes should be displayed or not.
- Clicking OK applies the options to the current diagram. The diagrams options are also saved on file when the diagram is saved.
- Clicking Cancel closes the dialog without changing the options.
This menu choice issues a dialog where the behavior of the SDL Editor can be customized.
Figure 291 : The Editor Options Dialog.
-----
(fig)
-----
The options are controlled by toggle buttons. They are:
- Always new Window
This option indicates whether or not a new window should be opened whenever the New or Open command or any command from the Pages menu menu is operated.
The default behavior is not to open a new window.
- Sound
This option indicates whether or not improper actions in the SDL Editor, such as attempting to overlap symbols, should be brought to the user's attention by producing an alert sound.
The default value for this option is on.
Figure 292 : The Pages Menu.
-----
(fig)
-----
The pages menu holds commands that assist the user in navigating among the pages that are currently being edited in the SDL Editor. It also contains commands for adding, renaming, clearing pages as well as clipboard functions for copying, cutting and pasting entire pages.
The menu choices are:
This menu choice allows to Add, Rename, Clear, Cut, Copy and Paste an SDL Page. Following this menu choice, a dialog is issued:
Figure 293 : The Edit Pages Dialog.
-----
(fig)
-----
The meaning of the various components is as follows:
Presents a list with all SDL pages that are included in the SDL diagram. Clicking on a page in this list selects it and makes it the subject of the operation to follow.
Clicking this button opens the selected page and displays it in an SDL Editor window. The Edit Page dialog is closed
Clicking this button closes the Edit Page dialog.
Clicking this button removes the selected SDL page from the diagram and saves it in the clipboard buffer.
This menu choice is dimmed if the currently selected object is not an SDL page. The information in the Organizer which is dependent on this page will also be removed.
Clicking this button copies the selected page into the clipboard buffer.
This menu choice is dimmed if the selected object is not an SDL page. The diagram is unaffected by the Copy operation.
Clicking this button pastes the page contained in the clipboard buffer into the current diagram.
The Paste menu choice will be dimmed in the following cases:
- If the clipboard buffer is empty.
- If a Paste operation using the current clipboard contents would lead to a syntax violation in the target diagram.
The SDL Editor checks that the contents of the page are syntactically correct and issues a warning if required.
Figure 294 : Warning about Syntax Error in Page.
-----
(fig)
-----
- Clicking Cancel aborts the Paste operation.
- Clicking Proceed confirms the Paste operation.
A new dialog is issued, in which the page must be assigned a new name. Also, the page can be inserted before or after the currently selected page (see Figure 295).
Figure 295 : The Paste Dialog.
-----
(fig)
-----
The dialog allows to specify:
- The new name of the page (two pages with the same name are not allowed within a diagram)
- Possibly, an autonumbered name (see the Autonumbered option in the Edit menu choice, on page 1212)
- If the new page should be pasted before or after the current page.
- Clicking the Paste button pastes the page according to the options as set up in the dialog.
- Clicking Cancel returns control to the Edit Page dialog without pasting the page.
This operation clears (removes) the selected SDL page from the diagram.
Figure 296 : The Clear Page Dialog.
-----
(fig)
-----
To confirm the operation, click on Clear. Clicking on Cancel returns control to the Edit Page dialog without clearing the page. The SDL Editor will automatically rename autonumbered pages.
----------------------------------------------------------
Caution!
As stated in the dialog, Clear on a page cannot be undone.
----------------------------------------------------------
This command creates a new SDL page which is added to the current diagram. The page must be given a name which complies with SDL conventions. The default page name is Untitled. The new page can be inserted either before or after the current page. Also, an autonumbering facility is provided.
New pages are listed in the same order that they were added.
Figure 297 : The Add Page Dialog.
-----
(fig)
-----
Clicking this button issues a dialog where the selected SDL page can be renamed. The SDL Editor prompts to enter the new name of the page (see Figure 300).
Figure 300 : The Rename Page Dialog.
-----
(fig)
-----
--------------------------------------------------------------
Note:
Autonumbered pages cannot be renamed. The autonumbered option
must first be turned off.
--------------------------------------------------------------
- Type in the new name of the page. Check is made that the new name is not already in use in the diagram.
- Click on OK to rename the page. After renaming, control is returned to the Edit Page dialog.
- Click on Cancel to cancel the renaming. Control is returned to the Edit Page dialog.
Turning the Autonumbered option on applies a numeric name to the selected page (1, 2, etc...). The following dialog is issued:
Figure 301 : The Autonumber Dialog.
-----
(fig)
-----
- Clicking Yes auto-numbers the selected page.
- Clicking All Pages auto-numbers all pages contained in the diagram.
- Clicking No closes the dialog without autonumbering the pages.
Turning the Autonumbered option off, first the SDL Editor prompts to confirm the removal of autonumbering on that page (Figure 302).
Figure 302 : The Remove Autonumber Dialog.
-----
(fig)
-----
- Clicking on Yes removes autonumbering on the page and issues a Rename Page dialog (see "Rename" on page 1212).
- Clicking on No cancels the operation. The page remains autonumbered.
This toggle button designates what page to be opened first when opening an SDL diagram in the SDL Editor, without specifying any particular page. Only one page at the time can have this attribute set.
This menu choice opens the first page contained in the diagram. The first page is defined according to the order of appearance in the Edit Page dialog.
If the page is already opened, its window is simply popped up.
Activating the Page menu presents up to four menu choices that consist of the names of the two pages that are sequentially immediately before and after the page being edited.
Selecting one of these page names opens or restores that page in the SDL Editor.
If the first page of the diagram is being edited, the next four sequential pages are shown. If the last page of the diagram is edited, the previous four pages are shown.
This menu choice opens or simply pops up last page of a diagram. See "First" on page 1213 for more information.
This menu choice opens (or, if already active, simply restores) the page in the parent diagram where the name of the current page is referred.
This menu choice is dimmed when the current page is one of the pages contained in the Organizer Root diagram (in which case there is no parent diagram).
Figure 303 : The Diagrams Menu.
-----
(fig)
-----
The Diagrams menu records all diagrams and pages that are opened by the SDL Editor.
The available menu choices are:
The last opened page always goes to the top of the list, and subsequently moves the other diagrams and pages down a position. A maximum of 9 open pages can be shown. A tenth one will be put at the top of the list, but any subsequent opening of a diagram or page will only show the last 9 to have been opened. Another option - List All (at the bottom of the list) is available to list all the open diagrams in the SDL Editor.
A diagram that is preceded by an asterisk (`*') denotes that it has been modified during the SDL Editor session.
This menu choice becomes available when a maximum of 9 open pages has been surpassed. When List All is selected, it provides a dialog containing all diagrams and pages that are currently open in the SDL Editor (see Figure 304).
Figure 304 : The List All Diagrams Dialog.
-----
(fig)
-----
- The list can be scrolled horizontally and vertically. Each item in the list provides information about the diagram type, its name, a slash (`/') followed by a page name, a hyphen and, possibly, the file it is stored on (the file information is missing if the diagram has never been saved).
- To select a page to be displayed, highlight it by clicking on it, and then click on OK. The page is visualized, and its title is shown at the top of the Diagrams list of open diagrams
Figure 305 : The Windows Menu.
-----
(fig)
-----
The Windows menu contains the following menu choices:
This command opens a new window containing a new view on the SDL page contained in the source window from which this menu choice was operated. The SDL page can be edited in any window.
This option closes the open window, but, not necessarily the diagram. All but the last open window can be closed, the last one must be closed from the File menu, possibly in conjunction with a Save of information (see "Close Diagram" on page 1193).
This menu choice opens the Grammar Help Window, described on page 1237. Its purpose is to assist the user in editing SDL textual elements that are correct according to the SDL grammar.
Each SDL Editor window has its associated Grammar Help window.
The SDL Editor tries to open a file with grammar help templates when opening the Grammar Help window (which file to open by default may be specified as an SDL Editor preference). If the file cannot be located, the following dialog is issued:
Figure 306 : Prompting to Locating the Grammar Template File.
-----
(fig)
-----
- Clicking the Yes button, a Standard File Selection Dialog is issued, with file filter preset to .tpl. The dialog may be used to navigate in the file system in order to select a suitable grammar help template file.
- Clicking the No button opens an empty Grammar help window.
This menu choice opens the Signal Dictionary Window, described on page 1250. Its purpose is to assist the user in gaining fast access to information about what signals are defined in an SDL hierarchy - a signal dictionary.
Each SDL Editor window has its associated Signal Dictionary window.
Figure 307 : The Tools Menu.
-----
(fig)
-----
The Tools menu contains the menu choices:
This menu choice rearranges the graphical layout of the entire SDL diagram, using default layouting algorithms when calculating the location and size of graphical objects.
Following the activation of the menu choice, a confirmation dialog is issued:
Figure 308 : The Confirm Tidy Up Dialog.
-----
(fig)
-----
- The Tidy Up button confirms the operation.
- The Cancel button closes the confirmation dialog without rearranging the diagram.
The algorithms that govern the impact of this function are described in "Automatic Layouting of Diagrams" on page 1269.
This command issues a message where the graphical reference for the currently selected object is displayed.
Figure 309 : The Show GR Reference Message.
-----
(fig)
-----
The syntax of the graphical references used in the SDT environment is described in chapter 41, References in SDT-3.
This command pops-up the parent SDT Organizer Main Window, i.e. from where the SDL Editor was started.
The Help menu is described in chapter 21, The SDT Graphical User Interface, on page 1033.
The popup menu is a activated by pressing the right mouse button. The popup menu remains active until the next mouse click or until the <ESC> key is typed.
The popup menu contains the most often performed menu-choices from the Edit menu; the exact content depends however on the type of diagram.The available menu-choices on the popup menu are:
In addition to the standard keyboard accelerators, described in "Accelerators and Mnemonics" on page 1048, the SDL Editor features the following:
-----------------------------------------------------------
Accelerator Command / functionality
-----------------------------------------------------------
ctrl-D Next page in diagram (see page 1221)
ctrl-I Insert Paste (see page 1197)
ctrl-U Previous page in diagram (see page 1221)
<Delete> Clear (i.e. remove, delete) (see page 1198)
-----------------------------------------------------------
In addition to the generic Quick Buttons that exist in all SDT tools (see page 1035), the SDL Editor tool bar contains the following quick buttons:
-------------------------------------------------------------------------------
(fig) Text window on / off
Toggle the Text Window between visible and hidden (the same as the
Text Window option, see page 1203).
(fig) Symbol menu on / off
Toggle the Symbol Menu between visible and hidden (the same as the
Symbol Menu option, see page 1203).
(fig) Reference page
Open previous page in flow (similar to Edit Reference Page, see page
1214)
(fig) Previous page
Open previous page in flow (similar to <Page Name>, see page 1213)
(fig) Next page
Open previous page in flow (similar to <Page Name>, see page 1213)
-------------------------------------------------------------------------------
This page intentionally left blank
Table of Contents Next Chapter