WO2023143197A1 - 组合图形控件的生成方法、装置、设备及存储介质 - Google Patents

组合图形控件的生成方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023143197A1
WO2023143197A1 PCT/CN2023/072408 CN2023072408W WO2023143197A1 WO 2023143197 A1 WO2023143197 A1 WO 2023143197A1 CN 2023072408 W CN2023072408 W CN 2023072408W WO 2023143197 A1 WO2023143197 A1 WO 2023143197A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
combined
information
graphic
basic function
Prior art date
Application number
PCT/CN2023/072408
Other languages
English (en)
French (fr)
Inventor
徐远
马锐锋
黄晓波
黄伟锋
Original Assignee
北京字跳网络技术有限公司
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 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2023143197A1 publication Critical patent/WO2023143197A1/zh

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • 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
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • Embodiments of the present disclosure relate to the field of computer technology, for example, to a method, device, device and storage medium for generating a combined graphical control.
  • Embodiments of the present disclosure provide a method, device, device, and storage medium for generating a combined graphical control, which can improve editing efficiency of graphical programming.
  • an embodiment of the present disclosure provides a method for generating a combined graphical control, including:
  • the configuration file and the resource file are stored in a setting control library.
  • the embodiment of the present disclosure also provides an apparatus for generating a combined graphical control, including:
  • a combined graphical control generation module configured to combine at least two basic functional controls in the graphical interface into a combined graphical control based on a combination operation triggered by a user
  • a resource file generating module configured to pop up a configuration window corresponding to the combined graphic control based on a user-triggered template generating operation, and generate a resource file corresponding to the combined graphic control;
  • a configuration information input module configured to receive configuration information input by a user in the configuration window
  • a configuration file generating module configured to generate a configuration file corresponding to the combined graphic control based on the configuration information
  • the file storage module is configured to store the configuration file and the resource file in the setting control library.
  • an embodiment of the present disclosure further provides an electronic device, and the electronic device includes:
  • a storage device configured to store one or more programs
  • the one or more processing devices When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method for generating a combined graphical control according to the embodiment of the present disclosure.
  • the embodiments of the present disclosure further provide a computer-readable medium on which a computer program is stored, and when the program is executed by the processing device, the method for generating a combined graphical control as described in the embodiments of the present disclosure is implemented.
  • FIG. 1 is a flow chart of a method for generating a combined graphical control in an embodiment of the present disclosure
  • Fig. 2a is a schematic diagram of a combined graphic subgraph in an embodiment of the present disclosure
  • Fig. 2b is a schematic diagram of the main diagram of the combined graphics in the embodiment of the present disclosure.
  • FIG. 3 is a schematic diagram of generating a configuration file in an embodiment of the present disclosure
  • Fig. 4 is a schematic structural diagram of a device for generating a combined graphical control in an embodiment of the present disclosure
  • Fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “including but not limited to”.
  • the term “based on” is “based at least in part on”.
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • Fig. 1 is a flow chart of a method for generating a combined graphical control provided by an embodiment of the present disclosure. This embodiment is applicable to combining at least two basic functional controls into a reusable combined graphical control.
  • the method can be composed of
  • the device for generating graphical controls can be composed of hardware and/or software, and can generally be integrated in a device with the function of generating combined graphical controls.
  • the device can be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in Figure 1, the method includes the following steps:
  • the basic function control in the graphical interface can be created to realize a certain logic function
  • the basic function control A component can also be called an atomic control, which is a control with a single and basic function in a graphical interface, and is the smallest unit that constitutes a logic diagram.
  • At least two basic functional controls are basic functional controls that have a connection relationship and form a complete functional logic.
  • the user selects at least two basic function controls in the graphical interface, and performs a combination operation on the selected at least two basic function controls, thereby obtaining a combined graphical control composed of at least two basic function controls.
  • the process of combining at least two basic functional controls in the graphical interface into a combined graphical control based on a combination operation triggered by the user may be: selecting at least two basic functional controls in the graphical interface based on the user's selection operation; Combination operations triggered by at least two basic functional controls generate a combined graphic sub-graph and a combined graphic main picture; associating the combined graphic main picture and the combined graphic sub-graph to obtain a combined graphic control.
  • the combined graphic subgraph is used to represent the functional logic of the combined graphic control
  • the combined graphic main picture is used to display the configuration information of the combined graphic control, such as name, input port information and output port information.
  • the user first right-clicks the selected at least two basic function controls, jumps out of the "operation selection interface”, and selects the "combination” option in the "operation selection interface", so as to realize the control of at least two basic function controls A combination of , so as to obtain a combined graphics control.
  • the configuration window is used to provide an edit box for the user to input configuration information corresponding to the combined graphic control, and the user can input the configuration information in the edit window.
  • the resource file may include a control connection relationship description file and a control reference resource file
  • the control connection relationship description file includes control list information and edge list information.
  • Control list information includes: unique identification code, control name, resource identification code, input port information and output port information;
  • side list information includes: side name, side input port information and side output port information.
  • the control list information is constituted by the information of the basic functional controls contained in the composite graphic control.
  • the unique identification code represents the identification code of the basic function control in the combined graphics subgraph
  • the resource identification code represents the identification code of the basic function control in the setting control library
  • the control name is the name stored in the setting library of the basic function control.
  • Input Port information includes input port name, input port unique identification code, input port type, input port serial number, input port position and input port link information
  • output port information includes output port name, output port unique identification code, output port type, output Port serial number, output port position and whether the output port is connected or not.
  • the edge list information is composed of edge information connecting multiple basic functional controls.
  • the terminal input port information includes: terminal input port identification code, terminal input port identity information, control information to which the terminal input port belongs, and terminal input port type;
  • terminal output port information includes: terminal output port identification code , One terminal outputs port identity information, one terminal outputs the control information to which the port belongs, and one terminal outputs the type of the port.
  • the process of generating the resource file corresponding to the combined graphic control may be: analyze the basic functional controls and connection relationships contained in the combined graphic control, obtain the information of the basic functional controls and the side information connecting the basic functional controls; the information of the basic functional controls Constitutes the control list information, and the side information constitutes the side list information.
  • both the control list information and the side list information may be expressed in a set format (for example: json format).
  • json format a set format
  • the information of the basic function control and the side information connecting the basic function control are written in json format, and the control list information and the side list information are obtained.
  • control reference resource file includes the storage path of the control reference resource.
  • the reference resource file of the control can be audio, picture, document, etc., and can be reference resource file in mp3, png, jpg, fbx, shader and other formats.
  • the control reference resource file can be loaded into the basic function control, so that the basic function control processes the control reference resource file according to its own logic function.
  • S130 Receive configuration information input by the user in the configuration window.
  • the configuration information may include information such as the name of the combined graphic control, the information of the input port of the combined graphic control, the information of the output port of the combined graphic control, whether the internal configuration is allowed to be viewed, and whether the combined graphic control is allowed to be expanded.
  • the configuration information is used to render the combined graphic main image corresponding to the combined graphic control.
  • the configuration file may be expressed in a set format (such as json format). For example, after obtaining the configuration information input by the user, edit the configuration information into a configuration file in json format.
  • FIG. 3 is a schematic diagram of generating a configuration file in this embodiment. As shown in FIG. 3, the user right-clicks on the main picture of the composite graphic to jump out of the "Function Selection” window, and select “Template Generation Operation” in the "Function Selection” window ", the "Configuration Window” pops up, and the configuration information entered by the user is received in the "Configuration Window", and the configuration file is generated after the user clicks the "Confirm” button.
  • the user can reuse the combined graphic control.
  • the method for generating a combined graphic control further includes the following steps: when it is detected that the user triggers the operation of creating a combined graphic control, acquiring a configuration file and a resource file corresponding to the combined graphic control; Figure; generate the combined graphic main picture according to the configuration file; associate the combined graphic sub-figure with the combined graphic main picture to generate the combined graphic control.
  • the combined graphic subgraph is a logic diagram of the basic functional controls contained in the combined graphic control and the connection relationship of the basic functional controls.
  • the main picture of combined graphics shows the configuration information such as the name, input port and output port of the combined graphic control.
  • the process of generating a composite graph subgraph according to a resource file may be: create at least two basic function controls contained in a composite graph control according to the control list information; connect the created at least two basic function controls according to the edge list information, and connect the control
  • the reference resource file is loaded into the corresponding basic function control to obtain the combined graphic subgraph.
  • the process of creating at least two basic function controls contained in the combined graphic control according to the control list information may be: obtain the basic function control from the set control library according to the resource identification code; set a new one for the obtained basic function control Control unique identification code, and establish the corresponding relationship between the new control unique identification code and the stored control unique identification code; based on Correspondence Create the obtained basic function controls in the current graphical interface.
  • the process of loading the control reference resource file into the corresponding basic function control may be: obtain the control reference resource from the storage path of the control reference resource, import the control reference resource into the resource system of the editor, and finally import the control reference resource
  • the resource file is loaded from the resource system to the corresponding basic function control.
  • the remaining control information is obtained according to the corresponding relationship, so that the basic function control is created in the current graphical interface according to the control information, and then the edge Input port information and output port information of multiple edges in the list information, based on the input port information of the edge and the output port information of the edge, the basic function controls are connected, and finally the control reference resource file is loaded to the corresponding basic function control to obtain a combined graphic subgraph.
  • the process of generating the combined graphic master map according to the configuration file may be based on the name of the combined graphic control in the configuration file, the input port information of the combined graphic control, the output port information of the combined graphic control, whether it is allowed to view the internal configuration and whether it is allowed to expand Combining graphics controls and other information for graphics rendering to obtain the main picture of the combined graphics.
  • Fig. 4 is a schematic structural diagram of an apparatus for generating a combined graphical control provided by an embodiment of the present disclosure. As shown in Figure 4, the device includes:
  • the combined graphical control generation module 210 is configured to combine at least two basic functional controls in the graphical interface into a combined graphical control based on a combined operation triggered by the user;
  • the resource file generating module 220 is configured to pop up a configuration window corresponding to the combined graphic control based on a user-triggered template generating operation, and generate a resource file corresponding to the combined graphic control;
  • the configuration information input module 230 is configured to receive the configuration information input by the user in the configuration window;
  • the configuration file generation module 240 is configured to generate a configuration file corresponding to the combined graphic control based on the configuration information
  • the file storage module 250 is configured to store configuration files and resource files in the setting control library.
  • the combined graphical control generating module 210 is configured to combine at least two basic functional controls in the graphical interface into a combined graphical control based on a combination operation triggered by the user in the following manner:
  • resource files include control connection relationship description files and control reference resource files;
  • control connection relationship description files include control list information and edge list information; among them, control list information includes: control unique identification code, control name, resource identification code, input Port information and output port information; side list information includes: side name, side unique identification code, side input port information and side output port information;
  • control reference resource file contains the storage path of control reference resources.
  • the resource file generation module 220 is configured to generate the resource file corresponding to the combined graphic control in the following manner:
  • the information of the basic function control constitutes the control list information
  • the side information constitutes the side list information.
  • the generating device for the combined graphic control also includes: a combined graphic control creation module, which is set to:
  • the combined graphic control creation module is configured to generate a combined graphic subgraph according to the resource file in the following manner:
  • the combined graphical control creation module is configured to create at least two basic functional controls included in the combined graphical control according to the control list information in the following manner:
  • the obtained basic function controls are created in the current graphical interface.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and advantageous effects for executing the above-mentioned methods.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and advantageous effects for executing the above-mentioned methods.
  • FIG. 5 it shows a schematic structural diagram of an electronic device 300 suitable for implementing the embodiments of the present disclosure.
  • the electronic equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc., or various forms of servers, such as independent servers or server clusters.
  • the electronic device shown in FIG. 5 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
  • an electronic device 300 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 301, which may be stored in a read-only storage device (ROM) 302 or loaded into a random access device from a storage device 305.
  • ROM read-only storage device
  • RAM random access device
  • various appropriate actions and processes are executed by accessing programs in the storage device (RAM) 303 .
  • RAM random access device
  • various programs and data necessary for the operation of the electronic device 300 are also stored.
  • the processing device 301, ROM 302, and RAM 303 are connected to each other through a bus 304.
  • An input/output (I/O) interface 305 is also connected to the bus 304 .
  • the following devices can be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibrating an output device 307 such as a computer; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. communication The means 309 may allow the electronic device 300 to perform wireless or wired communication with other devices to exchange data. While FIG. 5 shows electronic device 300 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising program code for performing a word recommendation method.
  • the computer program may be downloaded and installed from the network via the communication means 309, or from the storage means 305, or from the ROM 302.
  • the processing device 301 When the computer program is executed by the processing device 301, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
  • the computer readable storage medium may be a non-transitory computer readable storage medium.
  • the client and the server can communicate using any currently known or future network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium
  • HTTP HyperText Transfer Protocol
  • the communication eg, communication network
  • Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: combines at least two basic function controls in the graphical interface based on a combination operation triggered by the user into a Combining graphic controls; popping up a configuration window corresponding to the combined graphic control based on a template generation operation triggered by the user, and generating a resource file corresponding to the combined graphic control; receiving configuration information input by the user in the configuration window; A configuration file corresponding to the combined graphic control is generated based on the configuration information; and the configuration file and the resource file are stored in a set control library.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" 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.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs System on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • the embodiments of the present disclosure disclose a method for generating a combined graphical control, including:
  • the configuration file and the resource file are stored in a setting control library.
  • At least two basic functional controls in the graphical interface are combined into a combined graphical control based on a combined operation triggered by the user, including:
  • the resource file includes a control connection relationship description file and a control reference resource file;
  • the control connection relationship description file includes control list information and edge list information; wherein, the control list information includes: control unique identification code, control name, resource identification code , input port information and output port information; edge list information includes: edge name, edge unique identification code, edge input port information and edge output port information;
  • the control reference resource file includes the storage path of the control reference resource.
  • generating a resource file corresponding to the combined graphic control includes:
  • the information of the basic function control constitutes control list information, and the side information constitutes side list information.
  • the generation method of the combined graphic control also includes:
  • generating a combined graphic subgraph according to the resource file includes:
  • the at least two created basic function controls are connected according to the edge list information, and the control reference resource file is loaded into the corresponding basic function control to obtain a combined graphic subgraph.
  • At least two basic function controls contained in the combined graphic control are created according to the control list information, including:
  • the acquired basic function controls are created in the current graphical interface.
  • the embodiment of the present disclosure discloses a method, device, equipment and storage medium for generating a combined graphic control.
  • the configuration information input by the user is received in the window; the configuration file corresponding to the combined graphic control is generated based on the configuration information; the configuration file and the resource file are stored in the set control library.
  • the method for generating a combined graphic control combines at least two basic function controls into a combined graphic control, and stores the generated resource file and configuration file in the set control library, so that the combined graphic control can be reused , can improve the editing efficiency of graphical programming.

