Prev Up Top Next Contents

2.3 Text editor

The text editor of xtherion allows to write and edit (and save) survey data. These files must be written using the therion syntax to be used by therion, see app. 2.b .
To switch to the text editor, select the menu "Window | Text editor". Next open a survey data file (extension .th) with the menu "File | Open", or create a new one with the menu "File | New".


Text editor
Fig. 11. Text editor

2.3.1 Control panel

The control panel of the text editor contains

2.3.2 The "Data Table"

The "Data Table" of the control panel simplifies entering the survey data [thbook 29]. After writing the length you move to the next entry ("compass") pressing either the "Enter" key or the "Tab" key. In the same way you move to the "clino" entry. Finaly to insert the data in the file you press "Enter". If you press "Tab" the cursor moves to the "from" entry.
At each data insert, the "Scan data format" form is updated for the next data entry. For instance if you have just typed in the data for the shot 16-17, the "from" text entry becomes "17" and "to" becomes "18". If the "Enter station names" checkbox is active the cursor is positioned on the "from" entry (the value is updated in this case too). If the checkbox is not active the cursor is on the "length" text entry.
The entries on the left column defines the precision of the data, ie, the number of figures after the point for the values written in the file. For example "6.2fx" for the length says to write the values with two decimal figures. For the station names ".6s" states to write the first six characters of the names.
The "Auto format selection" button should set the data format according to the written data, The workflow is [M. Sluka]:
  1. write (or copy and paste) the data format line;
  2. press the "[Enter]" key;
  3. when the cursor is just under the data format line press the "scan data format" button;
  4. type the survey data in.

First press the "scan data format" button. This updates the format to the style of your data. Then you can modify the format strings (that follow the printf() C function style), to format the data in the table. [S. Mudrak].

Be careful that the data entered in the table are inserted in the file (opened in the editing window) at the current cursor position. Therefore, before using the "Data Table" put the cursor on a blank line in the "centerline" block. The automatic insertion goes to a new line after each data line.

2.3.3 Search and Replace

The text editor panel, as well as that of the map editor, has a control to do text search and, optionally, replacement in the open file. The therion files are all text files; even the drawings are written as textual commands. Therefore these searchs are always textual searches.
In the text editor the result of a search is displayed on the file highlighting in red the word (or the words) that has been found. For the map editor the result is shown in the drawing window highlighting the graphical element found by the search.
This feature is described in section 4.4 .

therion users - Fri Feb 12 06:33:06 2010
Prev Up Top Next Contents

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.