CN112148190A - Operation control method, operation control device, electronic device, and storage medium - Google Patents

Operation control method, operation control device, electronic device, and storage medium Download PDF

Info

Publication number
CN112148190A
CN112148190A CN202011011369.4A CN202011011369A CN112148190A CN 112148190 A CN112148190 A CN 112148190A CN 202011011369 A CN202011011369 A CN 202011011369A CN 112148190 A CN112148190 A CN 112148190A
Authority
CN
China
Prior art keywords
state data
operation mode
trigger
control
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011011369.4A
Other languages
Chinese (zh)
Inventor
李季红
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.)
Shanghai United Imaging Healthcare Co Ltd
Original Assignee
Shanghai United Imaging Healthcare Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai United Imaging Healthcare Co Ltd filed Critical Shanghai United Imaging Healthcare Co Ltd
Priority to CN202011011369.4A priority Critical patent/CN112148190A/en
Publication of CN112148190A publication Critical patent/CN112148190A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an operation control method, an operation control device, electronic equipment and a storage medium. The method comprises the following steps: respectively recording state data corresponding to each processing operation in each operation mode to form a state data list corresponding to each operation mode, wherein the operation modes comprise a global operation mode and a local operation mode; when the triggering operation of a user on any control is detected, determining the current operation mode of the triggering operation; and determining a state data list corresponding to the trigger operation based on the current operation mode, and responding to the trigger operation based on the state data list corresponding to the trigger operation. The method has the advantages that the state when the complex operation is entered can be effectively and quickly returned, and the modification effect of the complex operation can be effectively cancelled or redone by one key.

Description

Operation control method, operation control device, electronic device, and storage medium
Technical Field
Embodiments of the present invention relate to computer technologies, and in particular, to an operation control method and apparatus, an electronic device, and a storage medium.
Background
As with most conventional software, the Undo/Redo/Reset function is a common function of image post-processing software.
At present, there is only one set of Undo Redo functions in the existing Undo Redo functions, for example, to support a complex operation Undo/Redo sub-operation, an Undo/Redo item corresponding to the sub-operation is recorded in an Undo/Redo queue in a global mode, so that many steps need to be cancelled to return to a state when the complex operation is entered (even the state when the complex operation is entered cannot be returned to because the Undo operation is limited in an image processing system, such as 10 steps). At this time, the Reset key of the global Undo/Redo cannot be used either, because the state at the time of entering the system is returned.
The undo function in the prior art cannot be returned to the state when complex operation is entered by one key, and cannot be cancelled or redone the modification made by the complex operation by one key.
Disclosure of Invention
Embodiments of the present invention provide an operation control method, an operation control apparatus, an electronic device, and a storage medium, so as to implement efficient and fast fallback to a state when entering a complex operation, and an effect of modifying a complex operation by revoking or redoing the complex operation with one key.
In a first aspect, an embodiment of the present invention provides an operation control method, where the method includes:
respectively recording state data corresponding to each processing operation in each operation mode to form a state data list corresponding to each operation mode, wherein the operation modes comprise a global operation mode and at least one local operation mode;
when the triggering operation of a user on any control is detected, determining the current operation mode of the triggering operation;
and determining a state data list corresponding to the trigger operation based on the current operation mode, and responding to the trigger operation based on the state data list corresponding to the trigger operation.
In a second aspect, an embodiment of the present invention further provides an operation control apparatus, including:
the system comprises a state data list forming module, a state data list generating module and a state data processing module, wherein the state data list forming module is used for respectively recording state data corresponding to each processing operation in each operation mode and forming a state data list corresponding to each operation mode, and the operation modes comprise a global operation mode and at least one local operation mode;
the operation mode determining module is used for determining the current operation mode of any control when the triggering operation of a user is detected;
and the trigger operation response module is used for determining a state data list corresponding to the trigger operation based on the current operation mode and responding to the trigger operation based on the state data list corresponding to the trigger operation.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the operation control method according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the operation control method described in any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the state data list corresponding to each operation mode is formed by respectively recording the state data corresponding to each processing operation in each operation mode, wherein the operation modes comprise a global operation mode and a local operation mode, and the dual operation mode of the local operation mode and the global operation mode is set, so that each operation can be linked, and the corresponding processing operation can be responded based on the processing operation in each operation mode in the following process. When the trigger operation of a user on any control is detected, the current operation mode of the trigger operation is determined, the state data list corresponding to the trigger operation is determined based on the current operation mode, and the trigger operation is responded based on the state data list corresponding to the trigger operation. When the complex operation is completed, the modification corresponding to all local operations is recorded into the global mode state data list as a whole, so that the effect of one-key undo and redo of the complex operation in the global operation mode is realized.
Drawings
FIG. 1 is a flow chart of an operation control method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating an operation of clicking a cancel control according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an operation performed when the redo control is clicked according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an operation of clicking a reset control according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another operation of clicking a cancel control according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating another operation of clicking a redo control in accordance with an embodiment of the present invention;
FIG. 7 is a schematic structural view of an operation control device according to a second embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device in a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an operation control method according to an embodiment of the present invention, where this embodiment is applicable to a situation of undo, redo, and recovery in a complex operation, and the method may be executed by an operation mode conversion apparatus, where the operation mode conversion apparatus may be implemented by software and/or hardware, and the operation mode conversion apparatus may be configured on a computing device, and specifically includes the following steps:
and S110, respectively recording state data corresponding to each processing operation in each operation mode, and forming a state data list corresponding to each operation mode, wherein the operation modes comprise a global operation mode and at least one local operation mode.
Illustratively, the processing operation may be a complex operation and a simple operation, and the processing operation may be configured with an operation identifier, where the operation identifier includes a complex operation identifier and a simple operation identifier. When the user clicks different operation marks, the system enters different operation modes.
When the user clicks different operation identifiers, the system enters different operation modes, specifically, when it is detected that the processing operation of the simple operation identifier is triggered, the system is controlled to enter the global operation mode, and when it is detected that the processing operation of the complex operation identifier is triggered, the system is controlled to enter the local operation mode.
Wherein, the local operation mode can have a plurality of local operation modes. The plurality of local operation modes may be distinguished according to a plurality of classification methods. A plurality of local operation modes can be distinguished according to image attributes, such as a horizontal image local operation mode, a coronal image local operation mode, a sagittal image local operation mode, a left image local operation mode, a lower image local operation mode and the like; local operation modes can be distinguished according to different tissues in the image, such as a blood vessel image local operation mode, a bone image local operation mode and the like; the local operation modes can be distinguished according to different image post-processing methods, such as a tissue segmentation local operation mode, a lesion marking local operation mode, a surgical planning local operation mode and the like.
It should be noted that the operation mode here may also be a local operation mode only, and there is no global operation mode. For example, the operation mode here may be a horizontal-only image local operation mode, a coronal image local operation mode, a sagittal image local operation mode, a left-side image local operation mode, a lower image local operation mode, or the like, without a global operation mode.
In the actual operation process, the operation mode can be set by self according to the actual requirement, and may be a global operation mode and at least one local operation mode, or only a plurality of local operation modes without the global operation mode. And are not limited herein.
Different operation modes may correspond to different operation identifiers, so that when the user clicks different operation identifiers, the system enters different operation modes, specifically, when it is detected that the triggered operation identifier of the current processing operation is different from the operation identifier of the previous current processing operation, the current operation mode is switched. For example, if the operation identifier of the current processing operation is a simple operation identifier, and the operation identifier of the previous current processing operation is a complex operation identifier, when it is detected that the current simple operation identifier is triggered, the local operation mode is switched to the global operation mode.
Optionally, the state data corresponding to each processing operation in each operation mode is recorded respectively, and a state data list corresponding to each operation mode is formed.
Illustratively, when a processing operation in the local operation mode is detected, recording the state data corresponding to the processing operation in the local operation mode in a state data list corresponding to the local operation mode; when the processing operation in the global operation mode is detected, recording the state data corresponding to the processing operation in the global operation mode in the state data list corresponding to the global operation mode.
In this way, the status data corresponding to each processing operation in each operation mode is recorded in the status data list corresponding to each operation mode, so that the corresponding processing is performed based on the processing operation in each operation mode.
Here, the simple operation may be a single operation that can generate a result desired by the user, and there is no correlation between a plurality of operations. A complex operation may refer to an operation that includes multiple sub-operations, i.e., an operation that consists of multiple simple operations, i.e.: generating the result required by the user requires a plurality of steps.
When the system detects that the local operation mode is switched to the global operation mode, the modification of a plurality of sub-operations under the corresponding complex operation is taken as an integral modification record and is inserted into the state data list corresponding to the global operation mode, so that the effect of canceling/redoing the complex operation by one key is realized.
By thus setting a dual operation or multi operation mode of the local operation mode and the global operation mode, the respective operations can be linked so that the corresponding processing operation can be responded to subsequently based on the processing operation in each operation mode.
And S120, when the triggering operation of the user on any control is detected, determining the current operation mode of the triggering operation.
Exemplary, the control controls may be an Undo (Undo) control, a Redo (Redo) control, and a Redo (Reset) control.
The current operation mode may be an operation mode in which the system is currently located when the user clicks any one of the Undo control, the Redo control, and the Reset control.
When a user clicks any one of the Undo control, the Redo control and the Reset control, the current operation mode of the system when the user clicks the control can be determined according to the control clicked by the user. I.e., determine the Undo control, the Redo control, or the Reset control for which mode of operation is a click.
Specifically, refer to the operation flowchart when the cancel control is clicked, the operation flowchart when the redo control is clicked, and the operation flowchart when the reset control is clicked, which are described in fig. 2, and fig. 4.
And when the user clicks the control, judging the current operation mode, so as to be convenient for the subsequent trigger operation based on the response control in the current operation mode.
S130, determining a state data list corresponding to the trigger operation based on the current operation mode, and responding to the trigger operation based on the state data list corresponding to the trigger operation.
Illustratively, according to the determined current operation mode and the triggering operation on any one of the Undo control, the Redo control and the Reset control, a state data list corresponding to the triggering operation is determined, and the triggering operation on any one of the Undo control, the Redo control and the Reset control is responded based on the state data list corresponding to the triggering operation on any one of the Undo control, the Redo control and the Reset control.
Optionally, when the trigger operation is a trigger operation on the Undo control, the trigger operation is responded based on a state data list corresponding to the trigger operation, specifically, based on the trigger operation on the Undo control in the current operation mode, state data in a preset step is extracted from the state data list corresponding to the trigger operation, and a modification operation corresponding to the state data in the preset step is cancelled in response to the modification operation corresponding to the state data in the preset step.
For example, the preset step may be a preset number of steps, for example, a previous step or previous steps of the trigger operation.
According to the current operation mode, under the current operation mode, according to the trigger operation on the Undo control, extracting the state data of the preset step from the state data list corresponding to the trigger operation on the Undo control under the current operation mode, and responding to the modification operation corresponding to the state data of the preset step, and canceling the modification operation corresponding to the state data of the preset step.
Specifically, as shown in fig. 2, the triggering operation is a triggering operation on a cancel control:
if the current operation mode is the global operation mode, the preset step is the previous step of the trigger operation. In the global operation mode, according to the trigger operation on the Undo control, extracting the state data of the step before the trigger operation on the Undo control in the global operation mode from the state data list corresponding to the global operation mode, and in response to the modification operation corresponding to the state data of the step before the trigger operation on the Undo control in the global operation mode, canceling the modification operation corresponding to the state data of the step before the trigger operation on the Undo control in the global operation mode, namely canceling the modification operation of the step before the trigger operation on the Undo control in the global operation mode.
If the current operation mode is the local operation mode, the preset step is the previous step of the trigger operation. In the local operation mode, according to the trigger operation on the Undo control, extracting the state data of the previous step of the trigger operation on the Undo control in the local operation mode from the state data list corresponding to the local operation mode, and in response to the modification operation corresponding to the state data of the previous step of the trigger operation on the Undo control in the local operation mode, canceling the modification operation corresponding to the state data of the previous step of the trigger operation on the Undo control in the local operation mode, namely canceling the modification operation of the previous sub-step of the trigger operation on the Undo control in the local operation mode.
Optionally, when the trigger operation is a trigger operation on a Redo control, the trigger operation is responded based on a state data list corresponding to the trigger operation, specifically, based on the trigger operation on the Redo control in the current operation mode, state data in a preset step is extracted from the state data list corresponding to the trigger operation, and a modification operation corresponding to the state data in the preset step is redone in response to the modification operation corresponding to the state data in the preset step.
Illustratively, according to a current operation mode, in the current operation mode, according to a trigger operation on the Redo control, extracting state data of a preset step from a state data list corresponding to the trigger operation on the Redo control in the current operation mode, and in response to a modification operation corresponding to the state data of the preset step, redoing the modification operation corresponding to the state data of the preset step.
Specifically, as shown in fig. 3, the trigger operation is a trigger operation on the redo control:
if the current operation mode is the global operation mode, the preset step is the previous step of the trigger operation. In the global operation mode, according to the trigger operation on the Redo control, extracting the state data of the step before the trigger operation on the Redo control in the global operation mode from the state data list corresponding to the global operation mode, responding to the modification operation corresponding to the state data of the step before the trigger operation on the Redo control in the global operation mode, and redoing the modification operation corresponding to the state data of the step before the trigger operation on the Redo control in the global operation mode, namely redoing the modification operation of the step before the trigger operation on the Redo control in the global operation mode.
If the current operation mode is the local operation mode, the preset step is the previous step of the trigger operation. In the local operation mode, according to the trigger operation on the Redo control, extracting the state data of the step before the trigger operation on the Redo control in the local operation mode from the state data list corresponding to the local operation mode, and in response to the modification operation corresponding to the state data of the step before the trigger operation on the Redo control in the local operation mode, redoing the modification operation corresponding to the state data of the step before the trigger operation on the Redo control in the local operation mode, namely redoing the modification operation of the sub-step before the trigger operation on the Redo control in the local operation mode.
Optionally, when the triggering operation is a triggering operation on a Reset control, the triggering operation is responded based on a state data list corresponding to the triggering operation, specifically, initial state data of the current operation mode is extracted from the state data list corresponding to the triggering operation based on the triggering operation on the Reset control in the current operation mode, and a state corresponding to the initial state data of the current operation mode is returned in response to the initial state data.
For example, the initial state data may be state data when loading of each operation mode is completed, that is, may be state data when entering each operation mode.
If the current operation mode is the local operation mode, the initial state data may be the state data when the complex operation is entered (i.e., when the local operation mode is entered). If the current operation mode is the global operation mode, the initial state data may be the state data when the system response is completed.
Illustratively, according to the current operation mode, in the current operation mode, according to the triggering operation on the Reset control, extracting the initial state data of the current operation mode from the state data list corresponding to the triggering operation on the Reset control in the current operation mode, and returning the state corresponding to the initial state data of the current operation mode in response to the initial state data.
Specifically, as shown in fig. 4, the trigger operation is a trigger operation on the reset control:
if the current operation mode is the global operation mode, the initial state data is the state data when the system response is completed. In the global operation mode, according to the triggering operation of the Reset control, extracting the initial state data of the global operation mode from the state data list corresponding to the global operation mode, responding to the initial state data of the global operation mode, returning to the state corresponding to the initial state data of the current operation mode, namely, all the modification operation and/or redo operation are/is cancelled before the triggering operation of the Reset control, and the system enters the state when the system response is completed.
If the current operation mode is the local operation mode, the initial state data is the state data when the complex operation is entered (i.e. the local operation mode is entered). At this time, each local operation (i.e. each sub-operation) is regarded as a whole, in the local operation mode, according to the triggering operation on the Reset control, the initial state data of the local operation mode is extracted from the state data list corresponding to the local operation mode, and in response to the initial state data of the global operation mode, the state when the system enters the complex operation (i.e. enters the local operation mode) is returned, i.e. all the modification operations and/or redo operations of all the sub-operations before the triggering operation of the Reset control are cancelled, and the system enters the state when the system enters the complex operation (i.e. enters the local operation mode).
Therefore, the problems that in the prior art, if the modification before the undo or redo is needed, many steps need to be undone or redo, the steps needing to be undone or redo cannot be returned to the place where the steps need to be undone or redo, and the state when complex operation is entered cannot be returned by one key are solved.
Specifically, with the current operation mode as the local operation mode, the system detects that the complex operation has been completed and exits the current complex operation. At this time, all modifications made in the local operation mode are recorded as a whole in the state data list of the global operation mode. At the same time, the system switches from the local mode of operation to the global mode of operation. In the global operation mode, according to the operation triggered by the Undo operation control, the state data (the whole state data recorded by the complex operation) of the previous step of the triggering operation of the Undo control in the global operation mode is extracted from the state data list corresponding to the global operation mode, namely, the modification made by the previous complex operation is cancelled. In the global operation mode, according to the operation triggered by the Redo operation control, the state data (the whole state data recorded by the complex operation) of the previous step of the trigger operation of the Redo control in the global operation mode is extracted from the state data list corresponding to the global operation mode, namely, the modification made by the undone complex operation is redone. Therefore, the problem that complex operation cannot be cancelled or redone by one key in the prior art is solved.
The above embodiment has given the operation control method when the operation mode includes one local operation mode and one global operation mode, and the present invention can also be applied to the operation control method when the operation mode includes one global operation mode and a plurality of local operation modes, or to the operation control method when the operation mode includes a plurality of local operation modes.
The operation control method applied to the operation mode comprising the global operation mode and the plurality of local operation modes has the advantages that the local operation modes can be obtained by dividing and selecting in the global operation mode, and therefore the undo or redo operation can be flexibly performed on part of the operation. For example, in image post-processing, image post-processing is used as a global operation mode, a certain part or a certain type of processing of an image is selected as a first local operation mode, and another part or another type of processing of the image is selected as a second local operation mode, wherein the selection method can be obtained by tissue segmentation or manual segmentation; it is also possible to select a certain type of operation as the first local operation mode and another type of operation as the second local operation mode in any one of the operation modes. The specific operation mode includes a global operation mode and a plurality of local operation modes, which refer to another operation flowchart when the undo control is clicked illustrated in fig. 5 and another operation flowchart when the redo control is clicked illustrated in fig. 6. The technical scheme is similar to the above embodiments, and the differences between the technical scheme and the preset steps are multiple, and detailed description of specific embodiment modes is omitted here.
The essence of the operation control method applied to the case where the operation mode includes a plurality of local operation modes is to use the plurality of local operation modes as global operation modes, that is, it is equivalent to a scheme in which the operation modes are executed in parallel in the prior art, but there is a certain correlation between the plurality of local operation modes in the embodiment of the present invention, for example, in image post-processing, a certain part or a certain type of processing of an image is selected as a first local operation mode, and another part or another type of processing is selected as a second local operation mode. The two local operation modes have certain relevance, and the two local operation modes are combined to form the whole image post-processing process. The technical scheme is similar to the above embodiments, and is not described herein again.
According to the technical scheme of the embodiment of the invention, the state data list corresponding to each operation mode is formed by respectively recording the state data corresponding to each processing operation in each operation mode, wherein the operation modes comprise a global operation mode and a local operation mode, and the dual operation mode of the local operation mode and the global operation mode is set, so that each operation can be linked, and the corresponding processing operation can be responded based on the processing operation in each operation mode in the following process. When the trigger operation of a user on any control is detected, the current operation mode of the trigger operation is determined, the state data list corresponding to the trigger operation is determined based on the current operation mode, and the trigger operation is responded based on the state data list corresponding to the trigger operation, so that the problem that in the prior art, when all modifications made under the complex operation need to be reset, many steps need to be cancelled or redone, and the state when the complex operation is entered cannot be backed by one key, the effect of efficiently and quickly reverting to the state when the complex operation is entered is realized, and when the complex operation is completed, the modifications made by the local operations are recorded into the global mode state data list as a whole, so that the effect of cancelling or redoing the complex operation by one key under the global operation mode is realized.
Example two
Fig. 7 is a schematic structural diagram of an operation control device according to a second embodiment of the present invention, and as shown in fig. 7, the device includes: a status data list forming module 31, an operation mode determining module 32, and a trigger operation responding module 33.
The state data list forming module 31 is configured to record state data corresponding to each processing operation in each operation mode, and form a state data list corresponding to each operation mode, where the operation modes include a global operation mode and at least one local operation mode;
the operation mode determining module 32 is configured to, when a trigger operation of a user on any control is detected, determine a current operation mode in which the trigger operation is located;
and a trigger operation response module 33, configured to determine, based on the current operation mode, a state data list corresponding to the trigger operation, and respond to the trigger operation based on the state data list corresponding to the trigger operation.
On the basis of the technical solution of the above embodiment, the state data list forming module 31 is specifically configured to:
when a processing operation in each operation mode is detected, state data corresponding to the processing operation in each operation mode is recorded in a state data list corresponding to each operation mode, respectively.
Optionally, each processing operation is configured with an operation identifier, where the operation identifier includes a complex operation identifier and a simple operation identifier.
On the basis of the technical scheme of the embodiment, the device further comprises:
the first control module is used for controlling to enter the global operation mode when the processing operation of the simple operation identifier is triggered, and controlling to enter the local operation mode when the processing operation of the complex operation identifier is triggered;
or,
the first control module is used for switching the current operation mode when detecting that the operation identifier of the triggered current processing operation is different from the operation identifier of the last current processing operation.
On the basis of the technical solution of the above embodiment, the control includes: cancelling the control; the trigger operation response module 33 is specifically configured to:
determining a state data list corresponding to the trigger operation based on a current operation mode, extracting state data of a preset step from the state data list corresponding to the trigger operation based on the trigger operation of the redo control in the current operation mode, and canceling the modification operation corresponding to the state data of the preset step in response to the modification operation corresponding to the state data of the preset step.
On the basis of the technical solution of the above embodiment, the control includes: redoing the control; the trigger operation response module 33 is specifically configured to:
determining a state data list corresponding to the trigger operation based on a current operation mode, extracting state data of a preset step from the state data list corresponding to the trigger operation based on the trigger operation of the redo control in the current operation mode, and redoing the modification operation corresponding to the state data of the preset step in response to the modification operation corresponding to the state data of the preset step.
On the basis of the technical solution of the above embodiment, the control includes: restoring the control; the trigger operation response module 33 is specifically configured to:
determining a state data list corresponding to the trigger operation based on a current operation mode, extracting initial state data of the current operation mode from the state data list corresponding to the trigger operation based on the trigger operation on the recovery control in the current operation mode, and returning a state corresponding to the initial state data of the current operation mode in response to the initial state data.
The operation control device provided by the embodiment of the invention can execute the operation control method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 8 is a schematic structural diagram of an electronic apparatus according to a third embodiment of the present invention, as shown in fig. 8, the electronic apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of the processors 70 in the electronic device may be one or more, and one processor 70 is taken as an example in fig. 8; the processor 70, the memory 71, the input device 72 and the output device 73 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 8.
The memory 71, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the operation control method in the embodiment of the present invention (for example, the state data list formation module 31, the operation mode determination module 32, and the trigger operation response module 33). The processor 70 executes various functional applications and data processing of the electronic device by executing software programs, instructions, and modules stored in the memory 71, that is, implements the operation control method described above.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus. The output device 73 may include a display device such as a display screen.
Example four
A fourth embodiment of the present invention further provides a storage medium containing computer-executable instructions for performing an operation control method when executed by a computer processor.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also execute the relevant operations in the operation control method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the operation control device, the included units and modules are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An operation control method characterized by comprising:
respectively recording state data corresponding to each processing operation in each operation mode to form a state data list corresponding to each operation mode, wherein the operation modes comprise a global operation mode and at least one local operation mode;
when the triggering operation of a user on any control is detected, determining the current operation mode of the triggering operation;
and determining a state data list corresponding to the trigger operation based on the current operation mode, and responding to the trigger operation based on the state data list corresponding to the trigger operation.
2. The method according to claim 1, wherein the recording the status data corresponding to each processing operation in each operation mode respectively to form the status data list corresponding to each operation mode comprises:
when a processing operation in each operation mode is detected, state data corresponding to the processing operation in each operation mode is recorded in a state data list corresponding to each operation mode, respectively.
3. The method of claim 1, wherein each processing operation is configured with an operation identifier, wherein the operation identifier comprises a complex operation identifier and a simple operation identifier;
the method further comprises the following steps:
when the processing operation of the simple operation identifier is detected to be triggered, controlling to enter the global operation mode, and when the processing operation of the complex operation identifier is detected to be triggered, controlling to enter the local operation mode;
or,
and when detecting that the operation identifier of the current processing operation is different from the operation identifier of the last current processing operation, switching the current operation mode.
4. The method of claim 1, wherein the control comprises: cancelling the control;
the responding to the trigger operation based on the state data list corresponding to the trigger operation comprises:
extracting state data of a preset step from a state data list corresponding to the trigger operation based on the trigger operation of the redo control in the current operation mode, and canceling the modification operation corresponding to the state data of the preset step in response to the modification operation corresponding to the state data of the preset step.
5. The method of claim 1, wherein the control comprises: redoing the control;
the responding to the trigger operation based on the state data list corresponding to the trigger operation comprises:
extracting state data of a preset step from a state data list corresponding to the trigger operation based on the trigger operation of the redo control in the current operation mode, and redoing the modification operation corresponding to the state data of the preset step in response to the modification operation corresponding to the state data of the preset step.
6. The method of claim 1, wherein the control comprises: restoring the control;
the responding to the trigger operation based on the state data list corresponding to the trigger operation comprises:
based on the trigger operation of the recovery control in the current operation mode, extracting the initial state data of the current operation mode from a state data list corresponding to the trigger operation, and responding to the initial state data and returning to the state corresponding to the initial state data of the current operation mode.
7. An operation control device characterized by comprising:
the state data list forming module is used for respectively recording state data corresponding to each processing operation in each operation mode and forming a state data list corresponding to each operation mode, wherein the operation modes comprise a global operation mode and a local operation mode;
the operation mode determining module is used for determining the current operation mode of any control when the triggering operation of a user is detected;
and the trigger operation response module is used for determining a state data list corresponding to the trigger operation based on the current operation mode and responding to the trigger operation based on the state data list corresponding to the trigger operation.
8. The apparatus of claim 7, wherein each processing operation is configured with an operation identifier, wherein the operation identifier comprises a complex operation identifier and a simple operation identifier;
the device further comprises:
the first control module is used for controlling to enter the global operation mode when the processing operation of the simple operation identifier is triggered, and controlling to enter the local operation mode when the processing operation of the complex operation identifier is triggered;
or,
and the second control module is used for switching the current operation mode when detecting that the operation identifier of the current processing operation is different from the operation identifier of the last current processing operation.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the operation control method of any one of claims 1-6.
10. A storage medium containing computer-executable instructions for performing the operation control method of any one of claims 1 to 6 when executed by a computer processor.
CN202011011369.4A 2020-09-23 2020-09-23 Operation control method, operation control device, electronic device, and storage medium Pending CN112148190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011011369.4A CN112148190A (en) 2020-09-23 2020-09-23 Operation control method, operation control device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011011369.4A CN112148190A (en) 2020-09-23 2020-09-23 Operation control method, operation control device, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN112148190A true CN112148190A (en) 2020-12-29

