Software interface display method, software interface display updating method, device and medium
By parsing the display configuration file and preset control library, the unified display and operation of the ultrasonic instrument software interface is realized, which solves the problem of high software adaptation costs, reduces development and maintenance costs, and ensures interface consistency and equipment adaptation.
Patent Information
- Application Number
- CN202410783601.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-03
AI Technical Summary
Existing ultrasound instrument software adaptation requires the development of specialized software for each device, resulting in high development and maintenance costs and a lack of universal solutions.
By parsing the display configuration file to obtain the display information of the page and controls, and obtaining the control business information from the preset control library, the software interface can be displayed and operated uniformly on different devices, reducing development and maintenance costs.
It achieves universal adaptation of ultrasound instrument software, reduces development and maintenance costs, and ensures normal operation and interface consistency of the software on different devices.
Smart Images

Figure CN118585280A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of ultrasonic instrument software adaptation, and in particular to a software interface display method, a software interface display update method, a device and a medium. Background Art
[0002] Ultrasonic instruments, also known as ultrasonic instruments or ultrasonic medical imaging equipment, are widely used in the medical field due to their high resolution, real-time imaging and non-invasive features. In order to adapt to medical clinical, diagnostic and health care application scenarios, there are more and more types of ultrasonic medical imaging equipment, and the display screen parameters of their applications are also inconsistent, which brings great challenges to software adaptation.
[0003] At present, software adaptation for different types of ultrasound instruments mostly involves developing a set of software for each display screen used for each ultrasound instrument to specifically adapt the software interface to ensure that the software can run normally on different devices and present clear images. This not only prolongs the development cycle but also greatly increases the software development and maintenance costs.
[0004] Therefore, how to achieve software adaptation of ultrasonic instruments while reducing software development costs and maintenance costs has become a technical problem that urgently needs to be solved. Summary of the invention
[0005] In view of this, the present application provides a software interface display method, a software interface display update method, a device and a medium to solve the problem of how to achieve software adaptation of an ultrasonic instrument while reducing software development costs and maintenance costs.
[0006] In a first aspect, the present application provides a software interface display method, which is applied to an ultrasound instrument, the ultrasound instrument including a display screen, and the method includes:
[0007] Get the display configuration file of the target software;
[0008] Parse the display configuration file to obtain page display information and control display information; the page display information is used to indicate how the software page of the target software is displayed on the display screen; the control display information is used to indicate how the software control is displayed in the software page;
[0009] According to the control type in the control display information, the control business information of the software control is obtained from the preset control library; the control business information is used to indicate the business operation corresponding to the software control;
[0010] According to the page display information, the control display information and the control business information, an interface including the software page and the software control is displayed on the display screen, so that when a trigger operation on the display position of the software control is received, the business operation corresponding to the software control is executed.
[0011] In the above technical scheme, by parsing the display configuration file, the specific display mode of each software page in the target software and the specific display mode of each software control can be obtained, and there is no need to develop a specific software system for different display screens to define the display mode of the software page and the software control, thereby reducing the development cost. The control business information for indicating the business operation of the software control can be obtained from the preset control library according to the control type in the control display information, and the display mode of the software control is separated from the business operation. There is no need to perform code-level maintenance on the software system to modify the business code of the software control when modifying the display mode of the software control, thereby reducing the maintenance cost of the software system. In this way, the interface including the software page and the software control can be displayed on the display screen based on the parsed page display information, control display information and control business information. In this way, not only the normal operation of the software control is ensured, but also the interface with the display mode set in the display configuration file can be displayed on the display screen, thereby realizing the software adaptation of the ultrasonic instrument. In addition, when display adaptation is required, only the display configuration file needs to be modified, and there is no need to redevelop the software system or maintain the relevant code of the software system, thereby reducing the software development cost and maintenance cost while adapting the software of the ultrasonic instrument.
[0012] In some optional embodiments, the display configuration file further includes area display information and control layout information, the area display information is used to indicate the display mode of the functional area of the target software in the display screen; the control layout information is used to indicate the display mode of the control area in the software page, the control area is the display area to which the software control belongs in the software page; the page display information is also used to indicate the functional area to which the software page belongs;
[0013] According to the page display information, the control display information and the control business information, an interface including a software page and a software control is displayed on the display screen, including:
[0014] When a display event of a target interface of the target software is monitored, a functional area, software page, control area and business control matching the target interface are selected from each functional area, each software page, each control area and each business control, and displayed on the display screen; a business control is a control obtained by associating the business information of each sub-control in the control business information with the software control corresponding to the sub-control business information.
[0015] In some optional embodiments, the method further comprises:
[0016] When a page switching instruction is detected, the page name in the page switching instruction is obtained;
[0017] Filter the target software page that matches the acquired page name from the created software pages;
[0018] Obtain each control area under the target software page, and each business control in each control area;
[0019] On the display screen, the target software page, each control area under the target software page, and each business control under each control display area are displayed.
[0020] In the above technical solution, when a page switching instruction is detected, the corresponding target software page, each control area under the target software page, and each business control under each control display area can be found from each control area that has been created and meets the display parameters of the display screen, and each business control in each control area, and the information is displayed. While achieving software adaptation, the normal response of the software function can also be distinguished.
[0021] In a second aspect, the present application provides a software interface display update method, which is applied to an ultrasonic instrument, the ultrasonic instrument includes a display screen, and the target software is running in the ultrasonic instrument, the method comprising:
[0022] When receiving a modification instruction for a display configuration file of the target software corresponding to the display screen, at least one of the page display information and the control display information in the display configuration file is updated according to the modification instruction; the page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page;
[0023] Based on the updated display configuration file, an interface including a software page and a software control is displayed on the display screen.
[0024] In some optional embodiments, based on the updated display configuration file, the interface including the software page and the software control displayed on the display screen includes:
[0025] Update the created software page, control area, and software control according to the updated content in the updated display configuration file;
[0026] The interface currently displayed in the display screen is updated based on the updated software page, the updated control area, and the updated software control.
[0027] In some optional embodiments, the method further comprises:
[0028] Receive an update operation on a target business control in the interface, and update the target business control in the interface;
[0029] The sub-control display information corresponding to the updated target business control is obtained, and the display configuration file is updated based on the obtained sub-control display information.
[0030] In a third aspect, the present application provides a software interface layout system, which is applied to an ultrasound instrument, the ultrasound instrument including a display screen, and the system including:
[0031] A logic processing module is used to obtain a display configuration file of the target software; parse the display configuration file to obtain page display information and control display information; the page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page; and send the received trigger operation to the software response module;
[0032] The interface management module is used to receive the page display information and the control display information sent by the logic processing module, and obtain the control business information of the software control from the preset control library according to the control type in the control display information; the control business information is used to indicate the business operation corresponding to the software control; and when receiving the trigger operation of the display position of the software control, send the trigger operation to the logic processing module;
[0033] An interface display module, used to display an interface including a software page and software controls on a display screen according to page display information, control display information and control business information;
[0034] The software response module is used to receive the trigger operation sent by the logic processing module and execute the business operation corresponding to the software control corresponding to the trigger operation.
[0035] In a fourth aspect, the present application provides a software interface display device, which is applied to an ultrasonic instrument, the ultrasonic instrument includes a display screen, and the device includes:
[0036] An acquisition module, used to acquire a display configuration file of a target software;
[0037] The parsing module is used to parse the display configuration file to obtain page display information and control display information; the page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page;
[0038] The acquisition module is further used to acquire the control business information of the software control from the preset control library according to the control type in the control display information; the control business information is used to indicate the business operation corresponding to the software control;
[0039] The display module is used to display an interface including a software page and a software control on a display screen according to page display information, control display information and control business information, so as to execute a business operation corresponding to the software control when a trigger operation on the display position of the software control is received.
[0040] In a fifth aspect, the present application provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the software interface display method of any embodiment of the first aspect or the software interface display update method of any embodiment of the second aspect by executing the computer instructions.
[0041] In a sixth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the software interface display method of any embodiment of the first aspect or the software interface display update method of any embodiment of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 is a structural schematic diagram of a software interface layout system according to an embodiment of the present application;
[0044] Figure 2 is a structural diagram of another software interface layout system according to an embodiment of the present application;
[0045] Figure 3 is a flowchart of a software interface display method according to an embodiment of the present application;
[0046] Figure 4 is a hierarchical schematic diagram of a display configuration file according to an embodiment of the present application;
[0047] Figure 5 It is a schematic diagram of the initialization process of the target software in an application scenario of an embodiment of the present application;
[0048] Figure 6 is a flowchart of a method for updating a software interface display according to an embodiment of the present application;
[0049] Figure 7 It is a schematic diagram of a process of updating a display configuration file in an application scenario of an embodiment of the present application;
[0050] Figure 8 A structural block diagram of a software interface display device according to an embodiment of the present application;
[0051] Fig. 9 It is a schematic diagram of the hardware structure of the computer device of an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0053] Figure 1 1 is a schematic diagram of a software interface layout system in an embodiment of the present application. The software interface layout system is mainly applied to an ultrasound instrument, which includes a display screen. Figure 1 As shown, the system includes a logic processing module, an interface management module, an interface display module and a software response module.
[0054] The logic processing module is mainly used for processing business logic, which may include parsing of the display configuration file of the target software, caching of the display configuration file, updating of the display configuration file, and receiving page switching instructions.
[0055] The interface management module is mainly used for processing the functional logic of the display interface. The functional logic of the display interface may include monitoring and forwarding the triggering operation of the display position of the software control in the display screen, performing page switching operations, and updating of business controls.
[0056] The interface display module is mainly used for processing display logic. The display logic may include creating software pages and software controls, and displaying pages including software pages and software controls.
[0057] The software response module is mainly used to execute the business operations corresponding to the business controls to ensure the operation of the target software.
[0058] Specifically, the logic processing module is used to obtain a display configuration file of the target software; parse the display configuration file to obtain page display information and control display information; the page display information is used to indicate how the software page of the target software is displayed on the display screen; the control display information is used to indicate how the software control is displayed in the software page; and send the received trigger operation to the software response module.
[0059] The interface management module is used to receive the page display information and control display information sent by the logic processing module, and obtain the control business information of the software control from the preset control library according to the control type in the control display information; the control business information is used to indicate the business operation corresponding to the software control; and when a trigger operation on the display position of the software control is received, the trigger operation is sent to the logic processing module.
[0060] The interface display module is used to display an interface including a software page and software controls on a display screen according to page display information, control display information and control business information.
[0061] The software response module is used to receive the trigger operation sent by the logic processing module and execute the business operation corresponding to the software control corresponding to the trigger operation.
[0062] Optional, such as Figure 2 As shown, the software interface layout system also includes an interaction module and an interface processing module. The interaction module is used for interaction between the logic processing module and the interface display module and the interface management module. Specific interaction operations may include forwarding of display configuration files, forwarding of page switching instructions, and forwarding of trigger operations of software controls.
[0063] Optionally, the software interface layout system further includes a control library module and a control management module, and the control library module, the control management module, the interface management module and the interface display module constitute the interface processing module. The control library module is used to store a preset control library, and the preset control library stores the control business information of each software control. The control business information may include the control size, control name, control ID, control type, control event type and control event trigger signal, etc. Among them, the control event type is used to indicate the trigger operation that can be triggered by the software control, and the control event trigger signal is a signal sent after the software control is triggered. The control management module is used to receive the control display information sent by the interface management module, and obtain the control business information of the software control from the preset control library according to the control type in the control display information.
[0064] The interaction module may include a logic processing interaction unit and an interface processing interaction unit. The logic processing interaction unit is used to interact with the logic processing module, and the interface processing interaction unit is used to interact with the interface processing module.
[0065] The logic processing module includes a configuration file storage unit, a configuration file parsing unit and a configuration file management unit.
[0066] The configuration file storage unit is used to store the display configuration file of the target software; the configuration file parsing unit is used to obtain the display configuration file of the target software from the configuration file storage unit and parse it, and send the obtained page display information and control display information to the configuration file management unit. The configuration file management unit is used to store the received page display information and control display information, and respond to the information acquisition instruction of the interface management module, send the cached relevant information to the interface management module, so that the interface management module obtains the page display information and control display information, and sends the obtained page display information and control display information to the interface display module, and sends the control display information to the control management module.
[0067] Optionally, the logic processing module may also receive a page switching instruction sent by the software response module, that is, Figure 2 The page switching in the program is detected, and the page switching instruction is sent to the logic processing interaction unit, which forwards the received page switching instruction to the interface management module. The interface management module monitors the page switching instruction and obtains the page name in the page switching instruction; notifies the interface display module to filter the target software page that matches the obtained page name from the created software page; the interface display module obtains the target software and also obtains the control areas under the target software page and the business controls in each control area according to the page name of the target software page, the layout name of the created control area, the page name associated with the created control area, and the layout name associated with the created software control; the interface display module displays the target software page, the control areas under the target software page, and the business controls under each control display area on the display screen.
[0068] Optionally, the configuration file management unit can also provide users with a display configuration file modification service. Specifically, the configuration file management unit provides interfaces for inserting, modifying, and deleting the display configuration file. Users can modify the display configuration file through the corresponding interface to update the display configuration file. When the configuration file management unit receives a modification instruction for the display configuration file of the target software corresponding to the display screen, it will update at least one of the page display information, the control layout information, and the control display information in the display configuration file according to the modification instruction; and notify the configuration file cache unit to store the updated display configuration file to achieve persistent update of the display configuration file.
[0069] The configuration file management unit will also send an update signal of the display configuration file update to the logic processing interaction unit. The logic processing interaction unit will send the update signal to the interface management module, and the interface management module will notify the interface display module to obtain the updated display configuration file from the configuration file management unit through the interface processing interaction unit, and based on the updated display configuration file, display the interface including the software page and the software control on the display screen.
[0070] Optionally, the configuration file management unit may also provide the user with a query service for displaying the configuration file through a query interface.
[0071] Optionally, the interface processing interaction unit is further used to receive a trigger operation sent by the interface management module, and forward the trigger operation to the logic processing module, and the logic processing sends the trigger operation to the software response module.
[0072] The above introduces the software interface layout system of the present application, and the following introduces the software interface display method of the present application.
[0073] According to an embodiment of the present application, a software interface display method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0074] Figure 3 is a flowchart of a software interface display method according to an embodiment of the present application, which is applied to Figure 1 The ultrasonic instrument in the embodiment shown includes a display screen. The method is specifically performed by a software interface layout system in the ultrasonic instrument, such as Figure 3 As shown, the process includes the following steps:
[0075] Step S301, obtaining a display configuration file of the target software.
[0076] The configuration file parsing unit in the logic processing module of the software interface layout system can obtain the display configuration file from the configuration file storage unit.
[0077] Step S302, parsing the display configuration file to obtain page display information and control display information.
[0078] The page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page. The configuration file parsing unit can parse various types of information in the display configuration file to obtain the page display information and the control display information.
[0079] It is understandable that the display configuration file can be a file pre-configured based on the display parameters of the display screen, or it can be the original display configuration file of the target software. However, when the display configuration file is the original display configuration file, when the interface is displayed on the display screen based on the display configuration file, the user may need to continue to modify the original display configuration file based on the layout displayed on the display screen, so that the modified display configuration file can adapt to the display parameters of the display screen.
[0080] Step S303: acquiring control business information of the software control from a preset control library according to the control type in the control display information.
[0081] Among them, the control business information is used to indicate the business operations corresponding to the software control. The control display information includes the sub-control display information of each software control, and the sub-control display information may include the control ID, control name, control event type, control type, control position ID, control size, control display content, font style, control level, control value range and control properties. The control position ID is used to indicate the display position of the software control in the control area, the control level is used to indicate the trigger priority of the software control, and the control value range is used to indicate the range of the adjustable content corresponding to the software control. It should be noted that properties such as control level and control value range are only valid for some software controls, that is, the sub-control display information of some software controls may not contain this information, which can be designed according to actual needs.
[0082] The control management module of the software interface layout system can search for the control business information of each software control from the control business information of each software control stored in the preset control library for the control type of the software control in the control display information.
[0083] Step S304, displaying an interface including a software page and a software control on a display screen according to the page display information, the control display information and the control business information, so as to execute a business operation corresponding to the software control when a trigger operation on the display position of the software control is received.
[0084] The interface display module of the software interface layout system can create software pages and software controls respectively based on the acquired page display information and control display information in advance, and the control management module can bind the control business information of each created software control to the software control. The interface management module can notify the interface display module to display the created software page and software control on the display screen, so that since the software control is also bound to the control business information, when the interface management module detects the trigger operation of the display position of the software control, the trigger operation can be sent to the logic processing module to execute the business operation corresponding to the software control.
[0085] Specifically, the display configuration file also includes area display information and control layout information. The area display information is used to indicate how the functional area of the target software is displayed in the display screen; the control layout information is used to indicate how the control area is displayed in the software page, and the control area is the display area to which the software control belongs in the software page; the page display information is also used to indicate the functional area to which the software page belongs.
[0086] When a display event of the target interface of the target software is monitored, the functional area, software page, control area and business control that match the target interface are selected from each functional area, each software page, each control area and each business control, and displayed on the display screen. Among them, the business control is a control obtained by associating the business information of each sub-control in the control business information to the software control corresponding to the sub-control business information. The display event can be an operation such as starting the target software or refreshing or switching a certain interface of the target software. The display event includes the area name of the functional area to be displayed, the page name of the software page, the layout of the control area and the control ID of the business control, so that it is easy to find the functional area, software page, control area and business control that match the target interface.
[0087] When presetting the display configuration file, in order to avoid too many interfaces that need to be displayed in the target software, even if there is a slight difference in the interface, it is still necessary to re-cache the display configuration of a new interface, which causes the display configuration file to be too large and occupies more storage space. Therefore, according to the commonality of the layout of the interface that needs to be displayed in the target software, the interface of the target software is divided into multiple functional areas, and the functional areas may include but are not limited to the menu area, the main display area, and the constant display area. For each functional area, it can be divided into multiple software pages according to the different displayed contents in the functional area. There are multiple layers of control areas under the software page. The control area can be limited to the layout relationship between the software controls therein and the control areas other than itself. The layout relationship can be a horizontal layout, a vertical layout, or a grid layout. At least one control area under the software page contains the software controls that need to be displayed.
[0088] In this way, the display configuration file includes the hierarchical relationship between the function area, software page, control area and software control. Figure 4 As shown, Figure 4 The area in it is the functional area, the page is the software page, the control layout is the control area, and the control is the software control. Figure 4The multiple pages are divided into multiple software pages according to different layouts, that is, the multiple software pages are divided according to the different display contents in the functional area. The main interface of the program is the control page that needs to be displayed when the target software is started. The configuration file parsing module can parse the hierarchical relationship in the display configuration file to obtain the regional display information, page display information, control layout information and control display information with hierarchical association relationship.
[0089] The area display information may include the sub-area display information of each functional area, and the sub-area display information includes the area name, area type, total number of area pages, area location, area size and area background. The page display information may include the sub-page display information of each software page, and the sub-page display information includes the page type, page main name, page sub-name and page background; wherein the page type is used for the software to switch to a certain major function item, such as the basic function item corresponding to the page type; the page main name is used for the software to switch to a certain specific function, such as the B mode under the basic function corresponds to the page main name, and the page sub-name is used to indicate that the software switches to a certain sub-page under a certain specific function, such as the first sub-page under the B mode corresponds to the page sub-name, and the page sub-page name is unique.
[0090] The control layout information may include the sub-control layout information of each control area, and the sub-control layout information includes the layout type (horizontal, vertical, grid, etc.), layout name, layout position, layout size, control spacing, etc. A control area may have multiple layers of control areas other than itself, that is, a control area may have multiple layers of layouts other than its own layout.
[0091] Initialization operations are required when the target software is started. In one application scenario, combined with Figure 2 The specific initialization process can be as follows Figure 5 As shown, the configuration file storage module is the storage module, the display configuration file is the layout configuration information, the configuration file parsing module is the parsing module, the interface management module is the interface layout module, the sub-area display information is the area information, the sub-page display information is the page information, and the sub-control display information is the control information as an example.
[0092] The logic processing module reads the display configuration file in the configuration file storage module. The configuration file parsing module parses the display configuration file. After successful parsing, the parsed configuration information, namely the area display information, page display information, control layout information and control display information, is sent to the configuration file management module for caching, that is, caching the display configuration file to the layout management class. The configuration file management module notifies the interface display module to obtain the area information through the interaction module. The interface display module sends a request to the interface management module, and the interface management module requests to obtain all sub-area display information cached in the layout management class. That is, the logic processing module will send the layout information to the interaction module, and the interaction module forwards the layout information. The layout information can be the information in the display configuration file corresponding to the request of the interface management module. After all sub-area display information is successfully obtained, the interface display module creates the main program interface of the target software, that is Figure 5 In the area module under the interface, the area module can display functional areas based on sub-area display information.
[0093] After the regional module is created, the interface display module sends a request to the interface management module, and obtains all sub-page display information under the functional area from the layout management class according to the area name of the functional area corresponding to the regional module. After all sub-page display information is successfully obtained, the interface display module creates all page modules under each functional area, and the page module can display the software page according to the sub-page display information.
[0094] After the page module is created, the interface display module sends a request to the interface management module to obtain the layout information of all sub-controls under the software page from the layout management class according to the page name. Figure 5 All control layout information in the , and create a corresponding number of control layout modules, the control layout module can display the control area according to the sub-control layout information.
[0095] After the control layout module is created, the interface display module sends a request to the interface management module, and obtains all sub-layouts, that is, all sub-control layout information under the control area, and control information under the layout, that is, control display information under the control area, according to the control layout name, that is, the layout name of the control area. If either the control layout (that is, the sub-control layout information) or the control display information is unsuccessful, it returns to the previous step. If successful, the interface display module creates all sub-layouts under the layout, that is, creates the control area and all other control areas and control modules under the control area except itself. The control module searches for the corresponding software control from the preset control library according to the control type, creates and displays it, and the control management module binds the control business information of the created software control to the software control. At this point, the initialization operation of the entire target software is completed.
[0096] In the embodiment of the present application, by parsing the display configuration file, the specific display mode of each software page and the specific display mode of each software control in the target software can be obtained, and there is no need to develop a specific software system for different display screens to define the display mode of the software page and the software control, thereby reducing the development cost. The control business information for indicating the business operation of the software control can be obtained from the preset control library according to the control type in the control display information, and the display mode of the software control is separated from the business operation. There is no need to perform code-level maintenance on the software system to modify the business code of the software control when modifying the display mode of the software control, thereby reducing the maintenance cost of the software system. In this way, the interface including the software page and the software control can be displayed on the display screen based on the parsed page display information, control display information and control business information. In this way, not only the normal operation of the software control is ensured, but also the interface with the display mode set in the display configuration file can be displayed on the display screen, thereby realizing the software adaptation of the ultrasonic instrument. In addition, when display adaptation is required, only the display configuration file needs to be modified, and there is no need to redevelop the software system or maintain the relevant code of the software system, thereby reducing the development cost and maintenance cost of the software while adapting the software of the ultrasonic instrument.
[0097] Figure 5 is a flowchart of another software interface display method according to an embodiment of the present application, which is applied to Figure 1 The ultrasonic instrument in the embodiment shown includes a display screen. The method is specifically performed by a software interface layout system in the ultrasonic instrument, such as Figure 5 As shown, the process includes the following steps:
[0098] Step S501, when a page switching instruction is detected, the page name in the page switching instruction is obtained.
[0099] The software response module can detect the page switching instruction and send the instruction to the logic processing module, such as Figure 2 As shown, the logic processing module sends the instruction to the interaction module, and the interaction module forwards the instruction, that is, the page switching signal in 2, to the interface management module, and the interface management module obtains the page switching instruction, so as to parse out the page name.
[0100] Step S502: Filter the target software page that matches the acquired page name from the created software pages.
[0101] Based on the parsed page name and the page name of each created software page, the interface management module can filter the target software page that matches the acquired page name from the created software pages.
[0102] Step S503: Acquire each control area under the target software page and each business control in each control area.
[0103] Similarly, the interface management module can notify the interface display module to filter out the control areas under the target software page from the created control areas based on the page name of the target software page and the page names associated with the created control areas. For each filtered control area, the business controls in the control area can be filtered out from the business controls according to the layout name of the control area and the layout names associated with the created business controls.
[0104] Step S504: displaying the target software page, each control area under the target software page, and each business control under each control display area on the display screen.
[0105] The interface display module can display the target software page, each control area under the target software page, and each business control under each control display area on the display screen.
[0106] In the embodiment of the present application, when a page switching instruction is detected, the corresponding target software page, each control area under the target software page, and each business control under each control display area can be found from each control area that has been created and meets the display parameters of the display screen, and each business control in each control area, and the information is displayed. While achieving software adaptation, the normal response of the software function is also distinguished.
[0107] Figure 6 is a flowchart of a method for updating a software interface display according to an embodiment of the present application, which is applied to Figure 1 The ultrasonic instrument in the embodiment shown includes a display screen. The method is specifically performed by a software interface layout system in the ultrasonic instrument, such as Figure 6 As shown, the process includes the following steps:
[0108] Step S601, when receiving a modification instruction for a display configuration file of a target software corresponding to a display screen, updating at least one of page display information, control layout information and control display information in the display configuration file according to the modification instruction.
[0109] Among them, the page display information is used to indicate the software page of the target software and the display position of the software page; the control layout information is used to indicate the control area in the software page, and the control display information is used to indicate the display position of the software control in the control area.
[0110] The configuration file management module provides interfaces such as insert, modify, and delete. Users can change specific contents in the display configuration file through the corresponding interfaces. In this way, the configuration file management module can receive the change instruction and change the corresponding contents in the display configuration file based on the contents indicated in the change instruction. In addition to updating at least one of the page display information, control layout information, and control display information in the display configuration file, at least one of the area display information and control layout information can also be updated.
[0111] Step S602: Based on the updated display configuration file, an interface including a software page and software controls is displayed on the display screen.
[0112] Based on Figure 3 The illustrated embodiment is similar to the process in that an interface including a software page and software controls may be displayed on a display screen based on an updated display configuration file, which will not be described in detail herein.
[0113] Optionally, the interface display module may update the created software pages, control areas, and software controls according to the updated content in the updated display configuration file; and update the interface currently displayed in the display screen based on the updated software pages, updated control areas, and updated software controls.
[0114] Optionally, the interface display module can use a local refresh method to update the interface in the display screen, that is, using the local refresh method, based on the updated display configuration file, the interface including the software page and software controls displayed on the display screen, so as to avoid the slow and stuck phenomenon caused by the overall refresh.
[0115] Optionally, the method further includes: receiving an update operation on a target business control in the interface, updating the target business control in the interface; obtaining sub-control display information corresponding to the updated target business control, and updating a display configuration file based on the obtained sub-control display information. The update operation includes at least one of adding a control, deleting a control, and moving a control.
[0116] In one application scenario, such as Figure 2 as well as Figure 7 As shown, the interface processing module is the interface module, the configuration file management module is the layout management module, the configuration file storage module is the storage module, the control display information is the control information, and the software control is the control as an example.
[0117] When the logic processing module monitors the update operation of the display configuration file, including page update and / or control update, it notifies the interaction module to forward the page update signal or control update signal to the interface processing module. The interface management module in the interface processing module then notifies the interface display module to obtain the updated display configuration file based on the received signal to complete the dynamic update.
[0118] The interface management module detects the user's trigger operation on the display position of the software control, that is, Figure 2 When a control event in is triggered, the trigger operation will be sent to the interface processing interaction unit, which will forward it to the logic processing module so that the logic processing module will forward it to the software response module to execute the business operation corresponding to the software control.
[0119] When the user needs to update the controls in the displayed interface, the user can adjust the layout of the software controls on the interface, move, add or delete the software controls, and make them effective permanently. First, after the user adjusts the layout on the interface, click the Save button on the interface to confirm whether to save the adjustment, that is, whether to save the settings. After confirmation, the interface management module records the current changed software page and the changed control display information, that is, the interface management module records the moved, added or deleted control information and the new display position. And notify the interactive module, that is, Figure 2 The interactive module will be notified after detecting the movement of controls and other operations. The interactive module notifies the layout management module of the logic processing module to update the page layout cache information. Specifically, the interface processing module notifies the interactive module to send a page layout control refresh signal, that is, Figure 2 After receiving the page layout control refresh signal, the layout management module of the logic processing module updates the layout and control information of the page, that is, updates the control display information in the display configuration file and the page display information of the software page where the target software is located.
[0120] The layout management class calls the storage module to update the interface layout configuration, that is, to update the display configuration file stored in the display configuration file storage module. The storage module saves the updated layout configuration, that is, the updated display configuration file, to the hardware physical address to achieve permanent effectiveness of the update.
[0121] In the embodiment of the present application, the display configuration file can be changed, and the interface of the software is displayed according to the changed display configuration file. In this way, the user can change the display layout of the software interface for different usage scenarios without modifying the underlying code of the software, which greatly reduces the maintenance cost of the software and the after-sales cost of the ultrasound instrument; it is convenient for users to quickly adjust the display layout of the interface according to their own usage habits and take effect permanently, and it is also convenient for users to customize the display style of the software interface, which well meets the needs of different customers.
[0122] In this embodiment, a software interface display device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0123] This embodiment provides a software interface display device, such as Figure 8 As shown, including:
[0124] The acquisition module 810 is used to acquire a display configuration file of the target software.
[0125] The parsing module 820 is used to parse the display configuration file to obtain page display information and control display information; the page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page.
[0126] The acquisition module 810 is further used to acquire the control business information of the software control from the preset control library according to the control type in the control display information; the control business information is used to indicate the business operation corresponding to the software control.
[0127] The display module 830 is used to display an interface including a software page and software controls on a display screen according to page display information, control display information and control business information, so as to execute business operations corresponding to the software controls when a trigger operation on the display position of the software controls is received.
[0128] In some optional embodiments, the display configuration file also includes area display information and control layout information. The area display information is used to indicate how the functional area of the target software is displayed in the display screen; the control layout information is used to indicate how the control area is displayed in the software page, and the control area is the display area to which the software control belongs in the software page; the page display information is also used to indicate the functional area to which the software page belongs.
[0129] The display module is also used to select functional areas, software pages, control areas and business controls that match the target interface from various functional areas, software pages, control areas and business controls, and display them on the display screen when a display event of the target interface of the target software is monitored; the business control is a control obtained by associating the business information of each sub-control in the control business information with the software control corresponding to the sub-control business information.
[0130] In some optional embodiments, the device further comprises:
[0131] The monitoring module is used to obtain the page name in the page switching instruction when a page switching instruction is detected.
[0132] The filtering module is used to filter the target software page that matches the acquired page name from the created software pages.
[0133] The acquisition module is also used to acquire each control area under the target software page, and each business control in each control area.
[0134] The display module is also used to display the target software page, each control area under the target software page, and each business control under each control display area on the display screen.
[0135] This embodiment provides a software interface display update device, which is applied to an ultrasonic instrument. The ultrasonic instrument includes a display screen, and a target software is running in the ultrasonic instrument. The device includes:
[0136] A modification module, configured to update at least one of page display information and control display information in the display configuration file according to the modification instruction when receiving a modification instruction for a display configuration file of the target software corresponding to the display screen; the page display information is used to indicate a display mode of a software page of the target software on the display screen; the control display information is used to indicate a display mode of a software control in the software page;
[0137] The update display module is used to display an interface including a software page and software controls on the display screen based on the updated display configuration file.
[0138] In some optional embodiments, the update display module is further used to:
[0139] Update the created software page, control area, and software control according to the updated content in the updated display configuration file;
[0140] The interface currently displayed in the display screen is updated based on the updated software page, the updated control area, and the updated software control.
[0141] In some optional embodiments, the device further comprises:
[0142] An update module, used to receive an update operation on a target business control in the interface, and update the target business control in the interface;
[0143] The acquisition and update module is used to acquire the sub-control display information corresponding to the updated target business control, and update the display configuration file based on the acquired sub-control display information.
[0144] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0145] The software interface display device and the software interface display update device in this embodiment are presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit) circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0146] The embodiment of the present application also provides a computer device having the above-mentioned software interface display device and software interface display update device.
[0147] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present application, such as Fig. 9 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.
[0148] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0149] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0150] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0151] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0152] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0153] The embodiment of the present application also provides a computer-readable storage medium. The above method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0154] Part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0155] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A software interface display method, characterized in that: Applied to an ultrasonic instrument, the ultrasonic instrument includes a display screen, and the method includes: Get the display configuration file of the target software; Parsing the display configuration file to obtain page display information and control display information; the page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page; According to the control type in the control display information, the control business information of the software control is obtained from a preset control library; the control business information is used to indicate the business operation corresponding to the software control; According to the page display information, the control display information and the control business information, an interface including the software page and the software control is displayed on the display screen, so that when a trigger operation on the display position of the software control is received, a business operation corresponding to the software control is executed.
2. The method according to claim 1, characterized in that The display configuration file further includes area display information and control layout information, wherein the area display information is used to indicate the display mode of the functional area of the target software in the display screen; the control layout information is used to indicate the display mode of the control area in the software page, and the control area is the display area to which the software control belongs in the software page; The page display information is also used to indicate the functional area to which the software page belongs; Displaying an interface including the software page and the software control on the display screen according to the page display information, the control display information, and the control service information, includes: When a display event of a target interface of the target software is monitored, a functional area, a software page, a control area and a business control matching the target interface are selected from each functional area, each software page, each control area and each business control, and displayed on the display screen; the business control is a control obtained by associating the business information of each sub-control in the control business information with the software control corresponding to the sub-control business information.
3. The method according to claim 2, characterized in that The method further comprises: When a page switching instruction is detected, obtaining the page name in the page switching instruction; Filter the target software page that matches the acquired page name from the created software pages; Acquire each control area under the target software page, and each business control in each control area; The target software page, each control area under the target software page, and each business control under each control display area are displayed on the display screen.
4. A method for updating software interface display, characterized in that: Applied to an ultrasonic instrument, the ultrasonic instrument includes a display screen, and the target software is running in the ultrasonic instrument, the method includes: When receiving a modification instruction for a display configuration file of the target software corresponding to the display screen, at least one of the page display information and the control display information in the display configuration file is updated according to the modification instruction; the page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page; Based on the updated display configuration file, an interface including the software page and the software control is displayed on the display screen.
5. The method according to claim 4, characterized in that The interface including the software page and the software control displayed on the display screen based on the updated display configuration file includes: Update the created software page, control area, and software control according to the updated content in the updated display configuration file; Based on the updated software page, the updated control area, and the updated software control, the interface currently displayed in the display screen is updated.
6. The method according to claim 4 or 5, characterized in that: The method further comprises: receiving an update operation on a target business control in the interface, and updating the target business control in the interface; The updated sub-control display information corresponding to the target business control is obtained, and the display configuration file is updated based on the obtained sub-control display information.
7. A software interface layout system, characterized in that: Applied to an ultrasonic instrument, the ultrasonic instrument includes a display screen, and the system includes: A logic processing module, configured to obtain a display configuration file of the target software; parse the display configuration file to obtain page display information and control display information; the page display information is used to indicate a display mode of a software page of the target software on the display screen; the control display information is used to indicate a display mode of a software control in the software page; and send the received trigger operation to a software response module; an interface management module, configured to receive the page display information and the control display information sent by the logic processing module, and to obtain the control business information of the software control from a preset control library according to the control type in the control display information; the control business information is used to indicate the business operation corresponding to the software control; and when receiving a trigger operation on the display position of the software control, send the trigger operation to the logic processing module; An interface display module, configured to display an interface including the software page and the software controls on the display screen according to the page display information, the control display information and the control business information; The software response module is used to receive the trigger operation sent by the logic processing module and execute the business operation corresponding to the software control corresponding to the trigger operation.
8. A software interface display device, characterized in that: Applied to an ultrasonic instrument, the ultrasonic instrument includes a display screen, and the device includes: An acquisition module, used to acquire a display configuration file of a target software; A parsing module, used to parse the display configuration file to obtain page display information and control display information; the page display information is used to indicate the display mode of the software page of the target software on the display screen; the control display information is used to indicate the display mode of the software control in the software page; The acquisition module is further used to acquire the control business information of the software control from a preset control library according to the control type in the control display information; the control business information is used to indicate the business operation corresponding to the software control; A display module is used to display an interface including the software page and the software control on the display screen according to the page display information, the control display information and the control business information, so as to execute the business operation corresponding to the software control when a trigger operation on the display position of the software control is received.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the software interface display method described in any one of claims 1 to 3 or the software interface display update method described in any one of claims 4 to 6 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the software interface display method described in any one of claims 1 to 3 or the software interface display update method described in any one of claims 4 to 6.
