Graphical interface control object generation method and system

By obtaining interface parameter objects from the input file and judging their definition method and data type, the graphic control type is automatically determined, which solves the repeated iteration problem caused by the openness of the selection results of graphical interface controls, and improves design efficiency and results accumulation.

CN115129311BActive Publication Date: 2025-02-14SHANGHAI ANLOGIC INFOTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210668913.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2025-02-14
Estimated Expiration
2042-06-14

AI Technical Summary

Technical Problem

In the prior art, the selection results of graphical interface controls are very open, which leads to designers that iterate repeatedly and cannot accumulate design results. They need to start from scratch when facing new needs.

Method used

By obtaining interface parameter objects from the input file, judging their definition method and data type, we can determine the graphic control type, and automatically select control objects to avoid repeated iterations.

Benefits of technology

Effectively select graphic interface control objects, reduce designers' repeated work, improve design efficiency, and promote the accumulation and standardization of design results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129311B_ABST
    Figure CN115129311B_ABST
Patent Text Reader

Abstract

The present invention provides a method for generating a graphical interface control object, including obtaining an interface parameter object from an input file, determining a definition method of the interface parameter object, and then determining a data type of the interface parameter object by the definition method, and determining a graphical control type by the data type of the interface parameter object, so as to facilitate the selection of a graphical interface control object and avoid repeated iterations. The present invention also discloses a graphical interface control object generation system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of graphic interface technology, and in particular to a method and system for generating a graphic interface control object. Background Art

[0002] Graphical User Interface (GUI) refers to the way computer operators interact with graphical objects on the display screen using tools such as mouse and keyboard when interacting with the computer system. Graphic objects include standard interface objects such as menus, buttons, and icons. The instructions associated with these objects can be recognized and triggered by the computer system, and the results of the execution of the instructions will also be presented to the user in a graphical manner.

[0003] Graphical user interface has become the main means of human-computer interaction in current software application systems. Its main generation method is to manually understand the interface design requirements, determine the data type of the interface object, and select the corresponding interface control (group).

[0004] In this approach, there are many types of interface graphic objects to choose from. Due to the differences in designers' understanding abilities and design experience, the control selection results are very open, and designers are often required to iterate the design results repeatedly.

[0005] Taking the commonly used Qt Designer as an example, its toolbar provides dozens of the most basic types of graphic controls, and the requirements faced by designers are usually specific engineering parameters. One parameter often requires multiple controls to be fully described. The relationship between parameters and interface controls is very open, which makes the results of interface design mostly personalized and lacks standardization. The work results of designers cannot be accumulated, and when faced with new requirements, they often start from scratch.

[0006] Therefore, it is necessary to provide a novel graphical interface control object generation method and system to solve the above problems existing in the prior art. Summary of the invention

[0007] The object of the present invention is to provide a method and system for generating a graphical interface control object, which facilitates the selection of a graphical interface control object and avoids repeated iterations.

[0008] To achieve the above object, the graphical interface control object generation method of the present invention includes:

[0009] Get the interface parameter object from the input file;

[0010] Determining a definition method of the interface parameter object, and then determining a data type of the interface parameter object according to the definition method;

[0011] The type of the graphic control is determined by the data type of the interface parameter object.

[0012] The beneficial effect of the graphical interface control object generation method is: obtaining an interface parameter object from an input file, determining the definition method of the interface parameter object, and then determining the data type of the interface parameter object through the definition method, and determining the type of the graphical control through the data type of the interface parameter object, thereby facilitating the selection of the graphical interface control object and avoiding repeated iterations.

[0013] Optionally, the acquiring the interface parameter object from the input file includes:

[0014] The interface parameter object is extracted from keywords of the input file.

[0015] Optionally, the determining of a definition method of the interface parameter object includes:

[0016] Determining the definition method of the interface parameter object according to the method in which the interface parameter object obtains a value;

[0017] When it is determined that the interface parameter object obtains the value through user interaction, it is determined that the definition method of the interface parameter object is user-type;

[0018] When it is determined that the interface parameter object obtains the value through the dependency relationship between the interface parameter objects, it is determined that the definition method of the interface parameter object is a dependency type.

[0019] Optionally, the then determining the data type of the interface parameter object by definition includes:

[0020] When it is determined that the definition method of the interface parameter object is user type, the data type of the interface parameter object is defined as string type, integer type, floating point type, Boolean type, parameter object mutually exclusive group type, single choice type of enumerated object set or multiple choice type of enumerated object set.

[0021] Optionally, the then determining the data type of the interface parameter object by definition further includes:

