CN106598926B - Operation revocation method and device - Google Patents

Operation revocation method and device Download PDF

Info

Publication number
CN106598926B
CN106598926B CN201611073097.4A CN201611073097A CN106598926B CN 106598926 B CN106598926 B CN 106598926B CN 201611073097 A CN201611073097 A CN 201611073097A CN 106598926 B CN106598926 B CN 106598926B
Authority
CN
China
Prior art keywords
display position
determining
displayed
identification
editing
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.)
Active
Application number
CN201611073097.4A
Other languages
Chinese (zh)
Other versions
CN106598926A (en
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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Electric 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 Hisense Electric Co Ltd filed Critical Hisense Electric Co Ltd
Priority to CN201611073097.4A priority Critical patent/CN106598926B/en
Publication of CN106598926A publication Critical patent/CN106598926A/en
Application granted granted Critical
Publication of CN106598926B publication Critical patent/CN106598926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses an operation cancelling method and device, and belongs to the technical field of terminals. The method comprises the following steps: when an operation cancel instruction of a first object is detected, determining a second object based on an object identifier of the first object, wherein the first object is an object displayed at a first display position in a current page and is obtained after editing operation is performed on the second object; determining a second display position; and deleting the first object displayed at the first display position in the current page, and displaying the second object at the second display position to cancel the operation. The embodiment of the invention can directly determine the second object based on the object identification of the first object without performing inverse operation on the first object to obtain the second object, thereby shortening the time for cancelling the operation and improving the efficiency of cancelling the operation. In addition, the user can trigger an operation canceling instruction for an object which is desired to be canceled in the current page, so that the flexibility of canceling operation is increased.

Description

Operation revocation method and device
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to an operation revocation method and apparatus.
Background
With the rapid development of terminal technology, editing objects such as pictures and characters becomes a basic function of a terminal, a user can edit the objects through the terminal, for example, rotating and amplifying the pictures, and when the user thinks that the operation recently completed by the user is a misoperation or thinks that the operation does not reach the desired effect, the user can cancel the completed operation, so that the object corresponding to the operation is restored to the state before the operation.
The commonly used operation revocation method is as follows: when the terminal receives the withdrawal instruction, the terminal executes reverse operation on the object which finally enters the stack from the stack for storing the object so as to realize the withdrawal of the operation. Where the inverse operation is the inverse of the completed operation.
However, in the case where the inversion operation is complicated, the time for performing the inversion operation may be long, thereby reducing the efficiency of the operation retraction. In addition, since the terminal can perform the inverse operation only on the object that has entered the stack last, the terminal cannot undo the operation on other objects.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide an operation revocation method and apparatus. The technical scheme is as follows:
in one aspect, an operation revocation method is provided, and the method includes:
when an operation cancel instruction of a first object is detected, determining a second object based on an object identifier of the first object, wherein the first object is obtained by displaying the second object at a first display position after the second object is edited, and the first object is any object displayed in a current page;
determining a second display position, wherein the second display position is a position where the second object is displayed in the current page before the first object is displayed;
deleting the first object displayed at the first display position in the current page, and displaying the second object at the second display position to cancel the operation.
Optionally, before determining the second object based on the object identifier of the first object, the method further includes:
when the editing operation of the second object is detected, executing the editing operation on the second object to obtain the first object;
determining the first display position, and displaying the first object at the first display position;
after the first object is displayed, storing the second object at the top of an object stack corresponding to the object identifier, wherein the object stack is used for storing objects in different editing operation states;
accordingly, the determining the second object based on the object identification of the first object comprises:
and acquiring an object positioned at the top of the stack from the object stack corresponding to the object identifier, and determining the acquired object as the second object.
Optionally, before determining the second object based on the object identifier of the first object, the method further includes:
when the editing operation of the second object is detected, executing the editing operation on the second object to obtain the first object;
determining the first display position, and displaying the first object at the first display position;
after the first object is displayed, storing the object identification, the operation time for executing the editing operation on the second object and the second object in the corresponding relation among the object identification, the operation time and the object;
accordingly, the determining the second object based on the object identification of the first object comprises:
and acquiring an object with the operation time closest to the current time from the stored object identification, the corresponding relation between the operation time and the object based on the object identification of the first object, and determining the acquired object as the second object.
Optionally, the determining the second display position includes:
when the editing operation belongs to a first type of operation, determining the first display position as the second display position, wherein the first type of operation is an operation of not changing the display position of an object;
and when the editing operation belongs to a second type of operation, acquiring a second display position from the stored corresponding relation among the object identification, the object and the display position based on the object identification and the second object, wherein the second type of operation is an operation for changing the display position of the object.
Optionally, after the performing the editing operation on the second object to obtain the first object, the method further includes:
and when the editing operation belongs to a second type of operation, storing the object identification, the second object and the second display position in the corresponding relation among the object identification, the object and the display position.
In another aspect, there is provided an operation cancelling apparatus including:
the first determining module is used for determining a second object based on an object identifier of a first object when an operation cancel instruction of the first object is detected, wherein the first object is obtained by displaying the second object at a first display position after the second object is edited, and the first object is any one object displayed in a current page;
a second determining module, configured to determine a second display position, where the second display position is a position where the second object is displayed in the current page before the first object is displayed;
and the revocation module is used for deleting the first object displayed at the first display position in the current page and displaying the second object at the second display position so as to realize revocation of operation.
Optionally, the apparatus further comprises:
the first editing module is used for executing the editing operation on the second object to obtain the first object when the editing operation of the second object is detected;
a third determining module, configured to determine the first display position and display the first object at the first display position;
the first storage module is used for storing the second object at the top of an object stack corresponding to the object identifier after the first object is displayed, wherein the object stack is used for storing objects in different editing operation states;
accordingly, the first determining module comprises:
and the first determining unit is used for acquiring an object positioned at the top of the stack from the object stack corresponding to the object identifier when an operation undo instruction of the first object is detected, and determining the acquired object as the second object.
Optionally, the apparatus further comprises:
the second editing module is used for executing the editing operation on the second object to obtain the first object when the editing operation of the second object is detected;
a fourth determining module, configured to determine the first display position and display the first object at the first display position;
the second storage module is used for storing the object identification, the operation time for executing the editing operation on the second object and the second object in the corresponding relation among the object identification, the operation time and the object after the first object is displayed;
accordingly, the first determining module comprises:
and a second determining unit, configured to, when an operation cancelling instruction of a first object is detected, obtain, based on an object identifier of the first object, an object whose operation time is closest to the current time from among stored object identifiers, correspondence relationships between operation times, and objects, and determine the obtained object as the second object.
Optionally, the second determining module includes:
a third determination unit configured to determine the first display position as the second display position when the editing operation belongs to a first type of operation, the first type of operation being an operation in which a display position of an object is not changed;
and the obtaining unit is used for obtaining the second display position from the stored corresponding relation among the object identification, the object and the display position based on the object identification and the second object when the editing operation belongs to a second type of operation, and the second type of operation is an operation for changing the display position of the object.
Optionally, the apparatus further comprises:
and the third storage module is used for storing the object identifier, the second object and the second display position in the corresponding relation among the object identifier, the object and the display position when the editing operation belongs to a second type of operation.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, when the operation cancel instruction of the first object is detected, the second object, namely the object in the state before the editing operation, can be determined based on the object identification of the first object, and because the second object can be stored locally in advance, the terminal can directly determine the second object based on the object identification of the first object without performing the inverse operation on the first object, and because the inverse operation is not required to be performed, the time for canceling the operation is shortened, and the efficiency of the canceling operation is further improved. Since the first object may be any object displayed in the current page, the operation cancelling instruction may be an operation cancelling instruction for any object in the current page, that is, the user may cancel an object that the user wants to cancel, instead of only canceling an editing operation corresponding to an object that has recently performed an editing operation, thereby increasing flexibility of the cancelling operation.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an operation revocation method according to an embodiment of the present invention;
fig. 2A is a block diagram of an operation revocation apparatus according to an embodiment of the present invention;
fig. 2B is a block diagram of another operation cancellation apparatus provided in the embodiment of the present invention;
fig. 2C is a block diagram of a third operation revocation apparatus provided in an embodiment of the present invention;
FIG. 2D is a block diagram of a second determination module provided by embodiments of the present invention;
fig. 2E is a block diagram of a fourth operation revocation apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
An embodiment of the present invention provides an operation revocation method, and referring to fig. 1, the method includes:
step 101: when an operation cancel instruction of a first object is detected, a second object is determined based on an object identifier of the first object, the first object is obtained by displaying the second object at a first display position after the second object is subjected to editing operation, and the first object is any one object displayed in a current page.
It should be noted that the operation canceling instruction may be triggered by a user currently using the terminal through a specified operation, where the specified operation may be a click operation on the first object, a sliding operation on a preset track, or the like.
In addition, when the terminal creates the second object, an object identifier may be assigned to the second object, and since the first object is obtained after the editing operation is performed on the second object, the first object and the second object are substantially represented by objects with the same content in different states, for example, when the second object is a picture 1, and the editing operation is an enlarging operation, the first object obtained after the enlarging operation is performed on the picture 1 of the second object is an enlarged picture 1, that is, the content of the first object and the content of the second object are the same, but the states are different, that is, the sizes are different. Since the first object and the second object are substantially the same content of the object in different states, when the first object is obtained after the terminal performs the editing operation on the second object, the object identifier of the first object may be assigned to the second object, that is, the object identifiers of the first object and the second object are the same. The object id may be a set of numerical sequence numbers, for example, the object id of the first object may be 1, 0001, and so on.
Further, the editing operation may include an enlargement operation, a reduction operation, a rotation operation, a display position movement operation, a font color change operation, and the like.
The terminal determines, based on the object identifier of the first object, the implementation manner of the second object, which may be the following two manners:
the first determination method: and acquiring the object positioned at the top of the stack from the object stack corresponding to the object identifier, and determining the acquired object as a second object, wherein the object stack is used for storing the objects in different editing operation states.
In the object stack corresponding to the object identifier, the terminal may sequentially arrange the objects in different editing operation states from the stack bottom to the stack top according to the time for executing the editing operation, that is, the object located at the stack bottom is an object in an unedited state, that is, the object with the earliest time for the editing operation, and the object located at the stack top is an object with the latest time for the editing operation. Because each object identifier corresponds to one object stack, the terminal can cancel the editing operation performed on the object selected by the user according to the object identifier of the object selected by the user through the designated operation.
For example, the first object displayed in the current page may be picture 4, the object identifier of picture 4 may be 0001, the object stack corresponding to object identifier 0001 may be a stack as shown in table 1 below, in the object stack of 0001, picture 1 may be an object whose time for performing an editing operation on picture 4 is the earliest, that is, an initially created object corresponding to picture 4, picture 2 may be obtained after performing an enlargement operation on picture 1, picture 3 may be obtained after performing a rotation operation on picture 2, and picture 4 may be obtained after performing a reduction operation on picture 3, so that the terminal may determine picture 3 located at the top of the stack from the object stack of 0001 as the second object, that is, the object that is edited most recently before determining picture 4.
TABLE 10001 object Stack
Figure BDA0001165460950000061
In the embodiment of the present invention, only the object stack shown in table 1 is used as an example for description, and table 1 does not limit the embodiment of the present invention.
Further, when the terminal determines the second object according to the first manner, before detecting the operation cancel instruction of the first object, the terminal may further perform the following step (1) including: when the editing operation of the second object is detected, the editing operation is executed on the second object to obtain a first object; determining a first display position, and displaying a first object at the first display position; after the first object is displayed, the second object is stored at the top of the stack of objects corresponding to the object identifier.
The second determination method is as follows: and based on the object identification of the first object, acquiring an object with the operation time closest to the current time from the stored object identification, the corresponding relation between the operation time and the object, and determining the acquired object as a second object.
When the user needs to cancel the editing operation on a certain object, it may be considered that what the user wants to cancel at this time is an editing operation that is executed on the object most recently, and therefore, the terminal may also determine, by the second determination method, the second object, that is, the object that is determined to be in a state before the most recent editing operation. In addition, since the corresponding relationship between the object identifier, the operation time, and the object stores the operation time for performing the editing operation on each object, when the user currently using the terminal does not select an object, that is, when the terminal detects an operation cancel instruction that is not directed to any object, it may be considered that the user only wants to cancel the most recently performed operation, and at this time, the terminal may directly acquire the object whose operation time is closest to the current time from the stored corresponding relationship between the object identifier, the operation time, and the object, and determine the acquired object as the second object.
For example, the current time may be 2016.01.01.10:02:00, the first object may be a picture 014, the object identifier of the first object may be 0001, the correspondence between the object identifier and the operation time stored in the terminal and the object may be as shown in table 2 below, and the terminal may obtain an object picture 013 having the operation time closest to the current time 2016.01.01.10:02:00 from the correspondence between the object identifier and the operation time and the object as shown in table 2 below based on the object identifier 0001 of the first object picture 014 and determine the obtained object picture 013 as the second object.
TABLE 2
Object identification Time of operation Object
0001 2016.01.01.09:59:00 Picture 011
0001 2016.01.01.10:00:00 Picture 012
0001 2016.01.01.10:00:45 Picture 013
0002 2016.01.01.10:01:13 Picture 021
…… …… ……
In the embodiment of the present invention, only the correspondence between the object identifier, the operation time, and the object shown in table 2 above is taken as an example for description, and table 2 above does not limit the embodiment of the present invention.
Further, when the terminal determines the second object according to the second manner, before detecting the operation cancel instruction of the first object, the terminal may further perform the following step (2) including: when the editing operation of the second object is detected, the editing operation is executed on the second object to obtain a first object; determining a first display position, and displaying a first object at the first display position; after the first object is displayed, the object identification, the operation time for performing the editing operation on the second object and the second object are stored in the corresponding relation among the object identification, the operation time and the object.
In practical applications, the terminal may further set a pointer for the first object, where the pointer may point to a physical address of the second object, and then the terminal may directly obtain the second object based on the pointer of the first object. In addition, the terminal may further set the second object as a member variable of the first object after the first object is obtained by performing an editing operation on the second object, and then the terminal may directly obtain the member variable of the first object as the second object based on the first object. The manner of setting the pointer and the member variable may refer to related technologies, which are not described in detail in the embodiments of the present invention.
Further, after the terminal performs the editing operation on the second object in step (1) or step (2) to obtain the first object, any one of the following steps (3) and (4) may also be performed.
And (3): comparing the editing operation performed on the second object with the operations in the stored first-class operation list and the second-class operation list to determine whether the editing operation belongs to the first-class operation or the second-class operation; and when the editing operation belongs to the second type of operation, storing the object identification, the second object and the second display position of the second object in the corresponding relation among the object identification, the object and the display position.
Wherein the first type of operation is an operation of not changing the display position of the object, and the first type of operation may include an enlargement operation, a reduction operation, a rotation operation, a change font color operation, a highlight operation, and the like. The second type of operation is an operation of changing the display position of the object, and may include a display position moving operation or the like.
When the terminal performs the step (3), if the editing operation belongs to the first class of operation, the terminal may determine that the display positions of the first object and the second object are the same, and at this time, the terminal may not perform any operation, and if the editing operation belongs to the second class of operation, the terminal may determine that the display positions of the first object and the second object are different, and at this time, the terminal may store the object identifier of the second object, and the second display position in the correspondence relationship between the object identifier, the object, and the display position, so that when the editing operation is undone, the second display position may be obtained from the correspondence relationship.
And (4): and storing the object identification, the second object and the second display position of the second object in the corresponding relation among the object identification, the object and the display position.
When the terminal executes the step (4), the terminal does not need to distinguish whether the editing operation belongs to the first type of operation or the second type of operation, that is, no matter whether the editing operation belongs to the first type of operation or the second type of operation, the terminal can directly store the object identifier, the second object and the second display position of the second object in the corresponding relationship among the object identifier, the object and the display position, and at this time, the second display position may be the same as the first display position, that is, in the case that the editing operation belongs to the first type of operation, the second display position may also be different from the first display position, that is, in the case that the editing operation belongs to the second type of operation.
In addition, after the terminal performs an editing operation on the second object to obtain the first object, the first object may be stored in a latest state list, where the latest state list is used to store each object displayed in the current page, that is, an object in the latest state in the objects corresponding to each object identifier, and when the terminal is suddenly powered off or needs to restore the current page, the terminal may also display each object stored in the latest state list on the screen to restore the current page.
Further, before performing the step (1) or the step (2), the terminal may further perform the following steps, including: when an object creating instruction of a third object is detected, displaying the third object at a third display position, wherein the third display position is a display position carried by the object creating instruction; allocating an object identifier for the third object; and storing the object identification, the third object and the third display position of the third object in the corresponding relation among the object identification, the object and the display position.
The third object is an object corresponding to the first object and in an initial state, that is, the terminal first creates the third object, then performs a certain editing operation on the third object to obtain the second object, and then performs a certain editing operation on the second object to obtain the first object.
It should be noted that, when the object identifier of the third object is the third object created by the terminal, the object identifier allocated to the third object is used to distinguish the third object from other objects displayed in the current page, that is, the terminal may allocate different object identifiers to each object in the current page, so that the corresponding object may be determined according to the object identifiers.
Step 102: a second display position is determined, the second display position being a position at which the second object is displayed in the current page before the first object is displayed.
When the terminal performs the editing operation on the second object in step (1) or step (2) to obtain the first object and then performs step (3), the manner of determining the second display position by the terminal may be: when the editing operation belongs to a first type of operation, determining the first display position as a second display position; and when the editing operation belongs to the second type of operation, acquiring a second display position from the stored corresponding relation among the object identification, the object and the display position based on the object identification and the second object.
When the editing operation performed on the second object belongs to the first type of operation, the terminal may determine that the display position of the second object is not changed when the editing operation is performed on the second object, that is, the display positions of the first object and the second object obtained after the editing operation is performed on the second object are the same, and therefore, the terminal may directly determine the first display position as the second display position.
When the editing operation performed on the second object belongs to the second type of operation, the terminal may determine that the display position of the second object is changed when the editing operation is performed on the second object, that is, the display positions of the first object and the second object obtained after the editing operation is performed on the second object are different, and therefore, the terminal needs to obtain the second display position from the stored object identifier, the corresponding relationship between the object and the display position.
When the terminal performs the editing operation on the second object in step (1) or step (2) to obtain the first object, and then performs step (4), the terminal may determine the second display position by: and acquiring a second display position from the stored corresponding relation among the object identification, the object and the display position based on the object identification and the second object.
Step 103: and deleting the first object displayed at the first display position in the current page, and displaying the second object at the second display position to cancel the operation.
When the terminal needs to cancel the editing operation on the second object, the first object is considered not to be the object that the user wants to obtain, and the terminal does not need to display the first object at this time, so that the terminal can delete the first object displayed at the first display position in the current page. When the terminal needs to cancel the editing operation on the second object, it may be considered that the user wants to obtain the second object before the editing operation is performed, so the terminal may display the second object at the second position, that is, display the object before the editing operation is performed at the position before the editing operation is performed, thereby canceling the operation on the second object.
In the embodiment of the invention, when the operation cancel instruction of the first object is detected, the second object, namely the object in the state before the editing operation, can be determined based on the object identification of the first object, and because the second object can be stored locally in advance, the terminal can directly determine the second object based on the object identification of the first object without performing the inverse operation on the first object to obtain the second object, and because the inverse operation is not required to be performed, the time for canceling the operation is shortened, and the efficiency of the canceling operation is improved. Since the first object may be any object displayed in the current page, the operation cancelling instruction may be an operation cancelling instruction for any object in the current page, that is, the user may cancel an object that the user wants to cancel, instead of only canceling an editing operation corresponding to an object that has recently performed an editing operation, thereby increasing flexibility of the cancelling operation.
An embodiment of the present invention provides an operation revocation apparatus 200, referring to fig. 2A, including: a first determining module 201, a second determining module 202 and a revocation module 203.
A first determining module 201, configured to determine, when an operation cancel instruction of a first object is detected, a second object based on an object identifier of the first object, where the first object is obtained by displaying in a first display position after an editing operation is performed on the second object, and the first object is any object displayed in a current page;
a second determining module 202, configured to determine a second display position, where the second display position is a position where the second object is displayed in the current page before the first object is displayed;
and the undoing module 203 is configured to delete the first object displayed at the first display position in the current page, and display the second object at the second display position, so as to implement undoing of the operation.
Optionally, referring to fig. 2B, the apparatus further comprises:
the first editing module 204 is configured to, when an editing operation of the second object is detected, perform the editing operation on the second object to obtain a first object;
a third determining module 205, configured to determine a first display position, and display the first object at the first display position;
a first storage module 206, configured to store a second object at the top of an object stack corresponding to the object identifier after displaying the first object, where the object stack is used to store objects in different editing operation states;
accordingly, the first determination module 201 includes:
and the first determining unit is used for acquiring an object positioned at the top of the stack from the object stack corresponding to the object identifier when the operation undo instruction of the first object is detected, and determining the acquired object as the second object.
Optionally, referring to fig. 2C, the apparatus further comprises:
the second editing module 207 is configured to, when an editing operation of the second object is detected, perform the editing operation on the second object to obtain a first object;
a fourth determining module 208, configured to determine the first display position and display the first object at the first display position;
a second storage module 209, configured to store, after displaying the first object, the object identifier, the operation time for performing the editing operation on the second object, and the second object in a corresponding relationship between the object identifier, the operation time, and the object;
accordingly, the first determination module 201 includes:
and a second determination unit configured to, when an operation cancelling instruction of the first object is detected, acquire, based on the object identification of the first object, an object whose operation time is closest to the current time from among the stored object identifications, correspondence relationships between the operation times, and the objects, and determine the acquired object as a second object.
Optionally, referring to fig. 2D, the second determining module 202 includes:
a third determination unit 2021 configured to determine the first display position as the second display position when the editing operation belongs to a first type of operation, the first type of operation being an operation of not changing the object display position;
an obtaining unit 2022, configured to, when the editing operation belongs to a second type of operation, obtain a second display position from the stored correspondence between the object identifier, the object, and the display position based on the object identifier and the second object, the second type of operation being an operation of changing the display position of the object.
Optionally, referring to fig. 2E, the apparatus further comprises:
and a third storage module 210, configured to store the object identifier, the second object, and the second display position in a corresponding relationship between the object identifier, the object, and the display position when the editing operation belongs to the second type of operation.
In summary, in the embodiment of the present invention, when an operation cancel instruction of a first object is detected, a second object, that is, an object in a state before an editing operation, may be determined based on an object identifier of the first object, and since the second object may be stored locally in advance, a terminal may directly determine the second object based on the object identifier of the first object, and it is not necessary to perform a reverse operation on the first object to obtain the second object, and since it is not necessary to perform the reverse operation, a time for the cancel operation is shortened, and thus an efficiency of the cancel operation is improved. Since the first object may be any object displayed in the current page, the operation cancelling instruction may be an operation cancelling instruction for any object in the current page, that is, the user may cancel an object that the user wants to cancel, instead of only canceling an editing operation corresponding to an object that has recently performed an editing operation, thereby increasing flexibility of the cancelling operation.
It should be noted that: the operation cancellation apparatus provided in the foregoing embodiment only exemplifies the division of the functional modules when cancelling the operation, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the operation revocation device and the operation revocation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An operation revocation method, characterized in that the method comprises:
when the editing operation of a second object is detected, executing the editing operation on the second object to obtain a first object, wherein the first object and the second object both comprise pictures;
determining a first display position, and displaying the first object at the first display position;
storing the first object in a latest state list, wherein the latest state list is used for storing each object displayed in a current page;
when an operation cancel instruction of a first object is detected, determining a second object based on an object identifier of the first object, wherein the first object is obtained by displaying the second object at a first display position after the second object is edited, and the first object is any object displayed in a current page;
determining a second display position, wherein the second display position is a position where the second object is displayed in the current page before the first object is displayed;
deleting the first object displayed at the first display position in the current page, and displaying the second object at the second display position to cancel the operation;
the determining a second display position comprises:
and when the editing operation belongs to a first type of operation, determining the first display position as the second display position, wherein the first type of operation is an operation of not changing the display position of the object.
2. The method of claim 1, wherein prior to determining the second object based on the object identification of the first object, further comprising:
after the first object is displayed, storing the second object at the top of an object stack corresponding to the object identifier, wherein the object stack is used for storing objects in different editing operation states;
accordingly, the determining the second object based on the object identification of the first object comprises:
and acquiring an object positioned at the top of the stack from the object stack corresponding to the object identifier, and determining the acquired object as the second object.
3. The method of claim 1, wherein prior to determining the second object based on the object identification of the first object, further comprising:
after the first object is displayed, storing the object identification, the operation time for executing the editing operation on the second object and the second object in the corresponding relation among the object identification, the operation time and the object;
accordingly, the determining the second object based on the object identification of the first object comprises:
and acquiring an object with the operation time closest to the current time from the stored object identification, the corresponding relation between the operation time and the object based on the object identification of the first object, and determining the acquired object as the second object.
4. The method of any of claims 1-3, wherein the determining a second display position further comprises:
and when the editing operation belongs to a second type of operation, acquiring a second display position from the stored corresponding relation among the object identification, the object and the display position based on the object identification and the second object, wherein the second type of operation is an operation for changing the display position of the object.
5. The method of claim 2 or 3, wherein after the performing the editing operation on the second object to obtain the first object, further comprises:
and when the editing operation belongs to a second type of operation, storing the object identification, the second object and the second display position in the corresponding relation among the object identification, the object and the display position.
6. An operation cancelling apparatus, characterized in that the apparatus comprises:
the first editing module is used for executing the editing operation on a second object to obtain a first object when the editing operation of the second object is detected, wherein the first object and the second object both comprise pictures;
means for determining a first display position and displaying the first object at the first display position;
means for storing the first object in a most recent state list for storing objects displayed in a current page;
the first determining module is used for determining a second object based on an object identifier of a first object when an operation cancel instruction of the first object is detected, wherein the first object is obtained by displaying the second object at a first display position after the second object is edited, and the first object is any one object displayed in a current page;
a second determining module, configured to determine a second display position, where the second display position is a position where the second object is displayed in the current page before the first object is displayed;
the revocation module is used for deleting the first object displayed at the first display position in the current page and displaying the second object at the second display position so as to realize revocation of operation;
the second determining module includes: a third determination unit configured to determine the first display position as the second display position when the editing operation belongs to a first type of operation, the first type of operation being an operation in which a display position of an object is not changed.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the first storage module is used for storing the second object at the top of an object stack corresponding to the object identifier after the first object is displayed, wherein the object stack is used for storing objects in different editing operation states;
accordingly, the first determining module comprises:
and the first determining unit is used for acquiring an object positioned at the top of the stack from the object stack corresponding to the object identifier when an operation undo instruction of the first object is detected, and determining the acquired object as the second object.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the second storage module is used for storing the object identification, the operation time for executing the editing operation on the second object and the second object in the corresponding relation among the object identification, the operation time and the object after the first object is displayed;
accordingly, the first determining module comprises:
and a second determining unit, configured to, when an operation cancelling instruction of a first object is detected, obtain, based on an object identifier of the first object, an object whose operation time is closest to the current time from among stored object identifiers, correspondence relationships between operation times, and objects, and determine the obtained object as the second object.
9. The apparatus of any of claims 6-8, wherein the second determining module further comprises:
and the obtaining unit is used for obtaining the second display position from the stored corresponding relation among the object identification, the object and the display position based on the object identification and the second object when the editing operation belongs to a second type of operation, and the second type of operation is an operation for changing the display position of the object.
10. The apparatus of claim 7 or 8, wherein the apparatus further comprises:
and the third storage module is used for storing the object identifier, the second object and the second display position in the corresponding relation among the object identifier, the object and the display position when the editing operation belongs to a second type of operation.
CN201611073097.4A 2016-11-29 2016-11-29 Operation revocation method and device Active CN106598926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611073097.4A CN106598926B (en) 2016-11-29 2016-11-29 Operation revocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611073097.4A CN106598926B (en) 2016-11-29 2016-11-29 Operation revocation method and device

Publications (2)

Publication Number Publication Date
CN106598926A CN106598926A (en) 2017-04-26
CN106598926B true CN106598926B (en) 2020-04-21

Family

ID=58593595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611073097.4A Active CN106598926B (en) 2016-11-29 2016-11-29 Operation revocation method and device

Country Status (1)

Country Link
CN (1) CN106598926B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947334B (en) * 2017-12-21 2022-04-05 珠海金山办公软件有限公司 Ink mark canceling method and device and electronic equipment
CN108525297B (en) * 2018-03-07 2019-05-24 腾讯科技(深圳)有限公司 Cartoon display method, device, storage medium and electronic device
CN108989191B (en) 2018-08-20 2020-09-25 北京达佳互联信息技术有限公司 Method for withdrawing picture file, control method and device thereof, and mobile terminal
CN111324400A (en) * 2018-12-17 2020-06-23 中兴通讯股份有限公司 Display method, device, terminal and storage medium
CN111382127B (en) * 2020-02-12 2023-05-23 福建网龙计算机网络信息技术有限公司 Revocation processing method and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003036190A (en) * 2001-07-25 2003-02-07 Oki Electric Ind Co Ltd Undo processing system and method
CN101122906A (en) * 2006-08-09 2008-02-13 北京北大方正电子有限公司 Document storing method and system
CN102456036A (en) * 2010-10-20 2012-05-16 金蝶软件(中国)有限公司 Operation repealing method and system

Also Published As

Publication number Publication date
CN106598926A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106598926B (en) Operation revocation method and device
CN112148174B (en) Application information display method and device and electronic equipment
CN105893084A (en) Version upgrading method and terminal equipment
CN108491145B (en) Handwriting canceling method and device for writing application, storage medium and terminal device
CN101661376A (en) Method for displaying window information, system and display terminal thereof
US20120185794A1 (en) Method and Apparatus for Managing Buttons on Taskbar
CN107608585A (en) The operating method and equipment and mobile terminal of a kind of application program
CN106775233A (en) Icon method for refreshing and terminal in a kind of terminal
CN112132654A (en) Method, device and storage medium for displaying house source information
CN110569224A (en) Data deduplication method and device
CN105184838A (en) Picture processing method and terminal
CN104932774A (en) Information processing method and electronic equipment
CN106775521A (en) Put out screen display method and apparatus
CN106557570A (en) File management method and device under a kind of Android system
CN109240593B (en) Method for editing display information and electronic device thereof
CN104834549B (en) The application file update method and device of mobile terminal
CN111949180A (en) Icon arrangement method and device, storage medium and electronic equipment
CN106250992A (en) Task processing method in a kind of mobile electronic device and device
CN105677187A (en) Image display control method and device
CN113836872A (en) Page diagram object editing method, device, equipment and readable medium
CN111796733B (en) Image display method, image display device and electronic equipment
KR20160066428A (en) Method for undoing multiple command
CN112637411B (en) Image searching method and device, electronic equipment and readable storage medium
EP4134802A1 (en) Method and apparatus for data access of nand flash file, and storage medium
CN114721565A (en) Application program starting method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee before: HISENSE ELECTRIC Co.,Ltd.