Landscapes

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

Abstract

本公开实施例公开了一种组合图形控件的生成方法、装置、设备及存储介质。基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;基于用户触发的模板生成操作弹出所述组合图形控件对应的配置窗口,以及生成所述组合图形控件对应的资源文件;在所述配置窗口中接收用户输入的配置信息;基于所述配置信息生成所述组合图形控件对应的配置文件;将所述配置文件和所述资源文件存储至设定控件库中。

Description

组合图形控件的生成方法、装置、设备及存储介质
本申请要求在2022年1月28日提交中国专利局、申请号为202210116159.4的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及计算机技术领域,例如涉及一种组合图形控件的生成方法、装置、设备及存储介质。
背景技术
图形化编程(Graph)过程中,需要将一些内置功能控件进行组合,以实现用户想要的功能。这些内置功能控件具有单一的或者基本的控制能力或计算能力,可以称之为原子控件。相关技术中,用户需要每次对原子控件进行重新组合,影响图形化编程的编辑效率。
发明内容
本公开实施例提供一种组合图形控件的生成方法、装置、设备及存储介质,可以提高图形化编程的编辑效率。
第一方面,本公开实施例提供了一种组合图形控件的生成方法,包括:
基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;
基于用户触发的模板生成操作弹出所述组合图形控件对应的配置窗口,以及生成所述组合图形控件对应的资源文件;
在所述配置窗口中接收用户输入的配置信息;
基于所述配置信息生成所述组合图形控件对应的配置文件;
将所述配置文件和所述资源文件存储至设定控件库中。
第二方面,本公开实施例还提供了一种组合图形控件的生成装置,包括:
组合图形控件生成模块,设置为基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;
资源文件生成模块,设置为基于用户触发的模板生成操作弹出所述组合图形控件对应的配置窗口,以及生成所述组合图形控件对应的资源文件;
配置信息输入模块,设置为在所述配置窗口中接收用户输入的配置信息;
配置文件生成模块,设置为基于所述配置信息生成所述组合图形控件对应的配置文件;
文件存储模块,设置为将所述配置文件和所述资源文件存储至设定控件库中。
第三方面,本公开实施例还提供了一种电子设备,所述电子设备包括:
一个或多个处理装置;
存储装置,设置为存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现如本公开实施例所述的组合图形控件的生成方法。
第四方面,本公开实施例还提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现如本公开实施例所述的组合图形控件的生成方法。
附图说明
图1是本公开实施例中的一种组合图形控件的生成方法的流程图;
图2a是本公开实施例中的组合图形子图示意图;
图2b是本公开实施例中的组合图形主图示意图;
图3是本公开实施例中的生成配置文件的示意图;
图4是本公开实施例中的一种组合图形控件的生成装置的结构示意图;
图5是本公开实施例中的一种电子设备的结构示意图。
具体实施方式
应当理解,本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
图1为本公开实施例提供的一种组合图形控件的生成方法的流程图,本实施例可适用于将至少两个基础功能控件组合为可复用的组合图形控件情况,该方法可以由组合图形控件的生成装置来执行,该装置可由硬件和/或软件组成,并一般可集成在具有组合图形控件的生成功能的设备中,该设备可以是服务器、移动终端或服务器集群等电子设备。如图1所示,该方法包括如下步骤:
S110,基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件。
其中,图形界面中的基础功能控件可以是用于实现某种逻辑功能而创建的,基础功能控 件也可以称之为原子控件,是图形界面中具有单一的、基本功能的控件,是构成逻辑图的最小单元。至少两个基础功能控件为具有连接关系且形成完整的功能逻辑的基础功能控件。本实施例中,用户在图形界面中选中至少两个基础功能控件,对选中的至少两个基础功能控件执行组合操作,从而获得由至少两个基础功能控件组成的组合图形控件。
例如,基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件的过程可以是:基于用户的选择操作在图形界面中选中至少两个基础功能控件;基于用户在选中的至少两个基础功能控件触发的组合操作生成组合图形子图及组合图形主图;将组合图形主图和组合图形子图关联,获得组合图形控件。
其中,组合图形子图用于表征组合图形控件的功能逻辑,组合图形主图用于显示组合图形控件的配置信息,如:名称、输入端口信息和输出端口信息。本实施例中,用户首先右击选中的至少两个基础功能控件,跳转出“操作选择界面”,在“操作选择界面”中选择“组合”选项,以实现了对至少两个基础功能控件的组合,从而获得组合图形控件。示例性的,假设在图形界面中要实现(a+b)*c的运算,则需要在图形界面中创建输入控件、加法控件、乘法控件及输出控件,并按照运算逻辑将多个控件相连,如图2a所示。用户将输入控件、加法控件、乘法控件及输出控件选中后右击,在弹出的窗口中选择“组合”选项,从而生成组合图形子图及组合图形主图,并将组合图形主图和组合图形子图关联,获得组合图形控件。其中,图2a为组合图形子图,图2b为组合图形主图。
S120,基于用户触发的模板生成操作弹出组合图形控件对应的配置窗口,以及生成组合图形控件对应的资源文件。
其中,配置窗口用于提供用户输入组合图形控件对应的配置信息的编辑框,用户可以在编辑窗口中输入配置信息。
其中,资源文件可以包括控件连接关系描述文件及控件引用资源文件,控件连接关系描述文件包括控件列表信息及边列表信息。控件列表信息包括:唯一标识码、控件名称、资源标识码、输入端口信息及输出端口信息;边列表信息包括:边名称、边一端输入端口信息及边一端输出端口信息。
其中,控件列表信息由组合图形控件包含的基础功能控件的信息构成。其中,唯一标识码表征基础功能控件在组合图形子图的标识码,资源标识码表征基础功能控件在设定控件库中的标识码,控件名称为基础功能控件在设定库存储的名称,输入端口信息包括输入端口名称、输入端口唯一标识码、输入端口类型、输入端口序号、输入端口位置及输入端口是否链接信息;输出端口信息包括输出端口名称、输出端口唯一标识码、输出端口类型、输出端口序号、输出端口位置及输出端口是否链接信息。
其中,边列表信息由连接多个基础功能控件的边的信息组成。边一端输入端口信息包括:边一端输入端口标识码、边一端输入端口身份信息、边一端输入端口属于的控件信息、边一端输入端口的类型;边一端输出端口信息包括:边一端输出端口标识码、边一端输出端口身份信息、边一端输出端口属于的控件信息、边一端输出端口的类型。
例如,生成组合图形控件对应的资源文件的过程可以是:对组合图形控件包含的基础功能控件及连接关系进行解析,获得基础功能控件的信息及连接基础功能控件的边信息;基础功能控件的信息构成控件列表信息,边信息构成边列表信息。
其中,控件列表信息和边列表信息均可以采用设定格式(例如:json格式)表示。本实施例中,在获得基础功能控件的信息及连接基础功能控件的边信息,将基础功能控件的信息及连接基础功能控件的边信息按照json格式编写,获得控件列表信息及边列表信息。
其中,控件引用资源文件包含控件引用资源的存储路径。控件引用资源文件可以是音频、图片及文档等,可以是mp3,png,jpg,fbx,shader等格式的引用资源文件。控件引用资源文件可以加载基础功能控件中,使得基础功能控件根据自身的逻辑功能对控件引用资源文件进行处理。
S130,在配置窗口中接收用户输入的配置信息。
其中,配置信息可以包括组合图形控件名称、组合图形控件输入端口信息、组合图形控件输出端口信息、是否允许查看内部配置及是否允许展开组合图形控件等信息。其中,配置信息用于渲染组合图形控件对应的组合图形主图。
S140,基于配置信息生成组合图形控件对应的配置文件。
其中,配置文件可以以设定格式(如json格式)表示。例如,在获取到用户输入的配置信息后,将配置信息编辑为json格式的配置文件。示例性的,图3是本实施例中生成配置文件的示意图,如图3所示,用户右击组合图形主图,跳出“功能选择”窗口,在“功能选择”窗口中选择“模板生成操作”,弹出“配置窗口”,在“配置窗口”中接收用户输入的配置信息,在用户点击“确认”按钮后,从而生成配置文件。
S150,将配置文件和资源文件存储至设定控件库中。
例如,将配置文件和资源文件存储至设定控件库中后,用户就可以对组合图形控件进行复用。
例如,本实施例提供的组合图形控件的生成方法还包括如下步骤:当检测到用户触发创建组合图形控件的操作时,获取组合图形控件对应的配置文件及资源文件;根据资源文件生成组合图形子图;根据配置文件生成组合图形主图;将组合图形子图和组合图形主图进行关联,生成组合图形控件。
其中,组合图形子图为组合图形控件包含的基础功能控件及基础功能控件的连接关系的逻辑图。组合图形主图展示组合图形控件的名称、输入端口及输出端口等配置信息。
例如,根据资源文件生成组合图形子图的过程可以是:根据控件列表信息创建组合图形控件包含的至少两个基础功能控件;根据边列表信息将创建的至少两个基础功能控件相连,并将控件引用资源文件加载至对应的基础功能控件中,获得组合图形子图。
本实施例中,根据控件列表信息创建组合图形控件包含的至少两个基础功能控件的过程可以是:根据资源标识码从设定控件库中获取基础功能控件;对获取的基础功能控件设置新的控件唯一标识码,并建立新的控件唯一标识码和存储的控件唯一标识码的对应关系;基于 对应关系将获取到的基础功能控件创建于当前图形界面中。
其中,将控件引用资源文件加载至对应的基础功能控件中的过程可以是:从控件引用资源的存储路径中获取控件引用资源,并将控件引用资源导入编辑器的资源系统中,最后将控件引用资源文件从资源系统中加载至对应的基础功能控件。
例如,在建立了新的控件唯一标识码和存储的控件唯一标识码的对应关系后,根据该对应关系获取其余控件信息,从而根据控件信息将基础功能控件创建于当前图形界面中,然后获取边列表信息中多个边的边一端输入端口信息和边一端输出端口信息,基于边一端输入端口信息和边一端输出端口信息将基础功能控件进行相连,最后将控件引用资源文件加载至对应的基础功能控件中,从而获得组合图形子图。
本实施例中,根据配置文件生成组合图形主图的过程可以是根据配置文件中的组合图形控件名称、组合图形控件输入端口信息、组合图形控件输出端口信息、是否允许查看内部配置及是否允许展开组合图形控件等信息进行图形渲染,获得组合图形主图。
图4是本公开实施例提供的一种组合图形控件的生成装置的结构示意图。如图4所示,该装置包括:
组合图形控件生成模块210,设置为基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;
资源文件生成模块220,设置为基于用户触发的模板生成操作弹出组合图形控件对应的配置窗口,以及生成组合图形控件对应的资源文件;
配置信息输入模块230,设置为在配置窗口中接收用户输入的配置信息;
配置文件生成模块240,设置为基于配置信息生成组合图形控件对应的配置文件;
文件存储模块250,设置为将配置文件和资源文件存储至设定控件库中。
例如,组合图形控件生成模块210设置为通过以下方式基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件:
基于用户的选择操作在图形界面中选中至少两个基础功能控件;
基于用户在选中的至少两个基础功能控件触发的组合操作生成组合图形子图及组合图形主图;
将组合图形主图和组合图形子图关联,获得组合图形控件。
例如,资源文件包括控件连接关系描述文件及控件引用资源文件;控件连接关系描述文件包括控件列表信息及边列表信息;其中,控件列表信息包括:控件唯一标识码、控件名称、资源标识码、输入端口信息及输出端口信息;边列表信息包括:边名称、边唯一标识码、边一端输入端口信息及边一端输出端口信息;控件引用资源文件包含控件引用资源的存储路径。
例如,资源文件生成模块220设置为通过以下方式生成所述组合图形控件对应的资源文件:
对组合图形控件包含的基础功能控件及连接关系进行解析,获得基础功能控件的信息及连接基础功能控件的边信息;
基础功能控件的信息构成控件列表信息,边信息构成边列表信息。
例如,组合图形控件的生成装置还包括:组合图形控件创建模块,设置为:
当检测到用户触发创建组合图形控件的操作时,获取组合图形控件对应的配置文件及资源文件;
根据资源文件生成组合图形子图;
根据配置文件生成组合图形主图;
将组合图形子图和组合图形主图进行关联,生成组合图形控件。
例如,组合图形控件创建模块,设置为通过以下方式根据所述资源文件生成组合图形子图:
根据控件列表信息创建组合图形控件包含的至少两个基础功能控件;
根据边列表信息将创建的至少两个基础功能控件相连,并将控件引用资源文件加载至对应的基础功能控件中,获得组合图形子图。
例如,组合图形控件创建模块,设置为通过以下方式根据所述控件列表信息创建所述组合图形控件包含的至少两个基础功能控件:
根据资源标识码从设定控件库中获取基础功能控件;
对获取的基础功能控件设置新的控件唯一标识码,并建立新的控件唯一标识码和存储的控件唯一标识码的对应关系;
基于对应关系将获取到的基础功能控件创建于当前图形界面中。
上述装置可执行本公开前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本公开前述所有实施例所提供的方法。
下面参考图5,其示出了适于用来实现本公开实施例的电子设备300的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端,或者多种形式的服务器,如独立服务器或者服务器集群。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储装置(ROM)302中的程序或者从存储装置305加载到随机访问存储装置(RAM)303中的程序而执行多种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的多种程序和数据。处理装置301、ROM 302以及RAM 303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信 装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有多种装置的电子设备300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行词语的推荐方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置305被安装,或者从ROM 302被安装。在该计算机程序被处理装置301执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。计算机可读存储介质可以为非暂态计算机可读存储介质。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;基于用户触发的模板生成操作弹出所述组合图形控件对应的配置窗口,以及生成所述组合图形控件对应的资源文件;在所述配置窗口中接收用户输入的配置信息; 基于所述配置信息生成所述组合图形控件对应的配置文件;将所述配置文件和所述资源文件存储至设定控件库中。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开实施例的一个或多个实施例,本公开实施例公开了一种组合图形控件的生成方法,包括:
基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;
基于用户触发的模板生成操作弹出所述组合图形控件对应的配置窗口,以及生成所述组合图形控件对应的资源文件;
在所述配置窗口中接收用户输入的配置信息;
基于所述配置信息生成所述组合图形控件对应的配置文件;
将所述配置文件和所述资源文件存储至设定控件库中。
例如,基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件,包括:
基于用户的选择操作在图形界面中选中至少两个基础功能控件;
基于用户在选中的至少两个基础功能控件触发的组合操作生成组合图形子图及组合图形主图;
将所述组合图形主图和所述组合图形子图关联,获得组合图形控件。
例如,所述资源文件包括控件连接关系描述文件及控件引用资源文件;控件连接关系描述文件包括控件列表信息及边列表信息;其中,控件列表信息包括:控件唯一标识码、控件名称、资源标识码、输入端口信息及输出端口信息;边列表信息包括:边名称、边唯一标识码、边一端输入端口信息及边一端输出端口信息;所述控件引用资源文件包含控件引用资源的存储路径。
例如,生成所述组合图形控件对应的资源文件,包括:
对所述组合图形控件包含的基础功能控件及连接关系进行解析,获得基础功能控件的信息及连接基础功能控件的边信息;
所述基础功能控件的信息构成控件列表信息,所述边信息构成边列表信息。
例如,组合图形控件的生成方法还包括:
当检测到用户触发创建所述组合图形控件的操作时,获取所述组合图形控件对应的配置文件及资源文件;
根据所述资源文件生成组合图形子图;
根据所述配置文件生成组合图形主图;
将所述组合图形子图和所述组合图形主图进行关联,生成组合图形控件。
例如,根据所述资源文件生成组合图形子图,包括:
根据所述控件列表信息创建所述组合图形控件包含的至少两个基础功能控件;
根据所述边列表信息将创建的所述至少两个基础功能控件相连,并将所述控件引用资源文件加载至对应的基础功能控件中,获得组合图形子图。
例如,根据所述控件列表信息创建所述组合图形控件包含的至少两个基础功能控件,包括:
根据所述资源标识码从所述设定控件库中获取基础功能控件;
对获取的基础功能控件设置新的控件唯一标识码,并建立所述新的控件唯一标识码和存储的控件唯一标识码的对应关系;
基于所述对应关系将获取到的基础功能控件创建于当前图形界面中。
本公开实施例公开了一种组合图形控件的生成方法、装置、设备及存储介质。基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;基于用户触发的模板生成操作弹出组合图形控件对应的配置窗口,以及生成组合图形控件对应的资源文件;在配置窗口中接收用户输入的配置信息;基于配置信息生成组合图形控件对应的配置文件;将配置文件和资源文件存储至设定控件库中。本公开实施例提供的组合图形控件的生成方法,将至少两个基础功能控件组合为组合图形控件,并将生成的资源文件和配置文件存储至设定控件库中,使得组合图形控件被复用,可以提高图形化编程的编辑效率。

