File editing method and device
By displaying the identification during the picture editing process on the folding screen electronic device, the problem of re -editing all the content when the editing operation is solved, and the editing efficiency and simple operation are improved.
Patent Information
- Application Number
- CN202210456800.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-04-28
AI Technical Summary
During the image editing process, all editing operations need to be performed again when undoing the editing operation, resulting in inefficient editing and cumbersome operation.
By displaying the first file and the second file after multiple editing operations on the electronic device with a folding screen, and in the process of the first file to the second file, the logo of multiple editing operations is displayed. You can directly revoke an editor operation without the need to revoke all the follow -up editing operations.
The efficiency of file editing has been improved, and the steps that users need to re -edit after revoking editing operations have reduced the operation process.
Smart Images

Figure CN114756154B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a file editing method and device. Background Art
[0002] When using electronic devices to edit pictures, it is generally necessary to complete the following steps: select the image to be edited, and edit the image step by step until the editing is completed. If before the editing is completed, it is necessary to undo the target editing operation in the editing process, it is necessary to undo it step by step until the target editing operation is undoed, and then continue to edit the image. Therefore, once it is necessary to undo an editing operation of an intermediate step, all editing operations after the editing operation will be canceled, and the user will need to re-edit, which has low editing efficiency and cumbersome operations. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a file editing method and device, which can solve the problem that when undoing an editing operation, the user needs to re-edit, the editing efficiency is low, and the operation is cumbersome.
[0004] In a first aspect, an embodiment of the present application provides a file editing method, which is applied to an electronic device with a folding screen, the electronic device comprising a first display screen and a second display screen, the method comprising: receiving a first input; in response to the first input, displaying a first file and M first identifiers on the first display screen, and displaying a second file on the second display screen; wherein the second file is a file obtained after the first file is processed by operations corresponding to the M first identifiers; wherein M is a positive integer greater than or equal to 2.
[0005] In a second aspect, an embodiment of the present application provides a file editing device, which is applied to an electronic device with a folding screen, the electronic device comprising a first display screen and a second display screen, including: a receiving module, for receiving a first input; a display module, for displaying a first file and M first identifiers on the first display screen in response to the first input, and displaying a second file on the second display screen; wherein the second file is a file obtained after the first file is processed by operations corresponding to the M first identifiers; wherein M is a positive integer greater than or equal to 2.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.
[0007] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0008] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.
[0009] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.
[0010] In the embodiment of the present application, the first file will eventually become the second file after the editing operation. While displaying the second file, the multiple editing operations experienced by the first file in the process of changing the first file to the second file are displayed as M first marks, so that when the user needs to cancel an editing operation in the middle of the multiple editing operations, he can select the corresponding first mark to cancel, that is, it is possible to directly cancel a certain editing operation without having to cancel all editing operations after a certain editing operation.
[0011] In this process, since it is no longer necessary to undo all editing operations after a certain editing operation, the user does not need to re-edit the previously edited content after undoing a certain editing operation, thereby improving the efficiency of file editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is one of the flowcharts of the method for editing a file in an embodiment of the present application;
[0013] Figure 2 This is the second flowchart of the method for editing a file in the embodiment of the present application;
[0014] Figure 3 This is one of the schematic diagrams of editing a file in an embodiment of the present application;
[0015] Figure 4 This is the second schematic diagram of editing a file in an embodiment of the present application;
[0016] Figure 5 This is the third schematic diagram of editing a file in the embodiment of the present application;
[0017] Figure 6 This is the fourth schematic diagram of editing a file in an embodiment of the present application;
[0018] Figure 7 This is the third flow chart of the method for editing a file in the embodiment of the present application;
[0019] Figure 8 is a display schematic diagram of a first file, a second file and M first identifiers in an embodiment of the present application;
[0020] Fig. 9 is a schematic block diagram of a file editing device in an embodiment of the present application;
[0021] Fig.10 is a schematic block diagram of an electronic device in an embodiment of the present application;
[0022] Fig.11 It is a schematic diagram of the hardware structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] The following is a detailed description of the file editing method and device provided by the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0026] In one embodiment, if Figure 1 As shown, an embodiment of the present application provides a method for editing a file, which is applied to an electronic device with a folding screen, the electronic device including a first display screen and a second display screen, and the method includes:
[0027] Step 102, the electronic device receives a first input;
[0028] Step 104 , in response to the first input, displaying the first file and the M first identifiers on the first display screen, and displaying the second file on the second display screen.
[0029] The second file is a file obtained after the first file is processed by operations corresponding to M first identifiers; wherein M is a positive integer greater than or equal to 2.
[0030] In the embodiment of the present application, the first file is finally obtained after the editing steps. While displaying the second file, the multiple editing operations experienced by the first file in the process of changing the first file to the second file are displayed as M first marks, so that when the user needs to cancel an editing operation in the middle of the multiple editing operations, he can select the corresponding first mark to cancel, that is, it is possible to directly cancel a certain editing operation without having to cancel all editing operations after a certain editing operation.
[0031] In this process, since it is no longer necessary to undo all editing operations after a certain editing operation, the user does not need to re-edit the previously edited content after undoing a certain editing operation, thereby improving the efficiency of file editing.
[0032] In one of the embodiments, responding to the first input can be understood as starting an editing mode, in which the first file, the second file, and the M first identifiers are displayed.
[0033] In one embodiment, the first input may be a selection input of a control on a display interface, or may be an input of an input device for interactive control with the electronic device.
[0034] Specifically, the first input may be a selection input of a control on the display interface. It can be understood that the display interface has one or more controls, wherein each control corresponds to a function. Among them, the target control among the one or more controls corresponds to the opening and closing of the editing mode. If the user selects the target control, the editing mode is opened; otherwise, if the user cancels the selection of the target control, the editing mode is closed.
[0035] Specifically, the electronic device has an input device for communicating or interacting therewith, wherein the input device may be a stylus, wherein the stylus has one or more physical keys or virtual keys, and each physical key or virtual key corresponds to a function. The target keys of the one or more physical keys or virtual keys correspond to the opening and closing of the editing mode, and if the user selects the target key, the editing mode is turned on; otherwise, if the user cancels the selection of the target key, the editing mode is turned off.
[0036] In one embodiment, the first input may also be a voice input. For example, if the user's voice collected is "open editing mode" or a custom voice corresponding to the function of opening editing mode, the editing mode is opened in response to the first input; if the user's voice collected is "close editing mode" or a custom voice corresponding to the function of closing editing mode, the editing mode is closed in response to the first input.
[0037] In one of the embodiments, when the object processed by the operations corresponding to N first identifiers out of M first identifiers is the same object as the processing object in the first file, the N first identifiers are sorted according to a preset time arrangement condition; wherein N is a positive integer less than or equal to M.
[0038] In this embodiment, the preset time arrangement conditions are used to sort so that the user can determine the operation order through sorting, and then when canceling an operation corresponding to a first identifier, it is determined whether it affects the operations corresponding to other first identifiers, so that the user can accurately cancel the operation corresponding to the first identifier.
[0039] For example, the processing objects in the first file include object A and object B. If the object processed by the operations corresponding to N first identifiers among the M first identifiers is object A, the N first identifiers are sorted according to the preset time arrangement condition.
[0040] In one embodiment, the preset time arrangement condition may be to sort the operations according to the time between the operation execution time corresponding to the first identifier and the current time.
[0041] Specifically, the preset time arrangement condition can be to sort from far to near according to the length of time from the operation execution time corresponding to the first identifier to the current time. For example, the length of time from the operation execution time corresponding to the first first identifier among the N first identifiers to the current time is the first length, and the length of time from the operation execution time corresponding to the Nth first identifier among the N first identifiers to the current time is the Nth length. If the first length is greater than the Nth length, the first first identifier among the N first identifiers is sorted in front of the Nth first identifier among the N first identifiers.
[0042] Similarly, when the preset time arrangement condition can be to sort from near to far according to the length of time from the operation execution time corresponding to the first identifier to the current time, if the first length is greater than the Nth length, the first first identifier among the N first identifiers is arranged behind the Nth first identifier among the N first identifiers. In one embodiment, it also includes: receiving a second input to the first identifier; in response to the second input, canceling the operation corresponding to the first identifier, and updating and displaying the second file.
[0043] In this embodiment, the user can select a first identifier according to actual usage needs. When the first identifier is selected, the operation corresponding to the first identifier is canceled, which can be understood as revoking the processing of the first file by the operation corresponding to the first identifier. The second file is updated and displayed to ensure that the file obtained after the first file is operated by M first identifiers except the revoked first identifier is consistent with the second file.
[0044] For example, when the operation corresponding to the first identifier is a bolding operation on the target text, in response to the second input, the bolding operation on the target text is canceled. At this time, the bolding effect of the target text in the updated second file disappears.
[0045] In one of the embodiments, before canceling the operation corresponding to the first identifier and updating and displaying the second file, the method further includes: determining the object processed by the operation corresponding to the first identifier: and displaying a reminder message when the object is associated with one or more first identifiers.
[0046] In this embodiment, reminder information is output to remind the user that the object processed by the operation corresponding to the selected first identifier has other first identifiers, so as to reduce the impact on operations corresponding to other identifiers when the operation corresponding to the first identifier is revoked.
[0047] For example, when the object processed by the operation corresponding to the first identifier is object A, it is checked whether object A has been processed by other operations corresponding to the first identifiers. If so, a reminder message is displayed for the user to know.
[0048] In one of the embodiments, the first identifier and the object processed by the operation corresponding to the first identifier are associated and displayed.
[0049] By displaying the first identifier in association with the object processed by the operation corresponding to the first identifier, the user is guided to know the object processed by the operation corresponding to the first identifier when seeing the first identifier. Therefore, when processing an object in a targeted manner, the user can know the first identifier corresponding to the object, so as to improve the accuracy of processing the first identifier.
[0050] In one of the embodiments, when a first identifier and one of the objects processed by the operation corresponding to the first identifier are selected, the first identifier and another of the objects processed by the operation corresponding to the first identifier are highlighted; or a connection line is formed between the first identifier and the object processed by the operation corresponding to the first identifier.
[0051] In one embodiment, the first display screen and the second display screen are capable of rotating relative to each other.
[0052] In this embodiment, the folding screen includes a first display screen, a second display screen and a rotation axis. The first display screen and the second display screen can rotate around the rotation axis. When the first display screen and the second display screen rotate around the rotation axis, the unfolding angle between the first display screen and the second display screen changes, wherein the unfolding angle between the first display screen and the second display screen can vary between 0 degrees and 180 degrees, or between 0 degrees and 360 degrees.
[0053] In one of the embodiments, the first display screen and the second display screen are arranged in left and right directions according to the user's holding habits.
[0054] In one of the embodiments, before responding to the first input, the method further includes: displaying the first file on the first display screen and the second display screen.
[0055] In this embodiment, the contents displayed on the first display screen and the second display screen before responding to the first input are specifically limited, and the first file is limited to be displayed on the second display screen so that when the first file is not modified, the contents displayed on the first display screen and the second display screen can be used for comparison display.
[0056] In one of the embodiments, the method further includes: receiving a third input; and storing the second file and the M first identifiers in association with each other in response to the third input.
[0057] In this embodiment, the second file is stored in association with the M first identifiers so that when adjustment is required, the second file is used as a new first file and the new first file is edited using the M first identifiers.
[0058] In one embodiment, the second file and the M first identifiers stored in association may be deleted according to actual usage requirements to meet different usage requirements.
[0059] In one embodiment, the first file includes any one or both of a document and an image.
[0060] The first file may also be in the form of video, audio, etc., which is not limited here.
[0061] In one embodiment, the first file takes an image as an example to explain the editing method of the file in the present application, such as Figure 2 As shown, including:
[0062] Step 202: The electronic device displays the opened picture.
[0063] Among them, Figure 3 As shown, when the picture is just opened, since editing has not yet started, the pictures displayed on the left and right screens of the folding screen are the same.
[0064] Step 204, receiving the user's input, displaying the original picture + nodes generated by the operation descriptions generated by the operation records on the left, and displaying the modified picture on the right.
[0065] The left side shows the nodes generated by the original image + operation record generated by each operation description, which is the first mark in this application, and the modified nodes at the same position are displayed in three dimensions according to time. Figure 4As shown, the original image is on the left, and the overall editing process of the image is recorded below the drawing, which is respectively rotated left -> border blue -> text "Hey Hey" added, and displayed in chronological order. The right side of the folding screen shows the style of the edited image, and the lower right screen is similar to the regular album editing function. Figure 4 The following is a display diagram of the edit record nodes generated by editing the entire image. In actual use, you can also edit the details of the image. Editing different areas will generate different edit nodes sorted by time, such as Figure 5 As shown, a local face slimming -> wrinkle reduction operation is performed on the girl's face, and an editing time recording node will be generated separately.
[0066] Step 206, select any edit node on the left screen to cancel.
[0067] If there is a conflict in each edit, a prompt will be generated to modify the conflict and confirm. Figure 4 If the status cancels the left rotation, the left rotation operation will be canceled, generating Figure 6 Picture shown.
[0068] Step 208, complete saving.
[0069] When all editing is completed, confirm and save, and the picture on the right is the newly generated picture. The records with edit nodes on the left screen will also be saved (users can save or delete the records as needed).
[0070] like Figure 7 As shown, the first file takes documents as examples to explain the editing method of the files in this application, such as Figure 7 As shown, including:
[0071] Step 702: The electronic device displays the opened document.
[0072] Among them, when the document is just opened, since editing has not yet begun, the contents displayed on the left and right screens of the folding screen are the same.
[0073] Step 704: the nodes generated by the original document + the operation record are displayed on the left, and the modified document is displayed on the right.
[0074] The left side shows the nodes generated by the original document + operation record and the various operation descriptions, wherein the modified nodes at the same position are displayed in three dimensions by time.
[0075] Step 706, select any edit node on the left screen to cancel.
[0076] Among them, you can select any editing node on the left screen to undo. If there is a conflicting operation in the middle of each editing, a prompt will be generated, and you need to modify the conflict and erase it before confirming. Among them, the conflicting operation can be understood as the object processed by the editing node selected to be undone on the left screen is associated with other editing nodes.
[0077] Step 708, save and confirm.
[0078] When all editing is completed, confirm and save, and the document on the right is the newly generated document. The records with edit nodes on the left screen will also be saved (users can save or delete the records as needed).
[0079] For example, if Figure 8 As shown, a schematic diagram of displaying a first file, a second file and M first identifiers.
[0080] In this embodiment, based on the characteristic that the folding screen can display two vertical screen mobile phone interfaces, the original style + three-dimensional modification record points are displayed on the left screen, and the modified style is displayed on the right screen, so as to optimize the user's usage steps for modifying files or pictures and improve the user experience.
[0081] Specifically, the two screens of the folding screen respectively display the unmodified style and the modified style, which is convenient for users to compare edits; the modification points are recorded separately on the left screen and sorted by time, and users can arbitrarily undo any individual modification points at any previous time; the modification points at the same position are displayed in three dimensions in time order, which is convenient for finding modifications. At the same time, it can reduce the steps of editing operations and improve efficiency.
[0082] The file editing method provided in the embodiment of the present application can be executed by a file editing device. In the embodiment of the present application, the file editing device provided in the embodiment of the present application is described by taking the file editing device executing the file editing method as an example.
[0083] In one embodiment, if Fig. 9 As shown, a file editing device 900 is proposed, which is applied to an electronic device with a folding screen. The electronic device includes a first display screen and a second display screen, including: a receiving module 902, used to receive a first input; a display module 904, used to display a first file and M first identifiers on the first display screen in response to the first input, and to display a second file on the second display screen; wherein the second file is a file obtained after the first file is processed by operations corresponding to the M first identifiers; wherein M is a positive integer greater than or equal to 2.
[0084] In the embodiment of the present application, the first file is finally obtained after the editing steps. While displaying the second file, the multiple editing operations experienced by the first file in the process of changing the first file to the second file are displayed as M first marks, so that when the user needs to cancel an editing operation in the middle of the multiple editing operations, he can select the corresponding first mark to cancel, that is, it is possible to directly cancel a certain editing operation without having to cancel all editing operations after a certain editing operation.
[0085] In this process, since it is no longer necessary to undo all editing operations after a certain editing operation, the user does not need to re-edit the previously edited content after undoing a certain editing operation, thereby improving the efficiency of file editing.
[0086] In one of the embodiments, responding to the first input can be understood as starting an editing mode, in which the first file, the second file, and the M first identifiers are displayed.
[0087] In one embodiment, the first input may be a selection input of a control on a display interface, or may be an input of an input device for interactive control with the electronic device.
[0088] Specifically, the first input may be a selection input of a control on the display interface. It can be understood that the display interface has one or more controls, wherein each control corresponds to a function. Among them, the target control among the one or more controls corresponds to the opening and closing of the editing mode. If the user selects the target control, the editing mode is opened; otherwise, if the user cancels the selection of the target control, the editing mode is closed.
[0089] Specifically, the electronic device has an input device for communicating or interacting therewith, wherein the input device may be a stylus, wherein the stylus has one or more physical keys or virtual keys, and each physical key or virtual key corresponds to a function. The target keys of the one or more physical keys or virtual keys correspond to the opening and closing of the editing mode, and if the user selects the target key, the editing mode is turned on; otherwise, if the user cancels the selection of the target key, the editing mode is turned off.
[0090] In one embodiment, the first input may also be a voice input. For example, if the user's voice collected is "open editing mode" or a custom voice corresponding to the function of opening editing mode, the editing mode is opened in response to the first input; if the user's voice collected is "close editing mode" or a custom voice corresponding to the function of closing editing mode, the editing mode is closed in response to the first input.
[0091] In one of the embodiments, when the object processed by the operations corresponding to N first identifiers out of M first identifiers is the same object as the processing object in the first file, the N first identifiers are sorted according to a preset time arrangement condition; wherein N is a positive integer less than or equal to M.
[0092] In this embodiment, the preset time arrangement conditions are used to sort so that the user can determine the operation order through sorting, and then when canceling an operation corresponding to a first identifier, it is determined whether it affects the operations corresponding to other first identifiers, so that the user can accurately cancel the operation corresponding to the first identifier.
[0093] In one embodiment, the preset time arrangement condition may be to sort the operations according to the time between the operation execution time corresponding to the first identifier and the current time.
[0094] In one embodiment, the display module 904 is further configured to: receive a second input to the first identifier; in response to the second input, cancel the operation corresponding to the first identifier, and update the display of the second file.
[0095] In this embodiment, the user can select a first identifier according to actual usage needs. When the first identifier is selected, the operation corresponding to the first identifier is canceled, which can be understood as revoking the processing of the first file by the operation corresponding to the first identifier. The second file is updated and displayed to ensure that the file obtained after the first file is operated by M first identifiers except the revoked first identifier is consistent with the second file.
[0096] In one embodiment, before canceling the operation corresponding to the first identifier and updating and displaying the second file, the display module 904 is further used to: determine the object processed by the operation corresponding to the first identifier; and display a reminder message when the object is associated with one or more first identifiers.
[0097] In this embodiment, reminder information is output to remind the user that the object processed by the operation corresponding to the selected first identifier has other first identifiers, so as to reduce the impact on operations corresponding to other identifiers when the operation corresponding to the first identifier is revoked.
[0098] In one of the embodiments, the first identifier and the object processed by the operation corresponding to the first identifier are associated and displayed.
[0099] By displaying the first identifier in association with the object processed by the operation corresponding to the first identifier, the user is guided to know the object processed by the operation corresponding to the first identifier when seeing the first identifier. Therefore, when processing an object in a targeted manner, the user can know the first identifier corresponding to the object, so as to improve the accuracy of processing the first identifier.
[0100] In one of the embodiments, when a first identifier and one of the objects processed by the operation corresponding to the first identifier are selected, the first identifier and another of the objects processed by the operation corresponding to the first identifier are highlighted; or a connection line is formed between the first identifier and the object processed by the operation corresponding to the first identifier.
[0101] In one embodiment, the first display screen and the second display screen are capable of rotating relative to each other.
[0102] In this embodiment, a display scheme of the above scheme applied to a folding screen is provided, wherein the folding screen includes a first display screen, a second display screen and a rotation axis, the first display screen and the second display screen can rotate about the rotation axis, when the first display screen and the second display screen rotate about the rotation axis, the unfolding angle between the first display screen and the second display screen changes, wherein the unfolding angle between the first display screen and the second display screen can vary between 0 degrees and 180 degrees, and can also vary between 0 degrees and 360 degrees.
[0103] In one of the embodiments, the first display screen and the second display screen are arranged in left and right directions according to the user's holding habits.
[0104] In one embodiment, before responding to the first input, the display module 904 is further configured to: display the first file on the first display screen and the second display screen.
[0105] In this embodiment, the contents displayed on the first display screen and the second display screen before responding to the first input are specifically limited, and the first file is limited to be displayed on the second display screen so that when the first file is not modified, the contents displayed on the first display screen and the second display screen can be used for comparison display.
[0106] In one embodiment, the display module 904 is further configured to: receive a third input; and store the second file and the M first identifiers in association with each other in response to the third input.
[0107] In this embodiment, the second file is stored in association with the M first identifiers so that when adjustment is required, the second file is used as a new first file and the new first file is edited using the M first identifiers.
[0108] In one embodiment, the first file includes any one or both of a document and an image.
[0109] The first file may also be in the form of video, audio, etc., which is not limited here.
[0110] In one embodiment, the second file and the M first identifiers stored in association may be deleted according to actual usage requirements to meet different usage requirements.
[0111] The editing device 900 of the file in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0112] The file editing device 900 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0113] The file editing device 900 provided in the embodiment of the present application can realize Figure 1 and Figure 2 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0114] Alternatively, if Fig.10 As shown, an embodiment of the present application further provides an electronic device 1000, including a processor 1002 and a memory 1004, wherein the memory 1004 stores programs or instructions that can be executed on the processor 1002, and when the program or instructions are executed by the processor 1002, the various steps of the above-mentioned file editing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0115] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0116] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0117] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110 and other components.
[0118] Those skilled in the art will appreciate that the electronic device 1100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0119] In one embodiment, the processor 1110 is used to: receive a first input; in response to the first input, display a first file and M first identifiers on a first display screen, and display a second file on a second display screen; wherein the second file is a file obtained by processing the first file after operations corresponding to the M first identifiers; wherein M is a positive integer greater than or equal to 2.
[0120] In one of the embodiments, when the object processed by the operations corresponding to N first identifiers out of M first identifiers is the same object as the processing object in the first file, the N first identifiers are sorted according to a preset time arrangement condition; wherein N is a positive integer less than or equal to M.
[0121] In one embodiment, the processor 1110 is configured to: receive a second input to the first identifier; in response to the second input, cancel the operation corresponding to the first identifier, and update and display the second file.
[0122] In one embodiment, before canceling the operation corresponding to the first identifier and updating and displaying the second file, the processor 1110 is used to: determine the object processed by the operation corresponding to the first identifier: and display a reminder message when the object is associated with one or more first identifiers.
[0123] In one of the embodiments, the first identifier and the object processed by the operation corresponding to the first identifier are associated and displayed.
[0124] In the embodiment of the present application, the first file is finally obtained as the second file after the editing operation. While displaying the second file, the multiple editing operations experienced by the first file in the process of changing the first file to the second file are displayed as M first marks, so that when the user needs to cancel an editing operation in the middle of the multiple editing operations, he can select the corresponding first mark to cancel, that is, it is possible to directly cancel a certain editing operation without having to cancel all editing operations after a certain editing operation.
[0125] In this process, since it is no longer necessary to undo all editing operations after a certain editing operation, the user does not need to re-edit the previously edited content after undoing a certain editing operation, thereby improving the efficiency of file editing.
[0126] It should be understood that in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 11042, and the graphics processor 11041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 11071 and at least one of other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0127] The memory 1109 can be used to store software programs and various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1109 may include a volatile memory or a non-volatile memory, or the memory 1109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0128] The processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1110.
[0129] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned file editing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0130] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0131] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned file editing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0132] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0133] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned file editing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0134] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "including one" do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0136] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A file editing method, applied to an electronic device with a folding screen, the electronic device comprising a first display screen and a second display screen, characterized in that: include: receiving a first input; In response to the first input, displaying a first file and M first identifiers on the first display screen, and displaying a second file on the second display screen; The second file is a file obtained by processing the first file after the operations corresponding to the M first identifiers; Wherein, M is a positive integer greater than or equal to 2; There are different objects in the first file, and the first identifier and the object processed by the operation corresponding to the first identifier are displayed in association, specifically including: when one of the first identifier and the object processed by the operation corresponding to the first identifier is selected, the other of the first identifier and the object processed by the operation corresponding to the first identifier is highlighted; or a connection line is formed between the first identifier and the object processed by the operation corresponding to the first identifier; receiving a second input of the first identifier; In response to the second input, the operation corresponding to the first identifier is canceled, and the second file is updated and displayed.
2. The method for editing a file according to claim 1, characterized in that: When the objects processed by the operations corresponding to N first identifiers among the M first identifiers are the same object as the processing object in the first file, sorting the N first identifiers according to a preset time arrangement condition; Wherein, N is a positive integer less than or equal to M.
3. The file editing method according to claim 1, characterized in that: Before canceling the operation corresponding to the first identifier and updating and displaying the second file, the method further includes: Determine the object processed by the operation corresponding to the first identifier: When the object is associated with one or more of the first identifiers, reminder information is displayed.
4. A file editing device, applied to an electronic device with a folding screen, the electronic device comprising a first display screen and a second display screen, characterized in that: include: A receiving module, configured to receive a first input; A display module, configured to display the first file and the M first identifiers on the first display screen in response to the first input, and to display the second file on the second display screen; The second file is a file obtained by processing the first file after the operations corresponding to the M first identifiers; Wherein, M is a positive integer greater than or equal to 2; There are different objects in the first file, and the first identifier and the object processed by the operation corresponding to the first identifier are displayed in association, specifically including: when one of the first identifier and the object processed by the operation corresponding to the first identifier is selected, the other of the first identifier and the object processed by the operation corresponding to the first identifier is highlighted; or a connection line is formed between the first identifier and the object processed by the operation corresponding to the first identifier; The receiving module is further used to receive a second input of the first identifier; The display module is further used to: in response to the second input, cancel the operation corresponding to the first identifier, and update and display the second file.
5. The file editing device according to claim 4, characterized in that: The display module is further used to: when the objects processed by the operations corresponding to N first identifiers among the M first identifiers are the same object as the processing object in the first file, sort the N first identifiers according to a preset time arrangement condition; Wherein, N is a positive integer less than or equal to M.
6. The file editing device according to claim 4, characterized in that: Before canceling the operation corresponding to the first identifier and updating and displaying the second file, the display module is further used to: Determine the object processed by the operation corresponding to the first identifier: When the object is associated with one or more of the first identifiers, reminder information is displayed.
Citation Information
Patent Citations
Picture display method, mobile terminal and computer readable storage medium
CN107909634A
An image editing method and a terminal
CN109102555A
Media file processing method and electronic device
CN110909180A