CN112631583A - Dish management method, plug-in, computer equipment and medium - Google Patents

Dish management method, plug-in, computer equipment and medium Download PDF

Info

Publication number
CN112631583A
CN112631583A CN202011488727.0A CN202011488727A CN112631583A CN 112631583 A CN112631583 A CN 112631583A CN 202011488727 A CN202011488727 A CN 202011488727A CN 112631583 A CN112631583 A CN 112631583A
Authority
CN
China
Prior art keywords
menu
instruction
option
menu option
menu management
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.)
Pending
Application number
CN202011488727.0A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011488727.0A priority Critical patent/CN112631583A/en
Publication of CN112631583A publication Critical patent/CN112631583A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

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)

Abstract

The invention discloses a menu management method, a plug-in, a computer device and a storage medium, wherein after receiving a starting instruction for starting the menu management plug-in, a menu management interface of the menu management plug-in is displayed, wherein the menu management interface displays menu options of a code editor; receiving a request instruction triggered by a user on the menu management interface; the menu management method, the plug-in, the computer equipment and the storage medium can realize the management of each menu option in the code editor and reduce the complexity of the encoding process of a developer.

Description

Dish management method, plug-in, computer equipment and medium
Technical Field
The invention relates to the technical field of computers, in particular to a menu management plug-in, a menu management method, a menu management computer device and a menu management medium
Background
Users do not leave the code editor when writing code using a wide variety of programming languages. A popular code editor not only needs to have the functions of basic code compiling and cross-platform editing, but also needs to support a plug-in extension mechanism, and the function can support developers to develop some integrated development management functions in a customized mode, so that the code editor is enriched, and the programming efficiency is improved. The existing code editor generally supports the function of displaying menu options by a right mouse button, but lacks the function of managing and configuring the menu options, so that when the functions (plug-ins) of the menu options are too many, a right button menu bar is too long and complicated, a user cannot find the functions required by the user at once, the complexity of a coding process is improved, the development efficiency is obviously reduced, and the interactive experience of the user is also reduced.
Disclosure of Invention
The invention aims to provide a menu management method to solve the problems in the prior art.
In order to achieve the above object, the present invention provides a menu management method, which is applied to a code editor and a menu management plugin recognizable by the code editor, wherein the menu management method comprises:
s1, receiving a starting instruction for starting the menu management plug-in, and displaying a menu management interface of the menu management plug-in;
s2, receiving a request instruction triggered by the user on the menu management interface;
s3, according to the request instruction, managing the menu options appointed by the request instruction.
Preferably, the menu management method is applied to right-click menu management of the code editor.
Preferably, in step S1, the menu management interface includes a visible unit and an invisible unit, the visible unit is used for displaying the displayed menu options, and the invisible unit is used for displaying the hidden menu options.
Preferably, the step S3 controls the hiding, displaying or displaying shortcut keys of the designated menu options according to the request instruction, including:
s31, if the request instruction is a hiding instruction, controlling the appointed menu option to be hidden;
s32, if the request instruction is a display instruction, controlling the display of the appointed menu option;
and S33, if the request instruction is to display the appointed shortcut key of the menu option, creating the shortcut key for the appointed menu option and displaying the shortcut key.
Further, the step S31 of controlling the hiding of the corresponding menu option includes the following steps:
s311, acquiring a menu option triggering a hiding instruction, and establishing and storing an index of the menu option to be hidden;
s312, searching an array of corresponding menu options from a database according to the menu option index to be hidden;
s313 hides the array of the corresponding menu option and updates the menu management interface.
Further, the hiding the array of the corresponding menu options in step S313 includes: and establishing a hidden array, and adding an array of corresponding menu options to the hidden array.
Further, the step S32 of controlling the display of the designated menu option includes the following steps:
s321, acquiring a menu option triggering a display instruction, and establishing and storing an index of the menu option to be displayed;
s322, acquiring an array of corresponding menu options from the hidden array according to the menu option index to be displayed;
s323 displays an array of corresponding menu options and updates the menu management interface.
Further, the step S413 of displaying the array of the corresponding menu option includes deleting the corresponding array from the hidden array after adding the array of the corresponding menu option to the database.
Further, in step S33, creating a shortcut key for the corresponding menu option and displaying includes the following steps:
s331, acquiring a menu option for triggering and displaying a specified menu option shortcut key instruction;
s332, introducing a third party library, and binding the appointed menu options to corresponding shortcut keys through the third party library;
s333, adding a shortcut key mechanism and transferring the shortcut key mechanism to a menu management interface in batches.
The invention also discloses a menu management plug-in, which comprises:
the starting module is used for receiving a starting instruction for starting the menu management plug-in and displaying a menu management interface of the menu management plug-in, wherein the menu management interface displays menu options of the code editor;
the trigger module is used for receiving a request instruction triggered by a user on the menu management interface;
and the control module is used for controlling the display, hiding or displaying shortcut keys of the appointed menu options according to the request instruction.
Preferably, the menu management interface includes a visible unit and an invisible unit, the visible unit is used for displaying the displayed menu options, and the invisible unit is used for displaying the hidden menu options.
Preferably, the step control module comprises a hidden control submodule, a display control submodule and a shortcut key display control submodule
The hiding control submodule is used for controlling the appointed menu option to be hidden if the request instruction is a hiding instruction;
the display control sub-module is used for controlling the display of the appointed menu option if the request instruction is a display instruction;
and the shortcut key display control submodule is used for creating and displaying a shortcut key for the appointed menu option if the request instruction is to display the appointed menu option shortcut key.
Further, the hidden control sub-module includes:
the menu option index acquisition unit to be hidden is used for acquiring the menu options triggering the hidden instruction and establishing and storing the menu option index to be hidden;
the to-be-hidden array acquisition unit is used for searching an array of corresponding menu options from a database according to the to-be-hidden menu option index;
and the hiding unit is used for hiding the array of the corresponding menu option and updating the menu management interface.
Further, the display control sub-module includes:
the menu option index acquisition unit is used for acquiring the menu options triggering the display instruction, and establishing and storing the menu option index to be displayed;
the to-be-displayed array acquisition unit acquires an array of corresponding menu options from the hidden array according to the to-be-displayed menu option index;
and the display unit is used for displaying the array of the corresponding menu options and updating the menu management interface.
Further, the shortcut key display control sub-module includes:
the menu option acquisition unit is used for acquiring and triggering the menu options of the shortcut key instruction of the menu option appointed by the display;
the shortcut key binding unit is used for introducing a third party library and binding the appointed menu option to the corresponding shortcut key through the third party library;
and the shortcut key adding unit is used for adding a shortcut key mechanism and transferring the shortcut key mechanism to the code encoder in batches.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods described above when executing the computer program.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.
The menu management method, the management plug-in, the computer equipment and the storage medium provided by the invention provide an intuitive, operable and configurable menu management interface for a user, can realize the display and hiding control of each menu option in a code editor, and control whether to display a shortcut key of a corresponding option, improve the flexibility and the expandability of the code editor, and reduce the complexity of a coding process of a developer. Particularly, under the condition that the menu options are too many, when a user does not need to display all the menu options, the menu management method can hide some unnecessary functions and only display the needed menu options, and provides a more convenient and efficient development tool while bringing better interactive experience for the user.
Drawings
FIG. 1 is a schematic diagram of a work flow of an embodiment of a menu management method of the present invention;
FIG. 2 is a schematic structural diagram of a menu management plugin according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the scope of the invention in any way.
Like reference numerals refer to like elements throughout the specification. The expression "and/or" includes any and all combinations of one or more of the associated listed items. In the drawings, the thickness, size, and shape of an object have been slightly exaggerated for convenience of explanation. The figures are purely diagrammatic and not drawn to scale.
It will be further understood that the terms "comprises," "comprising," "includes," "including," "has," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, integers, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, integers, operations, elements, components, and/or groups thereof.
The terms "substantially", "about" and the like as used in the specification are used as terms of approximation and not as terms of degree, and are intended to account for inherent deviations in measured or calculated values that would be recognized by one of ordinary skill in the art.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Example one
As shown in fig. 1, the present invention discloses a menu management method, which is applied to a code editor and a menu management plug-in recognizable by the code editor, wherein the menu management method comprises:
s1, receiving a starting instruction for starting the menu management plug-in, and displaying a menu management interface of the menu management plug-in;
s2, receiving a request instruction triggered by the user on the menu management interface;
s3, according to the request instruction, managing the menu options appointed by the request instruction.
The menu management method disclosed by the invention provides an intuitive, operable and configurable menu management interface for a user, can realize the management of each menu option in a code editor, such as the display and hidden control of the menu option, and controls whether a shortcut key corresponding to the menu option is displayed or not, improves the flexibility and the expandability of the code editor, and reduces the complexity of a coding process of a developer. Particularly, under the condition that the menu options are too many, when a user does not need to display all the menu options, the menu management method can hide some unnecessary functions and only display the needed menu options, and provides a more convenient and efficient development tool while bringing better interactive experience for the user.
The invention discloses a menu management method.A computer device runs a code editor and a menu management plug-in capable of being identified by the code editor. As a preferred solution, the menu management method is applied to the right-key menu of the code editor, in this embodiment, the editor object is preferably an atom code editor, the third-party library is preferably an underscorcejs third-party library, and by creating a new composite Disposable instance, and adding a registration command to this instance, a command of adding a new menu management method in the right-key menu bar can be realized, where the menu management method can be realized by calling an api of the atom.
After the command of the method is newly added in the right-key menu bar, correspondingly, the menu management method disclosed by the invention comprises the following steps of:
s1, receiving a starting instruction for starting the menu management plug-in, and displaying a menu management interface of the menu management plug-in;
after the right-click menu management plug-in is installed, a command for starting the method can be newly added in the right-click menu bar, and at the moment, the corresponding command in the right-click menu bar is clicked and triggered, so that the menu management interface can be skipped. In this embodiment, the jump from the menu management interface is realized by inheriting the ScrollView attribute of the atom-space-pen-views (api). And after the right-click menu management plug-in is triggered, rendering a menu management interface at first, wherein the menu management interface displays the menu options of the code editor.
S2, receiving a request instruction triggered by the user on the menu management interface;
after entering the menu management interface, the right-key menu management plug-in receives a user instruction, and controls the display, hiding, shortcut key creation and realization of corresponding menu options according to a request instruction sent by a user, so that the personalized customization of each function in a right-key menu bar is realized, and the personalized requirements of the user are met.
In this embodiment, the menu management interface enables a user to use a request instruction triggered by the menu management interface through a bind click method (a corresponding event is triggered when a certain button is clicked), so as to manage one or more menu options.
Each menu option has a corresponding operation button, wherein in the visible unit, each menu option is correspondingly provided with a hidden button (hide) and a shortcut button (Show strokes), and in the invisible unit, each menu option is provided with a display button (Show) and a shortcut button (Show strokes). When the user clicks the corresponding operation button through the menu management interface, a request instruction is triggered, and the process proceeds to step S3 for subsequent processing.
S3, according to the request instruction, managing the menu options appointed by the request instruction.
As a preferable scheme, in this embodiment, the request instruction includes a hide instruction, a display instruction, and an instruction of a specified menu option shortcut key, and controlling the specified menu option to be displayed, hidden, or displayed according to the request instruction includes the following steps:
s31, if the request instruction is a hiding instruction, controlling the appointed menu option to be hidden;
s32, if the request instruction is a display instruction, controlling the display of the appointed menu option;
and S33, if the request instruction is to display the appointed shortcut key of the menu option, creating the shortcut key for the appointed menu option and displaying the shortcut key.
As a preferable scheme, in this embodiment, the menu management interface is divided into a visible unit (visible menu unit) and an invisible unit (Hidden menu unit). When a user uses the menu for the first time, all menu options are in the visible unit, and the menu options to be hidden are added to the invisible unit for hiding according to the user instruction; or adding hidden menu options to the visible unit so that they can be displayed in the right key menu bar of the encoder; or creating and displaying shortcuts for corresponding menu options according to the request instruction.
Further, the step S31 of controlling the hiding of the corresponding menu option includes the following steps:
s311, establishing and storing an index of a menu option to be hidden, wherein the menu option to be hidden is a menu option for triggering a hidden instruction;
s312, searching an array of corresponding menu options from a database according to the menu option index to be hidden;
s313 hides the array of the corresponding menu option and updates the menu management interface. The hidden array can be established, and the array of the corresponding menu option is added into the hidden array to realize the hiding of the array of the corresponding menu option.
In this step, when a user needs to Hide one or more menu options of the code editor, the Hide button corresponding to the menu option is clicked in the visible unit, and the right-click menu management plug-in judges that the hiding instruction of the corresponding menu option is received, and then the appointed menu option is controlled to be hidden.
Specifically, the hidemeutetem command is used to control menu option hiding, wherein the contextmenueitemset is called to save the existing menu bar options, and the array corresponding to the menu option currently displayed in the visible unit is obtained (i.e. a database corresponding to the visible unit is formed). When a hidden instruction which is triggered by a user and aims at one or more menu options is received: establishing and storing a menu option index to be hidden, wherein the menu option index of a hidden instruction can be triggered by calling idx storage; then calling the hiddenCfg for storing an array of hidden menu items; and finally, adding the array corresponding to the index stored just idx into the hiddenCfg array, updating the list again, and at the moment, not displaying the menu option in the right-key menu, namely not displaying the option in the right-key menu bar. After hiding, the corresponding menu option is classified as an invisible unit and hidden in the management interface.
Further, the step S32 of controlling the display of the designated menu option includes the following steps:
s321, acquiring a menu option triggering a display instruction, and establishing and storing an index of the menu option to be displayed;
s322, acquiring an array of corresponding menu options from the hidden array according to the menu option index to be displayed;
s323 displays an array of corresponding menu options and updates the menu management interface. Wherein, after the array of the corresponding menu option is added to the database, the corresponding array is deleted from the hidden array to display the array of the corresponding menu option
In this step, when a user needs to display one or more menu options, the show button corresponding to the menu option is clicked in the invisible unit, and the menu management plug-in judges that a display instruction of the corresponding menu option is received, and controls the display of the specified menu option.
Specifically, the resetmenuineitem instruction is used for controlling the display of menu options as an example, when a display instruction aiming at one or more menu options triggered by a user is received, contrary to the hidden control, firstly a menu option index to be displayed is established according to the trigger instruction, then a corresponding array is inquired from the hiddenCfg array and obtained according to the menu option index to be displayed, finally the array is added into a right key menu item, the corresponding menu item in the hiddenCfg array is deleted, the list is updated again, and at this time, the menu option is displayed in a right key bar.
Further, in step S33, creating a shortcut key for the corresponding menu option and displaying includes the following steps:
s331, acquiring a menu option for triggering and displaying a specified menu option shortcut key instruction;
s332, introducing a third party library, and binding the appointed menu options to corresponding shortcut keys through the third party library;
s333, adding a shortcut key mechanism and transferring the shortcut key mechanism to a code encoder in batches.
Whether in the visible cell or the invisible cell, the user controls whether each menu option is created and displays the corresponding shortcut key by clicking the Show strokes button of the corresponding menu option.
As a preferred scheme, in this embodiment, adding a shortcut key to a menu option is to introduce a third-party JavaScript library — underscore. In particular, the findWhere instruction of underscore. js is added, finding the first element in label (menu option), matching to the menu option in selector; and judging whether the menu option is added with a shortcut key or not, if so, binding the specified event to the corresponding shortcut key through the js component library to match the corresponding shortcut key with the option, and otherwise, not displaying the option and the shortcut key thereof.
Example two
As shown in fig. 2, the present invention also discloses a menu management plug-in 10, comprising:
the starting module 11 is configured to receive a starting instruction for starting the menu management plugin, and display a menu management interface of the menu management plugin;
the triggering module 12 is configured to receive a request instruction triggered by the user on the menu management interface;
and a control module 13, configured to manage the menu options specified by the request instruction according to the request instruction.
Preferably, the menu management plugin 10 is applied to right-click menu management of the code editor.
Preferably, the step control module 13 includes a hidden control sub-module, a display control sub-module and a shortcut key display control sub-module
The hiding control submodule is used for controlling the appointed menu option to be hidden if the request instruction is a hiding instruction;
the display control sub-module is used for controlling the display of the appointed menu option if the request instruction is a display instruction;
and the shortcut key display control submodule is used for creating and displaying a shortcut key for the appointed menu option if the request instruction is to display the appointed menu option shortcut key.
Further, the menu management interface includes a visible unit and an invisible unit, the visible unit is used for displaying the displayed menu options, and the invisible unit is used for displaying the hidden menu options.
Further, the hidden control sub-module includes:
the menu option index acquisition unit to be hidden is used for acquiring the menu options triggering the hidden instruction and establishing and storing the menu option index to be hidden;
the to-be-hidden array acquisition unit is used for searching an array of corresponding menu options from a database according to the to-be-hidden menu option index;
and the hiding unit is used for hiding the array of the corresponding menu option and updating the menu management interface.
Further, the display control sub-module includes:
the menu option index acquisition unit is used for acquiring the menu options triggering the display instruction, and establishing and storing the menu option index to be displayed;
the to-be-displayed array acquisition unit acquires an array of corresponding menu options from the hidden array according to the to-be-displayed menu option index;
and the display unit is used for displaying the array of the corresponding menu options and updating the menu management interface.
Further, the shortcut key display control sub-module includes:
the menu option acquisition unit is used for acquiring and triggering the menu options of the shortcut key instruction of the menu option appointed by the display;
the shortcut key binding unit is used for introducing a third party library and binding the appointed menu option to the corresponding shortcut key through the third party library;
and the shortcut key adding unit is used for adding shortcut key mechanisms and transferring the shortcut key mechanisms to the menu management interface in batches.
The menu management plug-in provides an intuitive, operable and configurable menu management interface for a user, can realize the display and hidden control of each menu option in a code editor, and controls whether to display a shortcut key of the corresponding menu option, thereby improving the flexibility and the expandability of the code editor and reducing the complexity of the encoding process of a developer. Particularly, under the condition that the menu options are too many, when a user does not need to display all the menu options, the menu management method can hide some unnecessary functions and only display the needed menu options, and provides a more convenient and efficient development tool while bringing better interactive experience for the user.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including an independent server or a server cluster formed by multiple servers) that can execute programs. The computer device 20 of the present embodiment includes at least, but is not limited to: a memory 21, a processor 22, which may be communicatively coupled to each other via a system bus, as shown in FIG. 3. It is noted that fig. 3 only shows the computer device 20 with components 21-22, but it is to be understood that not all shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the memory 21 (i.e., the readable storage medium) includes a Flash memory, a hard disk, a multimedia Card, a Card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), and a Programmable Read Only Memory (PROM) memory 21, and the memory 21 may also be an external storage device of the computer device 20, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), and the like, which are provided on the computer device 20. Of course, the memory 21 may also include both internal and external storage devices of the computer device 20. In this embodiment, the memory 21 is generally used for storing an operating system and various application software installed in the computer device 20, such as program codes of a menu management plug-in the method embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the computer device 20. In this embodiment, the processor 22 is configured to execute the program code stored in the memory 21 or process data, for example, execute the menu management plug-in 10, so as to implement the menu management method in the method embodiment.
Example four
The present application also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer readable storage medium of the present embodiment is used for storing the menu management plug-in 10, and when executed by the processor, implements the menu management method of the method embodiment.
It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for managing dishes is characterized in that: the menu management method is applied to a code editor and a menu management plug-in which the code editor can recognize, wherein the menu management method comprises the following steps:
s1, receiving a starting instruction for starting the menu management plug-in, and displaying a menu management interface of the menu management plug-in;
s2, receiving a request instruction triggered by the user on the menu management interface;
s3, according to the request instruction, managing the menu options appointed by the request instruction.
2. A method of managing dishes according to claim 1, wherein: the menu management method is applied to right-click menu management of the code editor.
3. A menu management method according to claim 1, wherein the step S3 of managing the menu options specified by the request command according to the request command comprises:
s31, if the request instruction is a hiding instruction, controlling the appointed menu option to be hidden;
s32, if the request instruction is a display instruction, controlling the display of the appointed menu option;
and S33, if the request instruction is to display the appointed shortcut key of the menu option, creating the shortcut key for the appointed menu option and displaying the shortcut key.
4. A method of managing dishes according to claim 3, wherein: the menu management interface comprises a visible unit and an invisible unit, the visible unit is used for displaying the displayed menu options, and the invisible unit is used for displaying the hidden menu options.
5. A method of managing dishes according to claim 4, wherein: the step S31 of controlling the hiding of the corresponding menu option includes the following steps:
s311, acquiring a menu option triggering a hiding instruction, and establishing and storing an index of the menu option to be hidden;
s312, searching an array of corresponding menu options from a database according to the menu option index to be hidden;
s313 hides the array of the corresponding menu option and updates the menu management interface.
6. A method of managing dishes according to claim 4, wherein: the step S32 of controlling the display of the designated menu option includes the steps of:
s321, acquiring a menu option triggering a display instruction, and establishing and storing an index of the menu option to be displayed;
s322, acquiring an array of corresponding menu options from the hidden array according to the menu option index to be displayed;
s323 displays an array of corresponding menu options and updates the menu management interface.
7. A method of managing dishes according to claim 4, wherein: in step S33, creating and displaying a shortcut key for a corresponding menu option includes the following steps:
s331, acquiring a menu option for triggering and displaying a specified menu option shortcut key instruction;
s332, introducing a third party library, and binding the appointed menu options to corresponding shortcut keys through the third party library;
s333, adding a shortcut key mechanism and transferring the shortcut key mechanism to a code encoder in batches.
8. A menu management plug-in components which characterized in that: the computer device runs a code editor and a right-click menu management plug-in which the code editor can recognize, and comprises:
the starting module is used for receiving a starting instruction for starting the menu management plug-in and displaying a menu management interface of the menu management plug-in;
the trigger module is used for receiving a request instruction triggered by a user on the menu management interface;
and the control module is used for managing the menu options specified by the request instruction according to the request instruction.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein: the processor, when executing the computer program, realizes the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 7.
CN202011488727.0A 2020-12-16 2020-12-16 Dish management method, plug-in, computer equipment and medium Pending CN112631583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011488727.0A CN112631583A (en) 2020-12-16 2020-12-16 Dish management method, plug-in, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011488727.0A CN112631583A (en) 2020-12-16 2020-12-16 Dish management method, plug-in, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN112631583A true CN112631583A (en) 2021-04-09

Family

ID=75314129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011488727.0A Pending CN112631583A (en) 2020-12-16 2020-12-16 Dish management method, plug-in, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN112631583A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662649A (en) * 2012-03-06 2012-09-12 惠州Tcl移动通信有限公司 Method and apparatus for customizing function menu of application programs
US20130179814A1 (en) * 2012-01-09 2013-07-11 International Business Machines Corporation Enabling a user to invoke a function via a shortcut key in a multi-window computing environment
CN106814949A (en) * 2015-12-01 2017-06-09 北京触控科技有限公司 A kind of cocos game editing machine control interfaces management method
CN109901764A (en) * 2019-01-29 2019-06-18 深圳点猫科技有限公司 A kind of code editor right-click menu function realizing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130179814A1 (en) * 2012-01-09 2013-07-11 International Business Machines Corporation Enabling a user to invoke a function via a shortcut key in a multi-window computing environment
CN102662649A (en) * 2012-03-06 2012-09-12 惠州Tcl移动通信有限公司 Method and apparatus for customizing function menu of application programs
CN106814949A (en) * 2015-12-01 2017-06-09 北京触控科技有限公司 A kind of cocos game editing machine control interfaces management method
CN109901764A (en) * 2019-01-29 2019-06-18 深圳点猫科技有限公司 A kind of code editor right-click menu function realizing method and electronic equipment

Similar Documents

Publication Publication Date Title
US10055113B2 (en) System and method for modifying user interface elements
CN111699491B (en) Embedded action card in editable electronic document
US10088980B2 (en) Method and system for providing menu data for mobile applications
CN101322096B (en) Metadata driven user interface
CN107656729B (en) List view updating apparatus, method and computer-readable storage medium
US20130152038A1 (en) Project management workflows
CN102770840B (en) Data structure maps and navigation
CN104428734A (en) Input method editor application platform
US20070027914A1 (en) Terminology customization in a processing environment
CN107679056B (en) Method for generating SQL (structured query language) statement, electronic device and readable storage medium
US11755293B2 (en) Code execution and data processing pipeline
WO2016187033A1 (en) Techniques for configuring a generic program using controls
CN102054217A (en) Entity morphing in metamodel-based tools
CN103037107A (en) Label editing system and work method thereof for smart touch screen mobile phone
CN108920645A (en) Method, apparatus, smart machine and the storage medium that the smart machine page is shown
CN110968311B (en) Front-end page construction method and device and electronic equipment
CN112631583A (en) Dish management method, plug-in, computer equipment and medium
CN113325986B (en) Program control method, program control device, electronic device and readable storage medium
CN113868269A (en) Screenshot method and device, electronic equipment and readable storage medium
US11726818B1 (en) System for executing tasks in different programming languages
CN103530163A (en) Method for loading browser tool items and browser
JPH06149598A (en) Computer-user interface system
CN106227713A (en) The processing method and processing device of document
CN109240735B (en) Requirement rollback scheme filling method and device, terminal and readable storage medium
KR20160093289A (en) Method for managing property and system using the same

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