Claims (16)

  1. 一种组合图形控件的生成方法,包括:
    基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;
    基于用户触发的模板生成操作弹出所述组合图形控件对应的配置窗口,以及生成所述组合图形控件对应的资源文件;
    在所述配置窗口中接收用户输入的配置信息;
    基于所述配置信息生成所述组合图形控件对应的配置文件;
    将所述配置文件和所述资源文件存储至设定控件库中。
  2. 根据权利要求1所述的方法,其中,所述基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件,包括:
    基于用户的选择操作在图形界面中选中至少两个基础功能控件;
    基于用户在选中的至少两个基础功能控件触发的组合操作生成组合图形子图及组合图形主图;
    将所述组合图形主图和所述组合图形子图关联,获得组合图形控件。
  3. 根据权利要求2所述的方法,其中,所述资源文件包括控件连接关系描述文件及控件引用资源文件;所述控件连接关系描述文件包括控件列表信息及边列表信息;其中,所述控件列表信息包括:控件唯一标识码、控件名称、资源标识码、输入端口信息及输出端口信息;所述边列表信息包括:边名称、边唯一标识码、边一端输入端口信息及边一端输出端口信息;所述控件引用资源文件包含控件引用资源的存储路径。
  4. 根据权利要求3所述的方法,其中,所述生成所述组合图形控件对应的资源文件,包括:
    对所述组合图形控件包含的基础功能控件及连接关系进行解析,获得基础功能控件的信息及连接基础功能控件的边信息;
    所述基础功能控件的信息构成所述控件列表信息,所述基础功能控件的边信息构成所述边列表信息。
  5. 根据权利要求3所述的方法,还包括:
    响应于确定检测到用户触发创建所述组合图形控件的操作,获取所述设定控件库中存储的所述组合图形控件对应的配置文件及所述组合图形控件对应的资源文件;
    根据所述资源文件生成所述组合图形子图;
    根据所述配置文件生成所述组合图形主图;
    将所述组合图形子图和所述组合图形主图进行关联,生成组合图形控件。
  6. 根据权利要求5所述的方法,其中,所述根据所述资源文件生成组合图形子图,包括:
    根据所述控件列表信息创建所述组合图形控件包含的至少两个基础功能控件;
    根据所述边列表信息将创建的所述至少两个基础功能控件相连,并将所述控件引用资源文件加载至对应的基础功能控件中,获得组合图形子图。
  7. 根据权利要求6所述的方法,其中,所述根据所述控件列表信息创建所述组合图形控 件包含的至少两个基础功能控件,包括:
    根据所述资源标识码从所述设定控件库中获取基础功能控件;
    对获取的基础功能控件设置新的控件唯一标识码,并建立所述新的控件唯一标识码和存储的控件唯一标识码的对应关系;
    基于所述对应关系将获取到的基础功能控件创建于当前图形界面中。
  8. 一种组合图形控件的生成装置,包括:
    组合图形控件生成模块,设置为基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件;
    资源文件生成模块,设置为基于用户触发的模板生成操作弹出所述组合图形控件对应的配置窗口,以及生成所述组合图形控件对应的资源文件;
    配置信息输入模块,设置为在所述配置窗口中接收用户输入的配置信息;
    配置文件生成模块,设置为基于所述配置信息生成所述组合图形控件对应的配置文件;
    文件存储模块,设置为将所述配置文件和所述资源文件存储至设定控件库中。
  9. 根据权利要求8所述的装置,其中,所述组合图形控件生成模块设置为通过以下方式基于用户触发的组合操作将图形界面中至少两个基础功能控件组合为组合图形控件:
    基于用户的选择操作在图形界面中选中至少两个基础功能控件;
    基于用户在选中的至少两个基础功能控件触发的组合操作生成组合图形子图及组合图形主图;
    将所述组合图形主图和所述组合图形子图关联,获得组合图形控件。
  10. 根据权利要求9所述的装置,其中,所述资源文件包括控件连接关系描述文件及控件引用资源文件;所述控件连接关系描述文件包括控件列表信息及边列表信息;其中,所述控件列表信息包括:控件唯一标识码、控件名称、资源标识码、输入端口信息及输出端口信息;所述边列表信息包括:边名称、边唯一标识码、边一端输入端口信息及边一端输出端口信息;所述控件引用资源文件包含控件引用资源的存储路径。
  11. 根据权利要求10所述的装置,其中,所述资源文件生成模块设置为通过以下方式生成所述组合图形控件对应的资源文件:
    对所述组合图形控件包含的基础功能控件及连接关系进行解析,获得基础功能控件的信息及连接基础功能控件的边信息;
    所述基础功能控件的信息构成所述控件列表信息,所述基础功能控件的边信息构成所述边列表信息。
  12. 根据权利要求10所述的装置,还包括组合图形控件创建模块,设置为:
    响应于确定检测到用户触发创建所述组合图形控件的操作,获取所述设定控件库中存储的所述组合图形控件对应的配置文件及所述组合图形控件对应的资源文件;
    根据所述资源文件生成所述组合图形子图;
    根据所述配置文件生成所述组合图形主图;
    将所述组合图形子图和所述组合图形主图进行关联,生成组合图形控件。
  13. 根据权利要求12所述的装置,其中,所述组合图形控件创建模块设置为通过以下方式根据所述资源文件生成组合图形子图:
    根据所述控件列表信息创建所述组合图形控件包含的至少两个基础功能控件;
    根据所述边列表信息将创建的所述至少两个基础功能控件相连,并将所述控件引用资源文件加载至对应的基础功能控件中,获得组合图形子图。
  14. 根据权利要求13所述的装置,其中,组合图形控件创建模块设置为通过以下方式根据所述控件列表信息创建所述组合图形控件包含的至少两个基础功能控件:
    根据所述资源标识码从所述设定控件库中获取基础功能控件;
    对获取的基础功能控件设置新的控件唯一标识码,并建立所述新的控件唯一标识码和存储的控件唯一标识码的对应关系;
    基于所述对应关系将获取到的基础功能控件创建于当前图形界面中。
  15. 一种电子设备,包括:
    一个或多个处理装置;
    存储装置,设置为存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现如权利要求1-7中任一所述的组合图形控件的生成方法。
  16. 一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理装置执行时实现如权利要求1-7中任一所述的组合图形控件的生成方法。
PCT/CN2023/072408 2022-01-28 2023-01-16 组合图形控件的生成方法、装置、设备及存储介质 WO2023143197A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210116159.4 2022-01-28
CN202210116159.4A CN116560634A (zh) 2022-01-28 2022-01-28 组合图形控件的生成方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023143197A1 true WO2023143197A1 (zh) 2023-08-03

Family

ID=87432000

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/072408 WO2023143197A1 (zh) 2022-01-28 2023-01-16 组合图形控件的生成方法、装置、设备及存储介质

Country Status (3)

Country Link
US (1) US20230244504A1 (zh)
CN (1) CN116560634A (zh)
WO (1) WO2023143197A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407861A (zh) * 2014-11-20 2015-03-11 杭州电子科技大学 一种ePLC图编程平台中组合指令的实现方法
CN104793954A (zh) * 2015-04-29 2015-07-22 南京南瑞继保电气有限公司 一种免编译的图形化组合元件封装重用方法
CN110187875A (zh) * 2019-05-28 2019-08-30 深圳市智慧郎数码科技有限公司 一种组件可视化开发方法
CN112685127A (zh) * 2020-12-07 2021-04-20 人民网股份有限公司 基于内容管理系统的数据源操作方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9619756B2 (en) * 2014-01-14 2017-04-11 Apple Inc. Methods and systems for managing and automating user customization of a device based on observed user behavior
DK180129B1 (en) * 2019-05-31 2020-06-02 Apple Inc. USER ACTIVITY SHORTCUT SUGGESTIONS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407861A (zh) * 2014-11-20 2015-03-11 杭州电子科技大学 一种ePLC图编程平台中组合指令的实现方法
CN104793954A (zh) * 2015-04-29 2015-07-22 南京南瑞继保电气有限公司 一种免编译的图形化组合元件封装重用方法
CN110187875A (zh) * 2019-05-28 2019-08-30 深圳市智慧郎数码科技有限公司 一种组件可视化开发方法
CN112685127A (zh) * 2020-12-07 2021-04-20 人民网股份有限公司 基于内容管理系统的数据源操作方法及系统

Also Published As

Publication number Publication date
US20230244504A1 (en) 2023-08-03
CN116560634A (zh) 2023-08-08

Similar Documents

Publication Publication Date Title
CN109769141B (zh) 一种视频生成方法、装置、电子设备及存储介质
WO2020119804A1 (zh) 页面视图的显示方法、装置、设备及存储介质
CN110390493B (zh) 任务管理方法、装置、存储介质及电子设备
WO2022053004A1 (zh) 邮件处理方法、装置、电子设备及计算机可读介质
WO2023005831A1 (zh) 一种资源播放方法、装置、电子设备和存储介质
WO2022135547A1 (zh) 业务运行方法、装置、电子设备和计算机存储介质
WO2023104006A1 (zh) 图像特效包的生成方法、装置、设备及存储介质
CN111309228A (zh) 多媒体处理方法、装置及电子设备
CN114035879A (zh) 页面主题色更换方法、装置、电子设备和计算机可读介质
CN112307375A (zh) 页面展示方法、装置、电子设备和计算机可读介质
WO2021227953A1 (zh) 图像特效配置方法、图像识别方法、装置及电子设备
CN109697034B (zh) 一种数据写入方法、装置、电子设备及存储介质
US20240103802A1 (en) Method, apparatus, device and medium for multimedia processing
WO2023207543A1 (zh) 媒体内容的发布方法、装置、设备、存储介质和程序产品
CN114997117A (zh) 文档编辑的方法、装置、终端及非暂时性存储介质
WO2023143197A1 (zh) 组合图形控件的生成方法、装置、设备及存储介质
CN111752644A (zh) 接口模拟方法、装置、设备及存储介质
WO2023131263A1 (zh) 一种群成员添加方法、装置、设备及介质
WO2022184037A1 (zh) 文档处理方法、装置、设备和介质
CN114860213A (zh) 一种应用程序包生成方法、装置、设备及介质
CN109889737B (zh) 用于生成视频的方法和装置
CN113296771A (zh) 页面显示方法、装置、设备和计算机可读介质
CN111199519B (zh) 特效包的生成方法和装置
CN112230986A (zh) 项目文件生成方法、装置、电子设备和计算机可读介质
WO2023098609A1 (zh) 图像特效包的生成方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23746079

Country of ref document: EP

Kind code of ref document: A1