next up previous contents index
Next: Expressions Up: Interface with the Foresys Previous: The toolkits

  
Graphical interface


  
Figure 6: The main window of TSF
\includegraphics[width=12cm]{Figures/main.eps}

The figure 6 shows the main part of the Motif interface developed on the Foresys tool.

1.
A menu bar with the following entries:
 $\mid$ File
 
 $\mid$ New
- Create a new unnamed toolkit.
 $\mid$ Open
- Load a toolkit.
 $\mid$ Delete
- Delete the current toolkit from the list.
 $\mid$ Save
- Save the current toolkit .
 $\mid$ Save As
- Save the current toolkit with a new file name.
 $\mid$ Save All
- Save the modified toolkits.
 $\mid$ Configure
- In the current version, this entry is used to set the name to the current toolkit.
 $\mid$ Quit
- stop the execution of TSF.
 $\mid$ Entry
 
 $\mid$ Add
- Add an new empty entry in the current toolkit.
 $\mid$ Clone
- Add a copy of the selected entry in the current toolkit.
 $\mid$ Delete
- Remove the selected entry from the current toolkit.
 $\mid$ Options
 
 $\mid$ Icons
- Toggle between text/icons buttons
 $\mid$ Help
 
 $\mid$ Help
- Show the TSF help (not yet available)

2.
The list of loaded toolkits.
3.
A set of buttons.
\fbox{Apply}
- Run the script of the selected entry.
\fbox{Edit}
- Edit the script of the selected entry (see after).
\fbox{Search}
- Apply the pattern to search a matching Fortran code.
\fbox{Info}
- Open a dialog window to show the documentation of the selected transformation.
\fbox{Undo}
- Cancel the last transformation (if possible).
\fbox{Redo}
- Restore the last transformation cancelled by UNDO.
\fbox{Ast}
- Display the structure of the current selection. (see the attribute AST)
4.
The list of entries available in the current toolkit.
5.
The documentation of the selected entry.

The second kind of TSF window is the editor (see figure 7). An editor can be opened for each entry with the 'EDIT' button in the main window or by a double mouse click of its name.

1.
A menu bar with the following entries:
 $\mid$ Case
 $\mid$ New
- Create a new entry and clear all the fields.
 $\mid$ Clone
- Create a new entry with the same fields.
 $\mid$ Commit
- Report all changes in the toolkit.
 $\mid$ Commit & Save
- Report all changes in the toolkit and save the toolkit
 $\mid$ Commit As
- Equivalent to 'Clone'+'Commit'
 $\mid$ Cancel changes
- Restore the fields as before the last 'Commit & Save'
 $\mid$ Delete
- Remove the entry from the toolkit.
 $\mid$ Close
- Close the editor.
 $\mid$ Abstraction
- This menu provides some simple transformations on the pattern.
 $\mid$ Option
 
 $\mid$ Auto Commit & Save
- Toggle the automatic saving of the fields before running the script.
2.
A set of buttons (see the menu 'Case')
3.
The Field page allows to set the name, the application, the architecture and the author of the entry.
4.
The Pattern page contains the edition zone for the pattern and the following buttons:
\fbox{Search}
- Apply the pattern to search a matching Fortran code.
\fbox{Get}
- Use the current Fortran selection to create a pattern.
\fbox{Check Syntax}
- Verify the syntax of the pattern.
The Abstraction submenu may be used at this level in order to remove some useless details.
5.
The Script page contains the edition zone for the script and the following buttons:
\fbox{Apply}
- Apply the script to the current Fortran selection.
\fbox{Check Syntax}
- Verify the syntax of the script.
\fbox{Goto}
- Go to the specified line.
6.
The Documentation page contains the edition zone for the documentation.


  
Figure 7: The TSF editor
\includegraphics[width=12cm]{Figures/editor.eps}


next up previous contents index
Next: Expressions Up: Interface with the Foresys Previous: The toolkits
Yann Mevel
1999-04-30