Family

ID=73897961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011011369.4A Pending CN112148190A (en) 2020-09-23 2020-09-23 Operation control method, operation control device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN112148190A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6527812B1 (en) * 1998-12-17 2003-03-04 Microsoft Corporation Method and system for undoing multiple editing operations
CN102419703A (en) * 2010-09-25 2012-04-18 上海无戒空间信息技术有限公司 Visualization method and system of stack data
CN104238865A (en) * 2013-06-08 2014-12-24 深圳联友科技有限公司 Method and system for canceling and repeating interface operations in electronic device
CN109521914A (en) * 2017-09-19 2019-03-26 阿里巴巴集团控股有限公司 Restore the methods, devices and systems of data in file
CN111459717A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Operation control method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6527812B1 (en) * 1998-12-17 2003-03-04 Microsoft Corporation Method and system for undoing multiple editing operations
CN102419703A (en) * 2010-09-25 2012-04-18 上海无戒空间信息技术有限公司 Visualization method and system of stack data
CN104238865A (en) * 2013-06-08 2014-12-24 深圳联友科技有限公司 Method and system for canceling and repeating interface operations in electronic device
CN109521914A (en) * 2017-09-19 2019-03-26 阿里巴巴集团控股有限公司 Restore the methods, devices and systems of data in file
CN111459717A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Operation control method and electronic equipment

Similar Documents

Publication Publication Date Title
US7152080B2 (en) Method, apparatus, and computer readable medium for managing replication of back-up object
US7159081B2 (en) Automatic scenario management for a policy-based storage system
US20070180398A1 (en) Window cleanup via desktop icon
CN107656705B (en) Computer storage medium and data migration method, device and system
CN111047434B (en) Operation record generation method and device, computer equipment and storage medium
US20150324580A1 (en) Apparatus and method for analyzing malicious code in real environment
CN109361553B (en) Configuration rollback method and device
CN113805962A (en) Application page display method and device and electronic equipment
CN111796747B (en) Multi-open application processing method and device and electronic equipment
CN109983428A (en) A kind of operating method and device of application
US9552443B2 (en) Information processing apparatus and search method
CN109165062A (en) A kind of terminal remote assists control method and system
CN112199136A (en) Notification message aggregation method and device, electronic equipment and storage medium
CN111880708A (en) Interaction method and storage medium for network attack event graph
CN104463014B (en) A kind of oracle database guard method based on snapshot
CN111988322B (en) Attack event display system
CN103019813B (en) Method for obtaining interactive strength of SaaS-based interactive program
CN112148190A (en) Operation control method, operation control device, electronic device, and storage medium
CN118246423A (en) Cell verification method, device and equipment based on form and storage medium
CN109032762B (en) Virtual machine backtracking method and related equipment
CN112416212A (en) Program access method, device, electronic equipment and readable storage medium
CN104951920B (en) service interface processing device and method
CN116991547A (en) Transaction execution method, device, terminal equipment and storage medium based on sub-transaction
CN113778399B (en) Configuration method and device of bottom layer channel
CN111651324B (en) Log collection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination