CN113656038B - Editing processing method and device - Google Patents

Editing processing method and device Download PDF

Info

Publication number
CN113656038B
CN113656038B CN202110863994.XA CN202110863994A CN113656038B CN 113656038 B CN113656038 B CN 113656038B CN 202110863994 A CN202110863994 A CN 202110863994A CN 113656038 B CN113656038 B CN 113656038B
Authority
CN
China
Prior art keywords
data
function
stack
editing
revocation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110863994.XA
Other languages
Chinese (zh)
Other versions
CN113656038A (en
Inventor
郑学兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110863994.XA priority Critical patent/CN113656038B/en
Publication of CN113656038A publication Critical patent/CN113656038A/en
Application granted granted Critical
Publication of CN113656038B publication Critical patent/CN113656038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The disclosure provides an editing processing method and device, relates to the technical field of computers, and particularly relates to the technical field of man-machine interaction and augmented reality. The specific implementation scheme is as follows: and monitoring an editing operation in an interface, and under the condition that the editing operation is the cancel or restore of the function operation, obtaining file data by calling a corresponding cancel function or restore function in a basic class, and calling a data model corresponding to the function operation to process the file data to obtain file display content, and displaying the file display content in the interface. By setting the basic class, each functional module can call the function in the basic class, so that the revocation or recovery of the functional operation is realized, the code coupling degree between the modules is reduced, the complexity of software development and function expansion is reduced, maintainability is improved, and maintenance cost is effectively reduced.

Description

Editing processing method and device
Technical Field
The disclosure relates to the field of computer technology, and in particular to the field of man-machine interaction and augmented reality technology.
Background
In software, the undo and redo operation is a common operation of the software, and the undo and redo operation generally involves respective functions of the software, and thus, in the software development process, function code of the undo and redo operation needs to be written for the respective functions.
In the related art, the undo and the recovery operations are added in each functional module of the software, and when the functions are expanded, the function codes of the undo and the recovery operations are required to be written synchronously, so that the code coupling degree between the modules is higher.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, and storage medium for editing processing.
According to a first aspect of the present disclosure, there is provided an editing processing method including:
monitoring editing operation in the interface;
under the condition that the editing operation is the cancel or restore of the function operation, obtaining file data by calling a corresponding cancel function or restore function in the basic class;
invoking a data model corresponding to the functional operation to process the file data to obtain file display content;
and displaying the file display content in the interface.
According to a second aspect of the present disclosure, there is provided an editing processing apparatus including:
the monitoring unit is used for monitoring editing operation in the interface;
the editing unit is used for obtaining file data by calling a corresponding revocation function or a corresponding recovery function in the basic class under the condition that the editing operation is the revocation or the recovery of the function operation;
the processing unit is used for calling a data model corresponding to the function operation to process the file data to obtain file display content;
and the display unit is used for displaying the file display content in the interface.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the first aspect of the present disclosure.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect of the present disclosure.
According to the editing processing method, the editing processing device and the storage medium, editing operation in an interface can be monitored, file data are obtained by calling a corresponding cancel function or a corresponding restore function in a basic class under the condition that the editing operation is cancel or restore of a function operation, a data model corresponding to the function operation is called to process the file data, file display content is obtained, and the file display content is displayed in the interface. By setting the basic class, each functional module can call the function in the basic class, so that the revocation or recovery of the functional operation is realized, the code coupling degree between the modules is reduced, the complexity of software development and function expansion is reduced, maintainability is improved, and maintenance cost is effectively reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram of an editing process according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of another editing process according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of another editing process according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an editing process according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an editing processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an electronic device for implementing the editing processing method of the embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The embodiment of the present disclosure provides an editing processing method, referring to a flowchart of an editing processing method shown in fig. 1, where the method may be performed by various electronic devices having data processing capabilities, and the electronic devices performing the method of the embodiment are not limited herein, and mainly include the following steps S101 to S104:
step S101, monitoring editing operation in an interface.
The editing operation refers to an operation of changing data of a file and editing the file, and may also be understood as an operation performed by a user during use. Editing operations may include a variety of functional operations, as well as revocation, restoration, etc. of functional operations. The functional operation refers to operations for implementing a certain function, for example, operations of modifying a size, a scaling, a position, a texture map, a name of a 3D element, importing a new 3D model, deleting a 3D model, etc. in a 3D model editor, inputting characters, inserting graphics, etc. in a common word document, adjusting colors, canvas, deleting a layer, etc. in PS. It will be appreciated that the operations described in the above examples to implement each function are one type of functional operation, i.e. modifying the size of the 3D element and modifying the scaling of the 3D element are different functional operations.
It should be noted that, the user realizes editing through the interface, and performs editing operation in the interface.
It should be noted that, the 3D model in this embodiment does not reflect personal information of a specific user, and data of the model is obtained in various public and legal manners, for example, may be obtained from a public data set or a data set authorized for use by the user.
Step S102, in the case that the editing operation is the revocation or the restoration of the function operation, the file data is obtained by calling the corresponding revocation function or the restoration function in the basic class.
The basic class is a inheritable parent class, wherein a plurality of functions are defined, and different functions in the basic class can be called for corresponding data processing according to different editing operations.
Optionally, according to different editing operations, calling different functions in the basic class to process corresponding data to obtain file data.
And step S103, calling a data model corresponding to the function operation to process the file data, and obtaining file display content.
The data model is a model for processing operation objects of functional operations, and different functional operations correspond to different data models, that is, parameters of the data models of different functional operations are different because data types, kinds and numbers of the operation objects of different functional operations are different. The data model includes a plurality of processing functions for performing functional operations, each of which may be understood as at least one step of performing the functional operations. The data model can process operation objects of functional operation, process file data, and execute at least part of processing functions in the data model according to different objects processed by the data model, so that the output of the data model is used as file display content to be displayed in a visual mode.
Optionally, the data model may also call a function in the basic class to process the operation object of the function operation and the file data.
Alternatively, the data model may be serialized and de-serialized.
Serialization refers to the conversion of an object into a string or binary byte sequence of a particular format. The anti-serialization is the reverse operation of serialization, and is to analyze the serialized content according to the serialization rule.
Alternatively, the serialized format may be at least one of json, xml, protocolbuffer or custom format.
As a possible implementation, both serialization and deserialization are implemented by the corresponding processing functions. Under the condition that the data model processes the operation object of the function operation, the step of carrying out subsequent function operation on the serialized data after the serialization can be carried out by calling the serialization function; in the case of processing the file data by the data model, since the file data has undergone the serialization processing, the step of performing the subsequent functional operation can be directly performed without employing the serialization function for serialization.
The data in the data model in this embodiment is data necessary for realizing the function of the function operation, and does not relate to personal information of the user.
Step S104, displaying the file display content in the interface.
Optionally, the file display content is displayed through an interface. Generally, according to the file display content obtained in the previous step, updating the user interface, and displaying the file display content in the interface.
According to the method provided by the embodiment of the disclosure, through monitoring the editing operation in the interface, under the condition that the editing operation is the cancel or restore of the function operation, file data is obtained by calling the corresponding cancel function or restore function in the basic class, the data model corresponding to the function operation is called to process the file data, file display content is obtained, and the file display content is displayed in the interface. By setting the basic class, each functional module can call the function in the basic class, so that the revocation or recovery of the functional operation is realized, the code coupling degree between the modules is reduced, the complexity of software development and function expansion is reduced, maintainability is improved, and maintenance cost is effectively reduced.
Referring to a flowchart of an editing processing method shown in fig. 2, a method flow of performing a revocation operation is schematically described, and includes mainly the following steps S201 to S207:
step S201, monitoring editing operation in the interface.
In some embodiments, in the event that the editing operation is a functional operation, a push function in the base class is invoked to write data resulting from performing the functional operation to the undo data stack.
The data obtained by executing the function operation is obtained by calling a data model corresponding to the function operation and processing the function operation data.
It should be noted that the revocation data stack is a stack of data.
Optionally, a data model corresponding to the function operation is called to perform serialization processing on the function operation data, so as to obtain data obtained by executing the function operation.
Optionally, the data model calls a serialization function in the basic class, and performs serialization processing on the functional operation data to obtain serialized data.
As an exemplary embodiment, if the user modifies the position of the 3D element within the interface of the 3D model editor, then it is monitored that the editing operation within the interface is function operation 1, modifying the position of the 3D element. And (3) carrying out serialization processing on the functional operation data, namely the position coordinates of the elements after modification, by calling the serialization function according to the data model corresponding to the functional operation 1 to obtain the data obtained by executing the functional operation, namely the processed serialization data. And calling a push function in the basic class, and writing the data into the revocation data stack.
Step S202, in the case where the editing operation is a cancel operation for a function operation, a cancel function is called.
As an exemplary embodiment, after the user modifies the location of the 3D element within the interface, a undo operation is performed, i.e., it is monitored that the edit operation within the interface is a undo operation for function operation 1, and an undo function in the base class is invoked.
In step S203, the revocation function is used to read the revocation data stack.
As an exemplary embodiment, the revocation function is used to read the revocation data stack, i.e. to read the data in the revocation data stack.
Step S204, the stack top data in the withdrawn data stack is transferred to the restored data stack.
The stack top data is the data which is written into the revocation data stack by calling the push function when the function operation is performed in the interface before the revocation operation, namely the data which is written into the revocation data stack by calling the push function by the function operation aimed at by the revocation operation.
As an exemplary embodiment, top data in the data stack, i.e. data after the position coordinates of the elements after modification have been serialized, is withdrawn. And calling a revocation function, and transferring the stack top data, namely the data after the position coordinates of the elements are subjected to serialization processing after modification, to a recovery data stack, namely taking out the stack top data from the revocation data stack, and writing the stack top data into the recovery data stack.
It will be appreciated that the recovery data stack is also a stack of data, as is the revocation data stack.
Step S205, taking stack top data in the restored withdrawal data stack as file data.
Optionally, the top data in the restored revocation data stack is the data written by the editing operation before the function operation aimed at by the revocation operation, and is taken as the file data.
As an exemplary embodiment, the top data in the restored revocation data stack is the data after the position coordinates before the element modification are subjected to the serialization processing, and is used as the file data.
And step S206, calling a data model corresponding to the function operation to process the file data, and obtaining the file display content.
Optionally, invoking a data model corresponding to the functional operation to perform deserialization processing on the file data to obtain file display content.
Optionally, the data model calls an inverse serialization function in the basic class, and performs inverse serialization processing on the file data to obtain the file display content.
As an exemplary embodiment, the data model corresponding to the function operation 1 calls an inverse serialization function in the base class, and performs an inverse serialization process on file data, that is, data after the position coordinates before element modification are subjected to the serialization process, to obtain file display contents, that is, the position coordinates before element modification.
Step S207, displaying the file display content in the interface.
Optionally, updating the user interface according to the file display content, and displaying the file display content in the interface.
As an exemplary embodiment, the interface is updated according to the file display content, that is, the position coordinates of the elements obtained after the deserialization processing before modification, and the elements at the position before modification are displayed in the interface, that is, the revocation of the function operation is realized.
According to the method provided by the embodiment of the disclosure, through the editing operation in the monitoring interface, under the condition that the editing operation is the cancel operation aiming at the function operation, the cancel function in the basic class is called, the cancel function is used for reading the cancel data stack, the stack top data in the cancel data stack is transferred to the restore data stack, the transferred stack top data in the cancel data stack is used as file data, a data model corresponding to the function operation is called to process the file data, file display content is obtained, and the file display content is displayed in the interface. By setting the basic class, each functional module can call the function in the basic class, so that the revocation of the functional operation is realized, the code coupling degree between the modules is reduced, the complexity of software development and function expansion is reduced, the maintainability is improved, and the maintenance cost is effectively reduced.
Referring to a flowchart of an editing processing method shown in fig. 3, a method flow of performing a restoration operation is schematically described, and mainly includes the following steps S301 to S307:
step S301, monitoring editing operation in an interface.
In some embodiments, in the event that the editing operation is a functional operation, a push function in the base class is invoked to write data resulting from performing the functional operation to the undo data stack.
The data obtained by executing the function operation is obtained by calling a data model corresponding to the function operation and processing the function operation data.
It should be noted that the revocation data stack is a stack of data.
Optionally, a data model corresponding to the function operation is called to perform serialization processing on the function operation data, so as to obtain data obtained by executing the function operation.
Optionally, the data model calls a serialization function in the basic class, and performs serialization processing on the functional operation data to obtain serialized data.
As an exemplary embodiment, if the user modifies the position of the 3D element within the interface of the 3D model editor, then it is monitored that the editing operation within the interface is function operation 1, modifying the position of the 3D element. And (3) carrying out serialization processing on the functional operation data, namely the position coordinates of the elements after modification, by calling the serialization function according to the data model corresponding to the functional operation 1 to obtain the data obtained by executing the functional operation, namely the processed serialization data. And calling a push function in the basic class, and writing the data into the revocation data stack.
Step S302, in the case where the editing operation is a restoration operation for a function operation, a restoration function is called.
As an exemplary embodiment, the user, within the interface, after having undone the modification of the position of the 3D element from position a to position b, performs a resume operation, i.e. listens to the edit operation within the interface being a resume operation for function operation 1, invokes a resume function in the base class.
In step S303, the recovery function is used to read the recovery data stack.
As an exemplary embodiment, the recovery function is used to read the recovery data stack, i.e. to read the data in the recovery data stack.
Step S304, the stack top data in the recovery data stack is transferred to the withdrawal data stack.
The stack top data is the revocation operation before the recovery operation, and the revocation function is called to transfer the data stored in the recovery data stack from the revocation data stack.
As an exemplary embodiment, after the modification of the 3D element from position a to position b is cancelled, the top data in the restored data stack is the data transferred from the cancelled data stack, that is, the data after the coordinates of position b have been serialized. The recovery function reads the recovery data stack, and the stack top data, namely the data of which the coordinates of the position b are subjected to serialization processing, is transferred to the revocation data stack, namely the stack top data is taken out from the recovery data stack, and is written into the revocation data stack.
It will be appreciated that the recovery data stack is also a stack of data, as is the revocation data stack.
Step S305, taking stack top data in the restored withdrawal data stack as file data.
Optionally, the top data in the restored data stack is the data restored from the restore data stack by the restore operation, and is used as the file data.
As an exemplary embodiment, the top data in the restored revocation data stack is the data after the coordinates of the position b of the element are subjected to the serialization processing, and is used as the file data.
And step S306, calling a data model corresponding to the function operation to process the file data, and obtaining the file display content.
Optionally, invoking a data model corresponding to the functional operation to perform deserialization processing on the file data to obtain file display content.
Optionally, the data model calls an inverse serialization function in the basic class, and performs inverse serialization processing on the file data to obtain the file display content.
As an exemplary embodiment, the function operation 1 calls an inverse serialization function in the base class, and performs an inverse serialization process on file data, that is, data after the coordinates of the position b of the element are subjected to the serialization process, to obtain file display content, that is, the coordinates of the position b of the element.
Step S307, the file display content is displayed in the interface.
Optionally, updating the user interface according to the file display content, and displaying the file display content in the interface.
As an exemplary embodiment, the interface is updated according to the file display content, that is, the coordinates of the position b of the element obtained after the deserialization processing, and the element at the position b is displayed in the interface, that is, the restoration of the function operation is realized.
According to the method provided by the embodiment of the disclosure, through the editing operation in the monitoring interface, under the condition that the editing operation is the recovery operation aiming at the function operation, the recovery function in the basic class is called, the recovery function is used for reading the recovery data stack, the stack top data in the recovery data stack is transferred to the withdrawal data stack, the transferred stack top data in the withdrawal data stack is used as file data, a data model corresponding to the function operation is called to process the file data, file display content is obtained, and the file display content is displayed in the interface. By setting the basic class, each functional module can call the function in the basic class, so that the recovery of the functional operation is realized, the code coupling degree between the modules is reduced, the complexity of software development and function expansion is reduced, the maintainability is improved, and the maintenance cost is effectively reduced.
For a clearer and intuitive explanation of the processing of data by the function operation and the revocation and restoration operations for the function operation in the above-described embodiment, reference may be made to a procedure as shown in fig. 4.
As shown in the figure, when performing a functional operation, a push operation is performed on data obtained by performing the functional operation, that is, the data is written into the revocation data stack; when the cancel operation aiming at the function operation is carried out, the data is transferred from the cancel data stack to the restore data stack; when a recovery operation for a functional operation is performed, the data is transferred from the recovery data stack to the revocation data stack.
Corresponding to the foregoing editing processing method, the embodiment of the present disclosure further provides an editing processing apparatus, referring to a structural block diagram of an editing processing apparatus shown in fig. 5, mainly including the following:
a monitoring unit 510, configured to monitor editing operations in the interface;
an editing unit 520, configured to obtain file data by calling a corresponding revocation function or a recovery function in the base class, in a case where the editing operation is revocation or recovery for a function operation;
the processing unit 530 is configured to invoke a data model corresponding to the function operation to process the file data, so as to obtain file display content;
and the display unit 540 is used for displaying the file display content in the interface.
In some embodiments, the editing unit 520 is specifically configured to:
invoking the undo function in case the editing operation is an undo operation for the function operation;
wherein the revocation function is used for reading a revocation data stack;
the stack top data in the withdrawn data stack is transferred to a recovery data stack;
and taking the stack top data in the restored withdrawal data stack as the file data.
In some embodiments, the editing unit 520 is specifically configured to:
invoking the resume function in a case where the editing operation is a resume operation for the function operation;
the recovery function is used for reading the recovery data stack;
the stack top data in the recovery data stack is transferred to the withdrawal data stack;
and taking the stack top data in the restored withdrawal data stack as the file data.
In some embodiments, the editing unit 520 is specifically further configured to:
when the editing operation is the functional operation, the data obtained by executing the functional operation is written into a cancel data stack by calling a push function in a basic class;
the data obtained by executing the functional operation is obtained by calling a data model corresponding to the functional operation and processing the functional operation data.
In some embodiments, the editing unit 520 is specifically further configured to:
and calling a serialization function in a basic class through the data model, and carrying out serialization processing on the functional operation data to obtain the data obtained by executing the functional operation.
According to the device provided by the embodiment of the disclosure, through the editing operation in the monitoring interface, under the condition that the editing operation is the cancel or restore of the function operation, file data is obtained by calling the corresponding cancel function or restore function in the basic class, the data model corresponding to the function operation is called to process the file data, file display content is obtained, and the file display content is displayed in the interface. By setting the basic class, each functional module can call the function in the basic class, so that the revocation or recovery of the functional operation is realized, the code coupling degree between the modules is reduced, the complexity of software development and function expansion is reduced, maintainability is improved, and maintenance cost is effectively reduced.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
First, an embodiment of the present disclosure provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the editing processing methods described above.
The disclosed embodiments also provide a computer program product comprising a computer program which, when executed by a processor, implements any of the editing processing methods described above.
Fig. 6 illustrates a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, mouse, etc.; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the respective methods and processes described above, such as an editing processing method. For example, in some embodiments, the editing process may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the editing processing method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the editing processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (8)

1. An editing processing method, comprising:
monitoring editing operation in the interface;
calling a revocation function in the case that the editing operation is a revocation operation for a function operation, wherein the revocation function is used for reading a revocation data stack;
the stack top data in the withdrawn data stack is transferred to a recovery data stack;
taking the stack top data in the restored withdrawal data stack as file data; or alternatively, the process may be performed,
calling a recovery function in the case that the editing operation is a recovery operation for the functional operation, wherein the recovery function is used for reading a recovery data stack;
the stack top data in the recovery data stack is transferred to the withdrawal data stack;
taking the stack top data in the restored withdrawal data stack as the file data;
invoking a data model corresponding to the functional operation to process the file data to obtain file display content;
and displaying the file display content in the interface.
2. The method of claim 1, further comprising:
when the editing operation is the functional operation, the data obtained by executing the functional operation is written into a cancel data stack by calling a push function in a basic class;
the data obtained by executing the functional operation is obtained by calling a data model corresponding to the functional operation and processing the functional operation data.
3. The method of claim 2, before the step of calling a push function in the base class to write the data obtained by performing the functional operation to the revocation data stack, further comprising:
and calling a serialization function in a basic class through the data model, and carrying out serialization processing on the functional operation data to obtain the data obtained by executing the functional operation.
4. An editing processing apparatus comprising:
the monitoring unit is used for monitoring editing operation in the interface;
an editing unit for calling a revocation function in the case that the editing operation is a revocation operation for a function operation, wherein the revocation function is used for reading a revocation data stack;
the editing unit is further used for transferring stack top data in the withdrawn data stack to a recovery data stack;
the editing unit is further used for taking the stack top data in the restored withdrawal data stack as file data; or alternatively, the process may be performed,
the editing unit is used for calling a recovery function in the case that the editing operation is a recovery operation aiming at the functional operation, wherein the recovery function is used for reading a recovery data stack;
the editing unit is further configured to restore stack top data in the recovery data stack to the revocation data stack;
the editing unit is further configured to use the top data in the restored revocation data stack as the file data;
the processing unit is used for calling a data model corresponding to the function operation to process the file data to obtain file display content;
and the display unit is used for displaying the file display content in the interface.
5. The apparatus of claim 4, the editing unit being specifically further configured to:
when the editing operation is the functional operation, the data obtained by executing the functional operation is written into a cancel data stack by calling a push function in a basic class;
the data obtained by executing the functional operation is obtained by calling a data model corresponding to the functional operation and processing the functional operation data.
6. The apparatus of claim 5, the editing unit being specifically further configured to:
and calling a serialization function in a basic class through the data model, and carrying out serialization processing on the functional operation data to obtain the data obtained by executing the functional operation.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-3.
CN202110863994.XA 2021-07-29 2021-07-29 Editing processing method and device Active CN113656038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110863994.XA CN113656038B (en) 2021-07-29 2021-07-29 Editing processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110863994.XA CN113656038B (en) 2021-07-29 2021-07-29 Editing processing method and device

Publications (2)

Publication Number Publication Date
CN113656038A CN113656038A (en) 2021-11-16
CN113656038B true CN113656038B (en) 2023-08-01

Family

ID=78478970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110863994.XA Active CN113656038B (en) 2021-07-29 2021-07-29 Editing processing method and device

Country Status (1)

Country Link
CN (1) CN113656038B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656912A (en) * 2017-09-20 2018-02-02 广东欧珀移动通信有限公司 Data processing method and device, electronic equipment, computer-readable recording medium
CN112632918A (en) * 2019-10-14 2021-04-09 腾讯科技(深圳)有限公司 Document editing method, device, terminal and storage medium
CN113065317A (en) * 2021-03-18 2021-07-02 北京达佳互联信息技术有限公司 Method, device, electronic equipment, medium and product for recovering edited content

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2560179A1 (en) * 2006-09-20 2008-03-20 Ibm Canada Limited - Ibm Canada Limitee Temporal model exploring
US9189214B2 (en) * 2013-10-30 2015-11-17 International Business Machines Corporation Code stack management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656912A (en) * 2017-09-20 2018-02-02 广东欧珀移动通信有限公司 Data processing method and device, electronic equipment, computer-readable recording medium
CN112632918A (en) * 2019-10-14 2021-04-09 腾讯科技(深圳)有限公司 Document editing method, device, terminal and storage medium
CN113065317A (en) * 2021-03-18 2021-07-02 北京达佳互联信息技术有限公司 Method, device, electronic equipment, medium and product for recovering edited content

Also Published As

Publication number Publication date
CN113656038A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN114202027B (en) Method for generating execution configuration information, method and device for model training
EP3876197A2 (en) Portrait extracting method and apparatus, electronic device and storage medium
CN113254445A (en) Real-time data storage method and device, computer equipment and storage medium
CN114448802B (en) Gateway configuration method, device, electronic equipment and storage medium
CN112817660B (en) Method, device, equipment and storage medium for expanding applet capability
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN112947916A (en) Method, device, equipment and storage medium for realizing online canvas
CN113656038B (en) Editing processing method and device
CN115514718B (en) Data interaction method, control layer and equipment based on data transmission system
CN116302218A (en) Function information adding method, device, equipment and storage medium
CN113657408B (en) Method and device for determining image characteristics, electronic equipment and storage medium
CN112905270B (en) Workflow realization method, device, platform, electronic equipment and storage medium
CN114445682A (en) Method, device, electronic equipment, storage medium and product for training model
CN115081607A (en) Reverse calculation method, device and equipment based on embedded operator and storage medium
CN114036249A (en) Map data processing method, map data processing device, electronic equipment and medium
CN115168291A (en) Hierarchical directory implementation method and device, electronic equipment and storage medium
CN113342413B (en) Method, apparatus, device, medium, and article for processing components
CN116431108B (en) Object type processing method and device, electronic equipment and storage medium
CN113360407B (en) Function positioning method and device, electronic equipment and readable storage medium
CN116089363B (en) Data processing method, device, electronic equipment and storage medium
CN117093607A (en) Optimization method for data statistics query in big data scene
CN117873452A (en) Static variable management method, device, electronic equipment and storage medium
CN116341663A (en) Extension method, device, equipment and medium of deep learning reasoning framework
CN117311976A (en) Vector graphic file processing method, device, equipment and storage medium
CN117827207A (en) Dynamic construction method, device, equipment and medium of primitive panel

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