next up previous contents index
Next: 2.6 Viewing Documents Up: 2 Document Editing Previous: 2.4 Loading and Saving

Subsections

2.5 Editing Documents

  There are two types of document edit commands: commands that are issued by the mouse, when the mouse pointer is in the drawing area, and the commands listed in the Edit menu. All diagram and tree editors share the same set of edit commands (chapter 3). All table editors too share the same set of edit commands (chapter 7). However, the edit commands of diagram and tree editors on one hand and table editors differ to a large extent.

All document edit commands, except the simple selection commands and the key-stroke text edit commands are undo-able and redo-able (multiple levels). All editors have certain commands to select items, to move and resize items, to edit the text of items, to add items and to delete items. Only the text edit commands are very similar across all editors and therefore they are described in this chapter. For the other commands you are referred to chapter 3 (diagrams and trees) and chapter 7 (tables).

2.5.1 Editing Text in a Document

    

In order to be able to type in a label of a shape in a diagram or the text in a table cell, the shape or cell should be the only currently selected shape or cell. For going into edit mode you can do the following. Move the mouse pointer into the single selected shape or cell, and when the mouse pointer has turned into a \psfig {figure=p/ibeamP.ps}
,you can start editing by typing characters or by clicking button-1 again. In both cases the edit mode starts.

There are two edit modes: in-line editing and out-line editing.     In-line editing takes place directly in the drawing area and during in-line editing a black triangle shaped cursor is visible. Out-line editing takes place in a separate window with a text editor that is popped up when the edit mode is entered. That window contains an editable Motif text entry area, a menu bar, scroll bars and two buttons: OK and Cancel. You can indicate which of the two possible edit modes has to be used by a toggle button labeled in-line editor. That toggle is near the bottom of the main window and it is also accessible via the View menu. In general, in-line editing is more suitable for quickly editing short labels, whereas out-line editing has scroll bars and some extra edit operations and is more suitable for editing large chunks of texts. With out-line editing it is also possible to cut and paste text within and between text edit windows.

2.5.2 The In-line Text Editor

Here we summarize all operations that are available in the in-line editor.

2.5.3 The Text Edit Dialog

   Text edit dialogs are almost complete text editors, see figure 2.5. Text edit dialogs are not only used for out-line editing text labels but also for editing document and subject annotations. The operations in the dialog are mostly standard Motif operations. Here we will summarize the most important ones:


  
Figure 2.5: TCM text edit dialog.
\begin{figure}
\begin{center}

\includegraphics [width=5.5in]{p/texteditdialog.ps}\end{center}\end{figure}


  
Figure 2.6: TCM find dialog.
\begin{figure}
\begin{center}

\includegraphics [width=3in]{p/finddialog.ps}\end{center}\end{figure}


  
Figure 2.7: TCM replace dialog.
\begin{figure}
\begin{center}

\includegraphics [width=3.75in]{p/replacedialog.ps}\end{center}\end{figure}


next up previous contents index
Next: 2.6 Viewing Documents Up: 2 Document Editing Previous: 2.4 Loading and Saving
Frank Dehne,Faculty of Mathematics and Computer Science, Vrije Universiteit Amsterdam
11/17/1997