A dynamically extensible development method and system for user interfaces based on a software platform.
The method dynamically extracts type information from the software platform's execution library to form a derived base window, enabling efficient and flexible customization of user interfaces beyond the limitations of current platforms.
Patent Information
- Application Number
- JP2025146637
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2024-01-09
- Filing Date
- 2025-09-04
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2044-06-30
AI Technical Summary
Current user interface software platforms limit secondary development to using provided empty windows and control lists, restricting creative design and functionality, as users cannot extend existing windows or design new controls from scratch.
A method and system that dynamically extracts type information from the software platform's execution library during execution, forming a dynamically derived base window and generating installation code, allowing for dynamic creation and customization of user interfaces without modifying the platform code.
Enables flexible and efficient development of user interfaces with enhanced functionality by dynamically deriving new window types, supporting customization and extension of existing windows, and allowing for more complex and creative designs.
Smart Images

Figure 0007961006000002 
Figure 0007961006000003 
Figure 0007961006000004
Abstract
Description
Technical Field
[0001] This application claims priority from Chinese Patent Application No. 202410028558.4 filed on January 9, 2024, the entire contents of which are incorporated herein by reference.
[0002] The present invention belongs to the field of vehicle software development technology, and specifically relates to a dynamically extensible development method and system for a user interface based on a software platform.
Background Art
[0003] Currently commercially available secondary development-capable user interface software platforms only allow users to develop using provided empty windows and control lists. For example, users can drag controls from the list to an empty window, set attributes, associate control events, write event code, and complete extended development.
Summary of the Invention
[0004] The present invention relates to a method and system, including the following: during the execution of a software platform, an interface manager dynamically extracts type information related to windows in the software platform's execution library, inherits the type information to form a dynamically derived base window, and simultaneously generates import code for the software platform via the interface manager. Additionally, code for dynamically creating a one-time window is generated based on the type information in the software platform's import code, and both the software platform import code and the one-time window dynamic creation code are stored in a one-time derived code file.
[0005] Other features and advantages of the present invention are described in the following specification, and some are evident from the specification or understood by practicing the invention. The object and other advantages of the present invention are realized and obtained by the structures specifically pointed out in the specification and drawings. To make the above-mentioned objectives, features, and advantages of the present invention easier to understand, preferred embodiments are given below and described in detail in conjunction with the accompanying drawings. [Brief explanation of the drawing]
[0006] To more clearly describe specific embodiments of the present invention or technical solutions of the prior art, the drawings that are necessary for describing specific embodiments or prior art are briefly described below. The drawings described below are some embodiments of the present invention, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without any creative effort. [Figure 1] This is a flowchart illustrating a dynamically extensible development method for user interfaces based on a software platform, relating to several embodiments. [Figure 2] This is a schematic diagram of an interface manager relating to several embodiments. [Figure 3] This is a schematic diagram of the dynamic derivation base window after dynamic derivation in several embodiments. [Figure 4] This is a partial list of controls relating to several examples. [Figure 5] These are some entries for design window attributes related to several examples. [Figure 6] These are some entries for control attributes related to several embodiments. [Figure 7] This is a graphics display window titled "Graphics 1" relating to several examples. [Figure 8] These are screenshot images with the filename "C:\screenshots\graphics.png" related to several examples. [Figure 9]This is a principle block diagram of a dynamically extensible development system for user interfaces based on a software platform, relating to several embodiments. [Figure 10] This is a principle block diagram of an electronic device according to several embodiments. [Modes for carrying out the invention]
[0007] To further clarify the object, technical aspects and advantages of the embodiments of the present invention, the technical aspects of the present invention will be described below clearly and completely in reference to the accompanying drawings, although it is clear that the embodiments described are only some embodiments of the present invention and not all embodiments. All other embodiments obtained based on the embodiments of the invention, without creative work by a person skilled in the art, are within the scope of the protection of the invention.
[0008] Currently available user interface software platforms that allow secondary development only permit development using the empty windows and control lists provided by the user. For example, the user drags controls from the list to the empty window, sets their attributes, associates them with control events, creates event code, and completes extension development. With this method of extension, the user can only use the empty windows and limited controls provided by the software platform and cannot perform extension development based on the software platform's existing windows, such as drawing windows or system message windows. It is also not possible to design new controls from scratch that do not belong to the control list. Such user interface extension design is severely limited by the software platform itself, and the result is that the designed user interface patterns are single, the controls are simple, the functionality is simple, and more creative design cannot be realized.
[0009] Therefore, at least one embodiment provides a method for dynamically extensible development of a user interface based on a software platform. This method includes the following: During the execution of the software platform, the interface manager dynamically extracts type information related to windows in the software platform's execution library, and forms a dynamically derived base window by inheriting the above type information. Simultaneously, the interface manager generates software platform installation code. Furthermore, based on the type information in the software platform installation code, code for dynamically creating a window is generated once, and both the software platform installation code and the code for dynamically creating a window are stored once in a derived code file.
[0010] Hereinafter, various non-limiting embodiments of the embodiments of this disclosure will be described in detail with reference to the attached drawings. As shown in Figure 1, several embodiments provide a method for dynamically extensible development of user interfaces based on a software platform. This method includes the following: In step S101, while the software platform is running, the interface manager dynamically extracts type information related to windows in the software platform's execution library, and forms a dynamically derived base window by inheriting the above type information. Simultaneously, the interface manager generates the software platform's installation code. In step S102, window dynamic creation code is generated once based on the type information in the software platform introduction code, and the software platform introduction code and the window dynamic creation code are stored once in a derived code file.
[0011] In some embodiments, when N+1 derivation modifications are made to the attributes and / or call events of a dynamically derived base window, N+1 derived code files are created. The above N+1 derived code files contain N derived code file introduction code, N+1 window dynamic creation code and / or user code, where N ≥ 1. The derived code file is executed N+1 times, and an N+1 derived user interface is formed.
[0012] In some embodiments, the process of an interface manager dynamically extracting type information about windows in the software platform execution library during the execution of the software platform includes the following: The RTTI (Run-Time Type Information) unit is introduced. That is, before using the RTTI unit, the system's Run-Time Type Information unit (e.g., `System.Rtti`) must be introduced into the code within the software platform, and the classes and methods related to the above window in the RTTI unit are used. A context object is created using the “Runtime Information Context Type” class (e.g., `TRttiContext`) in the system’s runtime information unit, and then the “Runtime Information Type Get” method (e.g., `GetRttiType`) is used to obtain the window’s “Runtime Information” object (e.g., `TRttiType`). From the window's "runtime type information" object (e.g., `TRttiType`), you can obtain the window's property information using the "GetProperties" method (e.g., `GetProperties`) and the window's method information using the "GetMethods" method (e.g., `GetMethods`).
[0013] This embodiment dynamically extracts type information related to windows in the execution library of the software platform during the execution of the software platform, and forms a dynamically derived base window by inheriting the above type information, thereby realizing dynamic derivation. To explain, dynamic derivation is the process of dynamically extracting each type information of the basic window in the program's execution environment during program execution, and dynamically creating new window types based on this basic window type information. These new window types are derived from the extracted basic window types, and new window objects can be created using these new window types. Compared to static derivation, dynamic derivation allows for the dynamic creation of objects, the dynamic calling of methods, the dynamic access to attributes, the implementation of dynamic type conversion and compatibility checking, the traversal of enumeration and set types, and the customization of attributes. In other words, dynamic derivation enables more flexible and dynamic programming, and the code has higher extensibility and maintainability. Applying the dynamic extension development method of this embodiment to the development of the user interface of a software platform, it is possible to realize extension development for existing windows of the software platform without the user modifying the software platform code or calling a compiler to compile the software. The developed window not only possesses the various functions that the software platform provides to the window, but is also a dedicated window that is highly customized by the user. This makes the development of user interfaces based on the software platform more efficient and simpler.
[0014] Specifically, dynamic extraction refers to the type information of a window (in this embodiment, a window in an execution library of the software platform) that is dynamically extracted from the runtime environment of the program during program execution. If dynamic extraction is required, the program is required to include an RTTI mechanism. The RTTI mechanism is described below. RTTI (Run-Time Type Information) is a mechanism for obtaining relevant type information during program execution. It can obtain detailed information such as classes, interfaces, methods, and attributes at runtime, including names, types, access modifiers, etc.
[0015] Specifically, the type information of a window refers to the basic information of the window itself in the execution library of the software platform, such as window type name information, parent class information, attribute information, method information, field information, constructor and destructor information, interface information, enumeration information, etc.
[0016] As shown in Figure 2, the interface manager is used for creation, listing, design, saving, importing, exporting, encryption, and execution of user interfaces, thereby implementing comprehensive management of the designed user interfaces.
[0017] The steps for the interface manager to dynamically extract type information related to windows in the execution library of the software platform are as follows. Obtain type information related to windows in the execution library of the software platform by calling the get type function in the context object provided to the "system runtime type information" unit.
[0018] Further obtain information such as fields, attributes, and methods related to the window based on the obtained type information. The inheritance and derivation methods are as follows. Based on the obtained window information, a new derived window type is defined. Specifically, it is a dynamically derived base window, which is used to inherit window-related type information in the software platform execution library. The dynamically derived base window can call the protected and public methods of the inherited window-related type information in the software platform execution library, read and write its attributes, and read and write its fields, etc. Further, based on the defined dynamically derived base window, the software platform allows users to add new fields, methods and attributes to the dynamically derived base window, and controls the behavior of the dynamically derived base window. Thereby, the functions of the new window are dynamically inherited based on the obtained type information related to the software platform window, to realize derivation and formation.
[0019] In the following example, a method is described in detail, in which during the execution of the software platform, the interface manager dynamically extracts the type information related to the window in the execution library of the software platform, and inherits the above type information to form a dynamically derived base window. Dynamic derivation is performed on the base window of the software platform to form a new window type, thereby creating a new window object. That is, the new window object is a dynamically derived base window. It requires the following steps. 1. Introduction of the RTTI unit. Before using the RTTI unit, it is necessary to introduce the `System.Rtti` unit into the code inside the software platform, and use the classes and methods related to the base window in the RTTI unit. 2. Obtaining window type information involves creating a context object using the `TRttiContext` class and then obtaining the `TRttiType` object of the base window using the `GetTRttiType` method. The corresponding `TRttiType` object can be obtained by the type name or example of the base window. 3. Extraction of window attribute and method information: The `GetProperties` method is used to obtain the base window's attribute information via the `TRttiType` object of the base window, and the `GetMethods` method is used to obtain the base window's method information. By traversing the list of base window attributes and methods, information such as the name and type of base window attributes can be obtained, and information such as the name and parameters of base window methods can be obtained. 4. Based on the extracted type information, a one-time derived type is dynamically created, inheriting the extracted base window type information, thereby forming a window subtype, and after instantiating the window subtype, the above dynamically derived base window is obtained. The software platform introduction code generated in the process of forming the dynamically derived base window and the one-time window dynamic creation code generated based on the type information in the software platform introduction code are stored in the one-time derived code file.
[0020] As shown in Figure 3, the left side of Figure 3 shows the contents of the saved one-time derived code file, where frmTSForm is the basic window type of the software platform, and new_ is the window subtype obtained after one-time deriving from the basic window type. The right side of Figure 3 shows the dynamically derived base window obtained after instantiating the window subtype new_, and since it inherits the base window type frmTSForm, it can be seen that the new dynamically derived base window also has multiple buttons 10 and a pull-down menu in the upper right corner of the toolbar included in the base window type, and has the functionality of corresponding button click events and pull-down menu operation events.
[0021] In some embodiments, user code is code written by the user. Since a one-time derived code file is derived based on the software platform's construction language and forms the existing content of the software platform, it is non-editable and does not contain user code. When making derived modifications to the attributes and / or call events of a dynamically derived base window, the user can modify the attributes and / or call events of the dynamically derived base window through methods in which they write code, and therefore user code can be included in an N+1-time derived code file.
[0022] In some embodiments, users can further modify the attributes and / or call events of a dynamically derived base window by adding callable controls to the dynamically derived base window. The configuration of callable controls involves the software platform system compiling the user's usage habits to form a control list, and the controls in this control list are called callable controls, as shown in the right-hand area of Figure 4. Users can, but are not limited to, embed these callable controls into the dynamically derived base window by dragging them from the control list.
[0023] In some embodiments, after the derivation process is complete, the corresponding derivation code file can be executed to form the derivation user interface, which is then used for user-interaction with the interface.
[0024] In some embodiments, the software platform introduction code may be in the Python code language and include `from software platform name import *` or `import software platform name`.
[0025] In some embodiments, the software platform introduction code may also be in the C or C++ code language and include #include "Software Platform Name".
[0026] As an example, we will explain in detail how to form a dynamically derived base window by inheriting the above type information. Furthermore, the specific process for performing derived modifications to the attributes and / or call events of the dynamically derived base window is as follows. In the base window type information, if the window type is TForm, the software platform user uses the window design tool provided by the software platform to inherit the window type TForm, form the window subtype TBaseForm, instantiate the window of that subtype, and then form the dynamic derived base window described above. By adding a top-display help button to the dynamically derived base window, that is, by embedding a single button control into the dynamically derived base window, the user of the software platform can then click the code generation button in the window design tool to obtain the code for dynamically creating the window and the corresponding control creation code for the dynamically derived base window. class TBaseForm(TForm): def __init__(self): self.btnHelp = Button(self) self.btnHelp.Parent = self self.btnHelp.Align = "alTop" self.btnHelp.Caption = 'Help' Here, “def__init__(self):” creates an event function definition for the window and modifies its attributes by automatically calling that event. In the example above, the button generation function “Button(self)” is used to assign a value to the dynamically derived base window attribute “btnHelp”. Next, the button control attribute “Parent” is set to this dynamically derived base window, and the button control is displayed in the dynamically derived base window. Next, the button control attribute “Align” is set to “alTop”, and the button control is aligned to the top of the dynamically derived base window. Finally, the button control attribute “Caption” is set to “Help”, and the title of this button control is displayed as “Help”, i.e., help information.
[0027] In any embodiment of some of the embodiments, the above attributes include the visual elements of the window and control, and the submembers of the window and control. The above submembers are the functional variables and / or behavioral characteristic variables of the window and control. The above invocation events include one or more events from among user interaction events, window and control lifecycle events, and window and control functional events.
[0028] In some embodiments, the above attributes also include the visual elements and submembers of the control. The above submembers are the functional variables and / or behavioral characteristic variables of the control. The above invocation events include one or more events from among user interaction events, control lifecycle events, and control function events.
[0029] In some embodiments, the visual elements of the window include, but are not limited to, the color of the window body, the width of the window body, the height of the window body, the text information displayed within the window body, and the coordinates, transparency, icon, and cursor type of the window body on the main screen. The visual elements of the control include, but are not limited to, the color of the control, the width of the control, the height of the control, the text information displayed within the control, and the coordinates, transparency, icon, and cursor type of the control's parent control.
[0030] As shown in Figure 5, the attribute entries on the right indicate some of the attributes of the window.
[0031] As shown in Figure 6, the attribute entries on the right show some of the attributes of the control.
[0032] In some embodiments, the functional variables of windows and controls include, but are not limited to, fonts, drag-and-drop types, double buffering flags, right-click menus, help files, tag values, etc. The operational characteristic variables of windows and controls include, but are not limited to, active states, visibility, alignment methods, and auto-adaptive sizes, etc.
[0033] In some embodiments, user interaction events include, but are not limited to, click events, cursor key press events, cursor key pop-up events, cursor entry events, cursor movement events, cursor exit events, keyboard press events, keyboard pop-up events, etc. Window and control lifecycle events include, but are not limited to, creation events, discard events, etc. Window and control function events include, but are not limited to, timing events, display events, hide events, resize events, draw events, etc.
[0034] In some embodiments, the steps of making derived modifications to the attributes and / or call events of a dynamically derived base window include: writing the window attributes by assignment and / or associating the event handling function with the window's call events by assignment, and forming a call relationship with the user code.
[0035] In some embodiments, the steps of making derived modifications to the attributes and / or call events of a dynamically derived base window include: writing the attributes of the control by assignment and / or associating the event handling function with the control's call events by assignment, and forming a call relationship with the user code.
[0036] The following is a detailed explanation of a specific example of the process of writing window attributes using assignment and forming a call relationship with user code. In the base window's type information, if the window type is TForm, the software platform user uses the window design tool provided by the software platform to inherit the window type TForm, create a window subtype TBaseForm, instantiate the window of that subtype, and then create the dynamic derived base window. The software platform user can then modify the Tag attribute of the dynamic derived base window to 1 in the window design tool and click the code generation button to obtain the code for dynamically creating the dynamic derived base window. class TBaseForm(TForm): def __init__(self): self.Tag = 1 Here, “self.Tag=1” indicates that the Tag attribute of the dynamically derived base window is written using the assignment method.
[0037] In this example, the user can further modify the attributes and / or call events of the dynamically derived base window with user code they add themselves. For example, in the user code, the user can determine the corresponding action based on the Tag attribute of the dynamically derived base window. For example, if Tag is 1, the title bar text of the dynamically derived base window is set to "Run Mode=1", and the user code then... if 1 == self.Tag: self.Caption = “Run Mode = 1” and Here, “if1==self.Tag:” means that the user code forms a call relationship with the attribute “Tag” of the dynamically derived base window, calls the attribute “Tag” of the dynamically derived base window, and then determines the next action of the dynamically derived base window.
[0038] Following the example above, the specific process of associating an event handling function with a window's call event using the assignment method, and forming a call relationship with user code, is explained in detail below. In user code, the user can associate a customized event handling function with the display event of a dynamically derived base window, and in the display event, update the title bar text of the dynamically derived base window, and the user code... def on_show(Sender): self.Caption = “Form displayed” self.OnShow = on_show, Here, “def on_show(Sender):” is a user-customized event handling function, in which the user resets the title bar text of the dynamically derived base window. The assignment statement “self.OnShow=on_show” indicates that the user associates the customized event handling function with the display event of the dynamically derived base window using the assignment method.
[0039] As an example, the specific process of writing control attributes using assignment and forming a call relationship with user code is explained in detail below. In the base window's type information, if the window type is TForm, the software platform user uses the window design tool provided by the software platform to inherit the window type TForm, create a window subtype TBaseForm, instantiate the window of that subtype, and then create the dynamic derived base window. The software platform user then adds a button btnTest to the dynamic derived base window in the window design tool, changes the Tag of button btnTest to 1, and then clicks the code generation button in the window design tool to obtain the code for dynamically creating the window of the dynamic derived base window and the code for creating the control of button btnTest. class TBaseForm(TForm): def __init__(self): self.btnTest = Button(self) self.btnTest.Tag = 1 Here, “self.btnTest=Button(self)” is the code for creating the button btnTest control. “self.btnTest.Tag=1” indicates that the button's Tag attribute is written using the assignment method.
[0040] In this example, the user can further modify the control's attributes and / or call events with user code they add themselves. For example, in the user code, the user can determine the corresponding action based on the Tag attribute of the button btnTest. For example, if Tag is 1, the text of button btnTest is set to "Run Mode=1", and the user code then... if 1 == self.btnTest.Tag: self.btnTest.Caption = “Run Mode = 1” and Here, “if1==self.btnTest.Tag:” means that the user code establishes a call relationship with the “Tag” attribute of the button btnTest, calls the “Tag” attribute of the button btnTest, and then determines the next action of the button btnTest.
[0041] In some of the embodiments, writing window attributes by assignment and forming a call relationship with user code includes the following: The window itself calls its own function library, constructs the corresponding parameters, and passes them to the API function.
[0042] The following provides a detailed example of a specific process in which the window itself calls its own function library, constructs the corresponding parameters, and transmits them to the API functions. In the window design tool, the user sets the width, height, left-edge distance, and top-edge distance of a dynamically derived base window, for example, width=200, height=100, left-edge distance=50, top-edge distance=30. The corresponding generated code segment for dynamic window creation is: self.SetBounds(50, 30, 200, 100) Here, “SetBounds” is one of the intrinsic functions of the dynamically derived base window, and its function is to set the position and size of the dynamically derived base window on the main screen, and it has four parameters. Let's assume the following is the correspondence list between parameter names and parameter values. [Table 1] When the “SetBounds” function is called, the dynamic derived base window is positioned 50 pixels from the left and 30 pixels from the top of the main screen, with a width of 200 pixels and a height of 100 pixels.
[0043] In some of the embodiments, writing the attributes of a control by assignment and forming a call relationship with user code includes the following: The control itself calls its own function library, constructs the corresponding parameters, and transmits them to the API function.
[0044] The following provides a detailed example of a specific process in which the control itself calls its own function library and transmits the corresponding parameters to the API function. If the user adds three entries to a list box control (TControl) in the window design tool, namely "Item 1", "Item 2", and "Item 3", the corresponding code segment for creating the control is as follows: self.ListBox1.Items.Assign(['Item 1','Item 2','Item 3']) Here, "Items.Assign" is one of the intrinsic functions of the list box control. Its function is to set the contents of the list box, and it has one parameter, which is a string array. When this function is called, the contents of the list box control are updated to three lines of text: Item 1, Item 2, and Item 3.
[0045] In some of the embodiments, writing window attributes by assignment and forming a call relationship with user code includes the following: The user's function library is called, and window attributes are passed as parameters to the API function.
[0046] The following is a detailed example of a specific process for calling a user's function library and introducing attributes of a dynamically derived base window as parameters into an API function. The user's function library "userlib" contains an API function that brings a window to the foreground, and its Python prototype is defined as follows: def set_top_most(AHandle: int) -> None: "set window to top most" This function has one parameter, which is a window handle. To use this user function library, you must first import the function library into your user code, as follows: import userlib Next, the user adds calling code to the user code to call the user function as follows: userlib.set_top_most(self.Handle) When this user function is called, the handle to the dynamically derived base window is passed to the user function, and the dynamically derived base window is brought to the foreground.
[0047] In some of the embodiments, writing the attributes of a control by assignment and forming a call relationship with user code includes the following: The user's function library is called, and the control's attributes are passed as parameters to the API function.
[0048] The following provides a detailed example of a specific process for calling a user's function library and introducing control attributes as parameters into an API function. The user's function library "userlib" contains an API function to set text box patterns, and its Python prototype is defined as follows: def set_edit_style(AEdit: TEdit) -> None: "set text edit style" This function has a parameter for a textbox object. To use this user function library, you must first import the function library into your user code, and the code is as follows: import userlib Next, the user adds calling code to the user code to call the user function as follows: userlib.set_edit_style(self.edtTitle) When the user function is called, the text box object edtTitle is passed to the user function, and the font style of the text box is changed.
[0049] In some of the embodiments, writing window attributes by assignment and forming a call relationship with user code includes the following: The software system's function library is called, and window attributes are passed as parameters to the API function.
[0050] The following describes in detail a specific example of the process of calling the function library of a software system and introducing the attributes of a dynamically derived base window as parameters into the API functions. In this example, we assume that the dynamic derived base window is a graphics display window provided by the software platform, and that this graphics display window is a window provided by the software platform for displaying graphic curves. The software system's function library "app" contains a function for taking a screenshot of a window, and its Python prototype is defined as follows: def take_screenshot(ACaption: str, AFileName: str) -> None: "take screenshot of specific form and save it to disk" The function has two parameters: the first is the window title name in text format, used to find the corresponding design window in the software platform; and the second is the target file name, used to save the screenshot image file to the hard disk. To use the function library of this software system, you must first import the software platform name into your user code, as shown below: Import software platform name Next, the user adds calling code to the user code to invoke the software system function as follows: app.take_screenshot(“Graphics 1”, r“C:\screenshots\graphics.png”) As shown in Figures 7 and 8, when this software system function is called, the title name of the graphics display window, "Graphics 1," and the target file name, "C:\screenshots\graphics.png," are transmitted to the software system function, and the screenshot information of this graphics display window is saved to the hard disk. Also, as can be seen from Figure 7, the derived graphics display window also has several buttons 10 in the upper right corner of the toolbar included in the base window type, as well as a pull-down menu, and has functions that respond to button click events and pull-down menu operation events.
[0051] In some of the embodiments, writing the attributes of a control by assignment and forming a call relationship with user code includes the following: The software system's function library is called, and the control's attributes are passed as parameters to the API function.
[0052] The following section details a specific example of the process of calling a function library of a software system and introducing control attributes as parameters into API functions. The software system's function library "app" contains a function that sets system variables in the software platform, and its Python prototype is defined as follows: def set_system_var_generic(AName: str, AValue: str) -> None: "set system variable value from string" This function has two parameters: the first is the system variable name, which is used to look up the corresponding system variable in the software platform; and the second is a target value in string format, which sets the value of the corresponding system variable to the target value. To use this software system function library, you must first import the software platform name into your user code, as shown below. Import software platform name Next, the user adds calling code to the user code to invoke the software system function as follows: app.set_system_var_generic('sysvar1', self.Button1.Caption) The first parameter entered, "sysvar1," specifies that the name of the corresponding system variable is "sysvar1." The second parameter entered will use the string value of the "Caption" attribute of the control "Button1" as the target setting value for the corresponding system variable. If the string value of the "Caption" attribute of the control "Button1" is "3.5", then when this software system function is called, the value of the system variable "sysvar1" will be overwritten to "3.5".
[0053] In some of the embodiments, writing window attributes by assignment and forming a call relationship with user code includes the following: The code language's function library is called, and the window attributes are passed as parameters to the API function.
[0054] The following is a detailed example of a specific process for calling a function library in a coding language and introducing window attributes as parameters into an API function. Using the Python language as an example, the process of a user adding code to call language functions to their user code is as follows: self.Memo1.Text = dir(self.Icon) Here, "dir" is a function provided by the coding language, and its action is to retrieve all the contents of a class or module, including variables, methods, functions, and classes. When this code language function is called, the input parameter "self.Icon" reads all the contents of the icon attribute of the dynamically derived base window into the multi-line text box "Memo1".
[0055] In some of the embodiments, writing the attributes of a control by assignment and forming a call relationship with user code includes the following: The code language's function library is called, and the control's attributes are passed as parameters to the API function.
[0056] The following provides a detailed example of a specific process for calling a code language function library and introducing control attributes as parameters into API functions. Using the Python language as an example, the process of a user adding code to call language functions to their user code is as follows: print(self.Button1.Caption) Here, "print" is a function provided by the coding language, and its function is to print the corresponding parameter string within the software system. After the code language function is called, the input parameter "Button1.Caption" is used to print the "Caption" attribute of the control "Button1," i.e., the tag content of the control "Button1," to the software system.
[0057] As described above, the attributes and / or call events of the dynamic derived base window and the controls embedded within it can be modified to achieve modified derivation of the dynamic derived base window. Users can perform multiple modified derivations of the dynamic derived base window based on their usage needs, and each modified derivation is based on the previous modified derivation. For example, the entire vehicle factory can continuously add important signals related to the entire vehicle to the graphic display window after the first modified derivation of the dynamic derived base window and display them in a fixed position in the graphic display window. For example, it can display vehicle speed, wheel speed, etc., forming a graphic display window for the second modified derivation. Different parts manufacturers, based on the graphic display window for the second modified derivation sent from the entire vehicle factory, then add special signals belonging to their respective parts manufacturers to their corresponding windows and display them in a fixed position in the secondary modified derivation graphic display window. For example, it can display brake deceleration, yaw angular velocity, etc., thereby forming three or more modified derivation graphic display windows.
[0058] As shown in Figure 9, some embodiments further provide a dynamically extensible development system for user interfaces based on a software platform. This system includes the following: This is a base dynamically derived module configured to dynamically extract type information related to windows in the software platform's execution library by an interface manager during the execution of the software platform, and to form a dynamically derived base window by inheriting the above type information, while simultaneously generating software platform installation code by the interface manager. This is a derived code acquisition module configured to generate window dynamic creation code once based on type information in the software platform installation code, and to store the software platform installation code and the window dynamic creation code once in a derived code file.
[0059] In some embodiments, the computer device further creates N+1 derived code files if it performs N+1 derived modifications to the attributes and / or call events of a dynamically derived base window. The N+1 derived code files consist of N derived code file introduction code, N+1 window dynamic creation code and / or user code, where N≧1, and execute the N+1 derived code files to form an N+1 derived user interface. Here, the specific implementation functions of the base dynamic derivation module and the derived code acquisition module are realized in the processor or computer device, and specifically refer to the content of the user interface dynamically extensible development method based on the software platform described above, which will be omitted here.
[0060] The following describes several examples of electronic devices from a hardware processing perspective, but without limiting the specific implementation of the electronic devices. As shown in Figure 10, the electronic device includes a processor, a readable storage medium, a communication bus, and a communication interface. The processor, the readable storage medium, and the communication interface communicate with each other via the communication bus. The readable storage medium is used to store a program that executes a dynamically extensible development method for a user interface based on the software platform, and the processor is configured to execute a program for the dynamically extensible development method for a user interface based on the software platform.
[0061] In other embodiments, computer devices and industrial personal computers can also be considered types of electronic equipment.
[0062] Note that the configuration shown in Figure 10 is not limited to electronic devices and may include fewer or more components than those shown, may be a combination of several components, or may have different components arranged.
[0063] In some embodiments, the communication interface may be a communication interface that can be connected to an external bus adapter, such as RS232, RS485, USB port, and TYPE port. A wired or wireless network interface may also be included, and the network interface may optionally include wired and / or wireless interfaces (e.g., Wi-Fi interface, Bluetooth interface, etc.) that are typically used to establish a communication connection between the computer device and other electronic devices.
[0064] Among these, the readable storage medium or computer-readable storage medium includes at least one type of memory. Memory includes flash memory, hard disks, multimedia cards, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, it may be an internal storage unit of a computer device, such as a hard disk. In other embodiments, memory may be an external storage device of a computer device, such as a plug-in hard disk, Smart Media Card (SMC) (registered trademark), Secure Digital (SD), or Flash Card equipped in a computer device. Furthermore, memory may include both internal storage units and external storage devices of a computer device. Memory is used to store various data such as application software and computer program code installed in the computer device, as well as to temporarily store output data or data to be output.
[0065] In some embodiments, the processor may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip that executes program code stored in memory or processes data, for example, to run a computer program.
[0066] In some embodiments, the communication bus may be an input / output bus, such as a Peripheral Component Interconnect (PCI) bus or an Enhanced Industry Standard Architecture (EISA) bus. This bus can be divided into an address bus, a data bus, a control bus, etc.
[0067] In some embodiments, the computer device includes a processor, and a readable storage medium and a display module electrically connected to the processor. The readable storage medium is used to store a program that executes a dynamically extensible development method for a user interface based on the software platform. The processor is configured to execute the program and generate a corresponding user interface. The display module is configured to display the user interface.
[0068] Optionally, the computer device may further include a user interface. The user interface may include input units such as a display and a keyboard, and optionally, the user interface may also include standard wired interfaces and wireless interfaces. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. In this case, the display is also called a display screen or display unit for displaying information processed within the computer device and for displaying a visualized user interface.
[0069] The above-mentioned processor, when executing the above-mentioned program, implements the steps in the embodiment of the dynamically extensible development method for a user interface based on the software platform shown in Figure 1. For example, steps S101 to S102 shown in Figure 1. Alternatively, when executing the computer program, the processor implements the functions of each module or unit in the embodiment of each of the above-mentioned devices.
[0070] This embodiment further provides a computer-readable storage medium on which a program for a dynamically extensible development method of a user interface based on a software platform is stored, and when the program is executed on a processor, specific steps of the dynamically extensible development method of a user interface based on a software platform can be realized. A specific description of the dynamically extensible development method of a user interface based on a software platform is provided below, and is omitted here.
[0071] Some embodiments further provide computer program products, including computer programs or commands, which, when executed on a computer, cause the computer to perform a dynamically extensible development method of user interfaces based on any of the possible software platforms described above.
[0072] In some embodiments of the present invention, the disclosed apparatus and methods can, of course, be implemented in other ways. The embodiments of the apparatus described above are merely illustrative; for example, flowcharts and block diagrams in the drawings illustrate the implementable architectures, functions, and operations of apparatus, methods, and computer program products according to some embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code. The module, program segment, or part of code contains executable instructions for implementing one or more predetermined logical functions. In some alternative implementations, the functions represented in the blocks may occur in an order different from that shown in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes in reverse order depending on the related functions. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, may be implemented in a dedicated hardware-based system that performs a predetermined function or operation, or in a combination of dedicated hardware and computer instructions.
[0073] Furthermore, in each embodiment of the present invention, each functional module may be integrated to form a single independent part, each module may exist individually, or two or more modules may be integrated to form a single independent part.
[0074] The above functions can be implemented in the form of software function modules and, when sold or used as independent products, can be stored on a single computer-readable storage medium. Based on this understanding, the technical solutions of the present invention, in their essence or contribution to the prior art, or parts thereof, can be represented in the form of a software product. The computer software product is stored on a single storage medium and contains a plurality of instructions that cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0075] By illustrating the preferred embodiments of the present invention described above, those skilled in the art can make various changes and modifications to the above-described content without departing from the technical spirit of the present invention. The technical scope of the present invention is not limited to the contents of the specification and must be determined based on the claims.
Claims
1. A method for dynamically extensible development of user interfaces based on a software platform, During the execution of the software platform, the interface manager dynamically extracts type information related to windows in the software platform's execution library, and forms a dynamically derived base window by inheriting the said type information. When performing N+1 derivative modifications to the attributes and / or call events of a dynamically derived base window, N+1 derived code files are created, and each of these N+1 derived code files includes N derived code file introduction code, N+1 window dynamic creation code and / or user code, where N ≥ 1. A method for dynamically extensible user interface development based on a software platform, characterized in that a derived code file is executed N+1 times, and an N+1 derived user interface is formed.
2. During the execution of the software platform, the interface manager dynamically extracts type information about windows in the software platform execution library. The software platform introduces a runtime information unit of the system into the code, and uses the classes and methods related to the window in that unit, This involves creating a context object using the "Runtime Information Context Type" class in the system's runtime information unit, and then obtaining the window's "Runtime Information" object using the "Get Runtime Information Type" method. A method for dynamically extensible development of a user interface based on the software platform described in claim 1, characterized by including obtaining property information of a window from the window's "runtime type information" object using the "Get Property" method and obtaining method information of the window using the "Get Method" method.
3. A method for dynamically extensible development of a user interface based on the software platform according to claim 1, characterized in that the interface manager is used for creation, listing, design, storage, deployment, derivation, encryption, and execution of the user interface.
4. The aforementioned attributes include the visual elements and submembers of the window, The aforementioned submembers are the window's functional variables and / or behavioral characteristic variables, The method for dynamically extensible development of a user interface based on a software platform according to claim 1, characterized in that the aforementioned call event is one or more events from among user interaction events, window lifecycle events, and window function events.
5. Making derivation modifications to the attributes and / or call events of a dynamically derived base window is, The assignment method is used to write window attributes and to establish a call relationship with user code. A method for dynamically extensible development of a user interface based on a software platform according to claim 1, characterized by comprising associating an event handling function with a window call event by an assignment method.
6. The window attributes are written using an assignment method, and a call relationship is formed with the user code. The window itself calls its own function library, constructs the corresponding parameters, and introduces them into the API function. Alternatively, you can call the user's function library and pass the window attributes as parameters to the API function. Alternatively, you can call the function library of the software system and introduce the window attributes as parameters into the API function. Alternatively, a method for dynamically extensible development of a user interface based on the software platform according to claim 5, characterized by calling a function library of a coding language and introducing window attributes as parameters into an API function.
7. A dynamically extensible development system for user interfaces based on a software platform, Including a computer device, the computer device is A base dynamic derivation module is configured to include a base dynamic derivation module configured to dynamically extract type information relating to windows in the execution library of the software platform by an interface manager during the execution of the software platform, and to form a dynamically derived base window by inheriting the above type information, The computer device further creates N+1 derived code files when performing N+1 derived modifications to the attributes and / or call events of a dynamically derived base window, the N+1 derived code files each contain N derived code file introduction code, N+1 window dynamic creation code and / or user code, where N≧1, and the N+1 derived code files are executed to form an N+1 derived user interface, characterized in that the system is a dynamically extensible user interface development system based on a software platform.
8. The aforementioned attributes include the visual elements and submembers of the window, The aforementioned submembers are the window's functional variables and / or behavioral characteristic variables, The dynamically extensible user interface development system based on the software platform according to claim 7, characterized in that the aforementioned call event includes one or more events from among user interaction events, window lifecycle events, and window function events.
9. A computer-readable storage medium, A computer-readable storage medium characterized in that it stores a program that performs a dynamically extensible development method for a user interface based on the software platform described in any one of claims 1 to 6.
10. It is an electronic device, It includes a processor, a readable storage medium, a communication bus, and a communication interface, The processor, the readable storage medium, and the communication interface communicate with each other via the communication bus. The electronic device is characterized in that the readable storage medium is used to store a program that performs a dynamically extensible development method for a user interface based on a software platform according to any one of claims 1 to 6, and the processor is configured to perform a program for a dynamically extensible development method for a user interface.
11. A computer device, The system includes a processor, a readable storage medium and a display module electrically connected to the processor, The readable storage medium is used to store a program that performs a dynamically extensible development method for a user interface based on the software platform described in any one of claims 1 to 6. The processor is configured to execute the program and generate the corresponding user interface. A computer device characterized in that the display module is configured to display the user interface.
12. A program for causing a computer to perform a dynamically extensible development method for a user interface based on the software platform described in any one of claims 1 to 6.
13. A computer-readable recording medium on which a program for causing a computer to execute a dynamically extensible development method for a user interface based on the software platform described in any one of claims 1 to 6 is recorded.
14. A software platform for a computer, characterized in that it performs a development method for dynamically extensible user interfaces based on the software platform described in any one of claims 1 to 6.
Citation Information
Patent Citations
Computer system for dynamically generating display screen panel, which provides conversational interface for application program step
JP1993197535A
Method and apparatus for persistently resolving event to event source
JP2007172602A
Multi-view masters for graphical designs
US20200065355A1
Computer system for dynamically generating display screen panels providing interactive interfaces for application program steps
US5533184A