[0022] If it is determined that the definition mode of the interface parameter object is a dependency type, the dependency relationship between the interface parameter objects is obtained from the input file, and the data type of the interface parameter object is determined according to the dependency relationship between the interface parameters.

[0023] Optionally, the step of then determining the data type of the interface parameter object by definition further includes:

[0024] If it is determined that the definition mode of the interface parameter object is a dependency type, a dependency relationship between the interface parameter objects is additionally defined, and the data type of the interface parameter object is determined according to the dependency relationship between the interface parameters.

[0025] Optionally, when it is determined that the definition mode of the interface parameter object is a dependent type, the data type of the interface parameter object includes a character type, an integer type, a floating point type, and a Boolean type.

[0026] Optionally, the graphical interface control object generation method further includes a dependency verification step, and the dependency verification step includes:

[0027] connecting the interface parameters according to the dependency relationships to form one or more graph structures;

[0028] Determining whether a circular dependency structure occurs in the graph structure;

[0029] If the graph structure does not have a circular dependency structure, then the dependency relationship is determined to be legal;

[0030] If a circular dependency structure appears in the graph structure, it is determined that the dependency relationship is illegal.

[0031] Optionally, the dependency verification step further includes:

[0032] Obtain the value range and properties of the interface parameter object;

[0033] Whether the dependency relationship is legal is determined based on the value and properties of the interface parameter object.

[0034] Optionally, the input file is in XML format.

[0035] The present invention also discloses a graphical interface control object generation system, which is used to implement the graphical interface control object generation method. The graphical interface control object generation system includes an acquisition unit, a first judgment unit and a second judgment unit. The acquisition unit is used to obtain an interface parameter object from an input file. The first judgment unit is used to judge the definition method of the interface parameter object, and then determine the data type of the interface parameter object according to the definition method. The second judgment unit is used to judge the type of the graphical control according to the data type of the interface parameter object.

[0036] The beneficial effects of the graphical interface control object generation system are: the acquisition unit is used to obtain the interface parameter object from the input file, the first judgment unit is used to judge the definition method of the interface parameter object, and then determine the data type of the interface parameter object according to the definition method, and the second judgment unit is used to judge the type of the graphical control according to the data type of the interface parameter object, so as to facilitate the selection of the graphical interface control object and avoid repeated iterations. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flowchart of a method for generating a graphical interface control object according to the present invention;

[0038] Figure 2 Schematic diagram of the composition of parameter 1 in some embodiments of the present invention;

[0039] Figure 3 Schematic diagram of the composition of parameter 2 in some embodiments of the present invention;

[0040] Figure 4 is a dependency diagram of parameter 1 and parameter 2 in some embodiments of the present invention;

[0041] Figure 5 A structural block diagram of a graphical interface control object generation system in some embodiments of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0043] In view of the problems existing in the prior art, an embodiment of the present invention provides a method for generating a graphical interface control object. Figure 1 , the graphical interface control object generation method comprises the following steps:

[0044] S1: Get interface parameter object from input file;

[0045] S2: determining a definition method of the interface parameter object, and then determining a data type of the interface parameter object according to the definition method;

[0046] S3: Determine the type of the graphic control according to the data type of the interface parameter object.

[0047] In some embodiments, the input file stores necessary data for subsequent information processing in the form of a computer file, and is a necessary input condition for the subsequent workflow. The input file is in XML format.

[0048] In some embodiments, each graphic control displayed in the graphical interface usually corresponds to a variable data with engineering significance in the associated engineering design. This variable data is called the interface parameter object of the graphic control in the interface. In actual use, each interface parameter object is often not a simple data, but contains a series of attributes to fully describe its numerical change characteristics in the application. These characteristics include but are not limited to: definition method, data type, value range, initial value, mutual dependence, etc.

[0049] In some embodiments, obtaining the interface parameter object from the input file includes: extracting the interface parameter object from keywords in the input file.

[0050] In some embodiments, the data type and data definition method are obtained according to the attributes of the interface parameter object in the input file, and based on this information, the legal value range and default value and other characteristics of the parameter can be determined. The data types include but are not limited to: Boolean, integer, floating point, string, enumeration, mutex, etc. Among them, the integer type and floating point type can define the maximum and minimum values, the parameter object mutex group can define a mutex object list, and the enumeration type can define an optional value list.

[0051] In some embodiments, the determining of the definition of the interface parameter object includes:

[0052] Determining the definition method of the interface parameter object according to the method in which the interface parameter object obtains a value;

[0053] When it is determined that the interface parameter object obtains the value through user interaction, it is determined that the definition method of the interface parameter object is user-type;

[0054] When it is determined that the interface parameter object obtains the value through the dependency relationship between the interface parameter objects, it is determined that the definition method of the interface parameter object is a dependency type.

[0055] In some embodiments, the data type of the interface parameter object is then determined by definition, including: when it is determined that the definition method of the interface parameter object is user type, the data type of the interface parameter object is defined as string type, integer type, floating point type, Boolean type, parameter object mutually exclusive group type, single choice type of enumerated object set, or multiple choice type of enumerated object set.

[0056] In some embodiments, the method of then determining the data type of the interface parameter object by definition also includes: if the definition method of the interface parameter object is determined to be a dependent type, the dependency relationship between the interface parameter objects is obtained from the input file, and the data type of the interface parameter object is determined according to the dependency relationship between the interface parameters. The dependency relationship between the interface parameter objects is manifested in the dependency of their numerical values ​​and the dependency of the values ​​of each attribute. The dependency relationship between the interface parameter objects can be obtained from the reference method of the interface parameter objects in the input file, and in addition to direct reference, it can also be obtained through arithmetic and logical operations of the interface parameter objects.

[0057] In some embodiments, the method of then determining the data type of the interface parameter object by definition also includes: if it is determined that the definition method of the interface parameter object is a dependent type, then additionally defining the dependency relationship between the interface parameter objects, and determining the data type of the interface parameter object according to the dependency relationship between the interface parameters.

[0058] In some embodiments, when it is determined that the definition mode of the interface parameter object is a dependent type, the data type of the interface parameter object includes a character type, an integer type, a floating point type, and a Boolean type.

[0059] In some embodiments, when the data type of the interface parameter object is a floating point type, the attributes are supporting minimum value, supporting maximum value, and supporting default value, while members are invalid and capacity limit is invalid; when the data type of the interface parameter object is an integer type, the attributes are supporting minimum value, supporting maximum value, and supporting default value, while members are invalid and capacity limit is invalid; when the data type of the interface parameter object is a Boolean type, the default value is supported, while the minimum value is invalid, the maximum value is invalid, the member is invalid, and the capacity limit is invalid; when the data type of the interface parameter object is a parameter object mutually exclusive group type, the members are parameter sets, supporting default values, supporting capacity limit, the minimum value is invalid, and the maximum value is invalid; when the data type of the interface parameter object is a string type, the members are limited character sets, supporting default values, supporting capacity limit, the minimum value is invalid, and the maximum value is invalid; when the data type of the interface parameter object is an enumerated object set type, the members are string sets, supporting default values, supporting capacity limit, the minimum value is invalid, and the maximum value is invalid.

[0060] In some embodiments, the properties of the interface parameter object may be defined by immediate values.

[0061] In some other embodiments, the properties of the interface parameter object may be defined by referencing other interface parameter objects or properties and performing arithmetic or logical operations.

[0062] In some embodiments, the graphical interface control object generation method further includes a dependency verification step, and the dependency verification step includes:

[0063] connecting the interface parameters according to the dependency relationships to form one or more graph structures;

[0064] Determining whether a circular dependency structure occurs in the graph structure;

[0065] If the graph structure does not have a circular dependency structure, then the dependency relationship is determined to be legal;

[0066] If a circular dependency structure appears in the graph structure, it is determined that the dependency relationship is illegal.

[0067] In some embodiments, the dependency verification step further includes:

[0068] Obtain the value range and properties of the interface parameter object;

[0069] Whether the dependency relationship is legal is determined based on the value and properties of the interface parameter object.

[0070] Figure 2 Schematic diagram of the composition of parameter 1 in some embodiments of the present invention. Figure 1 , the interface parameter object is parameter 1, the internal dependency of parameter 1 is attribute A and attribute B, and attribute A and attribute B determine the value of parameter 1.

[0071] Figure 3 Schematic diagram of the composition of parameter 2 in some embodiments of the present invention. Figure 1 , the interface parameter object is parameter 2, the internal dependency of parameter 2 is attribute C and attribute D, and attribute C and attribute D determine the value of parameter 2.

[0072] Figure 4 FIG. 1 is a dependency diagram of parameter 1 and parameter 2 in some embodiments of the present invention. Figure 4 , attribute C of parameter 2 depends on attribute A of parameter 1, and attribute D of parameter 2 depends on the value of parameter 1.

[0073] In some embodiments, the interface display of each interface parameter object often requires a combination of multiple basic controls to meet the engineering requirements of delivering sufficient information to the end user. These control combinations usually have a main control that assumes the main user operation function; then one or more auxiliary controls are defined accordingly, usually as a title or text description of the value range of engineering data, physical units, usage constraints, etc.

[0074] In some embodiments, the control type is selected by mapping the applicable main control type according to the data type of the interface parameter object and defining the default main control type, especially determining the applicable control type according to the data type and the legal value range, and then defining the default type with the simplest interface operation process.

[0075] In some embodiments, when the data type is a floating point type, the graphic control type is determined to be a line edit, combo box, fine-tuning box or slider, and the default is a line edit; when the data type is an integer type, the graphic control type is determined to be a line edit, combo box, fine-tuning box or slider, and the default is a line edit; when the data type is a Boolean type, the graphic control type is determined to be a check box, combo box or line edit, and the default is a check box; when the data type is a string type, the graphic control type is determined to be a line edit or a line edit with file system browsing; when the data type is an enumerated object collection type, the graphic control type is determined to be a combo box or a line edit, and the default is a combo box; when the data type is a parameter object mutually exclusive group type, the graphic control type is determined to be a mutually exclusive box or a combo box, and the default is a mutually exclusive box. If the value range of the interface parameter object is obtained, the image control type can be selected according to the value range of the interface parameter object instead of using the default value.

[0076] Figure 5 This is a structural block diagram of a graphical interface control object generation system in some embodiments of the present invention. Figure 5 The graphical interface control object generation system 100 is used to implement the graphical interface control object generation method. The graphical interface control object generation system 100 includes an acquisition unit 101, a first judgment unit 102 and a second judgment unit 103. The acquisition unit 101 is used to obtain an interface parameter object from an input file. The first judgment unit 102 is used to judge the definition method of the interface parameter object, and then determine the data type of the interface parameter object according to the definition method. The second judgment unit 103 is used to judge the type of the graphical control according to the data type of the interface parameter object.

[0077] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.

Claims

1. A method for generating a graphical interface control object, characterized in that: Get the interface parameter object from the input file; Determining a definition method of the interface parameter object, and then determining a data type of the interface parameter object according to the definition method; Wherein, the definition method of the interface parameter object is determined according to the method of obtaining the value of the interface parameter object; When it is determined that the interface parameter object obtains the value through user interaction, the definition mode of the interface parameter object is determined to be user type, and the data type of the interface parameter object is defined as string type, integer type, floating point type, Boolean type, parameter object mutually exclusive group type, single selection type of enumerated object set, or multiple selection type of enumerated object set; When it is determined that the interface parameter object obtains a value through a dependency relationship between the interface parameter objects, it is determined that the definition method of the interface parameter object is a dependency type, and the dependency relationship between the interface parameter objects is obtained from the input file or additionally defined, and the data type of the interface parameter object is determined according to the dependency relationship between the interface parameter objects; When it is determined that the definition mode of the interface parameter object is dependent type, the data type of the interface parameter object includes character type, integer type, floating point type and Boolean type; the type of the graphic control is determined by the data type of the interface parameter object.

2. The method for generating a graphical interface control object according to claim 1, characterized in that: The step of obtaining the interface parameter object from the input file includes: The interface parameter object is extracted from keywords of the input file.

3. The method for generating a graphical interface control object according to claim 1, characterized in that: The dependency verification step is further included, and the dependency verification step includes: Connecting the interface parameter objects according to the dependency relationship to form one or more graph structures; Determining whether a circular dependency structure occurs in the graph structure; If the graph structure does not have a circular dependency structure, then the dependency relationship is determined to be legal; If a circular dependency structure appears in the graph structure, it is determined that the dependency relationship is illegal.

4. The method for generating a graphical interface control object according to claim 3, characterized in that: The dependency verification step further includes: Obtain the value range and properties of the interface parameter object; Whether the dependency relationship is legal is determined based on the value and properties of the interface parameter object.

5. The method for generating a graphical interface control object according to claim 1, characterized in that: The input file is in XML format.

6. A graphical interface control object generation system, characterized in that: Used to implement the graphical interface control object generation method as described in any one of claims 1 to 5, the graphical interface control object generation system includes an acquisition unit, a first judgment unit and a second judgment unit, the acquisition unit is used to obtain an interface parameter object from an input file, the first judgment unit is used to judge the definition method of the interface parameter object, and then determine the data type of the interface parameter object according to the definition method, and the second judgment unit is used to judge the type of the graphical control according to the data type of the interface parameter object.

Citation Information

Patent Citations

  • Application program interface generation method and device

    CN105511843A

  • Generation of an application from data

    CN108292231A