A known device stores an operation history into a storage unit in response to an operation for inputting, changing, or deleting text or an image. For example, in a known input device, pieces of stroke data of a text string input by handwriting operations are stored into a stroke data accumulation unit in an order in which the handwriting operations are performed.
A function of returning a state to the previous state by undoing the operation performed immediately before is generally known as an UNDO function. Here, an example case will be described where the UNDO function is implemented in a device that stores one or more pieces of information each indicating an adding operation of newly adding a text or an image (hereinafter, referred to as “adding operation information”) as history information in an operating order, as in a manner adopted in the known device. In this case, the UNDO function can be implemented by referring to one piece of the one or more pieces of additional operation information in the order reverse to the operating order in the stored history information and undoing the additional operation indicated by the referred additional operation information.
A changing operation for changing an input text or image or a deleting operation for deleting an input text or image may be performed at the same time of performing the adding operation. In this case, not only the adding operation information but also changing operation information indicating the changing operation and deleting operation information indicating the deleting operation may be included in the history information. Although the UNDO function is to be implemented in such a situation, the operation performed immediately before might not be undone to return to the previous state with only one piece of operation history information referred to from the history information in the order reverse to the operating order. As described above, in a case where the history information in which a plurality of pieces of the operation information are stored in the operating order is used, the UNDO function may be realized by referring to two or more pieces of the plurality of pieces of operation information, which may be inefficient.
Accordingly, aspects of the disclosure provide a history management program, a history management method, and a history management device for efficiently implementing a function of returning a state to the previous state by undoing an operation performed immediately before.
According to an aspect of the disclosure, a non-transitory computer-readable storage medium may store computer-readable instructions therein that, when executed, cause a computer to execute: first receiving including receiving an input operation for updating a display content on a display unit; first storing including storing the display content into a storage unit as a current display content, the display content having been updated in response to the input operation received in the first receiving; first determining including determining an UNDO process necessary to return the current display content to a pre-update display content being the display content before update; and second storing including storing the UNDO process determined in the first determining into the storage unit as history information, in association with an operating order indicating an ordinal number of the input operation received in the first receiving.
In response to receiving an instruction to perform an UNDO function of undoing an operation performed immediately before to return a current display state to the previous display state, the computer that executes the history management program may implement the UNDO function by referring to the history information and executing the selected UNDO process in the order reverse to the operating order. Thus, the computer can implement the UNDO function without referring to the plurality of pieces of information stored as the history information, thereby performing the UNDO function efficiently.
According to another aspect of the disclosure, a history management method may include: first receiving including receiving an input operation for updating a display content on a display unit; first storing including storing the display content into a storage unit as a current display content, the display content having been updated in response to the input operation received in the first receiving; first determining including determining an UNDO process necessary to return the current display content to a pre-update display content being the display content before being updated; and second storing including storing the UNDO process determined in the first determining into the storage unit as history information, in association with an operating order indicating an ordinal number of the input operation received in the first receiving. According to the other aspect of the disclosure, the same effects as those obtained by the one aspect may be also achieved.
According to still another aspect of the disclosure, a history management device may include: first receiving means for receiving an input operation for updating a display content on a display unit; first storing means for storing the display content into a storage unit as a current display content, the display content having been updated in response to the input operation received in the first receiving means; first determining means for determining an UNDO process necessary to return the current display content to a pre-update display content being the display content before being updated; and second storing means for storing the UNDO process determined in the first determining means into the storage unit as history information, in association with an operating order indicating an ordinal number of the input operation received in the first receiving means. According to the still other aspect of the disclosure, the same effects as those obtained by the one aspect may be achieved.
An illustrative embodiment of the disclosure will be described with reference to the drawings. The drawings to be referred to are used for describing technical features that may be adopted by the disclosure, and configurations of devices described herein are not intended to be limited thereto, but are merely illustrative examples.
An overview of a display device 3 will be described with reference to
The CPU 31 controls the display device 3 entirely. The ROM 32A stores a boot program and initial setting information. The RAM 32B temporarily stores data during execution of processing by the CPU 31. The flash memory 32C stores, for example, a control program to be executed by the CPU 31, a data code Cm, a data code Ch, and history information Us. The display unit 33 may be a liquid crystal display. The input unit 34 may be a touch screen disposed on a surface of the display unit 33. The communication I/F 35 may be a communication module for performing communication with the server 2 (refer to
A description will be provided on a case where an input operation for updating display content displayed on the display unit 33 is performed via the input unit 34 in the display device 3.
In a first example illustrated in
In this case, an instruction code “add/text/0”Hi!”” is executed. The instruction code “add/text/0”Hi!”” includes a command “add” indicating that a new image is added and displayed on the display unit 33, a type “text” indicating that a type of the image is a text string, a line “0” indicating a location at which the image is added, and a text string to be added “Hi!”. As a result, as illustrated in
Next, an adding operation for further adding a new text string “Bye!” to the first line on the display unit 33 is performed. In this case, an instruction code “add/text/1”Bye!”” is executed. The instruction code “add/text/1”Bye!”” includes a command “add”, a type “text, a line “1”, and a text string to be added “Bye!”. As a result, as illustrated in
Next, an input operation for changing the text string “Hi!” displayed in the zeroth line on the display unit 33 to another text string “Hello!” is performed. Hereinafter, an input operation for changing the image displayed on the display unit 33 to another image is referred to as a “changing operation”.
In this case, an instruction code “replace/text/0”Hello!”” is executed. The instruction code “replace/text/0”Hello!”” includes a command “replace” indicating that the image is changed to another image, a type “text”, a line “0” indicating the line in which the image is changed, and a text string “Hello!”. As a result, as illustrated in
Next, an input operation for deleting the text string “Bye!” from the first line on the display unit 33 is performed. Hereinafter, an input operation for deleting the image that has been displayed on the display unit 33 is referred to as a “deleting operation”.
In this case, an instruction code “remove/text/1” is executed. The instruction code “remove/text/1” includes a command “remove” indicating that the image is deleted, a type “text”, and a line “1” indicating the line in which the image is deleted. As a result, as illustrated in
On the contrary, in a second example illustrated in
First, an adding operation for adding a text string “Hi!” to the zeroth line on the display unit 33 is performed. In this case, an instruction code “add/text/0”Hi!”” (refer to
In addition, an instruction code necessary to return the post-update display content (refer to
Next, an adding operation for adding a text string “Bye!” to the first line on the display unit 33 is performed. In this case, an instruction code “add/text/1”Bye!”” (refer to
In addition, an instruction code necessary to return the post-update display content (refer to
Next, a changing operation for changing the text string “Hi!” displayed in the zeroth line on the display unit 33 to another text string “Hello!” is performed. In this case, an instruction code “replace/text/0”Hello!”” (refer to
In addition, an instruction code necessary to return the post-update display content (refer to
Next, a deleting operation for deleting the text string “Bye!” displayed in the first line on the display unit 33 is performed. In this case, an instruction code “remove/text/1” (refer to
In addition, an instruction code necessary to return the post-update display content (refer to
An image corresponding to the input operations is displayed in the main area 51. The display content in the main area 51 (hereinafter, referred to as “current display content”) is identified based on the data code Cm (refer to
In an example illustrated in
In a case where a user performs an operation for selecting one of the input operation items in the operation history area 52 by touching to maintain the selected state of the one of the input operations, the user may delete the selected input operation item from the operation history area 52. Hereinafter, the operation for selecting and maintaining one of the input operation items is referred to as a “selecting operation”.
The save button 53 may be a selection button for saving a file indicating the current display content into the flash memory 32C. Hereinafter, the input operation of selecting the save button 53 is referred to as a “saving operation”.
The UNDO button 54 may be a selection button for undoing the adding operation, the changing operation, and the deleting operation in the order reverse to the order in which those input operations have been performed. Hereinafter, the input operation of selecting the UNDO button 54 is referred to as an “UNDO operation”. In a case where an UNDO operation is performed, the current display content in the main area 51 is returned to the display content before the adding operation, the changing operation, and the deleting operation are performed from the display content after the adding operation, the changing operation, and the deleting operation are performed.
In the illustrative embodiment, as described above, an instruction code necessary to return the post-update display content to the pre-update display content is stored as the history information Us. Thus, the display device 3 may implement the operation of updating the current display content in the main area 51 in response to the UNDO operation by executing the instruction codes stored in the history information Us as they are.
The REDO button 55 may be a selection button for undoing the input operation of selecting the UNDO button 54. Hereinafter, the input operation of selecting the REDO button 55 is referred to as a “REDO operation”. In a case where a REDO operation is performed, the display content in the main area 51 is returned to the display content before the operation of selecting the UNDO button 54 is performed from the display content after the operation of selecting the UNDO button 54 is performed.
The first flag control process will be described with reference to
The CPU 31 determines whether a saving operation on the display screen 5A has been detected (S1). In a case where the saving operation has been detected (S1: YES), the CPU 31 sets the flag to ON (S3). The CPU 31 returns the process to S1.
In a case where the saving operation has not been detected (S1: NO), the CPU 31 moves the process to S5. The CPU 31 determines whether the flag indicates OFF (S5). If the CPU 31 determines that the flag indicates ON (S5: NO), the CPU 31 returns the process to S1. If the CPU 31 determines that the flag indicates OFF (S5: YES), the CPU 31 determines whether a second period or more has elapsed in a state where the flag indicates OFF and any input operation has not been detected (S3). If the CPU 31 determines that the second period or more has elapsed in a state where the flag indicates OFF and any input operation has not been detected (S7: YES), the CPU 31 sets the flag to ON (S3). The CPU 31 returns the process to S1.
If the CPU 31 determines that the second period or more has not elapsed in a state where the flag indicates OFF and any input operation has not been detected (S7: NO), the CPU 31 returns the process to S1.
The first main process will be described with reference to
Hereinafter, the display content displayed in the main area 51 of the display screen 5A is referred to as the “current display content”. An instruction code for updating the current display content in response to an input operation is referred to as a “DO code”. The current display content before being updated by the DO code is referred to as “pre-update display content”. The current display content after being updated by the DO code is referred to as “post-update display content”. An instruction code necessary to return the post-update display content to the pre-update display content is referred to as an “UNDO code”.
The CPU 31 determines whether an input operation to the input unit 34 has been detected (S11). If the CPU 31 determines that any input operation has not been detected (S11: NO), the CPU 31 moves the process to S25. In a case where an input operation has been detected (S11: YES), the CPU 31 determines whether the detected input operation is any one of the adding operation, the changing operation, and the deleting operation (S13).
If the CPU 31 determines that the detected input operation is one of the adding operation, the changing operation, and the deleting operation (S13: YES), the CPU 31 updates the variable i by adding one to the variable i (S15). The CPU 31 identifies the DO code corresponding to the detected operation among the adding operation, the changing operation, and the deleting operation (S17). The CPU 31 updates the data code Cm by executing the identified DO code and stores the updated data code Cm into the flash memory 32C (S19). The CPU 31 updates the current display content in the main area 51 of the display screen 5A based on the data code Cm stored in the flash memory 32C (S21). The CPU 31 temporarily stores the DO code into the RAM 32B in association with the variable i (S23).
The CPU 31 determines whether the flag stored in the RAM 32B indicates ON (S25). In a case where the flag indicates OFF (S25: NO), the CPU 31 returns the process to S11. The CPU 31 repeats S11 to S23 until the flag is turned on. In the meantime, every time the adding operation, the changing operation, or the deleting operation is received, the updating of the variable i (S15), the identifying of the DO code (S17), the updating and storing of the data code Cm (S19), the updating of the current display content (S21), and the temporarily storing of the DO code (S23) are repeatedly performed.
If the CPU 31 determines that the flag stored in the RAM 32B indicates ON (S25: YES), the CPU 31 sets the flag to OFF (S27). The CPU 31 obtains the one or more DO codes stored in the RAM 32B in S23. In the first flag control process (refer to
The CPU 31 determines, based on the one or more obtained DO codes and the data code Cm, an UNDO code, which may be an instruction code necessary to return the post-update display content to the pre-update display content, for each of the one or more obtained DO codes (S29). The CPU 31 associates the variable i that has been associated with a corresponding one of the one or more DO codes referred to when determining the UNDO code with the UNDO code as the operating order, and adds and stores the variable i to the history information Us in the flash memory 32C (S31). In a case where a plurality of DO codes are stored in the RAM 32B, the CPU 31 executes the above processing on all the stored DO codes. Thereafter, the CPU 31 deletes all the DO codes stored in RAM 32B.
The CPU 31 obtains the one or more UNDO codes from the history information Us stored in the flash memory 32C. The CPU 31 identifies, based on the one or more obtained UNDO codes and the data code Cm, a DO code necessary to update the pre-update display content to the post-update display content, for each of the one or more obtained UNDO codes (S33). The CPU 31 updates the data code Ch indicating the display content in the operation history area 52 of the display screen 5A in order to display the input operation items corresponding to the identified DO codes in the same order as the operating order associated with the each of the UNDO codes referred to when identifying the DO codes (S35). The CPU 31 updates the display content in the operation history area 52 of the display screen 5A based on the updated date code Ch (S37). The order of the input operation items displayed in the operation history area 52 corresponds to the order of the corresponding input operations. The CPU 31 returns the process to S11.
If the CPU 31 determines that an input operation has been detected (S11: YES) and the detected input operation is none of the adding operation, the changing operation, and the deleting operation (S13: NO), the CPU 31 moves the process to S41 (refer to
The CPU 31 updates the variable i by subtracting one from the variable i (S43). The CPU 31 selects the UNDO code associated with the operating order that matches the variable i from the history information Us stored in the flash memory 32C (S45). The CPU 31 updates the data code Cm by executing the selected UNDO code and stores the updated data code Cm into the flash memory 32C (S47). The CPU 31 updates the current display content in the main area 51 of the display screen 5A based on the data code Cm stored in the flash memory 32C (S49). Thus, the current display content in the main area 51 is returned to the pre-update display content from the post-update display content. The pre-update display content is thus stored in the flash memory 32C as the data code Cm indicating the current display content. The CPU 31 returns the process to S11.
If the CPU 31 determines that the detected input operation is not an UNDO operation (S41: NO), the CPU 31 determines whether the detected input operation is a selecting operation (S51). If the CPU 31 determines that the input operation is a selecting operation (S51: YES), the CPU 31 moves the process to S53.
The CPU 31 updates the data code Ch stored in the flash memory 32C such that the selected input operation item is deleted from the operation history area 52 of the display screen 5A (S53). The CPU 31 updates the display content in the operation history area 52 based on the updated date code Ch (S55). Thus, the input operation item selected in response to the selecting operation is deleted from the operation history area 52.
The CPU 31 identifies the DO code corresponding to the input operation item deleted from the operation history area 52, and further determines, based on the identified DO code, an UNDO code for returning the post-update display content to the pre-update display content (S57). The CPU 31 deletes the determined UNDO code among the UNDO codes in the history information Us (S59). The CPU 31 returns the process to S11 (refer to
If the CPU 31 determines that the detected input operation is not a selecting operation (S51: NO), the CPU 31 moves the process to S61 (refer to
The CPU 31 selects the UNDO code associated with the operating order that matches the variable i from the history information Us stored in the flash memory 32C (S65). The CPU 31 identifies the DO code necessary to update the pre-update display content to the post-update display content, based on the selected UNDO code (S67). The identified DO code corresponds to an instruction code necessary to undo the UNDO operation to return the current display content in the main area 51 to the state before the UNDO operation is executed, in response to the REDO operation. The CPU 31 updates the data code Cm by executing the identified DO code and stores the data code Cm into the flash memory 32C (S69).
The CPU 31 updates the current display content in the main area 51 of the display screen 5A based on the data code Cm stored in the flash memory 32C (S71). Thus, the current display content in the main area 51 is returned to the post-update display content from the pre-update display content updated by the UNDO operation. The post-update display content is thus stored in the flash memory 32C as the data code Cm indicating the current display content. The CPU 31 updates the variable i by adding one to the variable i (S73). The CPU 31 returns the process to S11 (refer to
If the CPU 31 determines that the detected input operation is not a REDO operation (S61: NO), the CPU 31 executes processing corresponding to the input operation (S81), and the CPU 31 returns the process to S11 (refer to
In a case where the display device 3 has received an UNDO operation (S41: YES), the display device 3 selects the UNDO codes in the reverse order of the operating order with reference to the history information Us (S43, S45). The display device 3 may thus implement the function of undoing the adding operation, the changing operation, and the deleting operation to return the display content to the previous display content (the UNDO function) by executing the selected UNDO codes as they are. The display device 3 may perform the UNDO function without referring to the plurality of instruction codes stored in the history information Us, thereby efficiently implementing the UNDO function.
In a case where the display device 3 has received an UNDO operation (S41: YES), the display device 3 executes the UNDO codes in the history information Us as they are to update the date code Cm (S47). As a result, the current display content in the main area 51 of the display screen 5A is returned from the post-update display content to the pre-update display content (S49). Therefore, the user of the display device 3 may cause the display device 3 to perform the UNDO function by performing an UNDO operation via the input unit 34.
The display device 3 identifies the one or more DO codes necessary to update the pre-update display content to the post-update display content, based on the UNDO codes in the history information Us (S33). The display device 3 displays the input operation items corresponding to the one or more identified DO codes in the operation history area 52 of the display screen 5A in the operating order of the input operations (S37). This enables the user to grasp the history of the input operations by visual identifying the input operation items displayed in the operating order in the operation history area 52.
In a case where display device 3 has received a selecting operation for selecting an input operation item displayed in the operation history area 52 (S51: YES), the display device 3 deletes the selected input operation item from the operation history area 52 (S55), and deletes a corresponding UNDO code in the history information Us (S59). The user may thus secure a remaining capacity by reducing a storage capacity of the display device 3.
The display device 3 stores at least one DO code into the RAM 32B based on at least one input operation executed in the first period (S23). The display device 3 determines an UNDO code based on the at least one DO code stored in RAM 32B (S29), and adds and stores the UNDO code to the history information Us (S31). This enables reduction of a frequency of determining an UNDO code, thereby reducing a processing load to the CPU 31 in the display device 3. In a case where the period during which the input operation is not received has elapsed for the second period or in a case where a saving operation is performed, the display device 3 may determine and store an UNDO code into the history information Us.
In a case where the display device receives an adding operation, a changing operation, or a deleting operation as an input operation (S13: YES), the display device 3 may determine an UNDO code and update the history information Us.
The disclosure is not limited to the first illustrative embodiment, and various modifications can be available. In the disclosure, the image displayed on the display unit 33 is not limited to text strings, and may be figures or other objects. The format of the data code Cm is not limited to the JSON format, and may be another format. The display device 3 may manage the current display content in the main area 51 by data in another format.
The display device 3 may add a DO code, which may be an instruction code for updating the current display content in response to an adding operation, a changing operation, or a deleting operation, to the history information Us in association with a corresponding UNDO code. The UNDO code may be added to the history information Us in further association with the date and time when the corresponding input operation was performed, comment information associated with the corresponding input operation, and other information.
The display device 3 may accept an UNDO operation in a state where two or more input operation items in the operation history area 52 are selected. In this case, the display device 3 may select two or more UNDO codes corresponding to the selected two or more input operation items from the history information Us. The display device 3 may execute the selected two or more UNDO codes in the order reverse to the input order. By doing so, the display device 3 may implement an UNDO function of undoing a plurality of operations including an adding operation, a changing operation, and a deleting operation at once to return the display content to the previous display content.
The input operation items displayed in the operation history area 52 of the display screen 5A may be listed from the bottom to the top in the operating order. In addition to the detail of the operation (addition, change, or deletion) and the image to be operated, the input operation item may be associated with other information. For example, the date and time when the input operation was performed may be associated with the input operation item. The operation history area 52 may be displayed in response to an operation of selecting the UNDO button 54 or the REDO button 55.
An upper limit for the number of input operation items that can be displayed in the operation history area 52 may be specified in advance. In a case where the number of input operation items displayed in the operation history area 52 exceeds the upper limit, the display device 3 may leave the input operation items corresponding to the upper limit in the operating order, and select and delete the other input operation items. The display device 3 may delete the UNDO code corresponding to the deleted input operation item in the history information Us.
The timing at which the display device 3 updates the history information Us, in other words, the timing at which the flag is set to ON in the first flag control process, is not limited to the timing in the first illustrative embodiment. For example, the display device 3 may set the flag to ON at a certain cycle. The display device 3 may set the flag to ON in response to the processing load to the CPU 31 being equal to or lower than a certain level. The display device 3 may set the flag to ON in response to the total number of times one or more of the adding operation, the changing operation, and the deleting operation were performed having reached a certain value. The display device 3 may determine and add an UNDO code to the history information Us every time the adding operation, the changing operation, or the deleting operation is executed.
In a case where the display device 3 receives an input operation other than an adding operation, a changing operation, or a deleting operation, the display device 3 may determine an UNDO code corresponding to the received input operation and add the determined UNDO code to the history information Us. For example, in a case where an operation of shifting a location of an image displayed in the main area 51, an operation of enlarging or reducing a size of the image, an operation of changing the color of the image, an operation of changing the format (font) of the image, or another operation is performed, the display device 3 may determine an UNDO code corresponding to the performed operation and add the determined UNDO code to the history information Us.
The data code Cm may be an example of a “current display content” of the disclosure. The UNDO code may be an example of an “UNDO process” of the disclosure.
The display device 3 may be an example of a “history management device” of the disclosure.
The second illustrative embodiment is different from the first illustrative embodiment in that the server 2 manages the history information Us instead of the display device 3. The description of the configuration and the processes common to the first illustrative embodiment will be omitted or simplified.
An overview of a communication system 1 will be described with reference to
Users of the display devices 3A, 3B, and 3C are a “user A”, a “user B”, and a “user C”, respectively. The user C may be an administrator of the communication system 1. Identification information for identifying a user who uses a corresponding one of the display devices 3A to 3C is stored in the flash memory 32C of the corresponding one of the display devices 3A to 3C. A display screen 5B (refer to
The server 2 includes a CPU 21, a ROM 22A, a RAM 22B, a flash memory 22C, and a communication I/F 23. The CPU 21 controls the server 2 entirely. The ROM 22A stores a boot program and setting information. The RAM 22B temporarily stores data during execution of processing by the CPU 21. The flash memory 22C stores a control program to be executed by the CPU 21, a data code Cm, a data code Ch, history information Us, and identification information of the user C who is the administrator of the communication system 1. The communication I/F 23 may be a communication module for performing communication with the respective display devices 3A to 3C via the network line 4 and the access point 4A.
As illustrated in
In a case where an input operation is performed via the input unit 34 on one of the display devices 3A to 3C, the one of the display devices 3A to 3C transmits input operation data indicating details of the input operation to the server 2. For example, in a case where an input operation is performed on the display device 3A (S207a), the display device 3A transmits input operation data to the server 2 (S209a). In a case where the display device 3A transmits the input operation data to the server 2, the display device 3A also transmits the identification information of the user A who uses the display device 3A to the server 2 (S209a).
The server 2 receives the input operation data and the identification information from the display device 3A (S211). The server 2 updates the data codes Cm and Ch based on the received input operation data (S213). The server 2 transmits the updated data codes Cm and Ch to the display devices 3A to 3C (S221). The display devices 3A to 3C each receive the data codes Cm and Ch (S223a, S223b, S223c), and update and display the main area 51 and the operation history area 52 of the display screen 5B (S225a, S225b, S225c). Thus, even when an input operation is performed on the display device 3A, the display screen 5B updated in response to the input operation is shared among the display devices 3A to 3C.
In a case where the received input operation data indicates an addition operation, a changing operation, or a deleting operation, the server 2 determines an UNDO code necessary to return the post-update display content to the pre-update display content, based on the DO code corresponding to the input operation. As illustrated in
The second flag control process will be described with reference to
The CPU 21 determines whether the flag indicates OFF (S101). If the CPU 21 determines that the flag indicates ON (S101: NO), the CPU 21 returns the process to S101. If the CPU 21 determines that the flag indicates OFF (S101: YES), the CPU 21 determines whether the second period or more has elapsed in a state where the flag indicates OFF and any input operation has not been detected (S103). If the CPU 21 determines that the second period or more has elapsed in a state where the flag indicates OFF and any input operation has not been detected (S103: YES), the CPU 21 sets the flag to ON (S105). The CPU 21 returns the process to S101.
The second main process will be described with reference to
The CPU 21 determines whether the input operation data and the identification information both transmitted from one of the display devices 3A to 3C have been received (S111). If the CPU 21 determines that the input operation data and the identification information have not been received (S111: NO), the CPU 21 moves the process to S125. In response to reception of the input operation data and the identification information (S111: YES), the CPU 21 determines, based on the received input operation data, whether the input operation performed on one of the display devices 3 is one of an adding operation, a changing operation, and a deleting operation (S113).
If the CPU 21 determines that the input operation is one of an adding operation, a changing operation, and a deleting operation (S113: YES), the CPU 21 updates the variable i by adding one to the variable i (S115). The CPU 21 identifies the DO code corresponding to the one of the adding operation, the changing operation, and the deleting operation determined in S113 (S117). The CPU 21 updates the data code Cm by executing the identified DO code and stores the data code Cm into the flash memory 22C (S119). The CPU 21 transmits the data code Cm stored in the flash memory 22C to the display devices 3A to 3C (S121). The CPU 21 temporarily stores the DO code identified in the processing of S117 into the RAM 22B in association with the identification information and the variable i received in the processing of the S111 (S123).
The display devices 3A to 3C that have received the data code Cm transmitted in the processing of S121 each update the current display content in the main area 51 of the display screen 5B based on the data code Cm and display the updated display content.
The CPU 21 determines whether the flag stored in the RAM 22B indicates ON (S125). In a case where the flag indicates OFF (S125: NO), the CPU 21 returns the process to S111. The CPU 21 repeats the processing of S111 to S123 until the flag is turned ON. In the meantime, every time the input operation data indicating the adding operation, the changing operation, or the deleting operation is received from one of the display devices 3, the updating of the variable i (S115), the identifying of the DO code (S117), the updating and storing of the data code Cm (S119), the transmitting of the current display content (S121), and the temporarily storing of the DO code (S123) are repeatedly performed.
If the CPU 21 determines that the flag stored in the RAM 22B indicates ON (S125: YES), the CPU 21 sets the flag to OFF (S127). The CPU 21 obtains the DO code stored in the RAM 22B in S123. In the second flag control process (refer to
The CPU 21 determines, based on the one or more obtained DO codes and the data code Cm, an UNDO code, which is an instruction code necessary to return the post-update display content to the pre-update display content, for each of the one or more obtained DO codes (S129). The CPU 21 associates the variable i associated with the DO code referred to when determining the UNDO code, with the UNDO code as the operating order. The CPU 21 also associates the identification information associated with the DO code referred to when determining the UNDO code, with the UNDO code. The CPU 21 adds and stores the UNDO code associated with the operating order and the identification information to the history information Us in the flash memory 32C (S131). In a case where a plurality of DO codes are stored in the RAM 22B, the CPU 21 executes the above processing on all the stored DO codes. Thereafter, the CPU 21 deletes all the DO codes stored in RAM 22B.
The CPU 21 obtains the one or more UNDO codes from the history information Us stored in the flash memory 22C. The CPU 21 identifies, based on the one or more obtained UNDO codes and the data code Cm, a DO code necessary to update the pre-update display content to the post-update display content, for each of the one or more obtained UNDO codes (S133). The CPU 21 updates the data code Ch indicating the display content in the operation history area 52 of the display screen 5B in order to display the input operation items corresponding to the identified DO codes and the pieces of identification information associated with the respective UNDO codes referred to when identifying the DO codes in the same order as the operating order associated with the each of the UNDO codes (S135). The CPU 21 transmits the updated data code Ch to the display devices 3A to 3C (S137). The CPU 21 returns the process to S111.
The display devices 3A to 3C that have received the data code Ch transmitted in the processing of S137 each update the display content in the operation history area 52 of the display screen 5B based on the data code Ch. Thus, as illustrated in
If the CPU 21 determines, based on the received input operation data, that the input operation performed on the one of the display devices 3 is none of an adding operation, a changing operation, and a deleting operation (S113: NO), the CPU 21 moves the process to S141 (refer to
The CPU 21 updates the variable i by subtracting one from the variable i (S143). The CPU 21 selects the UNDO code associated with the operating order that matches the variable i and the identification information associated with the UNDO code from the history information Us stored in the flash memory 22C (S145).
The CPU 21 determines whether the selected identification information matches the identification information received together with the input operation data indicating the UNDO operation (S301). If the CPU 21 determines that the selected identification information matches the received identification information (S301: YES), the CPU 21 moves the process to S147. The CPU 21 updates the data code Cm by executing the selected UNDO code. The CPU 21 stores the updated data code Cm into the flash memory 32C (S147). The CPU 21 transmits the data code Cm stored in the flash memory 22C to the display devices 3A to 3C (S149). The pre-update display content is thus stored in the flash memory 32C as the data code Cm indicating the current display content. The CPU 21 returns the process to S111 (refer to
The display devices 3A to 3C that have received the data code Cm transmitted in the processing of S149 each update the current display content in the main area 51 of the display screen 5B based on the data code Cm and display the updated display content. Thus, the current display content in the main area 51 is returned, by the UNDO operation, to the display content before being updated to the post-update display content (the pre-update display content).
If the CPU 21 determines that the identification information associated with the UNDO code selected from the history information Us does not match the identification information received together with the input operation data indicating the UNDO operation (S301: NO), the CPU 21 moves the process to S303. The CPU 21 determines, based on the identification information of the administrator stored in the flash memory 22C, whether the identification information received together with the input operation data indicating the UNDO operation matches the identification information indicating the administrator of the communication system 1 (S303). If the CPU 21 determines that the received identification information matches the identification information indicating the administrator (S303: YES), the CPU 21 moves the process to S147. The processing of S147 and the processing of S149 are the same as in the case where it is determined that the received identification information matches the identification information indicating the administrator, and thus the description thereof will be omitted.
If the CPU 21 determines that the received identification information does not match the identification information indicating the administrator of the communication system 1 (S303: NO), the CPU 21 updates the variable i by adding one to return the variable i updated in S143 to the previous value (S305). In this case, the processing for returning the post-update display content to the pre-update display content in the main area 51 of the display screen 5B of the one of the display devices 3 (the updating (S147) and the transmitting (S149) of the data code Cm) is not executed. The CPU 21 returns the process to S111 (refer to
If the CPU 21 determines, based on the received input operation data, that the input operation performed on the one of the display devices 3 is not an UNDO operation (S141: NO), the CPU 21 moves the process to S151 (refer to
The CPU 21 identifies the input operation item selected by the selecting operation performed on the one of the display devices 3. The CPU 21 identifies the DO code corresponding to the identified input operation item, and further determines, based on the identified DO code, an UNDO code for returning the post-update display content to the pre-update display content (S311). The CPU 21 selects the identification information associated with the same UNDO code as the determined UNDO code from the history information Us (S313).
The CPU 21 determines whether the selected identification information matches the identification information received together with the input operation data indicating the selecting operation (S315). If the CPU 21 determines that the selected identification information matches the received identification information (S313: YES), the CPU 21 moves the process to S153. The CPU 21 updates the data code Ch stored in the flash memory 22C such that the selected input operation item is deleted from the operation history area 52 of the display screen 5B in response to the selecting operation (S153). The CPU 21 transmits the updated data code Ch to the display devices 3A to 3C (S155). The CPU 21 deletes the UNDO code determined in the processing of S311 from the history information Us (S159). The CPU 21 returns the process to S111 (refer to
The display devices 3A to 3C that have received the data code Ch transmitted in the processing of S155 each update the display content in the operation history area 52 of the display screen 5B based on the data code Ch. Thus, the input operation item selected by the selecting operation is deleted from the operation history area 52 of the display screen 5B of each of the display devices 3A to 3C.
If the CPU 21 determines that the identification information associated with the same UNDO code as the UNDO code determined in the history information Us does not match the identification information received together with the input operation data indicating the selecting operation (S315: NO), the CPU 21 moves the process to S317. The CPU 21 determines, based on the identification information of the administrator stored in the flash memory 22C, whether the identification information received together with the input operation data indicating the selecting operation matches the identification information indicating the administrator of the communication system 1 (S317). If the CPU 21 determines that the received identification information matches the identification information indicating the administrator (S317: YES), the CPU 21 moves the process to S153. The processing of S153 to the processing of S159 are the same as in the case where it is determined that the received identification information matches the identification information indicating the administrator, and thus the description thereof will be omitted.
If the CPU 21 determines that the received identification information does not match the identification information indicating the administrator of the communication system 1 (S317: NO), the CPU 21 moves the process to S111 (refer to
If the CPU 21 determines, based on the received input operation data, that the input operation performed on the one of the display devices 3 is not a selecting operation (S151: NO), the CPU 21 moves the process to S161 (refer to
The CPU 21 selects the UNDO code associated with the operating order that matches the variable i from the history information Us stored in the flash memory 22C (S165). The CPU 21 identifies the DO code to be executed for updating the pre-update display content to the post-update display content, based on the selected UNDO code (S167). The CPU 21 updates the data code Cm by executing the identified DO code and stores the data code Cm into the flash memory 22C (S169). The CPU 21 transmits the data code Cm stored in the flash memory 22C to the display devices 3A to 3C (S171). The CPU 21 updates the variable i by adding one to the variable i (S173). The CPU 21 returns the process to S111 (refer to
The display devices 3A to 3C that have received the data code Cm transmitted in the processing of S171 each update the current display content in the main area 51 of the display screen 5B based on the data code Cm and display the updated display content. Thus, the current display content in the main area 51 is returned to the post-update display content from the pre-update display content updated by the UNDO operation.
If the CPU 21 determines, based on the received input operation data, that the input operation performed on the one of the display devices 3 is not a REDO operation (S161: NO), the CPU 21 executes processing corresponding to the input operation (S181) and moves the process to S111 (refer to
In a case where input operation data indicating an UNDO operation is received (S141: YES), the server 2 selects the UNDO code in the reverse order of the operating order with reference to the history information Us (S143, S145). The server 2 updates the data code Cm by executing the selected UNDO code as it is (S147) and transmits the updated data code Cm to the display devices 3 (S149). The display devices 3 each update the current display content in the main area 51 of the display screen 5B from the post-update display content to the pre-update display content based on the data code Cm received from the server 2. The server 2 may thus cause the display devices 3 to perform the UNDO function. The server 2 may cause the display devices 3 to perform the UNDO function without referring to the plurality of instruction codes stored in the history information Us, thereby enabling the display devices 3 to efficiently perform the UNDO function.
In a case where input operation data indicating an UNDO operation is received (S141: YES), the server 2 executes the UNDO code of the history information Us as it is to update the date code Cm (S147). The server 2 transmits the updated data code Cm to the display devices 3 (S149). As a result, the current display content in the main area 51 of the display screen 5B of each of the display devices 3 is returned from the post-update display content to the previous pre-update display content. Therefore, the user of the display device 3 may cause the display device 3 to perform the UNDO function by performing an UNDO operation via the input unit 34.
In a case where the identification information associated with the UNDO code stored as the history information Us matches the identification information received together with the input operation data indicating the UNDO operation (S301: YES), the server 2 executes the UNDO code to update the data code Cm (S147) and transmits the updated data code Cm to the display devices 3 (S149). In this case, in a case where a particular user other than the user who has performed the input operation performs an UNDO operation for undoing the input operation, the server 2 may prohibit the current display content in the main area 51 from being updated from the post-update display content to the pre-update display content. That is, in a case where the same user as the user who has performed the input operation performs the UNDO operation for undoing the input operation, the server 2 may update the current display content in the main area 51 from the post-update display content to the pre-update display content.
In a case where the identification information received together with the input operation data indicating the UNDO operation matches the identification information of the administrator of the communication system 1 (S303: YES), the server 2 executes the UNDO code to update the data code Cm (S147) and transmits the updated data code Cm to the display devices 3 (S149). In this case, in a case where a particular user other than the user who has performed the input operation performs the UNDO operation for undoing the input operation, if the particular user is the administrator, the server 2 may update the current display content in the main area 51 from the post-update display content to the pre-update display content.
The server 2 identifies the one or more DO codes necessary to update the pre-update display content to the post-update display content, based on the UNDO codes of the history information Us (S133). The server 2 updates the data code Ch such that the input operation item corresponding to the identified DO code and the identification information of the user who has performed the input operation are displayed in the operation history area 52 of the display screen 5B with being associated with each other (S135). The server 2 transmits the updated data code Ch to the display devices 3 (S137). Therefore, the users of the display devices 3 may grasp the history of the input operations by visually recognizing the input operation items displayed in the operating order in the operation history area 52. In addition, the users of the display devices 3 may confirm the user who has performed the input operation.
In a case where the identification information associated with the UNDO code stored as the history information Us matches the identification information received together with the input operation data indicating the selecting operation (S315: YES), the server 2 updates the data code Ch so as to delete the selected input operation item from the operation history area 52 (S153) and transmits the updated data code Ch to the display devices 3 (S155). The server 2 determines the UNDO code corresponding to the selected input operation item in the history information Us (S311), and deletes the UNDO code from the history information Us (S159).
In this case, in a case where a particular user other than the user who has performed the input operation performs a selecting operation for deleting the UNDO code corresponding to the input operation from the history information Us, the server 2 may prohibit the input operation item from being deleted from the operation history area 52 and the UNDO code from being deleted from the history information Us. That is, in a case where the same user as the user who has performed the input operation performs a selecting operation for the input operation, the server 2 may update the current display content in the operation history area 52 and delete the UNDO code from the history information Us.
The disclosure is not limited to the second illustrative embodiment, and various modifications can be available. The modifications described in the first illustrative embodiment can be applied to the second illustrative embodiment as appropriate.
Each display device 3 may periodically transmit request data for requesting the data codes Cm and Ch to the server 2. The server 2 may transmit the data codes Cm and Ch to the respective display devices 3 at the timing of receiving the request data from the display devices 3. Alternatively, the server 2 may repeatedly transmit the data codes Cm and Ch to the display devices 3 in certain cycles. The function of the server 2 described in the second illustrative embodiment may be implemented by any of the display devices 3A to 3C (e.g., a main display device) instead of the server 2.
In the second illustrative embodiment, the identification information of the user who uses one of the display devices 3 is transmitted from the one of the display devices 3 to the server 2 together with the input operation data. In a case where the display devices 3 are assigned to the users, respectively, each piece of the identification information may be identification information indirectly identifying a corresponding display device 3. In contrast, each display device 3 may transmit identification information (e.g., a serial number, a MAC address, or an IP address of the display device 3) for directly identifying the display device 3 to the server 2 together with the input operation data. In the operation history area 52 of the display screen 5B, the input operation item and the identification information for directly identifying the display device 3 may be displayed in association with each other.
In response to receiving an UNDO operation for returning the post-update display content to the pre-update display content, a display device 3 may determine whether an input operation for updating the pre-update display content to the post-update display content has been performed in the past via the input unit 34. The display device 3 may transmit the input operation data indicating the UNDO operation to the server 2 only when the input operation has been performed in the past. On the other hand, in a case where the input operation has not been performed in the past, the display device 3 may prohibit the UNDO function without transmitting the input operation data indicating the UNDO operation to the server 2. That is, the display device 3 may enable the UNDO function only when the same user as the user who has performed the input operation performs an UNDO operation for undoing the input operation.
The display device 3 may receive an UNDO operation in a state where two or more input operation items are selected in the operation history area 52. In this case, the display device 3 may extract the input operation item corresponding to the input operation performed in the past via the input unit 34, from among the two or more selected input operation items. The display device 3 may transmit, to the server 2, the input operation data indicating an UNDO operation for undoing the input operation corresponding to the extracted input operation item. On the other hand, the server 2 may select the UNDO code from the history information Us based on the received input operation data, and execute the selected UNDO code.
In response to the display device 3 receives a selecting operation for selecting an input operation item in the operation history area 52, the display device 3 may determine whether an input operation corresponding to the selected input operation item has been performed in the past via the input unit 34. The display device 3 may extract input operation items corresponding to the input operations performed in the past via the input unit 34 and transmit the input operation data indicating these selecting operations to the server 2. On the other hand, with respect to the input operation items corresponding to the input operations that have not been performed in the past via the input unit 34, the display device 3 may prohibit the server 2 from deleting an UNDO code from the history information Us without transmitting input operation data indicating a selecting operation to the server 2. That is, the display device 3 may delete the selected input operation item in the operation history area 52 only when the user performs the selecting operation for selecting and deleting the input operation performed by the user. The server 2 may be another example of the “history management device” of the disclosure.
While the disclosure has been described in detail with reference to the specific embodiments thereof, those are merely examples, and various changes, arrangements and modifications may be applied therein without departing from the spirit and scope of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2021-204627 | Dec 2021 | JP | national |
This is a continuation application of International Application No. PCT/JP2022/045434 filed on Dec. 9, 2022, which claims priority from Japanese Patent Application No. 2021-204627 filed on Dec. 16, 2021. The entire contents of the aforementioned applications are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2022/045434 | Dec 2022 | WO |
Child | 18742285 | US |