Editor Window
Overview
The Editor window is the main window of the SMED editor.
It holds into separate folders all sources, which are currently edited or viewed.
The source code window displays the text of the file currently being
edited. For more information regarding the Editor Window please refer to
the section on SMED Editor.
Menu Bar
File
- Insert - opens File Selection Dialog and inserts the selected file at the current cursor position.
- Revert to Files... - reverts to the previously saved file, backup file or auto saved file.
- Print File - print current file to printer.
- Save All Buffers - writes changes in all buffers to disk.
- Save Current Buffer - writes changes to disk.
- Save To File - writes current buffer to file with other name. The name and context of current file is unchanged.
- Open File - shows File Selection dialog and opens selected file in new buffer.
- Close Current - closes the current file.
- Close All - closes all files and exits from SMED.
Edit
- Undo - reverses the last command or action (Multiple undo commands are possible).
- Cut - deletes the current selection and copies it to the Clipboard.
- Copy - copies the current selection to the Clipboard.
- Paste - inserts the contents of the Clipboard at the current cursor position OR replaces the current selection.
- Convert to Upper Case - changes all selected text to capital letters.
- Convert to Lower Case - changes all selected text to lowercase letters.
- Insert Character - opens the next dialog and inserts character with entered code into text.
- Complete Word - completes word which is currently left from cursor.
Completion performs the word search through current buffer and then all used include files.
Search stops on finding 32 symbols.
If there is more than one symbol found, popup menu with alphabetically sorted symbols is shows up and user selected word completes the current word.
Note: The default include path for current language must be specified in Parsers Tool.
- Macro - opens the Editing Macros dialog.
- Run Macro - displays the list of all currently recorder macros and allows their playback.
- Language Mode - submenu, allows to change current syntax highlight and indentation mode "on the fly".
SMED remembers this mode for given source.
- Edit Mode - submenu, allows to change current keybinding mode.
- Run Macro - optional submenu which holds all your current available macros.
View
- Split Current View - splits the current view into two.
- Remove Current View - removes the current view.
- Collapse All - collapses all objects incurrent file.
- Expand All - expands all collapsed blocks.
- Remove All Collapse Marks - expands all collapsed blocks and remove all collapse marks.
- Collapse Selection - collapses the current selection.
- Collapse Current Block - collapses the current { ... } block.
- Collapse Current Funcion - collapses the current object (function).
- Toggle Current Function Mark - toggles the collapse mark on current function.
- Remove Collapse Mark - removes the current collapse mark.
If there is more than one type of collapsed objects for current language, for each object
the submenu with the following items are creates:
- Collapse Current - collapses the current object with specified type.
- Collapse All - collapses all objects of specified type.
- Expand All - expands all objects of specified type.
- Remove Marks - removes collapse marks from all objects of specified type.
Tools
- Popup Symbol Navigator - launches the Symbol Navigator.
- Show Symbol - opens the Symbol Navigator using the definition of the currently selected symbol or symbol under cursor.
- Show Symbol in Context - jumps to the selected symbol's definition. (Opens a new editor window if necessary)
- Manual Page for Symbol - shows the Manual page for symbol under the cursor.
- Filter - applies a filter to selected text.
Search
- Search - opens the Search dialog to search for the selected string.
- Replace - opens the Search and Replace Dialog.
- Search/Replace Next - finds and selects the next occurrance of the text specified in the Search Dialog or Search and Replace Dialog.
- Previous Bookmark - moves the cursor to the previous bookmark.
- Next Bookmark - moves the cursor to the next bookmark.
- Flash Matching Brackets - flashes the matching block bracket.
- Jump to Matching Bracket - moves the cursor to the matching block bracket.
- Jump to Tag - performs a search for the symbol under cursor or selection in tag files.
The list of tag files to be searched is specified in "Tag" Tool (the default files to be search are 'tags' and 'TAGS' files in the project root directory).
This files should be created by user, using ctags or etags utilites.
- Previous Function - moves the cursor to the previous function in the text.
- Next Function - moves the cursor to the next function.
Options
- Clear All Bookmarks - clears all bookmarks.
- Show Bookmarks Pane - opens/closes a panel showing all current bookmarks.
- Show Status Line - shows/hides the status bar.
- Show Toolbar - shows/hides the tool bar.
- Custom Resources - opens the Custom Resources Dialog.
Actions
- Make target - makes the target that depends on the current file. The user is prompted to select the target if several targets depend on the current file.
- Run target - runs the target.
- Debugs target - debugs the target.
- Collect includes - checks the implicit dependencies.
- Node info - shows current node information.
- Diff Tool - runs the Diff Tool.
- Grep Tool - runs the Grep Tool.
- Version Tool - run the RCS tool.
- Check in RCS revision - save the changes and create a new RCS revision.
Tool Bar
The Editor Tool bar includes the following buttons:
- Close Editor - closes the all edited files.
- Save Changes - writes current file to disk.
- Insert File - opens File Selection Dialog and inserts the selected file at the current cursor position.
- Search - opens the Search Dialog to search for a selected string.
- Undo - reverses the last command or action (multiple undo's are possible).
- Copy to Clipboard - copies the selection to clipboard.
- Cut to Clipboard - deletes the current selection and places it into the Clipboard.
- Paste - inserts the contents of the Clipboard at the current cursor position OR replaces any current selection.
- Split Current View - splits the current view into two.
- Remove Current View - removes the current view.
- Clear All Bookmarks - deletes all bookmarks.
- Show Bookmarks Info - opens a panel showing all current bookmarks.
- Indent Line or Selected Area - indents the selected area/current line (available, when Language Specific Indentation check-box is on).
Status Bar

The Status bar displays cursor position, current function name, language mode name, current editor window for newly open files and flag, that current buffer is modified.
Last modified: Thursday, 30-Sep-1999 01:44:09 MDT