[go: up one dir, main page]

JPH05342208A - Text file editing device and its file selection method - Google Patents

Text file editing device and its file selection method

Info

Publication number
JPH05342208A
JPH05342208A JP4145948A JP14594892A JPH05342208A JP H05342208 A JPH05342208 A JP H05342208A JP 4145948 A JP4145948 A JP 4145948A JP 14594892 A JP14594892 A JP 14594892A JP H05342208 A JPH05342208 A JP H05342208A
Authority
JP
Japan
Prior art keywords
text file
editing
file
text
file name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4145948A
Other languages
Japanese (ja)
Inventor
Fumio Ishida
文夫 石田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP4145948A priority Critical patent/JPH05342208A/en
Publication of JPH05342208A publication Critical patent/JPH05342208A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To reduce the burden of the editing operation of a text file concerning the maintenance operation of a program by an operator. CONSTITUTION:The hierarchy editing means 5 of a CPU device interrupts editing to an operating text file recognizes the character string of specified text datain the text file to which editing is interrupted as the name of a text file and executes editing a text file corresponding to the recognized name of the text file. After finishing the execution of the editing, the text file to which editing is interrupted is made to operate. Consequently, a new text file can be edited before an active editing is finished.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、テキストファイルに
対して各種の編集を行なうテキストファイルエデッタ装
置とエデットの対象となるファイルを選択する方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a text file editing device for performing various types of editing on a text file and a method for selecting a file to be edited.

【0002】[0002]

【従来の技術】コンピュータプログラムの保守業務に
は、バグ発生受け付け,分析調査,要望事項の受け付
け,検討調査,及び保守要求仕様や、実現方法への検
討,設計,作成,デバッグ,テスト,運用等の種々の工
程があり、プログラムの1つ1つのバグ要望について規
模は異なるが、これらの工程を順次行なうことにより、
それに伴うドキュメントの数も多大となる。
2. Description of the Related Art In the maintenance work of computer programs, acceptance of bug occurrences, analysis and investigation, acceptance of requests, examination and investigation, maintenance requirement specifications and implementation methods, design, creation, debugging, testing, operation, etc. There are various steps of each, and the scale for each bug request of the program is different, but by sequentially performing these steps,
The number of documents that accompanies it will also be enormous.

【0003】従来、プログラムの保守業務進渉管理台
帳,ドキュメント等は、テキストファイルに対して各種
の編集を行なうテキストファイルエデッタ装置によって
編集していた。
Conventionally, a program maintenance work progress management ledger, a document, and the like have been edited by a text file editor device that performs various edits on a text file.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
テキストファイルエデッタ装置では、例えば、プログラ
ムの保守業務進渉管理台帳の編集を終えた後に他のテキ
ストファイルの編集を開始するため、プログラムの保守
業務の能率が悪くなるという問題があった。そのため、
オペレータが管理台帳でのドキュメントのファイル名と
実際のドキュメントのファイル名を間違えて編集してし
まったり、ファイル名の入力漏れをしてしまったりする
ような問題もあった。
However, in the conventional text file editor, for example, since the maintenance work of the program is finished and the editing of the other text file is started after the editing of the progress management ledger, the maintenance work of the program is performed. There was a problem that the efficiency of the machine became poor. for that reason,
There was also a problem that the operator mistakenly edited the file name of the document in the management ledger and the file name of the actual document, or omitted the input of the file name.

【0005】また、プログラムの保守業務にかかわるド
キュメントの作成及び変更をどの程度実行したかを確認
することが容易ではなかった。この発明は上記の点に鑑
みてなされたものであり、オペレータによるプログラム
の保守業務に係わるテキストファイルの編集作業の負担
を軽減させることを目的とする。
Further, it has not been easy to confirm how much the documents related to the maintenance work of the program have been created and changed. The present invention has been made in view of the above points, and it is an object of the present invention to reduce the burden of the editing work of a text file related to the maintenance work of a program by an operator.

【0006】[0006]

【課題を解決するための手段】この発明は上記の目的を
達成するため、複数のテキストファイルを格納するテキ
ストファイル格納部と、そのテキストファイル格納部に
格納している各テキストファイルに対して各種編集の際
に操作情報を入力する端末部と、テキストファイル格納
部に格納している各テキストファイルに対して編集プロ
グラムによる各種のエデットを行なう処理部とを備えた
テキストファイルエデッタ装置において、処理部によっ
て動作中のテキストファイルに対するエデットを中断
し、そのエデットを中断したテキストファイル中の指定
されたテキストデータの文字列をテキストファイル名と
して認識し、その認識したテキストファイル名に対応す
るテキストファイル格納部に格納されているテキストフ
ァイルのエデットを実行し、そのエデットの実行を終了
した後にエデットを中断したテキストファイルを動作す
る階層エデット手段を設けたものである。
In order to achieve the above-mentioned object, the present invention provides a text file storage unit for storing a plurality of text files and various text files stored in the text file storage unit. A processing unit in a text file edit device including a terminal unit for inputting operation information at the time of editing and a processing unit for performing various edits by an editing program on each text file stored in the text file storage unit. The editing of the running text file is interrupted by, the character string of the specified text data in the text file that interrupted the editing is recognized as a text file name, and the text file storage part corresponding to the recognized text file name Edit a text file stored in And row, is provided with a hierarchical Edetto means for operating a text file has been interrupted Edetto after finishing the execution of the Edetto.

【0007】また、上記階層エデット手段によってエデ
ットを実行したテキストファイルに対して追加,変更,
又は削除した行をカウントし、そのカウントした行をエ
デット終了後にエデットを中断していたテキストファイ
ルに書き込む手段を設けるとよい。
[0007] Further, addition, change, to the text file which has been edited by the above hierarchical editing means,
Alternatively, it is preferable to provide means for counting the deleted lines and writing the counted lines in the text file in which the editing was interrupted after the editing was completed.

【0008】さらに、上述のようなテキストファイルエ
デッタ装置において、指定されたテキストデータをテキ
ストファイル名として認識し、その認識したテキストフ
ァイル名のテキストファイルをオープンし、現在エデッ
ト中のテキストファイルのファイルポインタ及び行カウ
ンタをテーブルに格納し、階層を1段階進めて上記認識
したテキストファイル名をファイル名テーブルに格納
し、上記ファイルポインタ及び行カウンタを初期化して
上記オープンしたテキストファイルをエデット対象とし
て選択するファイル選択方法も提供する。
Further, in the above-mentioned text file editing device, the designated text data is recognized as a text file name, the text file having the recognized text file name is opened, and the file pointer of the text file currently being edited is recognized. And a line counter are stored in a table, the hierarchy is advanced by one step, the recognized text file name is stored in a file name table, the file pointer and line counter are initialized, and the opened text file is selected as an edit target. It also provides a file selection method.

【0009】[0009]

【作用】この発明によるテキストファイルエデッタ装置
は、動作中のテキストファイルに対するエデットを中断
し、そのエデットを中断したテキストファイル中の指定
されたテキストデータの文字列をテキストファイル名と
して認識し、その認識したテキストファイル名に対応す
るテキストファイルのエデットを実行し、そのエデット
の実行を終了した後にエデットを中断したテキストファ
イルを動作するので、現在編集中のテキストファイルの
エデットを終了することなく他のテキストファイルのエ
デットを行なえる。
The text file editing device according to the present invention interrupts editing of a text file in operation, recognizes a character string of designated text data in the text file in which the editing is interrupted as a text file name, and recognizes it. The text file corresponding to the specified text file name is executed, and the text file in which the editing is interrupted is executed after the execution of the edit is completed, so other text can be edited without ending the editing of the text file currently being edited. You can edit files.

【0010】また、エデットを実行したテキストファイ
ルに対して追加,変更,又は削除した行をカウントし、
そのカウントした行をエデット終了後にエデットを中断
していたテキストファイルに書き込むようにすれば、テ
キストファイルに対する追加,変更,又は削除の情報を
得ることができる。
Also, the lines added, changed, or deleted from the text file that has been edited are counted,
If the counted line is written in the text file in which the editing is suspended after the editing is completed, information on addition, change, or deletion in the text file can be obtained.

【0011】さらに、指定されたテキストデータをテキ
ストファイル名として認識し、その認識したテキストフ
ァイル名のテキストファイルをオープンし、現在エデッ
ト中のテキストファイルのファイルポインタ及び行カウ
ンタをテーブルに格納し、階層を1段階進めて上記認識
したテキストファイル名をファイル名テーブルに格納
し、上記ファイルポインタ及び行カウンタを初期化して
上記オープンしたテキストファイルをエデット対象とし
て選択するようにすれば、現在編集中のテキストファイ
ルのエデットを終了することなく他のテキストファイル
のエデットを行なう際のテキストファイルの選択をスム
ーズに行なえる。
Further, the specified text data is recognized as a text file name, the text file with the recognized text file name is opened, the file pointer and line counter of the text file currently being edited are stored in a table, and the hierarchy is set. By advancing by one step, the recognized text file name is stored in the file name table, the file pointer and line counter are initialized, and the opened text file is selected as an edit target. You can smoothly select a text file when editing another text file without finishing editing the file.

【0012】[0012]

【実施例】以下、この発明の実施例を図面に基づいて具
体的に説明する。図2はこの発明のテキストファイルエ
デット装置のハードウェア構成を示すブロック図であ
る。このテキストファイルエデット装置は、ファイル装
置1と端末装置2とCPU装置3とからなる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be specifically described below with reference to the drawings. FIG. 2 is a block diagram showing the hardware configuration of the text file editing apparatus of the present invention. The text file editing device comprises a file device 1, a terminal device 2 and a CPU device 3.

【0013】そのファイル装置1は、ハードディスク装
置又はフロッピディスク装置等の記憶装置であり、保守
用ドキュメント等のテキストファイルを格納する。端末
装置2は表示装置2aとキーボード装置2bとからな
り、その表示装置2aはテキストファイルを編集するた
めの作業画面を表示するLCD又はCRT等のディスプ
レイ装置である。
The file device 1 is a storage device such as a hard disk device or a floppy disk device, and stores a text file such as a maintenance document. The terminal device 2 includes a display device 2a and a keyboard device 2b, and the display device 2a is a display device such as an LCD or a CRT that displays a work screen for editing a text file.

【0014】また、キーボード装置2bはセレクション
・エデット(SelectionEdit)キー,セレ
クション・エンド(Selection End)キ
ー,キャンセル(Cancel)キー,カーソルキー,
削除キー,文字キー等の各種入力キーを備えており、テ
キストファイル編集のときの各種操作情報を入力するた
めの入力装置である。
The keyboard device 2b includes a selection edit key, a selection end key, a cancel key, a cursor key,
The input device includes various input keys such as a delete key and a character key, and is used to input various operation information when editing a text file.

【0015】CPU装置3はマイクロコンピュータを内
蔵した処理装置であり、この装置全体の制御を司ると共
に、編集用プログラムである階層エデッタを動作させ
て、テキストファイルのエデット処理,この発明による
階層エデッタ処理等の各種処理を実行する。
The CPU device 3 is a processing device having a microcomputer built therein. It controls the entire device and operates a hierarchical editter which is an editing program to edit a text file and a hierarchical editter according to the present invention. And various other processes are executed.

【0016】図2は図1に示したCPU装置3における
この発明による階層エデッタ処理の機能を示すブロック
図である。図1に示したCPU装置3は、初期設定等を
行なうエデッタ起動手段4といくつかのファイルの編集
を行なう階層エデット手段5を備えており、その階層エ
デット手段5はさらにファイル選択手段6,エデット階
層終了手段7,及び単階層エデット手段8からなる。
FIG. 2 is a block diagram showing the function of the hierarchical edit processing according to the present invention in the CPU device 3 shown in FIG. The CPU device 3 shown in FIG. 1 is provided with an editer starting means 4 for performing initial setting and the like, and a hierarchical edit means 5 for editing some files, and the hierarchical edit means 5 further includes a file selecting means 6 and an editing means. It comprises a layer end means 7 and a single layer edit means 8.

【0017】そのファイル選択手段6は編集するファイ
ルを指定し、エデット階層終了手段7は各ファイルのエ
デット終了を行ない、単階層エデット手段8は通常のエ
デット処理を行なう。
The file selection means 6 designates a file to be edited, the edit layer end means 7 completes the editing of each file, and the single layer edit means 8 carries out a normal edit process.

【0018】そして、階層エデット手段5によって、動
作中のテキストファイルに対するエデットを中断し、そ
のエデットを中断したテキストファイル中の指定された
テキストデータの文字列をテキストファイル名として認
識し、その認識したテキストファイル名に対応するテキ
ストファイルのエデットを実行し、そのエデットの実行
を終了した後にエデットを中断したテキストファイルを
動作させる。
Then, the hierarchical editing means 5 interrupts the editing of the text file in operation, recognizes the character string of the designated text data in the text file in which the editing is interrupted as the text file name, and recognizes it. The text file corresponding to the text file name is edited, and the text file in which editing is interrupted is executed after the execution of the editing is completed.

【0019】また、エデットを実行したテキストファイ
ルに対して追加,変更,又は削除した行をカウントし、
そのカウントした行をエデット終了後にエデットを中断
していたテキストファイルに書き込む。
Also, the number of lines added, changed, or deleted from the text file that has been edited is counted,
The counted lines are written to the text file where the editing was interrupted after the editing was completed.

【0020】さらに、指定されたテキストデータをテキ
ストファイル名として認識し、その認識したテキストフ
ァイル名のテキストファイルをオープンし、現在エデッ
ト中のテキストファイルのファイルポインタ及び行カウ
ンタをテーブルに格納し、階層を1段階進めて上記認識
したテキストファイル名をファイル名テーブルに格納
し、上記ファイルポインタ及び行カウンタを初期化して
上記オープンしたテキストファイルをエデット対象とし
て選択する。
Further, the specified text data is recognized as a text file name, the text file with the recognized text file name is opened, the file pointer and line counter of the text file currently being edited are stored in the table, and the hierarchy is set. Is advanced by one step, the recognized text file name is stored in the file name table, the file pointer and line counter are initialized, and the opened text file is selected as an edit target.

【0021】次に、この発明に係わるデータベースにつ
いて説明する。この実施例で使用するデータベースのデ
ータには、単階層エデッタとのインタフェース,階層エ
デッタ制御用データ,階層エデット制御キー,及び階層
エデッタ起動方法のデータがあり、これらについて順次
説明する。
Next, the database according to the present invention will be described. The data of the database used in this embodiment includes the interface with the single-layer editter, the data for controlling the hierarchical editter, the hierarchical edit control key, and the data of the hierarchical editer starting method, which will be described in order.

【0022】a)単階層エデッタとのインタフェース 1.ファイル切換フラグ(初期値:ON) 2.ファイル名 3.ファイルポインタ(初期値:0) 4.キーバッファ 5.追加行カウンタ(初期値:0) 6.修正行カウンタ(初期値:0) 7.削除行カウンタ(初期値:0)A) Interface with the single layer editor 1. File switching flag (initial value: ON) 2. File name 3. File pointer (initial value: 0) 4. Key buffer 5. Additional row counter (initial value: 0) 6. Modified row counter (initial value: 0) 7. Deleted line counter (initial value: 0)

【0023】そのファイル切換フラグは単階層エデッタ
に新しいファイルについてエデットを行なうことを「O
N」という値で知らせる。ファイル名とキーバッファも
単階層エデッタに知らせる。ファイルポインタと行カウ
ンタ(追加行カウンタ,修正行カウンタ,削除行カウン
タ)は単階層エデッタがエデット処理によってこれらを
更新する。
The file switching flag indicates that the single-layer editor is to edit a new file with "O".
Notify with a value of "N". The file name and key buffer are also notified to the single-level editor. The file pointer and the line counter (added line counter, modified line counter, deleted line counter) are updated by the single-layer editter by the editing process.

【0024】そのファイルポインタは、現在のカーソル
位置がファイルの何文字目にあるかを示し、行カウンタ
はエデットによって行の追加,修正,削除がいくつあっ
たかを示す。以上説明したデータは階層エデッタと単階
層エデッタにおける両方の処理で使用される。
The file pointer indicates which character in the file the current cursor position is, and the line counter indicates how many lines have been added, modified, or deleted by editing. The data described above is used in both processing in the hierarchical and single-layer editers.

【0025】b)階層エデッタ制御用データ 1.エデッタ終了フラグ(初期値:OFF) 2.レベル番号(初期値:0) 3.ファイル名テーブル:10要素(0:9) 4.ファイルポインタ格納テーブル:9要素 5.行(追加行,修正行,削除行)カウンタ格納テーブ
ル:9要素
B) Hierarchical editor control data 1. Edit end flag (initial value: OFF) 2. Level number (initial value: 0) 3. File name table: 10 elements (0: 9) 4. File pointer storage table: 9 elements 5. Row (added row, modified row, deleted row) counter storage table: 9 elements

【0026】そのエデッタ終了フラグは全階層のエデッ
トの終了を示し、レベル番号は現在ファイルを何個呼び
出しているかを示す。また、ファイル名テーブルとファ
イルポインタ格納テーブルと行カウンタ格納テーブル
は、それぞれ各ファイルの編集時にファイル名,ファイ
ルポインタ,行(追加行,修正行,削除行)カウンタを
格納して保存するテーブルである。
The edit end flag indicates the end of editing of all layers, and the level number indicates how many files are currently called. The file name table, the file pointer storage table, and the line counter storage table are tables for storing and saving the file name, file pointer, and line (added line, modified line, deleted line) counter when editing each file. ..

【0027】c)階層エデット制御キー 1.セレクション・エデット(Selection E
dit)キー 2.セレクション・エンド(Selection En
d)キー 3.キャンセル(Cancel)キー 4.イグジット(Exit)キー 5.クワイト(Quit)キー
C) Hierarchical edit control key 1. Selection E
Dit) key 2. Selection End (Selection En
d) key 3. Cancel key 4. Exit key 5. Quit key

【0028】これらは階層エデット機能に使用する5個
のキーである。そのセレクション・エデットキーとセレ
クション・エンドキーはファイル選択用のキーであり、
セレクション・エデットキーとセレクション・エンドキ
ーが押されたときのそれぞれのカーソル位置の間に挟ま
れた文字を新しくエデットするファイル名として指定す
るためのキーである。そして、セレクション・エンドキ
ーが押されると共に新しいファイルのエデットを開始す
る。
These are the five keys used for the hierarchical edit function. The selection edit key and the selection end key are keys for file selection,
It is a key for designating the character sandwiched between the cursor positions when the selection edit key and the selection end key are pressed as a file name to be newly edited. Then, when the selection end key is pressed, editing of a new file is started.

【0029】キャンセルキーはセレクション・エデット
を解除するためのキーである。イグジットキーとクワイ
トキーは各エデットレベル(段階)を終了し、呼び出し
たレベル(段階)のエデットファイルのエデットに戻る
ためのキーであり、レベルが「0」のときはエデットの
プログラムを終了する。また、イグジットキーは中断し
ていたテキストファイルのエデットに戻る前にエデット
した内容をファイルに書き込むためのキーである。
The cancel key is a key for canceling the selection edit. The exit key and the quiet key are keys for ending each edit level (step) and returning to the edit of the edit file of the called level (step). When the level is "0", the edit program is ended. The exit key is a key for writing the edited contents to the file before returning to the interrupted editing of the text file.

【0030】d)階層エデッタ起動方法のデータ hed ファイル名 このように指定されたファイル名に対応するテキストフ
ァイルをレベル「0」としてエデットを開始する。
D) Data of hierarchical edit start method hed file name The text file corresponding to the specified file name is set to level "0" and editing is started.

【0031】次に、このテキストファイルエデッタ装置
の処理について説明するが、単階層エデット機能処理に
ついては通常のエデッタと同様なのでその説明を省略す
る。図3はエデット起動処理について示すフローチャー
トである。まず、コマンドからファイル名を取り出して
格納し、データの初期化を行ない、階層エデッタを呼び
出して処理を終了する。
Next, the processing of the text file editing device will be described. However, the processing of the single-layer editing function is the same as that of a normal editing device, and therefore its explanation is omitted. FIG. 3 is a flowchart showing the edit starting process. First, the file name is extracted from the command and stored, the data is initialized, the hierarchical editor is called, and the processing is terminated.

【0032】さらに詳述すると、このエデッタを起動し
たときの上述したd)の階層エデッタ起動方法によるフ
ァイル名を取り出し、a)の2に示したファイル名及び
b)の3に示したファイル名テーブルの先頭(0番地)
にセットして格納する。
More specifically, when the editor is started, the file name obtained by the hierarchical editter starting method of d) described above is extracted, and the file name shown in 2 of a) and the file name table shown in 3 of b). Beginning of (address 0)
Set to and store.

【0033】次に、データの初期化として、ファイル切
換フラグを「ON」にし、ファイルポインタ,行カウン
タ(追加行カウンタ,修正行カウンタ,削除行カウン
タ),レベル番号をそれぞれ「0」にし、エデッタ終了
フラグを「OFF」にする。そして、階層エデッタを呼
び出す。
Next, as data initialization, the file switching flag is set to "ON", the file pointer, the line counter (added line counter, modified line counter, deleted line counter), and the level number are set to "0", and the edit is performed. Turn off the end flag. Then, call the hierarchical editor.

【0034】次に、図4に示すフローチャートによっ
て、階層エデッタ機能処理について説明する。キーボー
ド装置からキー入力がされると、その入力されたキーの
種類が階層エデットに関連するキーか否かを判断し、階
層エデットに関連しないその他のキーなら単階層エデッ
トを行ない、ファイル切換フラグを「OFF」にして最
初の処理に戻る。
Next, the hierarchical edit function processing will be described with reference to the flowchart shown in FIG. When a key is input from the keyboard device, it is determined whether the type of the input key is a key related to hierarchical editing, and if the other key is not related to hierarchical editing, single-level editing is performed and the file switching flag is set. Set to "OFF" and return to the first processing.

【0035】一方、階層エデットに関連するキーのセレ
クション・エデットキーならファイル選択処理を行なっ
て最初の処理に戻る。また、イグジットキーなら現在エ
デット中のデータをファイルに書き出し、エデット階層
終了処理を行ない、エデット終了フラグが「ON」か否
かを判断し、OFFなら最初の処理に戻り、ONならこ
の処理を終了する。
On the other hand, in the case of the selection / edit key of the keys related to the hierarchical edit, the file selection process is performed and the process returns to the first process. If it is an exit key, the data currently being edited is written to a file, the edit layer end processing is performed, and it is determined whether or not the edit end flag is "ON". If it is OFF, the processing returns to the first processing, and if it is ON, this processing ends. To do.

【0036】さらに、クワイトキーならエデット階層終
了処理を行ない、エデット終了フラグが「ON」か否か
を判断し、OFFなら最初の処理に戻り、ONならこの
処理を終了する。
Further, if the key is the QUIT key, the edit layer end processing is performed, and it is judged whether or not the edit end flag is "ON". If it is OFF, the processing returns to the first processing, and if it is ON, this processing is ended.

【0037】次に、図5のフローチャートによって、フ
ァイル選択機能処理について説明する。まず、レベル番
号は9以上か未満かを判断し、9以上なら9以上の階層
でのエデットを行なわないので、メッセージ「エデット
レベル番号オーバー」を表示してセレクション・エデッ
トキーを無効にして処理を終了する。
Next, the file selection function processing will be described with reference to the flowchart of FIG. First, it is judged whether the level number is 9 or more and less, and if it is 9 or more, editing is not performed in a hierarchy of 9 or more. Therefore, the message "Edit level number over" is displayed, the selection edit key is invalidated, and the processing ends. To do.

【0038】一方、レベル番号が9未満ならキー入力待
ちをし、入力されたキーの種類を判断する。ここでキャ
ンセルキーが入力されたらメッセージ「セレクトキャン
セル」を表示してセレクトエデットを終了する。
On the other hand, if the level number is less than 9, the system waits for key input and determines the type of the input key. If the cancel key is entered here, the message "select cancel" is displayed and the select edit ends.

【0039】また、カーソルキーが入力されたらカーソ
ルを移動し、削除キーが入力されたら現カーソル位置の
前の文字を削除し、文字キーが入力されたらその文字を
表示し、その他のキーが入力されたらそのキーに応じた
入力を行なってキー入力待ちの処理に戻る。したがっ
て、これらのカーソルキー,削除キー,文字キー,キャ
ンセルキーを除くその他のキーによってファイル名が入
力される。
When the cursor key is input, the cursor is moved, when the delete key is input, the character before the current cursor position is deleted, when the character key is input, that character is displayed, and the other keys are input. Then, the input corresponding to the key is performed and the process returns to the key input waiting process. Therefore, the file name is input by using the cursor keys, the delete key, the character key, and other keys except the cancel key.

【0040】そして、セレクション・エンドキーが入力
されると、セレクション・エデットキーとセレクション
・エンドキーがそれぞれ押下されたときのカーソル位置
の間にある文字列をファイル名として認識してファイル
名を取り出し、そのファイル名でオープンOKか否かを
判断する。
Then, when the selection end key is input, the character string between the cursor positions when the selection edit key and the selection end key are respectively pressed is recognized as a file name, and the file name is extracted, It is determined whether the file name is open or not.

【0041】オープンエラーなら、メッセージ「ファイ
ル・オープンエラー」を表示して処理を終了する。オー
プンOKなら、現在エデット中のファイルポインタ,行
カウンタ(追加行カウンタ,修正行カウンタ,削除行カ
ウンタ)を、それぞれ現レベルのファイルポインタ格納
テーブルと行カウンタ格納テーブルに格納する。
If it is an open error, a message "file open error" is displayed and the process is terminated. If it is open OK, the file pointer and line counter (additional line counter, modified line counter, deleted line counter) currently being edited are stored in the file pointer storage table and line counter storage table of the current level, respectively.

【0042】次に、レベル番号を1つ進め、ファイル名
を現レベルのファイル名テーブルにセット(格納)し、
ファイル名等を表示する。つまり、レベル番号,ファイ
ル名テーブルからレベル番号−1の位置のファイル名を
呼び出しファイル名として、又オープンの成功したファ
イル名をインフォメーションラインに表示する。
Next, the level number is advanced by 1, and the file name is set (stored) in the file name table of the current level.
Display the file name etc. In other words, the file name at the level number-1 position from the level number / file name table is used as the call file name, and the file name that was successfully opened is displayed on the information line.

【0043】その後、新規エデットのためにファイル切
換フラグを「ON」にし、ファイルポインタ,行カウン
タ(追加行カウンタ,修正行カウンタ,削除行カウン
タ)を「0」にしてデータの初期化を行ない、階層エデ
ッタを呼び出して処理を終了する。
After that, the file switching flag is set to "ON" for new editing, the file pointer and the line counter (added line counter, modified line counter, deleted line counter) are set to "0" to initialize the data. Call the hierarchical editter to end the process.

【0044】次に、図6のフローチャートによって、エ
デット階層終了機能処理について説明する。まず、レベ
ル番号が「0」か否かを判断し、「0」なら一番最初に
エデットしているファイルなので、このエデットのすべ
ての処理の終了を示すエデッタ終了フラグを「ON」に
して処理を終了する。
Next, the edit layer end function processing will be described with reference to the flowchart of FIG. First, it is judged whether or not the level number is "0", and if it is "0", it means that the file is the first file to be edited, so the edit end flag indicating the end of all the processing of this edit is set to "ON" and processed. To finish.

【0045】一方、レベル番号が「0」でない(≠0)
とき、レベル番号を1つ減じてレベル番号が「0」か否
かを判断する。レベル番号が「0」なら、ファイル名テ
ーブルの最初のファイル名、つまり現在エデット中のフ
ァイル名のみをインフォメーションラインに表示し、レ
ベル番号が「0」でなければ(≠0)、ファイル名,呼
び出しファイル名,及びレベル番号を、つまり、レベル
番号と、レベル番号に対応するテーブルのファイル名を
現エデットファイル名として、テーブル上でその前のフ
ァイル名を呼び出したファイル名としてインフォメーシ
ョンラインに表示する。
On the other hand, the level number is not "0" (≠ 0)
At this time, the level number is decremented by 1 and it is determined whether or not the level number is "0". If the level number is "0", only the first file name in the file name table, that is, the file name currently being edited is displayed on the information line. If the level number is not "0" (≠ 0), the file name, call The file name and the level number, that is, the level number and the file name of the table corresponding to the level number are set as the current edit file name, and the previous file name on the table is displayed on the information line.

【0046】その後、テーブルに保存されていた値をフ
ァイルポインタに戻し、ファイル名に対応するテキスト
ファイルをオープンし、そのファイルのファイルポイン
タの位置に行カウンタ(追加行カウンタ,修正行カウン
タ,削除行カウンタ)を書き込み、ファイル切換フラグ
を「ON」として、テーブルに格納していた行カウンタ
を戻し、この処理を終了する。
After that, the value stored in the table is returned to the file pointer, the text file corresponding to the file name is opened, and the line counter (added line counter, modified line counter, deleted line) is set at the position of the file pointer of the file. Counter) is written, the file switching flag is set to “ON”, the row counter stored in the table is returned, and this processing is ended.

【0047】次に、表示例について説明する。図7はエ
デッタの表示画面の一例を示す図である。この画面10
は、テキストファイルを表示する編集領域11と、一番
下の行の階層エデット処理時に必要な情報を表示するイ
ンフォメーションライン12からなる。
Next, a display example will be described. FIG. 7 is a diagram showing an example of the display screen of the editor. This screen 10
Is composed of an edit area 11 for displaying a text file and an information line 12 for displaying information necessary for hierarchical edit processing at the bottom line.

【0048】そのインフォメーションライン12は、メ
ッセージ表示域13,レベル番号表示域14,呼び出し
ファイル名表示域15,及び現ファイル名表示域16か
らなり、そのメッセージ表示域13はエラー等の各種メ
ッセージを表示し、レベル番号表示域14は何回ファイ
ルを呼び出しているかを示す数であるレベル番号を表示
する。
The information line 12 comprises a message display area 13, a level number display area 14, a calling file name display area 15 and a current file name display area 16, and the message display area 13 displays various messages such as errors. Then, the level number display area 14 displays a level number which is a number indicating how many times the file is called.

【0049】また、呼び出しファイル名表示域15は現
在エデットする前にエデット中であったこのファイルを
呼び出した呼び出しファイル名を表示し、現ファイル名
表示域16は現在エデットしているファイル名を表示す
る。
The calling file name display area 15 displays the calling file name that called the file that was being edited before the current editing, and the current file name display area 16 displays the file name currently being edited. To do.

【0050】図8は階層エデット中の表示画面の一例を
示す図である。画面10の編集領域11の中程で、セレ
クション・エデットキー入力時のカーソル位置CSa
と、セレクション・エンドキー入力時のカーソル位置C
Sbとによって指定されたファイル名Fのテキストファ
イルのエデット(編集)が終了した時に、ファイル名F
の後方に追加行カウンタn,修正行カウンタm,削除行
カウンタoからなる行カウンタ17が表示される。
FIG. 8 is a diagram showing an example of a display screen during hierarchical editing. In the middle of the editing area 11 of the screen 10, the cursor position CSa at the time of inputting the selection edit key
And the cursor position C at the time of inputting the selection end key
When the editing (editing) of the text file with the file name F specified by Sb is completed, the file name F
A row counter 17 composed of an added row counter n, a corrected row counter m, and a deleted row counter o is displayed behind.

【0051】次に、この実施例の効果を列挙する。 1)管理台帳のテキストファイルのエデットを終了せず
に新しいファイルのエデットを開始でき、その新しくエ
デットするファイル名を入力しなくても対象とするドキ
ュメントファイルのエデットを行なえるので、オペレー
ションの簡易化を図れる。
Next, the effects of this embodiment will be listed. 1) You can start editing a new file without finishing editing the text file of the management ledger, and you can edit the target document file without inputting the file name to be newly edited, which simplifies the operation. Can be achieved.

【0052】2)ファイル名の入力誤りや入力漏れを起
さないので、ドキュメントファイルの索引を正確に作成
することができる。 3)多くのドキュメントファイルの作成及び修正と管理
台帳の作成を連続した一連の作業として行なえるので、
作業の能率があがる。
2) Since an input error of the file name or omission of the input does not occur, the index of the document file can be accurately created. 3) Since many document files can be created and modified and the management ledger can be created as a continuous series of operations,
Work efficiency increases.

【0053】4)ドキュメント作成及び変更の量を容易
に把握できるので、次の工程における作業負荷を予測す
ることができる。 5)その作業負荷から推測される作業量と計画の予実績
を検討することによって計画の精度向上を図れる。
4) Since the amount of document creation and change can be easily grasped, the work load in the next process can be predicted. 5) It is possible to improve the accuracy of the plan by examining the amount of work estimated from the work load and the forecasted results of the plan.

【0054】[0054]

【発明の効果】以上説明してきたように、この発明によ
るテキストファイルエデッタ装置及びそのファイル選択
方法によれば、オペレータが管理台帳でのドキュメント
のファイル名と実際のドキュメントのファイル名を間違
えて編集してしまったり、ファイル名の入力漏れをして
しまったりするようなことがなく、またプログラムの保
守業務にかかわるドキュメントの作成及び変更をどの程
度実行したかを確認することが容易なので、オペレータ
によるプログラムの保守業務に係わるテキストファイル
の編集作業の負担を軽減させることができ、プログラム
の保守業務を能率よく行なうことが可能になる。
As described above, according to the text file editor and the file selecting method thereof according to the present invention, the operator mistakenly edits the file name of the document in the management ledger and the file name of the actual document. There is no need to enter the file name or to omit the file name, and it is easy to check how much the documents related to program maintenance work have been created and changed. It is possible to reduce the burden of editing the text file related to the maintenance work, and to efficiently perform the maintenance work of the program.

【図面の簡単な説明】[Brief description of drawings]

【図1】図2に示したCPU装置におけるこの発明によ
る階層エデッタ処理の機能を示すブロック図である。
FIG. 1 is a block diagram showing a function of a hierarchical edit processing according to the present invention in the CPU device shown in FIG.

【図2】この発明のテキストファイルエデット装置のハ
ードウェア構成を示すブロック図である。
FIG. 2 is a block diagram showing a hardware configuration of a text file editing device of the present invention.

【図3】図2に示したテキストファイルエデット装置に
おけるエデット起動処理について示すフローチャートで
ある。
FIG. 3 is a flowchart showing an edit starting process in the text file editing device shown in FIG.

【図4】図2に示したテキストファイルエデット装置に
おける階層エデッタ機能処理について示すフローチャー
トである。
FIG. 4 is a flowchart showing a hierarchical edit function function process in the text file editing apparatus shown in FIG.

【図5】図2に示したテキストファイルエデット装置に
おけるファイル選択機能処理について示すフローチャー
トである。
5 is a flowchart showing a file selection function process in the text file editing device shown in FIG.

【図6】図2に示したテキストファイルエデット装置に
おけるエデット階層終了機能処理について示すフローチ
ャートである。
FIG. 6 is a flowchart showing edit layer end function processing in the text file editing apparatus shown in FIG.

【図7】図2に示した表示装置2aのエデッタの表示画
面の一例を示す図である。
7 is a diagram showing an example of an editor display screen of the display device 2a shown in FIG.

【図8】図2に示した表示装置2aの階層エデット中の
表示画面の一例を示す図である。
8 is a diagram showing an example of a display screen of the display device 2a shown in FIG. 2 during hierarchical editing.

【符号の説明】[Explanation of symbols]

1 ファイル装置 2 端末装置 2a 表示装置 2b キーボード
装置 3 CPU装置 4 エデッタ起動
手段 5 階層エデット手段 6 ファイル選択
手段 7 エデット階層終了手段 8 単階層エデッ
ト手段 10 画面 11 編集領域 12 インフォメーションライン 13 メッセージ
表示域 14 レベル番号表示域 15 呼び出しフ
ァイル名表示域 16 現ファイル名表示域 17 行カウンタ(追加行カウンタ,修正行カウンタ,
削除行カウンタ) F ファィル名 CSa セレクション・エデットキー入力時のカーソル
位置 CSb セレクション・エンドキー入力時のカーソル位
1 File Device 2 Terminal Device 2a Display Device 2b Keyboard Device 3 CPU Device 4 Editer Starting Means 5 Hierarchy Editing Means 6 File Selecting Means 7 Edit Hierarchy Ending Means 8 Single Hierarchy Editing Means 10 Screen 11 Editing Area 12 Information Line 13 Message Display Area 14 Level number display area 15 Called file name display area 16 Current file name display area 17 Line counter (added line counter, modified line counter,
Deleted line counter) F File name CSa Cursor position when inputting selection / edit key CSb Cursor position when inputting selection end key

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のテキストファイルを格納するテキ
ストファイル格納部と、該テキストファイル格納部に格
納している各テキストファイルに対して各種編集の際に
操作情報を入力する端末部と、前記テキストファイル格
納部に格納している各テキストファイルに対して編集プ
ログラムによる各種のエデットを行なう処理部とを備え
たテキストファイルエデッタ装置において、 前記処理部によって動作中のテキストファイルに対する
エデットを中断し、該エデットを中断したテキストファ
イル中の指定されたテキストデータの文字列をテキスト
ファイル名として認識し、該認識したテキストファイル
名に対応する前記テキストファイル格納部に格納されて
いるテキストファイルのエデットを実行し、該エデット
の実行を終了した後に前記エデットを中断したテキスト
ファイルを動作する階層エデット手段を設けたことを特
徴とするテキストファイルエデッタ装置。
1. A text file storage unit for storing a plurality of text files, a terminal unit for inputting operation information at the time of various edits to each text file stored in the text file storage unit, and the text. In a text file editing device having a processing unit for performing various types of editing by an editing program with respect to each text file stored in a file storage unit, the processing unit interrupts editing of a text file in operation, Recognizing the character string of the specified text data in the text file in which the editing is interrupted as the text file name, and executing the editing of the text file stored in the text file storage section corresponding to the recognized text file name. , After the execution of the edit is completed, Text File et dead data apparatus characterized in that a hierarchical Edetto means for operating a text file interrupted Tsu bets.
【請求項2】 請求項1記載のテキストファイルエデッ
タ装置において、 前記階層エデット手段によってエデットを実行したテキ
ストファイルに対して追加,変更,又は削除した行をカ
ウントし、該カウントした行をエデット終了後にエデッ
トを中断していたテキストファイルに書き込む手段を設
けたことを特徴とするテキストファイルエデッタ装置。
2. The text file editing device according to claim 1, wherein lines added, changed, or deleted from the text file edited by the hierarchical editing unit are counted, and the counted lines are counted after the editing is completed. A text file editing device, characterized in that a means for writing to a text file whose editing has been interrupted is provided.
【請求項3】 請求項1又は2記載のテキストファイル
エデッタ装置において、指定されたテキストデータをテ
キストファイル名として認識し、該認識したテキストフ
ァイル名のテキストファイルをオープンし、現在エデッ
ト中のテキストファイルのファイルポインタ及び行カウ
ンタをテーブルに格納し、階層を1段階進めて前記認識
したテキストファイル名をファイル名テーブルに格納
し、前記ファイルポインタ及び行カウンタを初期化して
前記オープンしたテキストファイルをエデット対象とし
て選択することを特徴とするファイル選択方法。
3. The text file editing device according to claim 1, wherein the designated text data is recognized as a text file name, the text file having the recognized text file name is opened, and the text file currently being edited is displayed. File pointers and line counters are stored in a table, the hierarchy is advanced by one step, the recognized text file name is stored in a file name table, the file pointer and line counter are initialized, and the opened text file is edited. A file selection method characterized by selecting as.
JP4145948A 1992-06-05 1992-06-05 Text file editing device and its file selection method Pending JPH05342208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4145948A JPH05342208A (en) 1992-06-05 1992-06-05 Text file editing device and its file selection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4145948A JPH05342208A (en) 1992-06-05 1992-06-05 Text file editing device and its file selection method

Publications (1)

Publication Number Publication Date
JPH05342208A true JPH05342208A (en) 1993-12-24

Family

ID=15396747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4145948A Pending JPH05342208A (en) 1992-06-05 1992-06-05 Text file editing device and its file selection method

Country Status (1)

Country Link
JP (1) JPH05342208A (en)

Similar Documents

Publication Publication Date Title
JPH02130628A (en) Inputting of data
JPH06290250A (en) History contents display system of information processor
US5544298A (en) Code generation and data access system
JPH01240978A (en) Dialogue screen definition device
JPH05342208A (en) Text file editing device and its file selection method
JP2585311B2 (en) How to create a program
JP2000227914A (en) Document edition device
JP2887808B2 (en) Editing processor
JP3157917B2 (en) Data processing method and data processing device
JPH02135515A (en) Hierarchical data display screen control method and device
JP3021347U (en) Control system CAD device
JP2540940B2 (en) Multi-window editing management method
JP3396304B2 (en) Software maintenance method and software maintenance device
JPH02139644A (en) computer system
JPH11203031A (en) Data input device and its control method and storage medium
US20010021933A1 (en) Data processing system with file memory and data processing method
JPS62263567A (en) File processing device
JPH06162097A (en) System for setting retrieval condition of database
JP2000112738A (en) memory
JPH08297679A (en) Method and device for retrieving information
JPS61151753A (en) Computer with guide function
JPH1195992A (en) Data creation support device, object-oriented analysis design support device, and data management method
JPH07104665A (en) Method of transferring comment for control system cad device
JPS63204326A (en) Data processor
JPH06231019A (en) Information processor