CN109947334B - Ink mark canceling method and device and electronic equipment - Google Patents
Ink mark canceling method and device and electronic equipment Download PDFInfo
- Publication number
- CN109947334B CN109947334B CN201711397233.XA CN201711397233A CN109947334B CN 109947334 B CN109947334 B CN 109947334B CN 201711397233 A CN201711397233 A CN 201711397233A CN 109947334 B CN109947334 B CN 109947334B
- Authority
- CN
- China
- Prior art keywords
- ink
- operation record
- pointer
- record
- pointed
- 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
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides an ink canceling method, which comprises the following steps: after opening a demonstration manuscript display page, establishing a blank operation record; pointing a preset ink pointer to a blank operation record; monitoring the operation of a user; when the ink editing operation is monitored, adding an operation record corresponding to the current ink editing operation after the operation record pointed by the current ink pointer; pointing a preset ink pointer to the currently added operation record; when the operation cancellation is monitored, judging whether the operation record pointed by the ink pointer currently is a blank operation record; if not, pointing the ink pointer to the last operation record of the currently pointed operation record; and refreshing the display page, and displaying the operation record pointed by the ink pointer and the ink corresponding to the previous operation record. By applying the scheme provided by the embodiment of the invention to cancel the ink, the data loss can be avoided while the operation is simplified, the user can edit the ink conveniently, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of computer software application, in particular to an ink mark canceling method and device and electronic equipment.
Background
When playing a presentation, in order to highlight a certain part of the content and attract the attention of the audience, a function of drawing ink is often used.
At present, if the newly drawn ink needs to be modified, an eraser needs to be selected through a right-click menu, and then the ink is selected for erasing, the erasing process is complicated, or all the ink on the current slide page is directly erased, so that data is lost, and the editing of a user is inconvenient.
Disclosure of Invention
The embodiment of the invention aims to provide an ink canceling method, an ink canceling device and electronic equipment so as to realize convenient canceling operation of a user on ink.
In order to achieve the above object, an embodiment of the present invention discloses an ink revocation method, including:
after opening a demonstration manuscript display page, establishing a blank operation record; pointing a preset ink pointer to the blank operation record;
monitoring the operation of a user;
when the ink editing operation is monitored, adding an operation record corresponding to the current ink editing operation after the operation record pointed by the current ink pointer;
pointing the preset ink pointer to the currently added operation record;
when the operation of canceling is monitored, judging whether the operation record pointed by the ink pointer at present is the blank operation record; if not, pointing the ink pointer to the last operation record of the currently pointed operation record;
and refreshing the display page, and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
Preferably, the method further comprises:
when the recovery operation is monitored, judging whether the operation record currently pointed by the ink pointer is the last operation record; if not, pointing the ink pointer to the next operation record of the currently pointed operation record; if so, not changing the pointing direction of the ink pointer;
and refreshing the display page, and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
Preferably, the following steps:
the undo operation is: operation corresponding to the key CTRL + Z;
the recovery operation is: and the key CTRL + Y corresponds to operation.
Preferably, the following steps:
the editing operation on the ink comprises the following steps: an ink drawing operation and an ink erasing operation.
An embodiment of the present invention further provides an ink revocation apparatus, where the apparatus includes:
the preprocessing module is used for establishing a blank operation record after opening a demonstration manuscript display page; pointing a preset ink pointer to the blank operation record;
the monitoring module is used for monitoring the operation of a user;
the operation recording module is used for adding an operation record corresponding to the current ink editing operation after the operation record pointed by the current ink pointer when the ink editing operation is monitored; pointing the preset ink pointer to the currently added operation record;
the canceling module is used for judging whether the operation record pointed by the ink pointer at present is the blank operation record or not when the canceling operation is monitored; if not, pointing the ink pointer to the last operation record of the currently pointed operation record;
and the page display module is used for refreshing the display page and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
Preferably, the apparatus further comprises:
the recovery module is used for judging whether the operation record pointed by the ink pointer at present is the last operation record or not when the recovery operation is monitored; if not, pointing the ink pointer to the next operation record of the currently pointed operation record; if so, not changing the pointing direction of the ink pointer; and triggering the page display module.
Preferably, the following steps:
the undo operation is: operation corresponding to the key CTRL + Z;
the recovery operation is: and the key CTRL + Y corresponds to operation.
Preferably, the following steps:
the editing operation on the ink comprises the following steps: an ink drawing operation and an ink erasing operation.
The embodiment of the invention also provides electronic equipment which is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing any of the above method steps when executing a program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the method steps in any one of claims 1 to 8.
Embodiments of the present invention also provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform any of the ink revocation methods described above.
According to the ink canceling method, the ink canceling device and the electronic equipment, the direction of the ink pointer is changed according to the canceling operation of the user by recording each ink editing operation, the operation record pointed by the ink pointer and the ink corresponding to the previous operation record are displayed, the ink canceling is achieved, the operation is simplified, the data loss can be avoided, the ink editing by the user is facilitated, and the user experience is improved. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1(a) is a schematic diagram of an interface for ink rendering during playback of a presentation in the prior art;
FIG. 1(b) is a schematic diagram of an interface for erasing ink during playback of a presentation in the prior art;
FIG. 2 is a flowchart illustrating an ink canceling method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating another ink canceling method according to an embodiment of the present invention;
FIG. 4 is an initial effect diagram of the opened presentation page of the presentation;
FIG. 5 is a diagram of a list of operation records corresponding to FIG. 4 and an ink pointer pointing thereto;
fig. 6 is an effect diagram after three ink drawing operations are performed on the presentation page of the presentation shown in fig. 4;
FIG. 7 is a diagram of a list of operation records corresponding to FIG. 6 and the pointing of an ink pointer;
fig. 8 is an effect diagram after a revocation operation is performed on the presentation page of the presentation shown in fig. 6;
FIG. 9 is a schematic illustration of a list of operation records corresponding to FIG. 8 and an ink pointer pointing thereto;
fig. 10 is an effect diagram after a restore operation is performed on the presentation page of the presentation shown in fig. 8;
FIG. 11 is a diagram of a list of operational records and ink pointer pointing corresponding to FIG. 10;
fig. 12 is an effect diagram after performing a revocation operation three times on the presentation page of the presentation shown in fig. 10;
FIG. 13 is a diagram of a list of operational records and ink pointer pointing corresponding to FIG. 12;
fig. 14 is an effect diagram after an ink editing operation is performed once on the presentation page of the presentation shown in fig. 8;
FIG. 15 is a schematic illustration of a list of operation records and ink pointer pointing corresponding to FIG. 14;
FIG. 16 is a schematic structural diagram of an ink canceling device according to an embodiment of the present invention:
FIG. 17 is a schematic diagram of an alternative ink canceling device in accordance with an embodiment of the present invention;
fig. 18 is a schematic diagram of an electronic device for implementing the ink canceling method according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an interface for drawing and erasing ink during playback of a presentation in the prior art. As shown in fig. 1(a), when the presentation is played, the right button pops up the function menu, and the "pen" or the "highlighter" is selected in the "pointer option", so that the corresponding ink can be drawn, and a certain part of the content in the presentation can be highlighted conveniently, thereby attracting the attention of the audience. If the drawn ink is to be modified, as shown in fig. 1(b), an "eraser" is selected from a function menu popped up after clicking the right button, then the ink to be erased is selected again, or "all ink on the slide is erased", and all the drawn ink is erased at one time. It can be seen that, in the prior art, when erasing the ink drawn while playing the presentation, if the "eraser" function is selected, the operation is complicated, and if "erasing all the ink on the slide" is selected, since the erased ink cannot be recovered, data loss is easily caused, which brings inconvenience to the user.
Therefore, the embodiment of the invention provides an ink canceling method, which can avoid data loss while simplifying operation, facilitate the user to edit the ink, and improve the user experience.
The ink canceling method provided by the embodiment of the present invention will be generally described below.
In one implementation, the ink canceling method includes:
after opening a demonstration manuscript display page, establishing a blank operation record; pointing a preset ink pointer to a blank operation record;
monitoring the operation of a user;
when the ink editing operation is monitored, adding an operation record corresponding to the current ink editing operation after the operation record pointed by the current ink pointer;
pointing a preset ink pointer to the currently added operation record;
when the operation cancellation is monitored, judging whether the operation record pointed by the ink pointer currently is a blank operation record; if not, pointing the ink pointer to the last operation record of the currently pointed operation record;
and refreshing the display page, and displaying the operation record pointed by the ink pointer and the ink corresponding to the previous operation record.
According to the ink mark canceling method provided by the embodiment of the invention, each ink mark editing operation is recorded, the pointing direction of the ink mark pointer is changed according to the canceling operation of the user, the operation record pointed by the ink mark pointer and the ink mark corresponding to the previous operation record are displayed, the ink mark canceling is realized, the data loss can be avoided while the operation is simplified, the user can edit the ink marks conveniently, and the user experience is improved.
The ink canceling method provided by the embodiment of the present invention is described in detail below with reference to specific embodiments.
As shown in fig. 2, a schematic flow chart of an ink canceling method provided in an embodiment of the present invention includes the following steps:
step S201: after opening a demonstration manuscript display page, establishing a blank operation record; and pointing the preset ink pointer to the blank operation record.
In this step, after the interface for displaying the presentation is opened, the ink editing operation is not performed, but an operation record is required to reflect the initial state at this time, otherwise, the ink editing operation cannot be cancelled to the initial state when the cancellation is performed. Therefore, a blank operation record is established, no ink editing operation is recorded in the blank operation record, and the ink pointer points to the blank operation record to indicate that the ink state in the displayed page corresponds to the blank operation record, namely that no ink exists in the displayed page.
Step S202: the user's operation is monitored.
In one implementation, the user's operations are monitored, primarily the user's operations related to ink.
Step S203: when the ink editing operation is monitored, adding an operation record corresponding to the current ink editing operation after the operation record pointed by the current ink pointer.
In this step, when it is monitored that the user performs the ink editing operation, an operation record corresponding to the ink editing operation of the user is established. In one implementation, if no other operation record exists after the operation record pointed by the current ink pointer, the operation record corresponding to the current ink editing operation is added to the last end of the operation record list. In another implementation manner, if there are other operation records originally after the operation record pointed by the current ink pointer, the operation record corresponding to the current ink editing operation is added between the operation record pointed by the current ink pointer and the next operation record.
In one implementation, a user's editing operation on ink includes: an ink drawing operation and an ink erasing operation, among others. The ink erasing operation includes an operation of erasing selected ink and an operation of erasing all ink at once. Of course, other operations that change the state of the ink may be included in the prior art, such as: the embodiment of the present invention does not limit the movement, rotation, and scaling of the ink.
Step S204: and pointing the preset ink pointer to the currently added operation record.
In this step, since the corresponding operation record is added after monitoring the ink editing operation of the user, the pointing direction of the ink pointer is changed correspondingly, and the ink pointer points to the currently added operation record, thereby ensuring that the ink editing operation recorded in the operation record pointed by the ink pointer is: the user edits the latest ink on the presentation page of the presentation.
Step S205: when the operation cancellation is monitored, judging whether the operation record pointed by the ink pointer currently is a blank operation record; if not, the ink pointer is pointed to the last operation record of the currently pointed operation record.
In this step, if the operation record currently pointed by the ink pointer is a blank operation record, it indicates that the ink state in the presentation page of the current presentation is an initial state when the presentation page is opened, and since the blank operation record is the first operation record, when the operation record currently pointed by the ink pointer is a blank operation record, there is no "previous operation record", that is, at this time, a cancel operation cannot be performed, and the direction of the ink pointer does not need to be changed.
Therefore, it is necessary to determine whether the operation record currently pointed to by the ink pointer is a blank operation record, and when the operation record currently pointed to by the ink pointer is not a blank operation record, point the ink pointer to the operation record that is previous to the operation record currently pointed to.
Step S206: and refreshing the display page, and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
In one implementation mode, after the display page is refreshed, according to the operation record pointed by the modified ink pointer and the previous operation record, corresponding ink editing operation is performed on the display page of the presentation document again, and the cancelled ink editing operation is not executed any more, so that the ink corresponding to the cancelled ink editing operation is not displayed any more. And the ink editing operation corresponding to the operation record after the operation record pointed by the modified ink pointer is not re-executed and displayed, but still stored and not deleted, and can be recovered according to the needs of the user, thereby avoiding data loss.
For example, in one case, if the cancelled ink editing operation is a drawing operation on an ink, after the cancellation operation, the ink is edited again, the ink is not drawn any more, and the ink is not displayed on the display page; in another case, if the undone ink editing operation is an erase operation on an ink, the ink is re-displayed on the presentation page after the undoing operation, through re-editing, without erasing the ink.
As can be seen from the above, the ink revocation method provided in the embodiment of the present invention changes the pointing direction of the ink pointer according to the revocation operation of the user by recording each time of the ink editing operation, and displays the operation record pointed by the ink pointer and the ink corresponding to the previous operation record, thereby realizing the revocation of the ink, simplifying the operation, avoiding the data loss, facilitating the user to edit the ink, and improving the user experience.
As shown in fig. 3, a flow chart of another ink canceling method provided in the embodiment of the present invention includes the following steps:
step S301: after opening a demonstration manuscript display page, establishing a blank operation record; and pointing the preset ink pointer to the blank operation record.
Step S302: the user's operation is monitored.
Step S303: when the ink editing operation is monitored, adding an operation record corresponding to the current ink editing operation after the operation record pointed by the current ink pointer.
Step S304: and pointing the preset ink pointer to the currently added operation record.
Step S305: when the operation cancellation is monitored, judging whether the operation record pointed by the ink pointer currently is a blank operation record; if not, the ink pointer is pointed to the last operation record of the currently pointed operation record.
In one implementation, the above-mentioned undo operation is implemented by the shortcut key CTRL + Z.
In parallel, step S306: when the recovery operation is monitored, judging whether the operation record currently pointed by the ink pointer is the last operation record; if not, pointing the ink pointer to the next operation record of the currently pointed operation record; if so, the pointing direction of the ink pointer is not changed.
Therefore, in this step, if the operation record to which the ink pointer currently points is the last operation record, it indicates that the ink state in the presentation page of the current presentation is the latest state after the user edits the ink on the presentation page, and the revocation operation has not been performed before, and there is no ink editing operation that can be resumed, that is, the resumption operation cannot be performed, and the pointing direction of the ink pointer does not need to be changed.
Therefore, it is necessary to determine whether the operation record currently pointed to by the ink pointer is the last operation record, and when the operation record currently pointed to by the ink pointer is not the last operation record, point the ink pointer to the operation record next to the operation record currently pointed to.
In one implementation, the above-described recovery operation is implemented by the shortcut key CTRL + Y.
Step S307: and refreshing the display page, and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
For example, in one case, for a drawing operation of an ink, if a recovery operation is performed after an undo operation, the ink is re-edited and re-drawn, and the ink is re-displayed on the display page; in another case, for an erasing operation of an ink, if a recovery operation is performed after the undo operation, the ink is re-edited and erased again, and the ink is not displayed on the display page.
Steps S301 to S305 are the same as steps S201 to S205 of the embodiment of the invention shown in fig. 2, and step S307 is the same as step S206 of the embodiment of the invention shown in fig. 2, and are not repeated here.
As can be seen from the above, the ink revocation method provided in the embodiment of the present invention changes the pointing direction of the ink pointer by recording each ink editing operation and according to the revocation operation and the recovery operation of the user, and displays the operation record pointed by the ink pointer and the ink corresponding to the previous operation record, thereby realizing the revocation of the ink, and also recovering the revoked ink, so as to avoid data loss while simplifying the operation, facilitate the user to edit the ink, and improve the user experience.
For ease of understanding, the ink canceling method shown in fig. 3 is explained below by way of a specific example.
As shown in fig. 4, the initial effect diagram after the presentation page of the presentation is opened, when there is no ink on the presentation page. The list of operation records and the pointing direction of the ink pointer at this time are as shown in fig. 5, only one blank operation record is in the operation record list, which reflects the initial state of the display page, and the ink pointer pos points to the blank operation record.
As shown in fig. 6, the effect diagram is obtained after the user performs the ink drawing operation three times on the presentation page of the presentation shown in fig. 4, where three inks "1", "2", and "3" exist on the presentation page. The list of operation records and the pointing of the ink pointer at this time are shown in fig. 7, and in addition to the blank operation record, there are operation records corresponding to three inks in the operation record list, and the ink pointer pos points to the currently added operation record, that is, the fourth operation record.
As shown in fig. 8, the effect diagram is obtained after the user performs a cancel operation on the presentation page of the presentation shown in fig. 6, where two ink marks "1" and "2" exist on the presentation page. The list of operation records and the pointing direction of the ink pointer at this time are shown in fig. 9, and the four operation records in the operation record list are identical to those in fig. 7, but the ink pointer pos points to the last operation record, i.e., the third operation record.
As shown in fig. 10, the effect diagram after the user performs the restore operation once on the presentation page of the presentation shown in fig. 8 is exactly the same as that in fig. 6. The list of operation records and the pointing direction of the ink pointer at this time are exactly the same as those in fig. 7, as shown in fig. 11.
As shown in fig. 12, the effect diagram after the user performs the three-time undo operation on the presentation page of the presentation shown in fig. 10 is exactly the same as that in fig. 4. The list of operation records and the pointing direction of the ink pointer at this time are as shown in fig. 13, and the four operation records in the operation record list are identical to those in fig. 11, but the ink pointer pos points to three previous operation records, that is, the blank operation record.
As shown in fig. 14, the effect diagram is shown after the user performs an ink editing operation on the presentation page of the presentation shown in fig. 8. The list of operation records and the pointing direction of the ink pointer at this time are as shown in fig. 15, the operation record corresponding to the current ink editing operation is added between the operation record to which the ink pointer points and the next operation record shown in fig. 9, and the ink pointer pos points to the currently added operation record.
Corresponding to the ink canceling method, the embodiment of the application also provides an ink canceling device.
Fig. 16 is a schematic structural diagram of an ink canceling device according to an embodiment of the present invention, where the ink canceling device includes:
the preprocessing module 1610 is configured to create a blank operation record after opening a presentation page; and pointing a preset ink pointer to the blank operation record.
And a monitoring module 1620 configured to monitor the operation of the user.
An operation recording module 1630, configured to, when an ink editing operation is monitored, add an operation record corresponding to the current ink editing operation after an operation record pointed by the current ink pointer; and pointing the preset ink pointer to the currently added operation record.
Specifically, the operation of editing the ink includes: an ink drawing operation and an ink erasing operation.
The revocation module 1640 is configured to, when a revocation operation is monitored, determine whether an operation record to which the ink pointer currently points is the blank operation record; if not, the ink pointer points to the last operation record of the currently pointed operation record.
The page display module 1650 is configured to refresh the display page, and display the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
As can be seen from the above, in the ink canceling device provided in the embodiment of the present invention, the operation recording module 1630 records each ink editing operation, the canceling module 1640 changes the direction of the ink pointer according to the canceling operation of the user, and the page display module 1650 displays the operation record pointed by the ink pointer and the ink corresponding to the previous operation record, so that the ink canceling is implemented, the operation is simplified while data loss is avoided, the user can edit the ink conveniently, and the user experience is improved.
Fig. 17 is a schematic structural diagram of another ink canceling device according to an embodiment of the present invention, where the device includes:
the preprocessing module 1710, configured to create a blank operation record after opening a presentation page; and pointing a preset ink pointer to the blank operation record.
The operation recording module 1730 is configured to, when an ink editing operation is monitored, add an operation record corresponding to the current ink editing operation after an operation record pointed by the current ink pointer; and pointing the preset ink pointer to the currently added operation record.
A revocation module 1740, configured to, when a revocation operation is monitored, determine whether an operation record to which the ink pointer currently points is the blank operation record; if not, the ink pointer points to the last operation record of the currently pointed operation record.
In one implementation, the revocation module is triggered by a shortcut key CTRL + Z.
A recovery module 1750, configured to determine, when a recovery operation is monitored, whether an operation record to which the ink pointer currently points is a last operation record; if not, pointing the ink pointer to the next operation record of the currently pointed operation record; if so, not changing the pointing direction of the ink pointer; and triggering the page display module.
In one implementation, the recovery module is triggered by a shortcut key CTRL + Y.
And the page display module 1760 is configured to refresh the display page, and display the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
As can be seen from the above description, in the ink canceling device provided in the embodiment of the present invention, the operation recording module 1730 records each ink editing operation, the canceling module 1740 and the restoring module 1750 change the pointing direction of the ink pointer according to the canceling operation and the restoring operation of the user, and the page display module 1760 displays the operation record pointed by the ink pointer and the ink corresponding to the previous operation record, so as to cancel the ink, recover the cancelled ink, simplify the operation, avoid data loss, facilitate the user to edit the ink, and improve the user experience.
An embodiment of the present invention further provides an electronic device, as shown in fig. 18, which includes a processor 181, a communication interface 182, a memory 183, and a communication bus 184, where the processor 181, the communication interface 182, and the memory 183 complete mutual communication through the communication bus 184,
a memory 183 for storing a computer program;
the processor 181 is configured to implement the following steps when executing the program stored in the memory 183:
after opening a demonstration manuscript display page, establishing a blank operation record; pointing a preset ink pointer to a blank operation record;
monitoring the operation of a user;
when the ink editing operation is monitored, adding an operation record corresponding to the current ink editing operation after the operation record pointed by the current ink pointer;
pointing a preset ink pointer to the currently added operation record;
when the operation cancellation is monitored, judging whether the operation record pointed by the ink pointer currently is a blank operation record; if not, pointing the ink pointer to the last operation record of the currently pointed operation record;
and refreshing the display page, and displaying the operation record pointed by the ink pointer and the ink corresponding to the previous operation record.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
As can be seen from the above, in the scheme provided in the embodiment of the present invention, by recording each ink editing operation, and changing the pointing direction of the ink pointer according to the canceling operation of the user, the operation record pointed by the ink pointer and the ink corresponding to the previous operation record are displayed, thereby canceling the ink, simplifying the operation while avoiding data loss, facilitating the user to edit the ink, and improving the user experience.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the ink revocation method of any of the above embodiments.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform the ink canceling method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. An ink revocation method, characterized in that the method comprises:
after opening a demonstration manuscript display page, establishing a blank operation record; pointing a preset ink pointer to the blank operation record;
monitoring the operation of a user;
when the ink editing operation is monitored, under the condition that an operation record exists after the operation record pointed by the current ink pointer, adding the operation record corresponding to the current ink editing operation between the operation record pointed by the current ink pointer and the next operation record;
pointing the preset ink pointer to the currently added operation record, and reserving the operation record pointed by the ink pointer after the operation record;
when the operation of canceling is monitored, judging whether the operation record pointed by the ink pointer at present is the blank operation record; if not, pointing the ink pointer to the last operation record of the currently pointed operation record;
refreshing the page of the presentation and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
2. The method of claim 1, further comprising:
when the recovery operation is monitored, judging whether the operation record currently pointed by the ink pointer is the last operation record; if not, pointing the ink pointer to the next operation record of the currently pointed operation record; if so, not changing the pointing direction of the ink pointer;
refreshing the page of the presentation and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
3. The method of claim 2, wherein:
the undo operation is: operation corresponding to the key CTRL + Z;
the recovery operation is: and the key CTRL + Y corresponds to operation.
4. A method according to any one of claims 1-3, characterized in that:
the editing operation on the ink comprises the following steps: an ink drawing operation and an ink erasing operation.
5. An ink canceling device, comprising:
the preprocessing module is used for establishing a blank operation record after opening a demonstration manuscript display page; pointing a preset ink pointer to the blank operation record;
the monitoring module is used for monitoring the operation of a user;
the ink mark editing device comprises an operation recording module, a processing module and a processing module, wherein the operation recording module is used for adding an operation record corresponding to the current ink mark editing operation to the position between an operation record pointed by a current ink mark pointer and a next operation record under the condition that the operation record exists after the operation record pointed by the current ink mark pointer when the ink mark editing operation is monitored; pointing the preset ink pointer to the currently added operation record, and reserving the operation record pointed by the ink pointer after the operation record;
the canceling module is used for judging whether the operation record pointed by the ink pointer at present is the blank operation record or not when the canceling operation is monitored; if not, pointing the ink pointer to the last operation record of the currently pointed operation record;
and the page display module is used for refreshing the display presentation page and displaying the operation record pointed by the ink pointer and the ink corresponding to the ink editing operation recorded in the previous operation record.
6. The apparatus of claim 5, further comprising:
the recovery module is used for judging whether the operation record pointed by the ink pointer at present is the last operation record or not when the recovery operation is monitored; if not, pointing the ink pointer to the next operation record of the currently pointed operation record; if so, not changing the pointing direction of the ink pointer; and triggering the page display module.
7. The apparatus of claim 6, wherein:
the undo operation is: operation corresponding to the key CTRL + Z;
the recovery operation is: and the key CTRL + Y corresponds to operation.
8. The apparatus according to any one of claims 5-7, wherein:
the editing operation on the ink comprises the following steps: an ink drawing operation and an ink erasing operation.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711397233.XA CN109947334B (en) | 2017-12-21 | 2017-12-21 | Ink mark canceling method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711397233.XA CN109947334B (en) | 2017-12-21 | 2017-12-21 | Ink mark canceling method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109947334A CN109947334A (en) | 2019-06-28 |
CN109947334B true CN109947334B (en) | 2022-04-05 |
Family
ID=67005788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711397233.XA Active CN109947334B (en) | 2017-12-21 | 2017-12-21 | Ink mark canceling method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947334B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459593B (en) * | 2020-03-31 | 2023-03-24 | 杭州海康威视数字技术股份有限公司 | Drawing method, device and equipment |
CN112596660B (en) * | 2020-12-18 | 2023-09-12 | 维沃移动通信有限公司 | Writing display processing method and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102456036A (en) * | 2010-10-20 | 2012-05-16 | 金蝶软件(中国)有限公司 | Operation revocation method and system |
CN104238865A (en) * | 2013-06-08 | 2014-12-24 | 深圳联友科技有限公司 | Method and system for canceling and repeating interface operations in electronic device |
CN104281561A (en) * | 2013-07-08 | 2015-01-14 | 华为技术有限公司 | Data recovery method and electronic equipment |
CN105677207A (en) * | 2014-11-17 | 2016-06-15 | 浪潮乐金数字移动通信有限公司 | Intelligent mobile phone input information editing method and device |
JP2016189226A (en) * | 2016-08-12 | 2016-11-04 | キヤノン株式会社 | Display control device, control method of display control device, and program |
CN106598926A (en) * | 2016-11-29 | 2017-04-26 | 青岛海信电器股份有限公司 | Operation cancellation method and apparatus |
-
2017
- 2017-12-21 CN CN201711397233.XA patent/CN109947334B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102456036A (en) * | 2010-10-20 | 2012-05-16 | 金蝶软件(中国)有限公司 | Operation revocation method and system |
CN104238865A (en) * | 2013-06-08 | 2014-12-24 | 深圳联友科技有限公司 | Method and system for canceling and repeating interface operations in electronic device |
CN104281561A (en) * | 2013-07-08 | 2015-01-14 | 华为技术有限公司 | Data recovery method and electronic equipment |
CN105677207A (en) * | 2014-11-17 | 2016-06-15 | 浪潮乐金数字移动通信有限公司 | Intelligent mobile phone input information editing method and device |
JP2016189226A (en) * | 2016-08-12 | 2016-11-04 | キヤノン株式会社 | Display control device, control method of display control device, and program |
CN106598926A (en) * | 2016-11-29 | 2017-04-26 | 青岛海信电器股份有限公司 | Operation cancellation method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN109947334A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831703B2 (en) | Displaying changes to versioned files | |
US9990059B2 (en) | Ink modes | |
US20050076300A1 (en) | Block marker system | |
US9600134B2 (en) | Selecting portions of computer-accessible documents for post-selection processing | |
CN111539188B (en) | Note generation method, computing device, and computer storage medium | |
US20110179097A1 (en) | Creating virtual targets in directory structures | |
CN107209756B (en) | Supporting digital ink in markup language documents | |
CN104462039B (en) | Method and device for generating annotations | |
US10817169B2 (en) | Time-correlated ink | |
US20210027007A1 (en) | Online document commenting method and apparatus | |
US11665119B2 (en) | Information replying method, apparatus, electronic device, computer storage medium, and product | |
CN109947334B (en) | Ink mark canceling method and device and electronic equipment | |
US9313239B2 (en) | Information processing apparatus, electronic meeting system, and program | |
US9372616B2 (en) | Smart interactive bookmarks | |
CN112860112B (en) | Handwriting erasing method and device of electronic whiteboard, electronic equipment and storage medium | |
CN106970758A (en) | Electronic document operation processing method, device and electronic equipment | |
US20070100755A1 (en) | Identification of protected content items by means of icons | |
CN111428452B (en) | Annotation data storage method and device | |
CN111198830B (en) | Identification method and device of mobile storage equipment, electronic equipment and storage medium | |
CN112052647B (en) | Document editing method and device, electronic equipment and readable storage medium | |
CN105354506B (en) | The method and apparatus of hidden file | |
CN110989893A (en) | Click operation response method and device and electronic equipment | |
CN115048023B (en) | Electronic note reduction method, device, medium and interactive tablet | |
CN112540961B (en) | Method and device for positioning audio files in document | |
CN113849106A (en) | Page-turning handwriting processing method and device, electronic device 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 |