JPH07234770A - Canceling and undoing method in tree structure data editing by hierarchical menu inquiry and its system - Google Patents

Canceling and undoing method in tree structure data editing by hierarchical menu inquiry and its system

Info

Publication number
JPH07234770A
JPH07234770A JP6318806A JP31880694A JPH07234770A JP H07234770 A JPH07234770 A JP H07234770A JP 6318806 A JP6318806 A JP 6318806A JP 31880694 A JP31880694 A JP 31880694A JP H07234770 A JPH07234770 A JP H07234770A
Authority
JP
Japan
Prior art keywords
data
undo
tree structure
cancel
node
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.)
Granted
Application number
JP6318806A
Other languages
Japanese (ja)
Other versions
JP2747233B2 (en
Inventor
Masaharu Yoshizawa
雅晴 吉澤
Tetsuro Nishida
哲朗 西田
Hirohisa Yamamoto
博久 山本
Katsuki Satozaki
勝喜 里崎
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.)
NEC Corp
NEC Communication Systems Ltd
Original Assignee
NEC Corp
NEC Communication Systems 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 NEC Corp, NEC Communication Systems Ltd filed Critical NEC Corp
Priority to JP6318806A priority Critical patent/JP2747233B2/en
Publication of JPH07234770A publication Critical patent/JPH07234770A/en
Priority to US08/576,369 priority patent/US5734381A/en
Application granted granted Critical
Publication of JP2747233B2 publication Critical patent/JP2747233B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To remarkably reduce memory consumption and a processing time by compressing an undoing data quantity at the time of changing tree structure and furthermore, fusing canceling operation and andoing operation. CONSTITUTION:A cancel data list 600 and an undo data list 700 are prepared and undo data is divided into a cancel type 701 and an uncancel type 702. Changing contents information of tree structure data 500 is set to be difference information of a changing node position, its slave side tree structure, etc. At the time of doing operation, changing contents are added to the cancel data list as cancel data 601 and the cancell type is added to the undo data list. When the cancel type is an object in canceling operation and undoing operation, tree structure is undone by last data in the canceling data list and the piece of data and the changing contents by means of this operation are added to the undo data list. When the uncancel type is an object in undoing operation, tree structure and canceling data are undone by the piece of data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は階層的メニュー問い合わ
せによる木構造データ編集におけるキャンセル・アンド
ゥ方法及びそのシステムに関し、特にユーザによる選択
を含む相互間の階層的な連結条件が定義された複数の単
位データと、選択対象のメニュー表示を行い前記ユーザ
による選択結果を入力するメニュー問い合わせ手段とを
有し、前記複数の単位データに対し最上位の単位データ
からその連結条件に応じて連結の選択対象となる他の単
位データをメニュー表示し前記ユーザによる選択結果に
従って順次連結して前記各単位データをノードとする木
構造の集合データ(木構造データ)を動的に編集する階
層的メニュー問い合わせデータ編集システムにおけるメ
ニュー問い合わせ時の選択、設定により変更された木構
造データを元に戻す復旧方法と、その復旧システムとに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cancel / undo method and system for editing tree-structured data by hierarchical menu inquiry, and more particularly to a plurality of units in which mutual hierarchical connection conditions including selection by a user are defined. Data and menu inquiry means for displaying a menu of selection targets and inputting selection results by the user, and selecting a connection target according to the connection condition from the highest unit data to the plurality of unit data. A hierarchical menu inquiry data editing system that dynamically displays other unit data, which is displayed as a menu, and is sequentially connected according to the selection result by the user to dynamically edit tree-structured set data (tree-structured data) having each unit data as a node. Return the tree structure data that was changed by the selection and setting when inquiring the menu in And the recovery method, and to the recovery system.

【0002】[0002]

【従来の技術】この種の階層的メニュー問い合わせデー
タ編集システムはコンピュータシステムにより構成さ
れ、電子交換機の制御用ソフトウェアなどのメニュー問
い合わせにより組立てられる階層構造化情報の構成要素
となる各要素情報片との対応と互いの連結条件とがあら
かじめ定義された複数の単位データ(定義記述データ)
と、ディスプレイ装置上に選択対象のメニューを表示し
キーボードやマウスなどの入力装置を用いてユーザから
の選択結果を入力することによって問い合わせを実現す
るメニュー問い合わせ手段とを有し、最上位の単位デー
タからその連結条件に応じて連結の選択対象となる他の
単位データをメニュー表示しユーザの選択に従って順次
連結し各単位データをノードとする木構造データを動的
に編集し、この木構造データに従って対応する要素情報
片を組立てて所望の階層構造化情報を得ている。
2. Description of the Related Art A hierarchical menu inquiry data editing system of this kind is composed of a computer system, and each element information piece is a constituent element of hierarchical structured information assembled by a menu inquiry such as software for controlling an electronic exchange. Multiple unit data (definition description data) in which correspondence and mutual connection conditions are defined in advance
And a menu inquiring unit that realizes an inquiry by displaying a menu to be selected on a display device and inputting a selection result from a user using an input device such as a keyboard or a mouse. From the above, other unit data to be selected for connection according to the connection condition are displayed in a menu, and the tree structure data with each unit data as a node is dynamically edited according to the user's selection, and the tree structure data is dynamically edited according to this tree structure data. Corresponding element information pieces are assembled to obtain desired hierarchical structured information.

【0003】単位データ(定義記述データ)の型として
は、直下階層の構造を規定し固定的に連結する複数の単
位データをあらかじめ指定し順次メニュー問い合わせさ
せる構造型、直下階層として選択的に連結可能な複数の
単位データをあらかじめ指定しメニュー問い合わせによ
り1個選択させる択一選択型、上位階層からのみ連結さ
れメニュー問い合わせを行いユーザによる入力を値とす
るフィールド型、上位階層からのみ連結されメニュー問
い合わせを行わずにあらかじめ設定された値を持つ引用
型などがある。
As the type of unit data (definition description data), a structure type that defines the structure of the immediately lower layer and fixedly connects a plurality of unit data in advance and sequentially inquires a menu, a structure type that can be selectively connected as the directly lower layer An alternative selection type in which a plurality of unit data are specified in advance and one is selected by a menu inquiry, a field type that is connected only from the upper layer to make a menu inquiry and uses the user input as a value, a menu inquiry that is only connected from the upper layer For example, there is a quote type that has a preset value without performing.

【0004】この木構造データによる階層構造化情報の
編集動作の理解を助けるために、休日の過ごし方情報を
設定する場合を例として以下に説明する。この場合の単
位データ、すなわち定義記述データの記述例は以下のよ
うになる。 %all=struct{%sub0 %sub1} format{“今度の休日は、%t%t。”%[1],%[0]} %sub0=one0f{%sub00 %sub01 %sub02} message{“何をするか選択して下さい”} menuText“休日出勤する;遊びに行く;家にいる” %sub00=“company” format{“会社に行く”} %sub01=struct{%sub010 %sub011} format{“%t%t”%[1],%[0]} %sub010=one0f{%sub0100 %sub0101} message{“何処に行くか選択して下さい”} menuText“海;山” %sub0100=“sea” format{“海に行く”} %sub0101=“mountain” format{“山に行く”} %sub011=one0f{%sub0110 %sub0111 %sub0112} message{“誰と行くか選択して下さい”} menuText“一人;家族;友達” %sub0110=“alone” format{“一人で”} %sub0111=“family” format{“家族と”} %sub0112=“friend” format{“友達と”} %sub02=one0f{%sub020 %sub021} format{“家で%t” %$.down} message{“何をするか選択して下さい”} menuText“本を読む;テレビを見る” %sub020=“book” format{“本を読む”} %sub021=“TV” format{“テレビを見る”} %sub1=one0f{%sub10 %sub11 %sub12} message{“交通手段を選択して下さい”} menuText“なし;車;電車” where{switch(%$.up[0].down.class) {case %sub00:candidate(電車); break; case %sub01:candidate(車,電車); break; case %sub02:candidate(なし); break;} } %sub10=empty %sub11=“car” format{“車で”} %sub12=“train” format{“電車で”} ここで、定義記述データ%allは最上位にあり、休日
の過ごし方情報の全体構造を規定し、2つの定義記述デ
ータ%sub0及び%sub1を固定的に下位階層とす
る構造型(struct型)である。format部は
階層構造化情報への変換フォーマットを定義する部分
で、各型で共通に持つことができる。定義記述データ%
sub0は3つの定義記述データ%sub00,%su
b01,及び%sub02を選択対象とする択一選択型
(oneOf型)であり、message部はメニュー
表示時の選択項目,方法の指示メッセージを指定する部
分、menuText部はメニュー表示時の選択対象の
表示テキストを指定する部分である。つまり、定義記述
データ%sub0のメニュー画面では、指示メッセージ
として「何をするか選択して下さい」が表示され、選択
対象の表示テキストとして「休日出勤する」、「遊びに
行く」、「家にいる」が表示される。定義記述データ%
sub1も同様に択一選択型であるが、where部に
より他の定義記述データ(この場合、%sub0)での
選択結果により分岐することを示している。つまり、定
義記述データ%sub00が選択されている場合は「電
車」を自動的に選択し、定義記述データ%sub01が
選択されている場合は「車」と「電車」の選択メニュー
を出し、定義記述データ%sub02が選択されている
場合は「なし」を自動的に選択する。また、定義記述デ
ータ%sub00は引用型であり、あらかじめ設定され
た値(company)を持ち、要素情報片「会社に行
く」に対応づけられている。
[0004] In order to help understanding of the editing operation of the hierarchical structured information based on the tree structure data, a case of setting holiday spending information will be described below as an example. In this case, a description example of the unit data, that is, the definition description data is as follows. % All = structure {% sub0% sub1} format {“Next holiday is% t% t.”% [1],% [0]}% sub0 = one0f {% sub00% sub01% sub02} message {“What Please choose "} menuText" Go to work on holiday; go to play; stay at home "% sub00 =" company "format {" go to company "% sub01 = structure {% sub010% sub011} format {" % T% t "% [1],% [0]}% sub010 = one0f {% sub0100% sub0101} message {" Please choose where to go "} menuText"Umi; Mountain "% sub0100 =" sea " format {"go to the sea"}% sub0101 = "mou ntain ”format {“ go to the mountain ”}% sub011 = one0f {% sub0110% sub0111% sub0112} message {“ Choose who to go ”} menuText“ one person; family; friend ”% sub0110 =“ alone ” {“Alone”}% sub0111 = “family” format {“Family”}% sub0112 = “friend” format {“Friends”}% sub02 = one0f {% sub020% sub021} format {“At home% t” % $. down} message {"Please choose what to do"} menuText "Read a book; watch TV"% sub020 = "book" format {"Read a book"}% sub021 = "TV" format {"Watch TV See ”}% sub1 = one0f {% sub10% sub11% sub12} message {“ Please choose a transportation ”} menuText“ None; car; train ”where {switch (% $. Up [0] .down.class) ) {Case% sub00: candidate (train); break; case% sub01: candidate (car, train); break; case% sub02: candidate (none); break;}}% sub10 = empt11 “Car” format {“by car”}% sub12 = “train” format {“by train”} Here, the definition description data% all is at the highest level, and defines the overall structure of holiday spending information. This is a structural type (struct type) in which one definition description data% sub0 and% sub1 is fixedly set as a lower hierarchy. The format part is a part that defines a conversion format to hierarchical structured information, and can be shared by all types. Definition description data%
sub0 is the three definition description data% sub00,% su
b01 and% sub02 are alternative selection types (oneOf type). The message part is a selection item when a menu is displayed, a part that specifies a method instruction message, and the menuText part is a selection target when a menu is displayed. This is the part that specifies the display text. That is, on the menu screen of the definition description data% sub0, "Please select what to do" is displayed as an instruction message, and the display text of the selection target is "go to work on holiday", "go to play", "go home". Is displayed. Definition description data%
Similarly, although sub1 is also an alternative selection type, it indicates that the where part causes branching depending on the selection result in other definition description data (% sub0 in this case). In other words, if the definition description data% sub00 is selected, "train" is automatically selected, and if the definition description data% sub01 is selected, a "car" and "train" selection menu is displayed to define the definition. When the description data% sub02 is selected, "none" is automatically selected. Further, the definition description data% sub00 is a citation type, has a preset value (company), and is associated with the element information piece “go to company”.

【0005】最上位の定義記述データ%allからその
連結条件に応じてメニュー選択を行いながら他の定義記
述データを順次連結して図20の分図(a)に示す木構
造を得たとする。このときの休日の過ごし方情報は「今
度の休日は、車で友達と山に行く。」となる。ここで、
%sub0のメニュー画面において、選択結果を「遊び
に行く」(%sub01)から「休日出勤する」(%s
ub00)に変更すると、自動的に%sub1には%s
ub12が選択され木構造は分図(b)のようになる。
このときの休日の過ごし方情報は「今度の休日は、電車
で会社に行く。」となる。また、%sub0のメニュー
画面において、選択結果を「家にいる」(%sub0
2)に変更すると木構造は分図(c)のようになり、%
sub02のメニュー(「本を読む」、「テレビを見
る」)が表示される。「本を読む」(%sub020)
を選択すると自動的に%sub1には%sub12が選
択され木構造は分図(d)のようになる。このときの休
日の過ごし方情報は「今度の休日は、家で本を読む。」
となる。
Assume that a tree structure shown in FIG. 20 (a) is obtained by sequentially connecting other definition description data from the highest-level definition description data% all while selecting a menu according to the connection condition. The information on how to spend the holidays at this time is "I will go to the mountains with my friends by car next holiday." here,
On the menu screen of% sub0, select the result from "go to play" (% sub01) to "go to work on holiday" (% s
If you change to (sub00),% sub1 will automatically be% s
ub12 is selected and the tree structure becomes as shown in the diagram (b).
The information on how to spend the holidays at this time is "I will go to work by train next holiday." In addition, on the menu screen of% sub0, the selection result is “at home” (% sub0
If you change to 2), the tree structure becomes as shown in diagram (c), and%
The menu of sub02 ("Read book", "Watch TV") is displayed. "Reading a book" (% sub020)
When is selected,% sub12 is automatically selected for% sub1 and the tree structure becomes as shown in the diagram (d). The information on how to spend the holidays at this time is "Read books at home next holiday."
Becomes

【0006】このような階層的メニュー問い合わせデー
タ編集システムにより各単位データをノードとして木構
造データに編集する際、あるノードに対するメニューの
選択,設定(下位ノード等の変更,追加,削除)により
木構造データを変更し下位のノード又は次の別の枝(同
位)のノードに対するメニューを表示する操作(ドゥ操
作)に対し、すぐ前に変更したノードに対して木構造デ
ータを元に戻しそのノードのメニューを表示する操作を
アンドゥ、上位のノード又は前の別の枝のノードに対し
て木構造データを元に戻しそのノードのメニューを表示
する操作をキャンセルと称する。
When each unit data is edited as a node into tree-structured data by such a hierarchical menu inquiry data editing system, a tree-structure is created by selecting and setting a menu for a certain node (changing, adding or deleting lower nodes etc.). In response to the operation that changes the data and displays the menu for the lower node or the node of the next different branch (coordinate) (do operation), restore the tree structure data for the node that was changed immediately before and The operation of displaying the menu is called undo, and the operation of returning the tree structure data to the upper node or the node of another previous branch and displaying the menu of the node is called cancel.

【0007】従来の階層的メニュー問い合わせデータ編
集システムによる木構造データの復旧方法は、通常、ア
ンドゥ操作のみを行う方法か、キャンセル操作のみを行
う方法が取られていた。すなわち、各ノードで以前と違
う操作(置換,追加,削除)が行われたときに木構造デ
ータ全体をメモリのアンドゥデータ/キャンセルデータ
収納領域へコピー(アンドゥデータリスト/キャンセル
データリスト)し、アンドゥ操作/キャンセル操作実行
時にアンドゥデータ/キャンセルデータ収納領域のコピ
ーしておいた木構造データをコピーすることで元に戻し
ていた。また、キャンセル操作とアンドゥ操作との両方
行う場合には、アンドゥデータリストを作成しておき、
キャンセルすべき所までこのアンドゥデータリストで木
構造データを戻していた。
As a conventional method of restoring tree-structured data by a hierarchical menu inquiry data editing system, a method of performing only an undo operation or a method of performing only a cancel operation has been adopted. That is, when a different operation (replacement, addition, deletion) is performed on each node, the entire tree structure data is copied to the undo data / cancellation data storage area of the memory (undo data list / cancellation data list), and undo is performed. When the operation / cancel operation was executed, the tree structure data that had been copied in the undo data / cancelled data storage area was copied back to the original state. If you want to perform both cancel operation and undo operation, create an undo data list,
The tree structure data was returned by this undo data list to the place where it should be canceled.

【0008】ここで、アンドゥ操作による復旧方法を説
明する。例えば、図3(a)に示す木構造データ(以
下、木構造と称す)11に対して、(1)ノードEをノ
ードFに変更(置換)し、(2)ノードCをノードGに
変更(置換)し、(3)アンドゥ操作(ノードGをノー
ドCに戻す)を行い、(4)アンドゥ操作(ノードFを
ノードEに戻す)を行い、木構造がそれぞれ、木構造1
1(図3(a))から木構造12(図3(b))、木構
造13(図3(c))、木構造12、木構造11となる
場合について説明する。
Here, a recovery method by an undo operation will be described. For example, with respect to the tree structure data (hereinafter referred to as a tree structure) 11 shown in FIG. 3A, (1) node E is changed (replaced) with node F, and (2) node C is changed with node G. (Replacement), (3) undo operation (returning node G to node C), and (4) undo operation (returning node F to node E), and the tree structures are respectively tree structure 1
The case where the tree structure 12 (FIG. 3A) to the tree structure 12 (FIG. 3B), the tree structure 13 (FIG. 3C), the tree structure 12 and the tree structure 11 are described.

【0009】まず、ノードE125をノードF126に
変更すると、木構造全体は図3(b)の木構造12にな
る。このとき図21(a)のアンドゥデータ41(木構
造全体)をアンドウデータ収納領域90へコピーする。
アンドゥデータ収納領域90の格納データは図22に示
すようになる。次に、ノードC123をノードG127
に変更すると、木構造全体は図3(c)の木構造13に
なる。このときも同様に図21(b)のアンドゥデータ
42(木構造全体)をアンドゥデータ収納領域90へコ
ピーする。アンドゥデータ収納領域90の格納データは
図23に示すようになる。次に、ノードG127をノー
ドC123に戻すアンドゥ操作を実行すると、図23に
示すアンドゥデータ収納領域90の最上位のアンドゥデ
ータ42で木構造全体が元に戻され、木構造12にな
る。このときも図21(c)のアンドゥデータ43(木
構造全体)をアンドゥデータ収納領域90へコピーす
る。アンドゥデータ収納領域90の格納データは図24
に示すようになる。次に、ノードF126をノードE1
25に戻すアンドゥ操作を実行すると、連続でアンドゥ
が実行されたので、図24に示す先ほどの一つ前のアン
ドゥデータ41で木構造全体が元に戻され、木構造11
になる。このときも同様に図21(b)のアンドゥデー
タ42(木構造全体)をアンドゥデータ収納領域90へ
コピーする。アンドゥデータ収納領域90の格納データ
は図25に示すようになる。
First, when the node E125 is changed to the node F126, the entire tree structure becomes the tree structure 12 shown in FIG. 3B. At this time, the undo data 41 (entire tree structure) of FIG. 21A is copied to the ANDO data storage area 90.
Data stored in the undo data storage area 90 is as shown in FIG. Next, the node C123 is connected to the node G127.
When changed to, the entire tree structure becomes the tree structure 13 in FIG. At this time, similarly, the undo data 42 (entire tree structure) of FIG. 21B is copied to the undo data storage area 90. The stored data in the undo data storage area 90 is as shown in FIG. Next, when an undo operation for returning the node G127 to the node C123 is executed, the entire tree structure is restored to the original structure with the highest level undo data 42 in the undo data storage area 90 shown in FIG. Also at this time, the undo data 43 (entire tree structure) of FIG. 21C is copied to the undo data storage area 90. The stored data in the undo data storage area 90 is shown in FIG.
As shown in. Next, the node F126 is replaced by the node E1.
When the undo operation for returning to 25 is executed, the undo is continuously executed. Therefore, the entire tree structure is restored to the original state by the previous undo data 41 shown in FIG.
become. At this time, similarly, the undo data 42 (entire tree structure) of FIG. 21B is copied to the undo data storage area 90. The stored data in the undo data storage area 90 is as shown in FIG.

【0010】[0010]

【発明が解決しようとする課題】従来の階層的メニュー
問い合わせデータ編集システムによる木構造データの復
旧方法では、アンドゥ操作のみ行う場合及びキャンセル
操作のみ行う場合ともに、木構造変更時ごとに木構造全
体のコピーをとって元に戻していたため同じ内容の木構
造ができてしまいメモリの消費量が大きく無駄を生じて
いた。このため、メモリ量に制限がある場合にアンドゥ
操作/キャンセル操作の可能範囲(そ及可能なノード変
更回数)が狭くなっていた。また、木構造データが膨大
になるほどコピーする時間と元に戻す時間とが大幅に増
大していた。
In the conventional method of restoring tree-structured data by the hierarchical menu inquiry data editing system, the entire tree-structure is rewritten every time the tree-structure is changed, both when the undo operation is performed and when the cancel operation is performed. Since a copy was made and restored, a tree structure with the same contents was created, resulting in a large amount of memory consumption and waste. For this reason, when the memory amount is limited, the possible range of the undo operation / cancel operation (the number of possible node changes) is narrowed. In addition, as the amount of tree structure data increases, the copying time and the restoring time increase significantly.

【0011】また、キャンセル操作とアンドゥ操作との
両方行う場合にも、上記問題と同様の問題があり、さら
に、キャンセルすべき所までアンドゥデータリストで木
構造を戻していくために元に戻す時間がかなりかかる場
合や、キャンセル操作するために編集の最初からすべて
のアンドゥデータを残しておく必要があるためメモリの
消費が膨大になる場合があった。
Further, when both the cancel operation and the undo operation are performed, there is a problem similar to the above problem, and further, it takes time to restore the tree structure in the undo data list until it is canceled. May take a lot of time, or it may be necessary to keep all the undo data from the beginning of the edit in order to perform the cancel operation, resulting in a huge memory consumption.

【0012】[0012]

【課題を解決するための手段】本発明のアンドゥ方法
は、相互間の階層的な連結条件が定義された複数の単位
データと、ユーザによる選択,設定対象のメニューを表
示し前記ユーザの応答を受け付けるメニュー問い合わせ
手段と、前記複数の単位データの最上位の単位データか
ら対応する前記連結条件に応じた連結すべき単位データ
を前記メニュー問い合わせ手段を通した前記ユーザの応
答結果に従って順次決定して連結し、これらの単位デー
タそれぞれを木構造のノードとする木構造データを動的
に構築する木構造データ構築手段と、各種データを格納
するメモリとを有する階層的メニュー問い合わせデータ
編集システムにおける前記ノードの変更により変更され
た木構造を元に戻す方法において、前記ノードのいずれ
かの被変更ノードに対し変更操作が行われ木構造が変更
されたときに、当該被変更ノードの木構造上の相対位置
と、当該被変更ノード以下の部分的木構造と、当該被変
更ノードで行われた変更操作種別とは逆の操作種別とを
情報とするアンドゥデータを作成し前記メモリへ格納
し、アンドゥ操作実行時に前記メモリに格納されている
前記アンドゥデータを読出し、このアンドゥデータに基
づいて木構造を元に戻す工程を有する。
The undo method of the present invention displays a plurality of unit data in which hierarchical connection conditions are defined and a menu to be selected and set by the user and displays the user's response. The menu inquiry unit that receives the unit data and the unit data to be connected according to the connection condition corresponding to the highest unit data of the plurality of unit data are sequentially determined and connected according to the response result of the user through the menu inquiry unit. Of the nodes in the hierarchical menu query data editing system having a tree structure data constructing means for dynamically constructing tree structure data with each of these unit data as a node of the tree structure, and a memory storing various data. In the method of undoing the tree structure changed by the change, one of the changed nodes of the nodes When a change operation is performed and the tree structure is changed, the relative position on the tree structure of the changed node, the partial tree structure under the changed node, and the change operation performed on the changed node An undo data having an operation type opposite to the type is created and stored in the memory, the undo data stored in the memory is read when the undo operation is executed, and a tree structure is created based on the undo data. There is a step of returning to.

【0013】本発明のキャンセル・アンドゥ方法は、上
記構成の階層的メニュー問い合わせデータ編集システム
における前記ノードの変更により変更された木構造を元
に戻す方法において、あらかじめ、前記メモリにキャン
セルデータを格納するキャンセルデータリストとアンド
ゥデータを格納するアンドゥデータリストとを準備し、
前記アンドゥデータの各にキャンセル型かアンキャンセ
ル型かを識別するための識別子を設けることを取決めて
おき、いずれかの前記ノードに対するメニューの選択,
設定により木構造を変更し下位のノード又は同位の次の
枝のノードに対するメニューを表示するドゥ操作時に、
元に戻すべきノード位置及び変更前の部分的木構造を情
報とするキャンセルデータを作成し前記キャンセルデー
タリストの最後に加え、キャンセル型アンドゥデータを
前記アンドゥデータリストの最後に加え、上位のノード
又は同位の前の枝のノードに対して木構造を元に戻すキ
ャンセル操作時に、前記キャンセルデータリストから最
後のキャンセルデータを切離し、この切離したキャンセ
ルデータに基づいて木構造を変更前の状態に戻し、この
キャンセル操作に対するアンドゥデータとして前記キャ
ンセルデータリストから切離したキャンセルデータ及び
このキャンセル操作で変更された部分的木構造を情報と
するアンキャンセル型アンドゥデータを作成し前記アン
ドゥデータリストの最後に加え、すぐ前に変更したノー
ドに対して木構造を元に戻すアンドゥ操作時に、アンド
ゥ操作が連続したか判定し、前回の操作がアンドゥ操作
でない場合は前記アンドゥデータリストの最後のアンド
ゥデータを読出し、前回の操作もアンドゥ操作である場
合は前記アンドゥデータリストの前回のアンドゥ操作時
に読出したアンドゥデータより一つ前のアンドゥデータ
を読出し、読出したアンドゥデータの型を前記識別子で
判定し、キャンセル型アンドゥデータの場合は前記キャ
ンセル操作時の処理と同じ処理を行い、アンキャンセル
型アンドゥデータの場合はその前記情報に基づいて木構
造を元に戻し、前記キャンセルデータリストから切離し
たキャンセルデータを前記キャンセルデータリストに戻
し、このアンドゥ操作に対するアンドゥデータとして前
記キャンセル型アンドゥデータを前記アンドゥデータリ
ストの最後に加える工程を有する、本発明の階層的メニ
ュー問い合わせデータ編集システムは上記構成の階層的
メニュー問い合わせデータ編集システムにおいて、前記
メモリにキャンセルデータを格納するキャンセルデータ
リストとアンドゥデータを格納するアンドゥデータリス
トとを設け、前記メニュー問い合わせ手段の制御により
いずれかの前記ノードに対するメニューの選択,設定に
より木構造を変更し下位のノード又は同位の次の枝のノ
ードに対するメニューを表示するドゥ操作を検出する
と、元に戻すべきノード位置及び変更前の部分的木構造
を情報とするキャンセルデータを作成し前記キャンセル
データリストの最後に加え、キャンセル型を示す識別子
を有するキャンセル型アンドゥデータを前記アンドゥデ
ータリストの最後に加えるドゥ処理手段と、前記メニュ
ー問い合わせ手段の制御により上位のノード又は同位の
前の枝のノードに対して木構造を元に戻すキャンセル操
作を検出すると、前記キャンセルデータリストから最後
のキャンセルデータを切離し、この切離したキャンセル
データに基づいて木構造を変更前の状態に戻し、このキ
ャンセル操作に対するアンドゥデータとして前記キャン
セルデータリストから切離したキャンセルデータ及びこ
のキャンセル操作で変更された部分的木構造を情報とし
アンキャンセル型を示す識別子を有するアンキャンセル
型アンドゥデータを作成し前記アンドゥデータリストの
最後に加えるキャンセル処理手段と、前記メニュー問い
合わせ手段の制御によりすぐ前に変更したノードに対し
て木構造を元に戻すアンドゥ操作を検出すると、アンド
ゥ操作が連続したか判定し、前回の操作がアンドゥ操作
でない場合は前記アンドゥデータリストの最後のアンド
ゥデータを読出し、前回の操作もアンドゥ操作である場
合は前記アンドゥデータリストの前回のアンドゥ操作時
に読出したアンドゥデータより一つ前のアンドゥデータ
を読出し、読出したアンドゥデータの型を前記識別子で
判定し、キャンセル型アンドゥデータの場合は前記キャ
ンセル処理手段の処理と同じ処理を行い、アンキャンセ
ル型アンドゥデータの場合はその前記情報に基づいて木
構造を元に戻し、前記キャンセルデータリストから切離
したキャンセルデータを前記キャンセルデータリストに
戻し、このアンドゥ操作に対するアンドゥデータとして
前記キャンセル型アンドゥデータを前記アンドゥデータ
リストの最後に加えるアンドゥ処理手段とを備えてい
る。
The cancel / undo method of the present invention is a method of restoring the tree structure changed by the change of the node in the hierarchical menu inquiry data editing system having the above-mentioned configuration, in which cancel data is stored in advance in the memory. Prepare a cancellation data list and an undo data list to store undo data,
It is arranged that an identifier for identifying the cancel type or the uncance type is provided in each of the undo data, and the menu selection for any one of the nodes is performed.
When doing a do operation that changes the tree structure by setting and displays the menu for the lower node or the node of the next branch of the peer,
Cancel data that creates information about the node position to be restored and the partial tree structure before the change is created and added to the end of the cancel data list, and cancel-type undo data is added to the end of the undo data list, and a higher node or At the time of a cancel operation that restores the tree structure to the node of the branch before the same peer, the last cancel data is separated from the cancel data list, and the tree structure is returned to the state before the change based on the separated cancel data, As the undo data for this cancel operation, the cancel data separated from the cancel data list and the undo data of the partial tree structure changed by this cancel operation are created as information, and added to the end of the undo data list. Tree structure for the previously changed node At the time of the undo operation to be undone, it is determined whether the undo operation is continuous. If the previous operation is not the undo operation, the last undo data in the undo data list is read, and if the previous operation is also the undo operation, the undo data is read. Undo data immediately before the undo data read at the time of the previous undo operation in the list is read, the type of the undo data read is determined by the identifier, and in the case of cancellation type undo data, the same processing as the processing at the time of the cancel operation In the case of undo data of the undo type, the tree structure is restored based on the information, the cancel data separated from the cancel data list is returned to the cancel data list, and the undo data for this undo operation is canceled. Type before undo data The hierarchical menu inquiry data editing system of the present invention, which has a step of adding to the end of the undo data list, is the hierarchical menu inquiry data editing system having the above-mentioned configuration. An undo data list is provided, and a tree operation is changed by selecting and setting a menu for any one of the nodes under the control of the menu inquiring means, and a menu for a lower node or a node on the next branch of the peer is displayed. Is detected, cancellation data having the node position to be restored and the partial tree structure before the change as information is created and added to the end of the cancellation data list, and cancellation undo data having an identifier indicating a cancellation type is added to the undo. Day When a cancel operation for returning the tree structure to the upper node or the node on the previous branch of the peer is detected by the control of the do processing means added to the end of the data list and the menu inquiry means, the last data from the cancellation data list is detected. The cancel data is separated, the tree structure is returned to the state before the change based on the separated cancel data, and the cancel data separated from the cancel data list as the undo data for this cancel operation and the partial tree modified by this cancel operation A cancel processing unit that creates uncancelled undo data having a structure as information and an identifier indicating an undo type and adds it to the end of the undo data list, and a tree for the node that was changed immediately before by the control of the menu inquiry unit. Undo structure When the undo operation is detected, it is determined whether the undo operation is continuous. If the previous operation is not the undo operation, the last undo data in the undo data list is read. If the previous operation is also the undo operation, the undo data list is read. The undo data immediately before the undo data read at the previous undo operation is read, the type of the read undo data is determined by the identifier, and in the case of cancellation type undo data, the same processing as the processing of the cancel processing means is performed. In the case of undo data of undo type, the tree structure is restored based on the information, the cancel data separated from the cancel data list is returned to the cancel data list, and the undo data for the undo operation is the cancel type. Undo data before And a undo processing means for applying to the end of the undo data list.

【0014】[0014]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0015】最初に、本発明のアンドゥ方法の一実施例
について説明する。本発明のアンドゥ方法は、後に説明
するキャンセル・アンドゥ方法に用いられる図1(a)
に示す階層的メニュー問い合わせデータ編集システムに
も同様に適用可能である。ただし、キャンセル処理部1
070は無くてもよい。単位データ,木構造データ,,
アンドゥデータなどの必要なデータ,情報はメモリ11
00に格納され、メニュー問い合わせ制御部1050の
制御により、ノード対応のメニューが表示装置1010
に表示され、ユーザによるメニュー選択,変更,及び設
定などのドゥ操作,アンドゥ操作が入力装置1020よ
り行われる。メモリ1100内のデータに対するドゥ処
理,アンドゥ処理はそれぞれ、ドゥ処理部1060,ア
ンドゥ処理部1080によりデータ構築部1090を介
して行われる。
First, an embodiment of the undo method of the present invention will be described. The undo method of the present invention is used in a cancel / undo method described later with reference to FIG.
It is similarly applicable to the hierarchical menu inquiry data editing system shown in FIG. However, the cancellation processing unit 1
070 may be omitted. Unit data, tree structure data,
Necessary data and information such as undo data is stored in the memory 11
00, and the menu corresponding to the node is displayed on the display device 1010 under the control of the menu inquiry control unit 1050.
Is displayed on the input device 1020, and the user performs a do operation and an undo operation such as menu selection, change, and setting. Do processing and undo processing for the data in the memory 1100 are performed by the do processing section 1060 and the undo processing section 1080 via the data construction section 1090, respectively.

【0016】図2は本実施例のアンドゥ方法の処理手順
を示すフローチャートである。従来技術で説明したのと
同様に、図3(a)に示す木構造11に対して、(1)
ノードE125をノードF126に変更(置換)、
(2)ノードC123をノードG127に変更(置
換)、(3)アンドゥ操作(ノードGをノードCに戻
す)、(4)アンドゥ操作(ノードFをノードEに戻
す)の連続した変更操作を実行し、木構造がそれぞれ、
木構造11(図3(a))から木構造12(図3
(b))、木構造13(図3(c))、木構造12、木
構造11となる場合を例に処理動作を説明する。
FIG. 2 is a flow chart showing the processing procedure of the undo method of this embodiment. In the same manner as described in the related art, for the tree structure 11 shown in FIG.
Change (replace) node E125 to node F126,
(2) Change (replace) node C123 to node G127, (3) undo operation (return node G to node C), and (4) undo operation (return node F to node E) And each tree structure
From the tree structure 11 (FIG. 3A) to the tree structure 12 (FIG. 3)
(B)), the tree structure 13 (FIG. 3C), the tree structure 12, and the tree structure 11 will be described as an example of the processing operation.

【0017】まず、木構造11のノードC123のメニ
ュー選択,設定変更操作によりノードE125をノード
F126に変更(置換)すると(図2のステップS1の
NO側)、木構造全体は木構造12になる(ステップS
2)。このとき図4(a)に示すような、木構造上のノ
ードE125の相対位置データ211と、そのノードE
125より枝側(自ノードを含む下位側)の木構造デー
タ212と、そのノードE125で行われた変更操作種
別とは逆の操作種別データ213とを含んだアンドゥデ
ータ21を作成し(ステップS3)、メモリ内のアンド
ゥデータ収納領域90へコピーする(ステップS4)。
木構造上のノードの相対位置とは最上位(根)のノード
A121から見たそのノードの相対位置である。あるノ
ードから分岐した同一レベルの各ノードは相対位置とし
て0,1,…,nの番号がそれぞれ割り当てられる。す
なわち、ノードA121に対するノードB122の相対
位置111は“0”、ノードC123の相対位置112
は“1”となり、ノードC123に対するノードD12
4の相対位置113は“0”、ノードE125の相対位
置114は“1”となる。ノードF126がノードE1
25と置き換えられるとその相対位置115は同じ
“1”が割り当てられる。したがってノードE125の
相対位置データ211は、ノードA121から見たノー
ドC123の相対位置112(=1)とノードC123
から見たノードE125の相対位置114(=1)とか
ら作られ“1−1”となる。また、各ノードで行われる
変更操作種別としては、「置換」,「追加」,「削除」
があり、逆の操作種別はそれぞれ「置換」,「削除」,
「追加」となる。したがってこのときの逆の操作種別デ
ータ213は「置換」となる。以上により、このときの
アンドゥデータ収納領域90のデータ格納状況は図5に
示すようになる。
First, when the node E125 is changed (replaced) to the node F126 by the menu selection and the setting change operation of the node C123 of the tree structure 11 (NO side of step S1 in FIG. 2), the entire tree structure becomes the tree structure 12. (Step S
2). At this time, as shown in FIG. 4A, the relative position data 211 of the node E125 on the tree structure and the node E
The undo data 21 including the tree structure data 212 on the branch side (lower side including the own node) of 125 and the operation type data 213 opposite to the change operation type performed at the node E125 is created (step S3). ), And copy to the undo data storage area 90 in the memory (step S4).
The relative position of the node on the tree structure is the relative position of the node as viewed from the highest (root) node A121. Numbers 0, 1, ..., N are assigned as relative positions to the nodes of the same level branched from a certain node. That is, the relative position 111 of the node B122 with respect to the node A121 is "0", and the relative position 112 of the node C123 is 112.
Becomes "1", and node D12 with respect to node C123
The relative position 113 of No. 4 is "0", and the relative position 114 of the node E125 is "1". Node F126 is node E1
When replaced with 25, its relative position 115 is assigned the same "1". Therefore, the relative position data 211 of the node E125 is the relative position 112 (= 1) of the node C123 viewed from the node A121 and the node C123.
It is made from the relative position 114 (= 1) of the node E125 seen from the above, and becomes "1-1". In addition, the type of change operation performed at each node is "replace", "add", "delete".
, And the opposite operation types are "replace", "delete", and
It becomes "addition". Therefore, the reverse operation type data 213 at this time is “replacement”. As described above, the data storage status of the undo data storage area 90 at this time is as shown in FIG.

【0018】次に、木構造12のノードA121のメニ
ュー選択,設定変更操作によりノードC123をノード
G127に変更(置換)すると、木構造全体は木構造1
3になる。ノードG127のノードA121に対する相
対位置116はノードC123と同じ“1”が割り当て
られる。このときも同様に図4(b)に示すアンドゥデ
ータ22をアンドゥデータ収納領域90へコピーし、ア
ンドゥデータ収納領域90のデータ格納状況は図6に示
すようになる。
Next, when the node C123 is changed (replaced) to the node G127 by the menu selection and the setting change operation of the node A121 of the tree structure 12, the entire tree structure is changed to the tree structure 1
It will be 3. The relative position 116 of the node G127 with respect to the node A121 is assigned the same "1" as the node C123. At this time, similarly, the undo data 22 shown in FIG. 4B is copied to the undo data storage area 90, and the data storage state of the undo data storage area 90 is as shown in FIG.

【0019】この状態でノードG127をノードC12
3に戻すアンドゥ操作を実行すると(ステップS1のY
ES側)、図6に示すアンドゥデータ収納領域90の最
上位のアンドゥデータ22が読出され(ステップS
5)、その相対位置データ211(=1)からメニュー
選択,設定結果が戻される上位のノード(ノードA)と
それにより戻されるノードの位置(現在ノードG)とが
識別され、枝側の木構造データ212(ノードC,D,
F)及び逆の操作種別データ213(置換)により木構
造が元に戻され木構造12になる(ステップS6)。こ
のときも図4(c)に示すアンドゥデータ23をアンド
ゥデータ収納領域90へコピーする(ステップS3,S
4)。アンドゥデータ収納領域90のデータ格納状況は
図7に示すようになる。
In this state, the node G127 is connected to the node C12.
When the undo operation for returning to 3 is executed (Y in step S1)
ES side), the highest undo data 22 in the undo data storage area 90 shown in FIG. 6 is read (step S
5) From the relative position data 211 (= 1), the upper node (node A) to which the menu selection / setting result is returned and the position of the node (current node G) to be returned thereby are identified, and the tree on the branch side is identified. Structural data 212 (nodes C, D,
F) and the reverse operation type data 213 (replacement) restores the tree structure to the tree structure 12 (step S6). Also at this time, the undo data 23 shown in FIG. 4C is copied to the undo data storage area 90 (steps S3 and S).
4). The data storage status of the undo data storage area 90 is as shown in FIG.

【0020】さらにこの状態で、木構造12のノードF
126をノードE125に戻すアンドゥ操作を実行する
と、連続でアンドゥが実行されたので、ステップS5の
処理において図7の先ほどの一つ前のアンドゥデータ2
1が読出され、その相対位置データ211(=1―1)
からメニュー選択,設定結果が戻される上位のノード
(ノードC)とそれにより戻されるノードの位置(現在
ノードF)とが識別され、枝側の木構造データ212
(ノードE)及び逆の操作種別データ213(置換)に
より木構造が元に戻され木構造11になる。このときも
同様に図4(d)に示すアンドゥデータ24をアンドゥ
データ収納領域90へコピーする。アンドゥデータ収納
領域90のデータ格納状況は図8に示すようになる。
Further in this state, the node F of the tree structure 12
When the undo operation for returning 126 to the node E125 is executed, the undo is continuously executed. Therefore, in the process of step S5, the undo data 2 of the previous one in FIG.
1 is read and its relative position data 211 (= 1-1)
The upper node (node C) from which the menu selection and setting results are returned and the node position (current node F) returned thereby are identified, and the tree structure data 212 on the branch side is identified.
The tree structure is restored to the tree structure 11 by (node E) and the reverse operation type data 213 (replacement). At this time as well, the undo data 24 shown in FIG. 4D is similarly copied to the undo data storage area 90. The data storage status of the undo data storage area 90 is as shown in FIG.

【0021】なお、本実施例においては、アンドゥデー
タ21〜24設定時にそのノードで行われた操作種別と
は逆の操作種別の情報を設定し木構造を元に戻すときそ
の情報に従って戻すようにしているが、そのノードで行
われた操作種別そのままの情報を設定し木構造を元に戻
すときにその情報とは逆の操作をするようにすることも
できる。
In this embodiment, when setting the undo data 21 to 24, information on the operation type opposite to the operation type performed on the node is set, and when the tree structure is restored, the information is returned according to the information. However, it is also possible to set information that is the same as the type of operation performed at that node and perform an operation that is the reverse of that information when restoring the tree structure.

【0022】以上説明したように本実施例のアンドゥ方
法は、メニュー操作により各ノードで以前と違う操作
(ノードの置換,追加,削除等の変更)が行われたとき
に、木構造上のノードの相対位置と、そのノードより枝
側の木構造と、そのノードで行われた操作種別とは逆の
操作種別とを情報とするアンドゥデータを作成しアンド
ゥデータ収納領域へ格納しておき、アンドゥ操作実行時
に格納しておいたアンドゥデータで木構造を元に戻すの
で、木構造データが膨大になるほどこのアンドゥデータ
をアンドゥデータ収納領域へ格納する時間と、アンドゥ
操作実行時にアンドゥデータ収納領域へ格納しておいた
このアンドゥデータで木構造を元に戻す時間とを軽減で
きる。また、木構造データが膨大になるほど木構造全体
よりこのアンドゥデータは小さくなるためメモリの消費
量を軽減でき、アンドゥ操作の可能範囲を広めることが
できるという効果がある。
As described above, according to the undo method of this embodiment, when a different operation (change of node replacement, addition, deletion, etc.) is performed on each node by the menu operation, the node on the tree structure is changed. Of the undo, the tree structure on the branch side of the node, and the operation type opposite to the operation type performed at the node are created and stored in the undo data storage area. Since the tree structure is restored with the undo data that was stored when the operation was executed, the time to store this undo data in the undo data storage area as the tree structure data becomes huge, and the undo data storage area when the undo operation is executed This undo data saved can reduce the time for restoring the tree structure. Further, as the tree structure data becomes huge, the undo data becomes smaller than the entire tree structure, so that the memory consumption can be reduced and the possible range of the undo operation can be widened.

【0023】次に、本発明のキャンセル・アンドゥ方法
の一実施例について説明する。図1は本実施例のキャン
セル・アンドゥ方法を適用する階層的メニュー問い合わ
せデータ編集システム(コンピュータシステムにより構
成)の一例を示す図であり、分図(a)はシステム構
成、分図(b)はそのデータ構築部1090を通したド
ゥ処理部1060,キャンセル処理部1070,及びア
ンドゥ処理部1080によるメモリ1100に対する木
構造データ,キャンセルデータ,アンドゥデータの制御
の様子を示す。図1(a)において、データ構築部10
90は、ファイル入出力制御部1110を制御してディ
スク装置1120及びメモリ1120間で木構造データ
の組立てに必要な単位データなどの各種データや情報、
組立てられた木構造データ等の転送を行い、メニュー問
い合わせ制御部1050の制御により木構造データの組
立てを行う。メニュー問い合わせ制御部1050はデー
タ構築部1090の木構造データの編集の過程に応じて
表示装置1010にノード対応のメニューを表示する。
ユーザによるメニューの選択,変更,設定などの操作情
報は入力装置1020を介してメニュー問い合わせ制御
部1050へ入力され、操作内容に応じてドゥ処理部1
060,キャンセル処理部1070,アンドゥ処理部1
080,及びデータ構築部1090が起動される。ドゥ
処理部1060,キャンセル処理部1070,及びアン
ドゥ処理部1080はそれぞれ、データ構築部1090
を介してメモリ1100内の木構造データのドゥ処理,
キャンセル処理,アンドゥ処理を行い、メニュー問い合
わせ制御部1050は新たなノードのメニュー表示を行
う。図1(b)において、メモリ1100は木構造デー
タ500と、キャンセルデータ601を格納するキャン
セルデータリスト600と、キャンセル型アンドゥデー
タ701及びアンキャンセル型アンドゥデータ702を
格納するアンドゥデータリスト700とを有する。アン
ドゥ処理部1080はキャンセル型アンドゥデータの処
理(キャンセル処理部1070の処理と同一)を行うキ
ャンセル型アンドゥ処理部1081と、アンキャンセル
型アンドゥデータの処理を行うアンキャンセル型アンド
ゥ処理部1082とを有している。
Next, an embodiment of the cancel / undo method of the present invention will be described. FIG. 1 is a diagram showing an example of a hierarchical menu inquiry data editing system (configured by a computer system) to which the cancel / undo method of this embodiment is applied. FIG. 1A is a system configuration and FIG. The state of control of tree structure data, cancel data, and undo data for the memory 1100 by the dou processing unit 1060, the cancellation processing unit 1070, and the undo processing unit 1080 through the data construction unit 1090 is shown. In FIG. 1A, the data construction unit 10
Reference numeral 90 controls the file input / output control unit 1110 to control various data and information such as unit data necessary for assembling the tree structure data between the disk device 1120 and the memory 1120,
The assembled tree structure data is transferred, and the tree inquiry data is assembled under the control of the menu inquiry control unit 1050. The menu inquiry control unit 1050 displays a node-corresponding menu on the display device 1010 according to the process of editing the tree structure data of the data construction unit 1090.
Operation information such as selection, change, and setting of the menu by the user is input to the menu inquiry control unit 1050 via the input device 1020, and the du processing unit 1 is selected according to the operation content.
060, cancellation processing unit 1070, undo processing unit 1
080 and the data construction unit 1090 are activated. The undo processing unit 1060, the cancellation processing unit 1070, and the undo processing unit 1080 are each a data construction unit 1090.
Do processing of tree-structured data in the memory 1100 via
The cancel processing and the undo processing are performed, and the menu inquiry control unit 1050 displays the menu of the new node. In FIG. 1B, the memory 1100 has a tree structure data 500, a cancel data list 600 that stores cancel data 601, and an undo data list 700 that stores cancel undo data 701 and undo data 702. . The undo processing unit 1080 includes a cancel-type undo processing unit 1081 that performs processing of cancel-type undo data (the same as the processing of the cancellation processing unit 1070) and an undo-cancel-type undo processing unit 1082 that performs processing of undo-type undo data. is doing.

【0024】図9の分図(a)にキャンセルデータ60
1、分図(b)にキャンセル型アンドゥデータ701、
及び分図(c)にアンキャンセル型アンドゥデータ70
2の構成を示す。キャンセルデータ601は、「元に戻
す木構造ノード」と、「木構造ノードの変更前の情報」
とを有するが、他の実施例として前に説明したアンドゥ
方法におけるアンドゥデータ(図4中の符号21〜2
4)と同様の構成とすることができる。その場合、相対
位置データ211の示すノード位置の上位ノードが元に
戻す木構造ノードとなり、相対位置データ211の示す
ノード位置,木構造データ212,及び逆の操作種別デ
ータ213が木構造ノードの変更前の情報となる。な
お、この逆の操作種別データ213の情報は、上記アン
ドゥ方法と同様に、設定時に逆にしておかず、読出して
から逆にしてもよい。キャンセル型アンドゥデータ70
1は「キャンセル型識別子」を有する。アンキャンセル
型アンドゥデータ702は「アンキャンセル型識別子」
と、「キャンセルデータリストを元に戻すための情報」
と、「木構造を元に戻すための情報」とを有する。
Cancellation data 60 is shown in FIG.
1, the cancellation type undo data 701 in the diagram (b),
And the undo data 70 of the cancellation type in the diagram (c).
2 shows the configuration. The cancellation data 601 includes “a tree structure node to be restored” and “information before the change of the tree structure node”.
However, the undo data (reference numerals 21 to 2 in FIG. 4) in the undo method described above as another embodiment are included.
The same configuration as 4) can be adopted. In that case, the upper node of the node position indicated by the relative position data 211 becomes the tree structure node to be restored, and the node position indicated by the relative position data 211, the tree structure data 212, and the reverse operation type data 213 are changed to the tree structure node. It becomes the previous information. It should be noted that the information of the reverse operation type data 213 may be reversed after being read, instead of being reversed at the time of setting, similarly to the undo method described above. Cancel undo data 70
1 has a "cancellation type identifier". Uncanceled undo data 702 is "Uncanceled identifier"
And "Information for restoring the canceled data list"
And "information for restoring the tree structure".

【0025】図10はドゥ処理部1060の処理手順を
示すフローチャートである。ドゥ処理部1060はメニ
ュー問い合わせによるドゥ操作が行われたときデータ構
築部1090を介してメモリ1100にアクセスし、キ
ャンセルデータとして「元に戻す木構造ノード」及び
「木構造ノードの変更前の情報」を保持し(ステップS
10)、このキャンセルデータをキャンセルデータリス
ト600の最後に加える(ステップS11)。そして、
キャンセル型アンドゥデータをアンドゥデータリスト7
00の最後に加える(ステップS12)。
FIG. 10 is a flowchart showing the processing procedure of the do-processing unit 1060. The do processing unit 1060 accesses the memory 1100 via the data constructing unit 1090 when a do operation by a menu inquiry is performed, and uses “undelete tree structure node” and “information before changing tree structure node” as cancel data. Hold (step S
10) Add this cancellation data to the end of the cancellation data list 600 (step S11). And
Undo data list 7 for cancel undo data
00 at the end (step S12).

【0026】図11はキャンセル処理部1070の処理
手順を示すフローチャートである。キャンセル処理部1
070はキャンセル操作が行われたときデータ構築部1
090を介してメモリ1100にアクセスし、キャンセ
ルデータリスト600の最後のキャンセルデータに基づ
いて、「元に戻す木構造ノード」として指定されたノー
ド以下の木構造を変更前の状態に戻す(ステップS2
0)。そして、そのキャンセルデータをキャンセルデー
タリスト600から切り離す(ステップS21)。この
キャンセル操作に対するアンドゥデータはアンキャンセ
ル型アンドゥデータを用意し、その「キャンセルデータ
リストを元に戻すための情報」にはステップS21の処
理において切り離したキャンセルデータを設定し、「木
構造を元に戻すための情報」には今のキャンセルで変更
された情報を設定して(ステップS22)、アンドゥデ
ータリスト44の最後に加える(ステップS23)。
FIG. 11 is a flowchart showing the processing procedure of the cancel processing unit 1070. Cancel processing unit 1
070 is the data construction unit 1 when the cancel operation is performed
The memory 1100 is accessed via 090, and the tree structure under the node designated as the “restore tree structure node” is returned to the state before the change based on the last cancel data of the cancel data list 600 (step S2
0). Then, the cancel data is separated from the cancel data list 600 (step S21). As the undo data for this cancel operation, undo data of the undo type is prepared, and in the "information for restoring the cancel data list", the cancel data separated in the process of step S21 is set, and "based on the tree structure" The information changed by the current cancellation is set in the "information for returning" (step S22), and added to the end of the undo data list 44 (step S23).

【0027】図12はアンドゥ処理部1080の処理手
順を示すフローチャートである。アンドゥ処理部108
0はアンドゥ操作が行われたときデータ構築部1090
を介してメモリ1100にアクセスし、アンドゥデータ
リスト700からアンドゥデータを1つ取出す。このと
き、前回の操作がアンドゥ操作でなく新規にアンドゥ操
作を行う場合は最後のアンドゥデータを、前回の操作が
アンドゥ操作であり連続してアンドゥ操作を行う場合は
前回のアンドゥ操作時に読出したアンドゥデータより一
つ前のアンドゥデータを読出す(ステップS30)。読
出したアンドゥデータの型をその識別子で判定し、キャ
ンセル型アンドゥデータの場合(ステップS31のYE
S側)はキャンセル型アンドゥ処理部1081によりキ
ャンセル操作の時と同じ処理を行い、アンキャンセル型
アンドゥデータの場合(ステップS31のNO側)はア
ンキャンセル型アンドゥ処理部1082により、その
「木構造を元に戻すための情報」を基に木構造を元に戻
し(ステップS32)、「キャンセルデータリストを元
に戻すための情報」に設定されていたキャンセルデータ
をキャンセルデータリスト600に戻し(ステップS3
3)、このアンドゥ操作に対するアンドゥデータとして
キャンセル型アンドゥデータをアンドゥデータリスト7
00の最後に加える(ステップS34)。
FIG. 12 is a flow chart showing the processing procedure of the undo processing unit 1080. Undo processing unit 108
0 is the data construction unit 1090 when the undo operation is performed.
The memory 1100 is accessed via to retrieve one undo data from the undo data list 700. At this time, if the previous operation is not an undo operation and a new undo operation is performed, the last undo data is set.If the previous operation is an undo operation and continuous undo operations are performed, the undo data read during the previous undo operation is read. The undo data immediately preceding the data is read (step S30). The type of the read undo data is determined by its identifier, and in the case of cancellation type undo data (YE in step S31)
The S-side) performs the same processing as the cancel operation by the cancel-type undo processing unit 1081. In the case of undo-type undo data (NO side of step S31), the undo-type undo processing unit 1082 causes the "tree structure The tree structure is restored based on "information for restoring" (step S32), and the cancellation data set in "information for restoring the cancellation data list" is returned to the cancellation data list 600 (step S3).
3), undo data list 7 with cancel undo data as undo data for this undo operation
00 at the end (step S34).

【0028】なお、キャンセル処理部1070及びアン
ドゥ処理部1080は、アンドゥデータリスト700に
アンドゥデータを加えるとき、格納された全アンドゥデ
ータの個数がシステム設計により許容されたアンドゥ最
大回数を超えた場合、アンドゥデータリスト700の最
初(最古)のアンドゥデータを削除する。
When the cancel processing unit 1070 and the undo processing unit 1080 add undo data to the undo data list 700, if the total number of stored undo data exceeds the maximum number of undos permitted by the system design, The first (oldest) undo data in the undo data list 700 is deleted.

【0029】次に、本発明のキャンセル・アンドゥ方法
による木構造データの変更,復旧の処理動作を詳細に説
明する。例として、アンドゥ最大回数が5で、図13の
木構造データ(以下、木構造と称す)501に対しノー
ドBのメニューでノードCをノードHに変更して木構造
502とし(図14)、木構造502に対しノードDの
メニューでノードEをノードIに変更して木構造503
とし(図15)、木構造503に対しノードIのメニュ
ーでノードJを設定して木構造504とし(図16)、
アンドゥ操作(図17)、キャンセル操作(図18)、
アンドゥ操作(図19)の順序で木構造503,木構造
502,木構造503に戻していった場合について説明
する。
Next, the processing operation for changing and restoring the tree structure data by the cancel / undo method of the present invention will be described in detail. As an example, the maximum number of undos is 5, and the tree structure data (hereinafter referred to as a tree structure) 501 in FIG. 13 is changed from the node C to the node H in the menu of the node B to form the tree structure 502 (FIG. 14). For the tree structure 502, the node E is changed to the node I in the menu of the node D and the tree structure 503
(FIG. 15), the node J is set in the menu of the node I for the tree structure 503 to form the tree structure 504 (FIG. 16),
Undo operation (Fig. 17), cancel operation (Fig. 18),
A case where the tree structure 503, the tree structure 502, and the tree structure 503 are returned in the order of the undo operation (FIG. 19) will be described.

【0030】図13において、キャンセルデータリスト
600及びアンドゥデータリスト700は、まだ初期状
態で何も設定されていない。図13の木構造501のノ
ードBのメニューでノードCをノードHに変更した場
合、キャンセルデータ611を用意し、元に戻す木構造
ノードにノードBを設定し、そのノードの変更前の情報
としてノードCを設定し、キャンセルデータリスト60
0に加える。アンドゥデータリスト700にはキャンセ
ル型アンドゥデータ711を加える(図14)。
In FIG. 13, the cancel data list 600 and the undo data list 700 are not set yet in the initial state. When the node C is changed to the node H in the menu of the node B of the tree structure 501 in FIG. 13, the cancel data 611 is prepared, the node B is set to the tree structure node to be restored, and the information before the change of the node is set. Set node C and cancel data list 60
Add to 0. Cancel undo data 711 is added to the undo data list 700 (FIG. 14).

【0031】図14の木構造502のノードDのメニュ
ーでノードEをノードIに変更した場合、キャンセルデ
ータ612を用意し、元に戻す木構造ノードにノードD
を設定し、そのノードの変更前の情報としてノードEと
その直下のノードF及びノードGとを設定し、キャンセ
ルデータリスト600に加える。アンドゥデータリスト
700にはキャンセル型アンドゥデータ712を加える
(図15)。
When the node E is changed to the node I in the menu of the node D of the tree structure 502 of FIG. 14, the cancel data 612 is prepared, and the node D is set as the tree structure node to be restored.
Is set, and the node E and the nodes F and G immediately below the node E are set as the information before the change of the node and added to the cancel data list 600. Cancel undo data 712 is added to the undo data list 700 (FIG. 15).

【0032】図15の木構造503のノードIのメニュ
ーでノードJを設定した場合、キャンセルデータ613
を用意し、元に戻す木構造ノードにノードIを設定し、
そのノードの変更前の情報として「なし」を設定し、キ
ャンセルデータリスト600に加える。アンドゥデータ
リスト700にはキャンセル型アンドゥデータ713を
加える(図16)。
When the node J is set in the menu of the node I in the tree structure 503 of FIG. 15, the cancel data 613 is set.
And set node I to the tree structure node to be restored,
“None” is set as the information before the change of the node and added to the cancel data list 600. Cancel undo data 713 is added to the undo data list 700 (FIG. 16).

【0033】図16の木構造504でアンドゥ操作をし
た場合、アンドゥデータリスト700の最後のアンドゥ
データがキャンセル型アンドゥデータ713であるの
で、キャンセルデータリスト600の最後のキャンセル
データ613の元に戻す木構造ノードがノードIでその
ノード変更前の情報が「なし」であることから、木構造
504のノードIからノードJを切り離す。そして、ア
ンキャンセル型アンドゥデータ714を用意して、この
キャンセルデータ613をアンドゥデータ714のキャ
ンセルデータリストを元に戻すための情報につなぎ替
え、切り離したノードJは木構造を元に戻すための情報
につなげる(図17)。
When the undo operation is performed in the tree structure 504 of FIG. 16, since the last undo data in the undo data list 700 is the cancel undo data 713, the tree to be restored to the original cancel data 613 in the cancel data list 600. Since the structure node is the node I and the information before the node change is “none”, the node J is separated from the node I of the tree structure 504. Then, the undo data 714 is prepared, the cancel data 613 is connected to the information for restoring the cancel data list of the undo data 714, and the separated node J is the information for restoring the tree structure. (Fig. 17).

【0034】図17の木構造503でキャンセル操作を
した場合、キャンセルデータリスト600の最後のキャ
ンセルデータ612の元に戻す木構造ノードがノードD
でそのノード変更前の情報がノードE,F,Gであるこ
とから、木構造のノードDからノードIを切り離し、ノ
ードE以下をつなげる。そして、アンキャンセル型アン
ドゥデータ715を用意して、このキャンセルデータ6
12をアンドゥデータ315のキャンセルデータリスト
を元に戻すための情報につなぎ替え、切り離したノード
Iは木構造を元に戻すための情報につなげる(図1
8)。
When a cancel operation is performed in the tree structure 503 of FIG. 17, the last tree structure node of the cancel data 612 in the cancel data list 600 is the node D.
Then, since the information before the node change is the nodes E, F, and G, the node I is separated from the node D of the tree structure, and the nodes E and below are connected. Then, the undo data 715 is prepared and the cancel data 6 is created.
12 is connected to the information for restoring the cancellation data list of the undo data 315, and the separated node I is connected to the information for restoring the tree structure (FIG. 1).
8).

【0035】図18の木構造502でアンドゥ操作をし
た場合、アンドゥデータリスト700の最後のアンドゥ
データがアンキャンセル型アンドゥデータ715である
ので、アンドゥデータ715のキャンセルデータリスト
を元に戻すための情報のキャンセルデータ612の元に
戻す木構造ノードがノードDでアンドゥデータ715の
木構造を元に戻すための情報がノードIであることか
ら、木構造502のノードDからノードEを切り離しノ
ードIをつなげる。そして、アンドゥデータ715のキ
ャンセルデータリストを元に戻すための情報のキャンセ
ルデータ612をキャンセルデータリスト600につな
ぎ替える。ここで、アンドゥ最大回数が5であることか
ら、アンドゥデータの個数がアンドゥ最大回数より多く
なってしまわないように、アンドゥデータリスト700
の最初のアンドデータ711を削除する(図19)。
When the undo operation is performed with the tree structure 502 of FIG. 18, since the last undo data of the undo data list 700 is the undo data 715, the information for restoring the cancellation data list of the undo data 715 to the original. Since the tree structure node of the cancel data 612 of the above is the node D and the information for restoring the tree structure of the undo data 715 is the node I, the node E is separated from the node D of the tree structure 502 and the node I Connect. Then, the cancel data 612 of the information for restoring the cancel data list of the undo data 715 is replaced with the cancel data list 600. Since the maximum number of undos is 5, the undo data list 700 is set so that the number of undo data does not exceed the maximum number of undos.
The first AND data 711 of is deleted (FIG. 19).

【0036】以上説明したように、本実施例のキャンセ
ル・アンドゥ方法は、キャンセルデータリストとアンド
ゥデータリストを別々にしながらも、キャンセルデータ
及びアンドゥデータの共有を行っているためメモリの消
費及び、処理時間を大幅に改善することができる。
As described above, according to the cancel / undo method of the present embodiment, even though the cancel data list and the undo data list are separate, the cancellation data and the undo data are shared, so that the consumption of memory and the processing are performed. The time can be greatly improved.

【0037】[0037]

【発明の効果】以上説明したように本発明によれば、複
数の単位データそれぞれを木構造のノードとする木構造
データを動的に編集する階層的メニュー問い合わせデー
タ編集システムにおいて変更された木構造を元に戻すア
ンドゥ操作を行う場合、被変更ノードに対し変更操作が
行われ木構造が変更されたときに、当該被変更ノードの
木構造上の相対位置,当該被変更ノード以下の部分的木
構造,及び当該被変更ノードで行われた変更操作種別と
は逆の操作種別を情報とするアンドゥデータを作成する
ことにより従来の方法(木構造全体のコピー)に比較し
てアンドゥデータのデータ量を大幅に圧縮させることが
できるので、木構造データが膨大になればなるほど、こ
のアンドゥデータをメモリへ格納する時間及びアンドゥ
操作実行時にこのアンドゥデータをメモリから読出し木
構造を元に戻す時間を軽減することができ、また、メモ
リの消費量も軽減することができ、アンドゥ操作の可能
範囲を拡げることができる。
As described above, according to the present invention, a tree structure changed in a hierarchical menu inquiry data editing system for dynamically editing tree structure data in which each of a plurality of unit data is a node of the tree structure When performing an undo operation to undo the change, when the change operation is performed on the changed node and the tree structure is changed, the relative position on the tree structure of the changed node, the partial tree under the changed node Data amount of undo data compared to the conventional method (copying the entire tree structure) by creating undo data that has the structure and the operation type opposite to the change operation type performed in the changed node As the tree structure data becomes huge, the time to store this undo data in memory and the undo operation Ndudeta can the reduce the time for returning from the memory based on the read tree structure, also, the memory consumption can also be reduced, it is possible to expand the range of undo operations.

【0038】また、キャンセル操作とアンドゥ操作との
両方を行う場合、キャンセルデータリストとアンドゥデ
ータリストを別々にしながらも、アンドゥデータをキャ
ンセル型とアンキャンセル型との2種類設け、キャンセ
ルデータ及びアンキャンセル型アンドゥデータともに元
に戻すべきノード位置及び変更前の部分的木構造を情報
とし共有化を計りながらデータ量を大幅に圧縮させてい
るので、従来方法に比較して処理時間及びメモリの消費
を大幅に改善することができ、アンドゥ操作/キャンセ
ル操作の可能範囲も拡げることができる。
When both the cancel operation and the undo operation are performed, the cancel data list and the undo data list are separately provided, but two types of undo data, that is, the cancel data type and the undo data type, are provided. Both the type undo data and the partial tree structure before the change and the partial tree structure before the change are used as information, and the amount of data is significantly compressed while sharing, so it consumes less processing time and memory than the conventional method. It can be greatly improved and the range of undo / cancel operations can be expanded.

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

【図1】本発明の階層的メニュー問い合わせデータ編集
システムの一実施例を示す図であり、分図(a)はシス
テム構成、分図(b)はその木構造データ,キャンセル
データ,アンドゥデータの制御の様子を示す。
FIG. 1 is a diagram showing an embodiment of a hierarchical menu inquiry data editing system according to the present invention, where FIG. 1A shows a system configuration and FIG. 1B shows tree structure data, cancel data, and undo data. The state of control is shown.

【図2】本発明のアンドゥ方法の一実施例の処理手順を
示すフローチャートである。
FIG. 2 is a flowchart showing a processing procedure of an embodiment of an undo method of the present invention.

【図3】分図(a),(b),(c)は木構造の変更履
歴の一例を示す図である。
3A to 3C are diagrams showing an example of a tree structure change history.

【図4】分図(a),(b),(c),(d)は本発明
のアンドゥ方法による図3の木構造変更履歴に対するア
ンドゥデータを示す図である。
4A, 4B, 4C, and 4D are diagrams showing undo data for the tree structure change history of FIG. 3 according to the undo method of the present invention.

【図5】本発明のアンドゥ方法により図3の木構造を分
図(a)から分図(b)に変更したときのアンドゥデー
タのメモリ格納状況を示す図である。
FIG. 5 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is changed from the partial diagram (a) to the partial diagram (b) by the undo method of the present invention.

【図6】図5の状態で図3の木構造を分図(b)から分
図(c)に変更したときのアンドゥデータのメモリ格納
状況を示す図である。
FIG. 6 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is changed from the branch diagram (b) to the branch diagram (c) in the state of FIG. 5;

【図7】図6の状態で図3の木構造を分図(c)から分
図(b)に戻したときのアンドゥデータのメモリ格納状
況を示す図である。
FIG. 7 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is returned from the diagram (c) to the diagram (b) in the state of FIG. 6;

【図8】図7の状態で図3の木構造を分図(b)から分
図(a)に戻したときのアンドゥデータのメモリ格納状
況を示す図である。
8 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is returned from the diagram (b) to the diagram (a) in the state of FIG. 7.

【図9】分図(a),(b),(c)はそれぞれ、本発
明のキャンセル・アンドゥ方法によるキャンセルデー
タ,キャンセル型アンドゥデータ,アンキャンセル型ア
ンドゥデータの構成を示す図である。
9A to 9C are diagrams showing the configurations of cancel data, cancel undo data, and undo cancel undo data, respectively, according to the cancel / undo method of the present invention.

【図10】本発明のキャンセル・アンドゥ方法の一実施
例のドゥ操作時の処理手順を示すフローチャートであ
る。
FIG. 10 is a flowchart showing a processing procedure at the time of a do operation of an embodiment of the cancel / undo method of the present invention.

【図11】本発明のキャンセル・アンドゥ方法の一実施
例のキャンセル操作時の処理手順を示すフローチャート
である。
FIG. 11 is a flowchart showing a processing procedure at the time of a cancel operation of the embodiment of the cancel / undo method of the present invention.

【図12】本発明のキャンセル・アンドゥ方法の一実施
例のアンドゥ操作時の処理手順を示すフローチャートで
ある。
FIG. 12 is a flowchart showing a processing procedure at the time of an undo operation of an embodiment of the cancel / undo method of the present invention.

【図13】本発明のキャンセル・アンドゥ方法による木
構造データ,キャンセルデータ,及びアンドゥデータの
メモリ格納初期状態例を示す図である。
FIG. 13 is a diagram showing an example of a memory-stored initial state of tree structure data, cancel data, and undo data according to the cancel / undo method of the present invention.

【図14】図13のノードCをノードHに変更したとき
の木構造データ,キャンセルデータ,及びアンドゥデー
タのメモリ格納状況を示す図である。
14 is a diagram showing a memory storage state of tree structure data, cancel data, and undo data when node C in FIG. 13 is changed to node H. FIG.

【図15】図14のノードEをノードIに変更したとき
の木構造データ,キャンセルデータ,及びアンドゥデー
タのメモリ格納状況を示す図である。
15 is a diagram showing a memory storage state of tree structure data, cancel data, and undo data when node E of FIG. 14 is changed to node I. FIG.

【図16】図15のノードIにノードJを設定したとき
の木構造データ,キャンセルデータ,及びアンドゥデー
タのメモリ格納状況を示す図である。
16 is a diagram showing a memory storage state of tree structure data, cancel data, and undo data when a node J is set to the node I of FIG.

【図17】図16の状態でアンドゥ操作したときの木構
造データ,キャンセルデータ,及びアンドゥデータのメ
モリ格納状況を示す図である。
FIG. 17 is a diagram showing a memory storage state of tree structure data, cancel data, and undo data when an undo operation is performed in the state of FIG. 16;

【図18】図17の状態でキャンセル操作したときの木
構造データ,キャンセルデータ,及びアンドゥデータの
メモリ格納状況を示す図である。
18 is a diagram showing a memory storage state of tree structure data, cancel data, and undo data when a cancel operation is performed in the state of FIG.

【図19】図18の状態でアンドゥ操作したときの木構
造データ,キャンセルデータ,及びアンドゥデータのメ
モリ格納状況を示す図である。
FIG. 19 is a diagram showing a memory storage state of tree structure data, cancel data, and undo data when an undo operation is performed in the state of FIG. 18;

【図20】分図(a),(b),(c),(d)は階層
的メニュー問い合わせデータ編集システムの動作を説明
するための木構造を示す図である。
FIG. 20 is a diagram showing a tree structure for explaining the operation of the hierarchical menu inquiry data editing system, in subsections (a), (b), (c), and (d).

【図21】分図(a),(b),(c)は従来のアンド
ゥ方法による図3の木構造変更履歴に対するアンドゥデ
ータを示す図である。
21A, 21B and 21C are diagrams showing undo data for the tree structure change history of FIG. 3 according to the conventional undo method.

【図22】従来のアンドゥ方法により図3の木構造を分
図(a)から分図(b)に変更したときのアンドゥデー
タのメモリ格納状況を示す図である。
FIG. 22 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is changed from the branch diagram (a) to the branch diagram (b) by the conventional undo method.

【図23】図22の状態で図3の木構造を分図(b)か
ら分図(c)に変更したときのアンドゥデータのメモリ
格納状況を示す図である。
23 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is changed from the branching diagram (b) to the branching diagram (c) in the state of FIG. 22.

【図24】図23の状態で図3の木構造を分図(c)か
ら分図(b)に戻したときのアンドゥデータのメモリ格
納状況を示す図である。
FIG. 24 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is returned from the diagram (c) to the diagram (b) in the state of FIG. 23.

【図25】図24の状態で図3の木構造を分図(b)か
ら分図(a)に戻したときのアンドゥデータのメモリ格
納状況を示す図である。
25 is a diagram showing a memory storage state of undo data when the tree structure of FIG. 3 is returned from the branching diagram (b) to the branching diagram (a) in the state of FIG. 24.

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

11,12,13 木構造(木構造データ) 21,22,23,24 アンドゥデータ 121,122,…,127 ノードA…ノードG 211 ノードの相対位置データ 212 技側の木構造データ 213 逆の操作種別データ 500,501,502,503,504 木構造
(木構造データ) 600 キャンセルデータリスト 601,611,612,613 キャンセルデータ 700 アンドゥデータリスト 701,711,712,713,716 キャンセ
ル型アンドゥデータ 702,714,715 アンキャンセル型アンドゥ
データ 1010 表示装置 1020 入力装置 1050 メニュー問い合わせ制御部 1060 ドゥ処理部 1070 キャンセル処理部 1080 アンドゥ処理部 1090 データ構築部 1100 メモリ
11, 12, 13 Tree structure (tree structure data) 21, 22, 23, 24 Undo data 121, 122, ..., 127 Node A ... Node G 211 Node relative position data 212 Technique side tree structure data 213 Reverse operation Type data 500, 501, 502, 503, 504 Tree structure (tree structure data) 600 Cancel data list 601, 611, 612, 613 Cancel data 700 Undo data list 701, 711, 712, 713, 716 Cancel undo data 702 714, 715 Uncanceled undo data 1010 Display device 1020 Input device 1050 Menu inquiry control unit 1060 Do processing unit 1070 Cancel processing unit 1080 Undo processing unit 1090 Data construction unit 1100 Memory

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山本 博久 東京都港区芝五丁目7番1号 日本電気株 式会社内 (72)発明者 里崎 勝喜 東京都港区三田一丁目4番28号 日本電気 通信システム株式会社内 ─────────────────────────────────────────────────── ─── Continued Front Page (72) Inventor Hirohisa Yamamoto 5-7-1, Shiba, Minato-ku, Tokyo Inside NEC Corporation (72) Inventor Katsuki Satozaki 4-28 Mita, Minato-ku, Tokyo NEC Communication Systems Co., Ltd.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 相互間の階層的な連結条件が定義された
複数の単位データと、ユーザによる選択,設定対象のメ
ニューを表示し前記ユーザの応答を受け付けるメニュー
問い合わせ手段と、前記複数の単位データの最上位の単
位データから対応する前記連結条件に応じた連結すべき
単位データを前記メニュー問い合わせ手段を通した前記
ユーザの応答結果に従って順次決定して連結し、これら
の単位データそれぞれを木構造のノードとする木構造デ
ータを動的に構築する木構造データ構築手段と、各種デ
ータを格納するメモリとを有する階層的メニュー問い合
わせデータ編集システムにおける前記ノードの変更によ
り変更された木構造を元に戻すアンドゥ方法において、 前記ノードのいずれかの被変更ノードに対し変更操作が
行われ木構造が変更されたときに、当該被変更ノードの
木構造上の相対位置と、当該被変更ノード以下の部分的
木構造と、当該被変更ノードで行われた変更操作種別と
は逆の操作種別とを情報とするアンドゥデータを作成し
前記メモリへ格納し、アンドゥ操作実行時に前記メモリ
に格納されている前記アンドゥデータを読出し、このア
ンドゥデータに基づいて木構造を元に戻すことを特徴と
するアンドゥ方法。
1. A plurality of unit data in which mutual hierarchical connection conditions are defined, a menu inquiring means for displaying a menu to be selected and set by a user and receiving a response from the user, and the plurality of unit data. Unit data to be linked according to the corresponding linking condition from the highest unit data of the above is sequentially determined and linked according to the response result of the user through the menu inquiry means, and each of these unit data of the tree structure Restore the tree structure changed by the change of the node in the hierarchical menu query data editing system having a tree structure data constructing means for dynamically constructing tree structure data as a node and a memory for storing various data In the undo method, a change operation is performed on one of the nodes to be changed and the tree structure is changed. Information about the relative position on the tree structure of the changed node, the partial tree structure below the changed node, and the operation type opposite to the change operation type performed on the changed node. An undo method, wherein undo data is created and stored in the memory, the undo data stored in the memory is read when the undo operation is executed, and the tree structure is restored based on the undo data.
【請求項2】 相互間の階層的な連結条件が定義された
複数の単位データと、ユーザによる選択,設定対象のメ
ニューを表示し前記ユーザの応答を受け付けるメニュー
問い合わせ手段と、前記複数の単位データの最上位の単
位データから対応する前記連結条件に応じた連結すべき
単位データを前記メニュー問い合わせ手段を通した前記
ユーザの応答結果に従って順次決定して連結し、これら
の単位データそれぞれを木構造のノードとする木構造デ
ータを動的に構築する木構造データ構築手段と、各種デ
ータを格納するメモリとを有する階層的メニュー問い合
わせデータ編集システムにおける前記ノードの変更によ
り変更された木構造を元に戻すキャンセル・アンドゥ方
法において、 あらかじめ、前記メモリにキャンセルデータを格納する
キャンセルデータリストとアンドゥデータを格納するア
ンドゥデータリストとを準備し、前記アンドゥデータの
各にキャンセル型かアンキャンセル型かを識別するため
の識別子を設けることを取決めておき、 いずれかの前記ノードに対するメニューの選択,設定に
より木構造を変更し下位のノード又は同位の次の枝のノ
ードに対するメニューを表示するドゥ操作時に、元に戻
すべきノード位置及び変更前の部分的木構造を情報とす
るキャンセルデータを作成し前記キャンセルデータリス
トの最後に加え、キャンセル型アンドゥデータを前記ア
ンドゥデータリストの最後に加え、 上位のノード又は同位の前の枝のノードに対して木構造
を元に戻すキャンセル操作時に、前記キャンセルデータ
リストから最後のキャンセルデータを切離し、この切離
したキャンセルデータに基づいて木構造を変更前の状態
に戻し、このキャンセル操作に対するアンドゥデータと
して前記キャンセルデータリストから切離したキャンセ
ルデータ及びこのキャンセル操作で変更された部分的木
構造を情報とするアンキャンセル型アンドゥデータを作
成し前記アンドゥデータリストの最後に加え、 すぐ前に変更したノードに対して木構造を元に戻すアン
ドゥ操作時に、アンドゥ操作が連続したか判定し、前回
の操作がアンドゥ操作でない場合は前記アンドゥデータ
リストの最後のアンドゥデータを読出し、前回の操作も
アンドゥ操作である場合は前記アンドゥデータリストの
前回のアンドゥ操作時に読出したアンドゥデータより一
つ前のアンドゥデータを読出し、読出したアンドゥデー
タの型を前記識別子で判定し、キャンセル型アンドゥデ
ータの場合は前記キャンセル操作時の処理と同じ処理を
行い、アンキャンセル型アンドゥデータの場合はその前
記情報に基づいて木構造を元に戻し、前記キャンセルデ
ータリストから切離したキャンセルデータを前記キャン
セルデータリストに戻し、このアンドゥ操作に対するア
ンドゥデータとして前記キャンセル型アンドゥデータを
前記アンドゥデータリストの最後に加えることを特徴と
するキャンセル・アンドゥ方法。
2. A plurality of unit data in which hierarchical connection conditions are defined, mutual menu inquiry means for displaying a menu for selection and setting by a user and receiving a response from the user, and the plurality of unit data. Unit data to be linked according to the corresponding linking condition from the highest unit data of the above is sequentially determined and linked according to the response result of the user through the menu inquiry means, and each of these unit data of the tree structure Restore the tree structure changed by the change of the node in the hierarchical menu query data editing system having a tree structure data constructing means for dynamically constructing tree structure data as a node and a memory for storing various data In the cancel / undo method, a cache that stores cancel data in the memory in advance. It is arranged that a cell data list and an undo data list for storing undo data are prepared, and that each of the undo data is provided with an identifier for identifying a cancel type or an undo type, Change the tree structure by selecting and setting the menu and display the menu for the lower node or the node of the next branch of the peer. Cancel when using the node position to be restored and the partial tree structure before the change as information. Add data to the end of the cancellation data list, add cancellation undo data to the end of the undo data list, and restore the tree structure to the upper node or the node on the previous branch of the peer. , Disconnect the last cancellation data from the cancellation data list, and disconnect this An uncancelled type in which the tree structure is returned to the state before the change based on the cancel data, and the cancel data separated from the cancel data list as undo data for this cancel operation and the partial tree structure changed by this cancel operation are used as information. When undo data is created and added to the end of the undo data list, and when the undo operation that restores the tree structure to the node that was changed immediately before is determined whether the undo operation is continuous and the previous operation is not an undo operation Reads the last undo data in the undo data list. If the previous operation is also an undo operation, the undo data immediately before the undo data read in the previous undo operation in the undo data list is read and the read undo data is read. Determine the type of data with the identifier In the case of cancel-type undo data, the same process as the process at the time of the cancel operation is performed. In the case of undo-type undo data, the tree structure is restored based on the information, and the cancel data separated from the cancel-data list is deleted. A cancel / undo method characterized by returning to the cancel data list and adding the cancel-type undo data to the end of the undo data list as undo data for this undo operation.
【請求項3】 相互間の階層的な連結条件が定義された
複数の単位データと、ユーザによる選択,設定対象のメ
ニューを表示し前記ユーザの応答を受け付けるメニュー
問い合わせ手段と、前記複数の単位データの最上位の単
位データから対応する前記連結条件に応じた連結すべき
単位データを前記メニュー問い合わせ手段を通した前記
ユーザの応答結果に従って順次決定して連結し、これら
の単位データそれぞれを木構造のノードとする木構造デ
ータを動的に構築する木構造データ構築手段と、各種デ
ータを格納するメモリとを有し、前記ノードの変更によ
り変更された木構造を元に戻す階層的メニュー問い合わ
せデータ編集システムにおいて、 前記メモリにキャンセルデータを格納するキャンセルデ
ータリストとアンドゥデータを格納するアンドゥデータ
リストとを設け、 前記メニュー問い合わせ手段の制御によりいずれかの前
記ノードに対するメニューの選択,設定により木構造を
変更し下位のノード又は同位の次の枝のノードに対する
メニューを表示するドゥ操作を検出すると、元に戻すべ
きノード位置及び変更前の部分的木構造を情報とするキ
ャンセルデータを作成し前記キャンセルデータリストの
最後に加え、キャンセル型を示す識別子を有するキャン
セル型アンドゥデータを前記アンドゥデータリストの最
後に加えるドゥ処理手段と、 前記メニュー問い合わせ手段の制御により上位のノード
又は同位の前の枝のノードに対して木構造を元に戻すキ
ャンセル操作を検出すると、前記キャンセルデータリス
トから最後のキャンセルデータを切離し、この切離した
キャンセルデータに基づいて木構造を変更前の状態に戻
し、このキャンセル操作に対するアンドゥデータとして
前記キャンセルデータリストから切離したキャンセルデ
ータ及びこのキャンセル操作で変更された部分的木構造
を情報としアンキャンセル型を示す識別子を有するアン
キャンセル型アンドゥデータを作成し前記アンドゥデー
タリストの最後に加えるキャンセル処理手段と、 前記メニュー問い合わせ手段の制御によりすぐ前に変更
したノードに対して木構造を元に戻すアンドゥ操作を検
出すると、アンドゥ操作が連続したか判定し、前回の操
作がアンドゥ操作でない場合は前記アンドゥデータリス
トの最後のアンドゥデータを読出し、前回の操作もアン
ドゥ操作である場合は前記アンドゥデータリストの前回
のアンドゥ操作時に読出したアンドゥデータより一つ前
のアンドゥデータを読出し、読出したアンドゥデータの
型を前記識別子で判定し、キャンセル型アンドゥデータ
の場合は前記キャンセル処理手段の処理と同じ処理を行
い、アンキャンセル型アンドゥデータの場合はその前記
情報に基づいて木構造を元に戻し、前記キャンセルデー
タリストから切離したキャンセルデータを前記キャンセ
ルデータリストに戻し、このアンドゥ操作に対するアン
ドゥデータとして前記キャンセル型アンドゥデータを前
記アンドゥデータリストの最後に加えるアンドゥ処理手
段とを備えることを特徴とする階層的メニュー問い合わ
せデータ編集システム。
3. A plurality of unit data in which mutual hierarchical connection conditions are defined, a menu inquiry means for displaying a menu to be selected and set by a user and receiving a response from the user, and the plurality of unit data. Unit data to be linked according to the corresponding linking condition from the highest unit data of the above is sequentially determined and linked according to the response result of the user through the menu inquiry means, and each of these unit data of the tree structure Hierarchical menu inquiry data editing that has tree structure data constructing means for dynamically constructing tree structure data as nodes and a memory for storing various data, and restores the tree structure changed by the change of the node In the system, the cancellation data is stored in the memory, the cancellation data list and the undo data are stored. And a menu data list is provided, and a tree operation is changed by selecting and setting a menu for any of the nodes under the control of the menu inquiring means, and a menu operation for displaying a menu for a lower node or a node on the next branch of the peer is performed. When it is detected, the cancel data having the information of the node position to be restored and the partial tree structure before the change is created, and the cancel undo data having the identifier indicating the cancel type is added to the end of the cancel data list. When a cancel operation for returning the tree structure to the upper node or the node of the branch before the peer is detected by the control of the menu inquiry means and the do processing means added to the end of the list, the last data from the cancellation data list is detected. Cancel Cancels the separated data and cancels this separated The tree structure is restored to the state before the change based on the data, and the cancel data separated from the cancel data list as the undo data for this cancel operation and the partial tree structure changed by this cancel operation are used as the information and the uncancel type is set. A cancel processing means for creating undo data of an undo type having an identifier shown and adding it to the end of the undo data list, and an undo operation for restoring the tree structure to the node changed immediately before by the control of the menu inquiry means. When it is detected, it is determined whether the undo operation is continuous. If the previous operation is not the undo operation, the last undo data in the undo data list is read, and if the previous operation is also the undo operation, the previous undo data list is deleted. And read during undo operation When the undo data immediately before the data is read, the type of the read undo data is determined by the identifier, and in the case of cancellation type undo data, the same processing as that of the cancel processing means is performed. Returns the tree structure based on the information, returns the cancel data separated from the cancel data list to the cancel data list, and sets the cancel undo data as the undo data for this undo operation to the end of the undo data list. And a undo processing means in addition to the above.
JP6318806A 1993-12-27 1994-12-21 Cancel / Undo Method and System for Editing Tree Structure Data by Hierarchical Menu Inquiry Expired - Fee Related JP2747233B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP6318806A JP2747233B2 (en) 1993-12-27 1994-12-21 Cancel / Undo Method and System for Editing Tree Structure Data by Hierarchical Menu Inquiry
US08/576,369 US5734381A (en) 1994-12-21 1995-12-21 Cancel undo method and system for tree structure data edition based on hierarchical menu inquiry

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP33241493 1993-12-27
JP5-332414 1993-12-27
JP6318806A JP2747233B2 (en) 1993-12-27 1994-12-21 Cancel / Undo Method and System for Editing Tree Structure Data by Hierarchical Menu Inquiry

Publications (2)

Publication Number Publication Date
JPH07234770A true JPH07234770A (en) 1995-09-05
JP2747233B2 JP2747233B2 (en) 1998-05-06

Family

ID=26569515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6318806A Expired - Fee Related JP2747233B2 (en) 1993-12-27 1994-12-21 Cancel / Undo Method and System for Editing Tree Structure Data by Hierarchical Menu Inquiry

Country Status (1)

Country Link
JP (1) JP2747233B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6222141A (en) * 1985-07-23 1987-01-30 Casio Comput Co Ltd Menu display controller
JPH0168544U (en) * 1987-10-27 1989-05-02
JPH0383121A (en) * 1989-08-28 1991-04-09 Hitachi Ltd Menu display system
JPH03212718A (en) * 1990-01-18 1991-09-18 Matsushita Electric Ind Co Ltd Operation menu controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6222141A (en) * 1985-07-23 1987-01-30 Casio Comput Co Ltd Menu display controller
JPH0168544U (en) * 1987-10-27 1989-05-02
JPH0383121A (en) * 1989-08-28 1991-04-09 Hitachi Ltd Menu display system
JPH03212718A (en) * 1990-01-18 1991-09-18 Matsushita Electric Ind Co Ltd Operation menu controller

Also Published As

Publication number Publication date
JP2747233B2 (en) 1998-05-06

Similar Documents

Publication Publication Date Title
US20090235181A1 (en) Web-based multiuser collaboration
US20010027457A1 (en) Method and apparatus for storing changes to file attributes without having to store an additional copy of the file contents
CN105912628A (en) Synchronization method and device for master database and slave database
US20100180254A1 (en) Graphical Mashup
JP2006244493A (en) File system expressed in data base
CN102142015A (en) Processing system and processing method for nodes in family tree
CN112506412B (en) Video editing method and device and electronic equipment
CN108874393A (en) rendering method, device, storage medium and computer equipment
CN108595652A (en) Load method, apparatus, computer equipment and the storage medium of DOM node data
US11630554B2 (en) Display of a plurality of files from multiple devices
JP2002259643A (en) Business process control program
WO2020004156A1 (en) Display control device, display control method, and display control program
US5734381A (en) Cancel undo method and system for tree structure data edition based on hierarchical menu inquiry
JP5393073B2 (en) Document management apparatus, method, and program
US8423573B2 (en) Filesystem backup using directorywise hardlinking for a computer filesystem
US20070150446A1 (en) Working with two different object types within the generic search tool
JPH07234770A (en) Canceling and undoing method in tree structure data editing by hierarchical menu inquiry and its system
JPH10198816A (en) Information processing system, and network type information processing system
CN116050786A (en) Business process construction method and device, electronic equipment and storage medium
TW201042470A (en) Data synchronization system and method using directory service format to establish metadata
CN115169891A (en) Workflow engine comprising multi-starting-point multi-branch flow
JPH05265834A (en) Managing system for memo information
JP2002312352A (en) Related document management system
JPH09114631A (en) File perusal method
JPH10171346A (en) Storing method for map data

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980106

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080213

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090213

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100213

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100213

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110213

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110213

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120213

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120213

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130213

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees