CN108958731B - Application program interface generation method, device, equipment and storage medium - Google Patents
Application program interface generation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108958731B CN108958731B CN201810580375.8A CN201810580375A CN108958731B CN 108958731 B CN108958731 B CN 108958731B CN 201810580375 A CN201810580375 A CN 201810580375A CN 108958731 B CN108958731 B CN 108958731B
- Authority
- CN
- China
- Prior art keywords
- interface
- application program
- editor
- editing
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000002452 interceptive effect Effects 0.000 claims description 24
- 239000000126 substance Substances 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 28
- 238000010586 diagram Methods 0.000 description 20
- 230000003993 interaction Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 239000000725 suspension Substances 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000011800 void material Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for generating an application program interface. The method comprises the following steps: generating and displaying an element adjustment menu according to user operation in a configuration interface of an application program interface; displaying an element editing interface of an element editor according to the input operation of a user on the element adjusting menu; acquiring edited element content according to input operation of a user in an element editing interface, and associating the element content to an application program interface; an application interface including element content is displayed. The embodiment of the invention realizes the convenience and flexibility of adding elements in the application program interface by responding to the input operation of the user in the application program interface, so that the addition of the elements is more in line with the actual requirement, the user experience is improved, the diversity and richness of various disciplines can be embodied when the method is applied to a teaching scene, and the singleness and the limitation of the teaching effect are overcome.
Description
Technical Field
The invention relates to an interactive intelligent device interface processing technology, in particular to a method, a device, equipment and a storage medium for generating an application program interface.
Background
Along with the continuous promotion of education informatization, the multimedia teaching presentation forms in a classroom are more and more diversified, the interaction effects are more and more abundant, the interaction effects are mostly completed by means of electronic whiteboard software, and the interaction tool of classroom activities begins to appear in the electronic whiteboard to achieve the game interaction effect.
The interface presentation content of the application software of the prior education class classroom activity is single, and mostly comprises pictures and characters, and the element implementation scheme of the classroom activity mainly comprises the steps of adding the pictures as the background of the elements and using the characters as the text content of the elements.
However, the problems of the above scheme are that the existing teaching content presentation richness, multidisciplinary difference, single content and limited teaching effect cannot be met.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for generating an application program interface, so that elements in the application program interface are richer, and a manner of adding elements is more convenient and flexible.
In a first aspect, an embodiment of the present invention provides an application program interface generating method, where the method includes:
generating and displaying an element adjustment menu according to user operation in a configuration interface of an application program interface;
displaying an element editing interface of the element editor according to the input operation of a user on the element adjusting menu;
acquiring edited element content according to input operation of a user in an element editing interface, and associating the element content to the application program interface;
and displaying an application program interface comprising the element content.
In a second aspect, an embodiment of the present invention further provides an apparatus for generating an application program interface, where the apparatus includes:
the adjustment menu generation module is used for generating and displaying an element adjustment menu according to user operation in a configuration interface of an application program interface;
the editing interface display module is used for displaying an element editing interface of the element editor according to the input operation of a user on the element adjusting menu;
the element content acquisition module is used for acquiring edited element content according to input operation of a user in an element editing interface and associating the element content to the application program interface;
and the interface display module is used for displaying the application program interface comprising the element content.
In a third aspect, an embodiment of the present invention further provides an interactive intelligent device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the application program interface generation presentation method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for generating and presenting an application program interface according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the convenience and flexibility of adding elements in the application program interface are realized by responding to the input operation of the user in the application program interface, so that the addition of the elements is more in line with the actual requirement, the richness is realized, the user experience is improved, the diversity of various disciplines can be reflected when the method is applied to a teaching scene, and the singleness and limitation of the teaching effect are overcome.
The technical scheme of the embodiment of the invention can make different responses by selecting different objects, and when a plurality of objects are selected, the corresponding content is cleared, thereby avoiding misoperation caused by incapability of determining the target object. And generating a display element editing menu according to the name of the universal element configured with the creation and editing entry in the query or according to the editing rule for selecting the universal element, so as to realize the rapid generation of the element editing menu and prepare for adding new elements.
In addition, the placeholders are adopted to replace the elements, the corresponding element contents can be matched through the placeholders, the element contents are added into the display interface of the application program interface and displayed, the addition of the elements is more standardized, and the convenience of adding the elements is improved.
Drawings
Fig. 1a is a flowchart of an application interface generating method according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of an element adjustment menu according to an embodiment of the present invention;
FIG. 1c is a schematic diagram of an application interface according to an embodiment of the present invention;
fig. 2 is a flowchart of an application interface generating method according to a second embodiment of the present invention;
fig. 3a is a flowchart of an application interface generating method according to a third embodiment of the present invention;
FIG. 3b is a schematic diagram of an element editing interface according to a third embodiment of the present invention;
FIG. 3c is a schematic diagram of a placeholder display according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application interface generating apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an interactive intelligent device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of an application interface generating method according to an embodiment of the present invention, which is applicable to a case where an interactive interface is generated by an application in a teaching scene, and the method may be executed by an application interface generating apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally implemented as an interactive intelligent device integrated with a teaching demonstration function as a plug-in.
In this embodiment, the interactive intelligent device may specifically be a mobile terminal device such as a mobile phone, a tablet computer, or a notebook, or may also be a fixed terminal device with an interactive function such as a desktop computer, an intelligent teaching whiteboard, or the like. In this embodiment, the application scenario is preferably set to provide an interactive activity for a learner through a teaching demonstration function application on an interactive intelligent device by a teacher, and at this time, based on the application program interface generation method provided by the embodiment of the present invention, the addition of any element in the activity can be realized, the difference of multiple disciplines can be reflected, and the richness of teaching contents is improved.
As shown in fig. 1a, a method for generating an application program interface according to an embodiment of the present invention includes the following operations:
and S110, generating and displaying an element adjustment menu in a configuration interface of an application program interface according to user operation.
It is understood that the configuration interface of the application program interface may be the display interface itself or a separate configuration interface with respect to the normally displayed application program interface. Optionally, the application is a classroom teaching program, and the general elements may be common elements already supported by the application. In particular, the elements may be mathematical formulas and chemical formulas. In addition, the elements can also be characters, symbols or logic expressions and the like related to each subject in the teaching scene, correspondingly, different element adjusting menus are arranged corresponding to different elements, and a user can select different option contents according to the self requirement. The element editor is an editor of a general element under an operating system framework of an application program. Specifically, a manager of the element editor may be invoked to generate and display an element adjustment menu according to a user operation. The element editor manager is used for managing different element editors, and can be displayed in a list. Fig. 1b is a schematic diagram of an element adjustment menu display according to an embodiment of the present invention, and when a user inputs an operation in an area 10, the manager 1 of the element editor is invoked, as shown in the figure, the manager 1 of the element editor shows a plurality of element adjustment options, which may be, for example, an insert formula or an insert chemical equation, for the user to select.
And S120, according to the input operation of the user on the element adjusting menu, displaying an element editing interface of the element editor.
The user may perform an input operation on the element adjustment menu to select an element adjustment option, for example, to select an insertion formula or an insertion chemical equation. The corresponding element editor may be invoked prior to displaying the element editing interface of the element editor. According to different selections of a user, calling the corresponding element editor, and displaying an element editing interface of the element editor, for example, if the formula is selected to be inserted, matching the formula editor, and displaying the editing interface of the formula editor.
S130, acquiring edited element content according to input operation of a user in the element editing interface, and associating the element content to the application program interface.
It can be understood that the element editing interface is used for a user to edit elements, for example, the editing interface of a formula displays numeric letters or operation symbols for the user to select, and the user can complete input by touching or clicking. And after the user finishes editing, acquiring the edited element content, and associating the element content to an application program interface. The association process may specifically be establishing an association between the element content and a control of the application program interface. Taking classroom interaction as an example, after a classroom interaction interface is established, the interface comprises a plurality of element controls, the element contents are placed in a container of the element controls of the interface, and are displayed, which is equivalent to taking the element contents as tags of the element controls.
And S140, displaying an application program interface comprising the element content.
After the element content is associated to the application interface, the application program interface is displayed, wherein the application program interface may include a selected background template and other interface elements. In a teaching scene, in order to achieve a better visual effect and make classroom interaction more vivid, application program interfaces can be made rich in diversification. When the classroom activity elements are created, the corresponding general element storage information needs to be converted into real content, the real content is given to the content attribute of the classroom activity elements, at the moment, an interface for obtaining the root content of the general elements is called to obtain the root content, the root content is deleted from the general elements, and meanwhile, the root content is added to a visual tree of the classroom activity elements, so that the classroom elements can display the created general elements. In order that different common elements can be normally displayed in the classroom activity elements, a layer of adaptive containers can be sleeved to ensure the adaptation of the common elements. Illustratively, fig. 1c is a schematic diagram of an application interface provided in the first embodiment of the present invention, where 43、Andall are the acquired element contents, and are associated to interface elements in the application program interface. It should be noted that fig. 1c is used only for illustration, and does not limit the actual application program interface. The element content supports revising and editing again, the element content can be selected, a corresponding operation submenu is displayed when right click is carried out, the generation rule of the submenu is similar to the rule in the configuration interface, and the operation of deleting and inserting new general elements is added. A schematic diagram of an operation submenu is shown as an example in fig. 1 c.
According to the technical scheme of the embodiment of the invention, the convenience and flexibility of adding elements in the application program interface are realized by responding to the input operation of the user in the application program interface, so that the addition of the elements is more in line with the actual requirement, the richness is realized, the user experience is improved, the diversity of various disciplines can be reflected when the method is applied to a teaching scene, and the singleness and limitation of the teaching effect are overcome.
On the basis of the above embodiment, in the configuration interface of the application program interface, according to the user operation, invoking a manager of the element editor to generate and display an element adjustment menu includes: receiving a setting operation of a user in a configuration interface of an application program interface, and receiving a selection object of the setting operation in the configuration interface. The operation of the setting by the user may be a click or touch operation, and may be, for example, an operation by clicking a right mouse button. The selection object of the operation in the configuration interface can be determined by a cursor. If the selected object is empty, calling a manager of the element editor to generate and display an element creation menu; if the selection object is plain text, since plain text and common elements are mutually exclusive, a manager of the element editor is invoked to generate and display an element creation menu. That is, when the selected object is empty or plain text, corresponding to an added element, the manager of the element editor is called to obtain a list of elements supporting the embedded element, and preferably, the list may include two elements of a mathematical formula and a chemical equation which are already registered, and a menu of creating elements is displayed, named: insert equations and insert chemical equations. Different elements can be inserted according to different requirements of the disciplines, and the diversified requirements of the teacher can be met.
If the selected object is a general element, calling a manager of the element editor to generate and display an element editing menu corresponding to the general element, so that a user can edit the element in the element editing menu. And if the selection object is more than two general elements, emptying the content corresponding to the selection object, and calling a manager of the element editor to generate and display an element creation menu. When more than two selected objects are available, it cannot be determined which object is operated, so that the contents corresponding to all the selected objects are emptied, and the element creation menu is regenerated to perform element re-creation.
Example two
Fig. 2 is a flowchart of an application interface generation method provided in the second embodiment of the present invention, where the embodiment of the present invention is an optimization performed on the basis of the above-mentioned embodiment, and further refines "in a configuration interface of an application interface, according to a user operation, a manager of an element editor is called to generate and display an element adjustment menu", and specifically includes:
s210, in a configuration interface of an application program interface, according to user operation, calling a manager of an element editor, inquiring names of the universal elements configured with the creation and editing entries, and generating and displaying an element editing menu according to the inquired names of the universal elements.
Or in a configuration interface of the application program interface, determining the selected general elements according to the user operation, calling a manager of the element editor, and generating and displaying an element editing menu of the general elements according to the editing rules of the selected general elements.
The user operation may be a mouse click operation or a touch operation of the user. For each general element, a creating and editing rule corresponding to the general element is stored in advance, the rule defines a callback logic corresponding to the creating and editing of the general element, an editor of the general element pops up after the callback is triggered, and after the editing is finished, the newly-built general element is returned.
Specifically, an interface ielmentroot for acquiring a root element of a generic element is first defined, and then each generic element needs to implement an ielmentroot interface to acquire their root elements. Then defining an element editor manager ElementEditorCategoryManager, wherein a registration method of creation and editing rules of the universal elements is contained: void register CreateRule (Type, string name, Func < Element, Element > editFunc). The creation and editing rules of the respective common elements are registered at the time of program startup. For example, the general element is a mathematical formula, the definition title is "mathematical formula", the type is MathFormulaElement, and the logic of the mathematical formula creation and editing rule is: and judging whether to create or edit according to whether the transmitted elements are empty, and returning the newly generated mathematical formula elements when the editing is finished. When the creation of the common element is registered to the editing rule, the method needs to comprise the following steps: the element type, the element name, and the creation and editing rule of the element, so that the element name and the creation and editing rule can be acquired according to the element type. In addition, a content attribute of a general element type is added in the classroom activity element and is used for bearing the root content of the general element. The content attribute type is a general element base class type, and any general element can be embedded. The element base class needs to add a general element type content attribute to ensure that the layout can be presented in the display interface of the application program.
And S220, calling the corresponding element editor according to the input operation of the user on the element adjusting menu, and displaying an element editing interface of the element editor.
And S230, acquiring edited element content according to input operation of a user in the element editing interface, and associating the element content to the application program interface.
And S240, displaying an application program interface comprising the element content.
According to the technical scheme of the embodiment of the invention, the name of the general element for creating and editing the entry is configured according to the query, or the display element editing menu is generated according to the editing rule for selecting the general element, so that the element editing menu is rapidly generated, and preparation is made for adding new elements. The convenience and flexibility of adding elements in the application program interface are realized by responding to the input operation of a user on the application program interface, so that the addition of the elements is more in line with the actual requirements, the richness is better, the user experience is improved, the diversity of various disciplines can be embodied when the method is applied to a teaching scene, and the singleness and the limitation of a teaching effect are overcome.
EXAMPLE III
Fig. 3a is a flowchart of an application program interface generation method provided by a third embodiment of the present invention, where the method is optimized based on the above embodiments, and further refines "obtaining edited element content according to an input operation of a user in an element editing interface, and associating the element content with the application program interface", and specifically includes:
and S310, in a configuration interface of an application program interface, calling a manager of the element editor according to user operation to generate and display an element adjusting menu.
And S320, calling the corresponding element editor according to the input operation of the user on the element adjusting menu, and displaying an element editing interface of the element editor.
And S330, acquiring element content edited and generated by the element editor according to the input operation of the user in the element editing interface.
The user can perform input operation on the element editing interface through touch handwriting or click operation, input is performed in the element editing interface according to requirements, and the element editor can generate corresponding element content according to the input of the user. Taking an element editor as an example of a formula editor, fig. 3b is a schematic diagram of an element editing interface according to a third embodiment of the present invention, where when an editing formula operation is triggered in the area 10, the element editing interface 200 is displayed, where the area 300 is an input area of the element editing interface. After the user finishes inputting, clicking the "insert formula" control to edit the formula operation, specifically, when the placeholder of the "formula 1" is selected, the program judges that only the mathematical formula is selected, then the right button displays the edit formula menu 11, and after clicking the edit formula menu 11, the element edit interface 200 pops up.
S340, storing the element content in a background, and generating a placeholder corresponding to the element content.
After the editing of the element content is finished, the element content is stored in the background, and the specific data may be stored in a corresponding storage space, for example, in an installation package of an installation program. Generating a corresponding placeholder for each element content, where the placeholder is an identifier for representing the element, and may be composed of characters, alphabets, and the like, and specifically may also specify a specification for naming the placeholder, and may be: element name + number. In a specific using process, when the placeholder is selected, the type information of the information is stored according to the general element of the background data of the placeholder, then an editing rule obtaining method in a manager of a general data editor is called, a submenu is newly established, the click logic of the submenu is the callback of the editing rule, the current element content is transmitted, the element editor is popped up, and the edited general element is returned after the editing is finished. And updating the element content corresponding to the placeholder of the placeholder into the edited general element content according to the returned general element, and recording and storing the element content in the background.
And S350, displaying the placeholder in the configuration interface.
Wherein the placeholder is displayed in the configuration interface to represent the added element. Optionally, after displaying the placeholder in the configuration interface, the method further includes: and if the user selects the placeholder through setting operation, displaying corresponding element content through a popup window. The setting operation can be that the mouse moves in a placeholder area, corresponding element content is displayed through a popup window at the moment, and specifically, suspension information (ToolTip) can be seen, so that the setting can be realized without occupying the original layout space, and the effect of saving the layout space is achieved. The suspension information of the placeholder is the real display content of the element, and the background data of the placeholder is assigned as the element content of the element. The design facilitates the subsequent addition of other complex general element contents. Exemplarily, fig. 3c is a third embodiment of the present inventionA placeholder display diagram is provided, which shows that when the mouse is moved to the area 301 of the placeholder 'formula 1', the content of the element corresponding to the placeholder is displayed in the area 302 through a popup window
And S360, inquiring the element content stored in the background according to the placeholder in the configuration interface of the application program interface.
The placeholder is equivalent to an index of element content, the element content stored in the background can be queried by using the placeholder, illustratively, the placeholder can be 'formula 1', and the query of the placeholder for the corresponding element content is
And S370, adding the element content to a display interface of the application program interface for displaying.
In the above example, the element content is displayed on the display interface of the application program interface, and specifically, the element content may be displayed on a certain element control, where the element content is as in the above exampleThen will beAnd adding the element control to the corresponding element control in the display interface.
According to the technical scheme of the embodiment of the invention, the placeholders are adopted to replace the elements, the corresponding element contents can be matched through the placeholders, the element contents are added into the display interface of the application program interface and displayed, the addition of the elements is more standardized, and the convenience of adding the elements is improved.
The examples show that the scheme has strong expansibility and editing flexibility, and can be edited before the classroom activity is generated and also can be edited or replaced by new general elements after the classroom activity is generated. If a new general element needs to be embedded in the classroom activity element later, the IElementroot is only needed to be realized, and the creating and editing rules are registered, so that the IElementroot can be displayed in the classroom activity element without changing the existing framework.
Example four
Fig. 4 is a schematic structural diagram of an application interface generating apparatus according to a fourth embodiment of the present invention, which is capable of executing the application interface generating method according to any embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may generally be implemented on an electronic device that integrates a teaching demonstration function as a plug-in. The device includes:
and an adjustment menu generating module 410, configured to generate and display an element adjustment menu according to a user operation in the configuration interface of the application program interface.
It is understood that the configuration interface of the application program interface may be the display interface itself or a separate configuration interface with respect to the normally displayed application program interface. Optionally, the application is a classroom teaching program, and the general elements may be common elements already supported by the application. In particular, the elements may be mathematical formulas and chemical formulas. The element editor is an editor of a general element under an operating system framework of an application program. Specifically, the adjustment menu generating module 410 may be specifically configured to invoke a manager of the element editor according to a user operation to generate and display the element adjustment menu. The element editor manager is used for managing different element editors, and can be displayed in a list. Fig. 1b is a schematic diagram of an element adjustment menu display according to an embodiment of the present invention, and when a user inputs an operation in an area 10, the manager 1 of the element editor is invoked, as shown in the figure, the manager 1 of the element editor shows a plurality of element adjustment options, which may be, for example, an insert formula or an insert chemical equation, for the user to select.
And the editing interface display module 420 is configured to call a corresponding element editor according to an input operation of the user on the element adjustment menu, and display an element editing interface of the element editor.
The user may perform an input operation on the element adjustment menu to select an element adjustment option, for example, to select an insertion formula or an insertion chemical equation. The apparatus may further include an element editor invoking module, which is specifically configured to invoke a corresponding element editor before displaying an element editing interface of the element editor. According to different selections of a user, calling the corresponding element editor, and displaying an element editing interface of the element editor, for example, if the formula is selected to be inserted, matching the formula editor, and displaying the editing interface of the formula editor.
The element content obtaining module 430 is configured to obtain edited element content according to an input operation of a user in an element editing interface, and associate the element content with the application program interface.
It can be understood that the element editing interface is used for a user to edit elements, for example, the editing interface of a formula displays alphabets or operation matches for the user to select, and the user can complete input by touching or clicking. And after the user finishes editing, acquiring the edited element content, and associating the element content to an application program interface. The association process may specifically be establishing an association between the element content and a control of the application program interface. Taking classroom interaction as an example, after a classroom interaction interface is established, the interface comprises a plurality of element controls, the element contents are placed in a container of the element controls of the interface, and are displayed, which is equivalent to taking the element contents as tags of the element controls.
And an interface display module 440, configured to display an application interface including the element content.
After the element content is associated to the application interface, the application program interface is displayed, wherein the application program interface may include a selected background template and other interface elements. In a teaching scene, in order to achieve a better visual effect and make classroom interaction more vivid, application program interfaces can be made rich in diversification. When creating classroom activity elements, the corresponding general elements need to be stored with informationAnd the real content is converted into the content, the content attribute of the classroom activity element is given, at the moment, an interface for acquiring the root content of the general element is called to acquire the root content, the root content is deleted from the general element and is added to a visual tree of the classroom activity element, and thus the classroom element can display the created general element. In order that different common elements can be normally displayed in the classroom activity elements, a layer of adaptive containers can be sleeved to ensure the adaptation of the common elements. Illustratively, fig. 1c is a schematic diagram of an application interface provided in the first embodiment of the present invention, where 43、Andall are the acquired element contents, and are associated to interface elements in the application program interface. It should be noted that fig. 1c is used only for illustration, and does not limit the actual application program interface. The element content supports revising and editing again, the element content can be selected, a corresponding operation submenu is displayed when right click is carried out, the generation rule of the submenu is similar to the rule in the configuration interface, and the operation of deleting and inserting new general elements is added. A schematic diagram of an operation submenu is shown as an example in fig. 1 c.
Further, the adjustment menu generating module 410 is specifically configured to:
in a configuration interface of an application program interface, calling a manager of an element editor according to user operation, inquiring names of universal elements configured with creation and editing entries, and generating and displaying an element editing menu according to the inquired names of the universal elements; or
In a configuration interface of an application program interface, determining the selected general elements according to user operation, calling a manager of an element editor, and generating and displaying an element editing menu of the general elements according to editing rules of the selected general elements.
The user operation may be a mouse click operation or a touch operation of the user. For each general element, a creating and editing rule corresponding to the general element is stored in advance, the rule defines a callback logic corresponding to the creating and editing of the general element, an editor of the general element pops up after the callback is triggered, and after the editing is finished, the newly-built general element is returned.
Specifically, an interface ielmentroot for acquiring a root element of a generic element is first defined, and then each generic element needs to implement an ielmentroot interface to acquire their root elements. Then defining an element editor manager ElementEditorCategoryManager, wherein a registration method of creation and editing rules of the universal elements is contained: void register CreateRule (Type, string name, Func < Element, Element > editFunc). The creation and editing rules of the respective common elements are registered at the time of program startup. For example, the general element is a mathematical formula, the definition title is "mathematical formula", the type is MathFormulaElement, and the logic of the mathematical formula creation and editing rule is: and judging whether to create or edit according to whether the transmitted elements are empty, and returning the newly generated mathematical formula elements when the editing is finished. When the creation of the common element is registered to the editing rule, the method needs to comprise the following steps: the element type, the element name, and the creation and editing rule of the element, so that the element name and the creation and editing rule can be acquired according to the element type. In addition, a content attribute of a general element type is added in the classroom activity element and is used for bearing the root content of the general element. The content attribute type is a general element base class type, and any general element can be embedded. The element base class needs to add a general element type content attribute to ensure that the layout can be presented in the display interface of the application program.
Further, the adjustment menu generating module 410 is specifically configured to:
receiving a setting operation of a user in a configuration interface of an application program interface, and receiving a selection object of the setting operation in the configuration interface;
if the selected object is empty, calling a manager of the element editor to generate and display an element creation menu;
if the selected object is a plain text, calling a manager of the element editor to generate and display an element creation menu;
if the selected object is a general element, calling a manager of the element editor to generate and display an element editing menu corresponding to the general element;
and if the selection object is more than two general elements, emptying the content corresponding to the selection object, and calling a manager of the element editor to generate and display an element creation menu.
Further, the element content obtaining module 430 is specifically configured to:
acquiring element content edited and generated by the element editor according to input operation of a user in an element editing interface;
storing the element content in a background and generating a placeholder corresponding to the element content;
displaying the placeholder in the configuration interface;
correspondingly, the interface display module 440 is specifically configured to:
querying element content stored in a background according to a placeholder in a configuration interface of the application program interface;
and adding the element content to a display interface of the application program interface for displaying.
The user can perform input operation on the element editing interface through touch handwriting or click operation, input is performed in the element editing interface according to requirements, and the element editor can generate corresponding element content according to the input of the user. Taking an element editor as an example of a formula editor, fig. 3b is a schematic diagram of an element editing interface according to a third embodiment of the present invention, where when an editing formula operation is triggered in the area 10, the element editing interface 200 is displayed, where the area 300 is an input area of the element editing interface. After the user finishes inputting, clicking the "insert formula" control to edit the formula operation, specifically, when the placeholder of the "formula 1" is selected, the program judges that only the mathematical formula is selected, then the right button displays the edit formula menu 11, and after clicking the edit formula menu 11, the element edit interface 200 pops up. When element content editing knotAfter that, the element content is stored in the background, and the specific data may be stored in a corresponding storage space, for example, in an installation package of an installation program. Generating a corresponding placeholder for each element content, where the placeholder is an identifier for representing the element, and may be composed of characters, alphabets, and the like, and specifically may also specify a specification for naming the placeholder, and may be: element name + number. In a specific using process, when the placeholder is selected, the type information of the information is stored according to the general element of the background data of the placeholder, then an editing rule obtaining method in a manager of a general data editor is called, a submenu is newly established, the click logic of the submenu is the callback of the editing rule, the current element content is transmitted, the element editor is popped up, and the edited general element is returned after the editing is finished. And updating the element content corresponding to the placeholder of the placeholder into the edited general element content according to the returned general element, and recording and storing the element content in the background. The placeholder is displayed in the configuration interface, representing the added element. Optionally, the apparatus further includes a content display module specifically configured to: after the placeholders are displayed in the configuration interface, if the user selects the placeholder through setting operation, corresponding element content is displayed in a popup window. The setting operation can be that the mouse moves in a placeholder area, corresponding element content is displayed through a popup window at the moment, and specifically, suspension information (ToolTip) can be seen, so that the setting can be realized without occupying the original layout space, and the effect of saving the layout space is achieved. The suspension information of the placeholder is the real display content of the element, and the background data of the placeholder is assigned as the element content of the element. The design facilitates the subsequent addition of other complex general element contents. Exemplarily, fig. 3c is a schematic diagram of displaying a placeholder according to a third embodiment of the present invention, where the schematic diagram shows that when the mouse is moved into the region 301 of the placeholder "formula 1", the content of the element corresponding to the placeholder is displayed in the region 302 through a pop-up windowThe placeholder is equivalent to an index of element content, the element content stored in the background can be queried by using the placeholder, illustratively, the placeholder can be 'formula 1', and the corresponding element content can be queried by the placeholderThe element content is displayed on the display interface of the application program interface, specifically, the element content may be displayed on a certain element control, for example, the element content in the above example isThen will beAnd adding the element control to the corresponding element control in the display interface. Further, the system further comprises a content display module, which is specifically configured to:
after the placeholders are displayed in the configuration interface, if the user selects the placeholder through setting operation, corresponding element content is displayed in a popup window.
The application program interface generating device can execute the application program interface generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the application program interface generating method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an interactive intelligent device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary interactive intelligent device 12 suitable for use in implementing embodiments of the present invention. The interactive intelligent device 12 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiment of the present invention.
As shown in FIG. 5, the interactive smart device 12 is in the form of a general purpose computing device. The components of the interactive smart device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The interactive smart device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by the interactive smart device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The interactive smart device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The interactive smart device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the interactive smart device 12, and/or with any devices (e.g., network card, modem, etc.) that enable the interactive smart device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the interactive smart device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the interactive intelligent device 12 via the bus 18. It should be understood that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with the interactive smart device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement the application program interface generating method provided by the embodiment of the present invention:
namely: the processing unit implements, when executing the program:
generating and displaying an element adjustment menu according to user operation in a configuration interface of an application program interface;
displaying an element editing interface of the element editor according to the input operation of a user on the element adjusting menu;
acquiring edited element content according to input operation of a user in an element editing interface, and associating the element content to the application program interface;
and displaying an application program interface comprising the element content.
EXAMPLE six
A sixth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for generating an application interface according to the embodiments of the present invention:
that is, the program when executed by the processor implements:
generating and displaying an element adjustment menu according to user operation in a configuration interface of an application program interface;
displaying an element editing interface of the element editor according to the input operation of a user on the element adjusting menu;
acquiring edited element content according to input operation of a user in an element editing interface, and associating the element content to the application program interface;
and displaying an application program interface comprising the element content.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (18)
1. An application program interface generation method is characterized by comprising the following steps:
receiving a setting operation of a user in a configuration interface of an application program interface, and receiving a selection object of the setting operation in the configuration interface; if the selected object is empty or plain text, calling a manager of the element editor to generate and display an element creation menu; if the selected object is a general element, calling a manager of the element editor to generate and display an element editing menu corresponding to the general element;
displaying an element editing interface of an element editor according to the input operation of a user on the element adjusting menu;
acquiring edited element content according to input operation of a user in an element editing interface, and associating the element content to the application program interface;
and displaying an application program interface comprising the element content.
2. The method of claim 1, wherein the element editor is an editor of a generic element under an operating system architecture of an application.
3. The method according to claim 1, wherein the generating and displaying of the element adjustment menu according to the user operation is specifically: according to the user operation, calling a manager of the element editor to generate and display an element adjusting menu;
before displaying an element editing interface of the element editor, the method further comprises: the corresponding element editor is invoked.
4. The method of claim 3, wherein invoking a manager of the element editor to generate and display an element adjustment menu according to a user operation in a configuration interface of the application program interface comprises:
in a configuration interface of an application program interface, calling a manager of an element editor according to user operation, inquiring names of universal elements configured with creation and editing entries, and generating and displaying an element editing menu according to the inquired names of the universal elements; or
In a configuration interface of an application program interface, determining the selected general elements according to user operation, calling a manager of an element editor, and generating and displaying an element editing menu of the general elements according to editing rules of the selected general elements.
5. The method of claim 3, wherein invoking a manager of the element editor to generate and display an element adjustment menu according to a user operation in a configuration interface of the application program interface comprises:
and if the selection object is more than two general elements, emptying the content corresponding to the selection object, and calling a manager of the element editor to generate and display an element creation menu.
6. The method of claim 1, wherein obtaining edited element content according to an input operation of a user in an element editing interface and associating the element content to the application program interface comprises:
acquiring element content edited and generated by the element editor according to input operation of a user in an element editing interface;
storing the element content in a background and generating a placeholder corresponding to the element content;
displaying the placeholder in the configuration interface;
correspondingly, displaying the application program interface including the element content comprises:
querying element content stored in a background according to a placeholder in a configuration interface of the application program interface;
and adding the element content to a display interface of the application program interface for displaying.
7. The method of claim 6, after displaying the placeholder in the configuration interface, further comprising:
and if the user selects the placeholder through setting operation, displaying corresponding element content through a popup window.
8. The method of any one of claims 1-7, wherein the application is a classroom teaching program and the elements are mathematical formulas and chemical formulas.
9. An application interface generating apparatus, comprising:
the adjustment menu generation module is used for receiving the setting operation of a user in a configuration interface of an application program interface and receiving a selection object of the setting operation in the configuration interface; if the selected object is empty or plain text, calling a manager of the element editor to generate and display an element creation menu; if the selected object is a general element, calling a manager of the element editor to generate and display an element editing menu corresponding to the general element;
the editing interface display module is used for displaying an element editing interface of the element editor according to the input operation of a user on the element adjusting menu;
the element content acquisition module is used for acquiring edited element content according to input operation of a user in an element editing interface and associating the element content to the application program interface;
and the interface display module is used for displaying the application program interface comprising the element content.
10. The apparatus of claim 9, wherein the element editor is an editor of a generic element under an operating system architecture of an application.
11. The apparatus of claim 9, wherein the adjustment menu generating module is specifically configured to: according to the user operation, calling a manager of the element editor to generate and display an element adjusting menu;
the device further comprises an element editor calling module, which is specifically configured to: before displaying an element editing interface of an element editor, the corresponding element editor is called.
12. The apparatus of claim 11, wherein the adjustment menu generating module is specifically configured to:
in a configuration interface of an application program interface, calling a manager of an element editor according to user operation, inquiring names of universal elements configured with creation and editing entries, and generating and displaying an element editing menu according to the inquired names of the universal elements; or
In a configuration interface of an application program interface, determining the selected general elements according to user operation, calling a manager of an element editor, and generating and displaying an element editing menu of the general elements according to editing rules of the selected general elements.
13. The apparatus of claim 11, wherein the adjustment menu generating module is specifically configured to:
and if the selection object is more than two general elements, emptying the content corresponding to the selection object, and calling a manager of the element editor to generate and display an element creation menu.
14. The apparatus of claim 9, wherein the element content obtaining module is specifically configured to:
acquiring element content edited and generated by the element editor according to input operation of a user in an element editing interface;
storing the element content in a background and generating a placeholder corresponding to the element content;
displaying the placeholder in the configuration interface;
correspondingly, the interface display module is specifically configured to:
querying element content stored in a background according to a placeholder in a configuration interface of the application program interface;
and adding the element content to a display interface of the application program interface for displaying.
15. The apparatus of claim 14, further comprising a content display module, specifically configured to:
after the placeholders are displayed in the configuration interface, if the user selects the placeholder through setting operation, corresponding element content is displayed in a popup window.
16. The apparatus of any one of claims 9-15, wherein the application is a classroom teaching program and the elements are mathematical formulas and chemical formulas.
17. An interactive smart device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application interface generation presentation method of any one of claims 1-8 when executing the program.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for application program interface generation presentation of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810580375.8A CN108958731B (en) | 2018-06-05 | 2018-06-05 | Application program interface generation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810580375.8A CN108958731B (en) | 2018-06-05 | 2018-06-05 | Application program interface generation method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108958731A CN108958731A (en) | 2018-12-07 |
CN108958731B true CN108958731B (en) | 2022-04-12 |
Family
ID=64494080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810580375.8A Active CN108958731B (en) | 2018-06-05 | 2018-06-05 | Application program interface generation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108958731B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739611A (en) * | 2019-01-25 | 2019-05-10 | 北京城市网邻信息技术有限公司 | List View method for drafting, device, terminal and storage medium |
CN112230914B (en) | 2019-07-15 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for producing small program |
CN111831944B (en) * | 2020-07-09 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Multimedia processing method, device, client, server and storage medium |
CN112687379A (en) * | 2021-03-17 | 2021-04-20 | 北京大学第三医院(北京大学第三临床医学院) | Interface customization method of doctor evaluation system and teacher end platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105867737A (en) * | 2016-03-28 | 2016-08-17 | 珠海格力电器股份有限公司 | Application program processing method and device |
CN106406739A (en) * | 2016-09-28 | 2017-02-15 | 维沃移动通信有限公司 | Note generating method and mobile terminal |
CN107391118A (en) * | 2017-06-29 | 2017-11-24 | 国家计算机网络与信息安全管理中心 | A kind of Web applications Consumer's Experience plateform system |
CN107463584A (en) * | 2016-06-06 | 2017-12-12 | 腾讯科技(深圳)有限公司 | The editing and processing method and terminal of a kind of interaction page |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120195573A1 (en) * | 2011-01-28 | 2012-08-02 | Apple Inc. | Video Defect Replacement |
US9195653B2 (en) * | 2011-10-24 | 2015-11-24 | Google Inc. | Identification of in-context resources that are not fully localized |
-
2018
- 2018-06-05 CN CN201810580375.8A patent/CN108958731B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105867737A (en) * | 2016-03-28 | 2016-08-17 | 珠海格力电器股份有限公司 | Application program processing method and device |
CN107463584A (en) * | 2016-06-06 | 2017-12-12 | 腾讯科技(深圳)有限公司 | The editing and processing method and terminal of a kind of interaction page |
CN106406739A (en) * | 2016-09-28 | 2017-02-15 | 维沃移动通信有限公司 | Note generating method and mobile terminal |
CN107391118A (en) * | 2017-06-29 | 2017-11-24 | 国家计算机网络与信息安全管理中心 | A kind of Web applications Consumer's Experience plateform system |
Also Published As
Publication number | Publication date |
---|---|
CN108958731A (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11307908B2 (en) | Format-specific data object passing between applications | |
US10091628B2 (en) | Message based application state and card sharing methods for user devices | |
US8942679B2 (en) | Method and system for providing pattern based enterprise applications for organizing, automating, and synchronizing processes for mobile communication devices | |
CN107646120B (en) | Interactive command line for content creation | |
CN102770840B (en) | Data structure maps and navigation | |
CN110309475B (en) | Page display method and device, terminal equipment and storage medium | |
CN108958731B (en) | Application program interface generation method, device, equipment and storage medium | |
US20100023547A1 (en) | Automatic user interface generation for entity interaction | |
CN111538774B (en) | Data storage and display method, system, equipment and storage medium | |
CN111936970B (en) | Cross-application feature linking and educational messaging | |
CN112000911A (en) | Page management method and device, electronic equipment and storage medium | |
CN111095335A (en) | Search result based list generation in a single view | |
Manca et al. | Customizable dynamic user interface distribution | |
CN109783184B (en) | User's customizing form generation method | |
CN112492399B (en) | Information display method and device and electronic equipment | |
CN111934985A (en) | Media content sharing method, device and equipment and computer readable storage medium | |
CN105988992A (en) | Icon pushing method and device | |
CN115756692A (en) | Method for automatically combining and displaying pages based on style attributes and related equipment thereof | |
JP2018128850A (en) | Information processing program, information processing method, and information processing device | |
US11599398B2 (en) | Method for combining unified matters in personal workspace and system using the same | |
US20230136837A1 (en) | Method for navigating thread-type messages and apparatus implementing the same method | |
US11036356B2 (en) | Service backed digital ruled paper templates | |
Oleshchenko | Fundamentals of Web Programming. Practical Tutorial | |
CN116992095A (en) | Query method and device for data model, storage medium and terminal equipment | |
CN118796317A (en) | Information interaction method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |