[go: up one dir, main page]

CN119473282A - Visual multi-interface design method, system, device and storage medium for temperature controller - Google Patents

Visual multi-interface design method, system, device and storage medium for temperature controller Download PDF

Info

Publication number
CN119473282A
CN119473282A CN202411447127.8A CN202411447127A CN119473282A CN 119473282 A CN119473282 A CN 119473282A CN 202411447127 A CN202411447127 A CN 202411447127A CN 119473282 A CN119473282 A CN 119473282A
Authority
CN
China
Prior art keywords
file
picture
font
control
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411447127.8A
Other languages
Chinese (zh)
Inventor
赵琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hailin Automatic Control Technology Co ltd
Original Assignee
Beijing Hailin Automatic Control Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hailin Automatic Control Technology Co ltd filed Critical Beijing Hailin Automatic Control Technology Co ltd
Priority to CN202411447127.8A priority Critical patent/CN119473282A/en
Publication of CN119473282A publication Critical patent/CN119473282A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a visual multi-interface design method, a system, equipment and a storage medium of a temperature controller, which are based on visual multi-interfaces to carry out control creation and parameter configuration, automatically generate a control parameter configuration file, and do not directly write unused parameters into the configuration file, so that a large amount of memory can be saved, the pre-compiling time is greatly shortened, font/picture conversion is integrated into a local area, the conversion can be carried out under the condition of no network, font/picture information configured on each interface can be automatically acquired, the file identifiable by the temperature controller is generated by one key, errors are avoided, the efficiency is improved, the control is created in a double-click mode, the state change of the control can be intuitively seen by modifying the parameters, the interface display/operation function of the temperature controller is effectively matched, and the problem is avoided.

Description

Visual multi-interface design method, system, equipment and storage medium for temperature controller
Technical Field
The embodiment of the invention relates to the technical field of temperature controllers, in particular to a visual multi-interface design method, a system, equipment and a storage medium of a temperature controller.
Background
Along with the application of the color screen technology on the temperature controller, the color screen technology is more and more favored by users in the aspects of attractive appearance, dynamic feeling and the like, the complexity of the technical architecture is higher and higher, the requirement on engineers is higher and higher, the color screen interface is designed rapidly and efficiently, the color screen interface is particularly important, the control parameters (such as control enabling, position, size, background color, events and the like) required by each interface are firstly modified in a control parameter configuration file according to a product technical document, then the files which can be identified by a conversion tool export program are summarized, corresponding quotation processing is carried out in the program after conversion is completed, and finally, a compiling program can be downloaded to the temperature controller for operation.
The prior art has the following defects:
1) The unused parameters in the configuration file occupy extra memory, so that the memory is wasted, and a great deal of time is consumed in the precompiled stage of the program, so that the compiling efficiency is low;
2) When fonts and pictures are converted into identifiable files of the temperature controller, the steps are complicated, a plurality of parameters are required to be input, the conversion can be performed only under the condition of a network, the efficiency is low, and the files are not available due to incorrect filling of the parameters;
3) When the parameters are modified in the configuration file, the control state cannot be intuitively sensed, meanwhile, errors are easy to occur in the process of configuring the parameters, unknown problems occur in the process of displaying/operating the interface, and time is spent in searching the configuration file when the parameters are required to be modified in the follow-up process.
Disclosure of Invention
Therefore, the embodiment of the invention provides a visual multi-interface design method, a visual multi-interface design system, visual multi-interface design equipment and a visual multi-interface design storage medium for solving the technical problems that a great deal of time is consumed in a precompiled stage in the prior art, errors are easy to occur in the parameter configuration process, and the efficiency is low.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
According to a first aspect of an embodiment of the present invention, there is provided a visual multi-interface design method of a thermostat, the method being applied to the thermostat, including:
S1, acquiring interface control parameters, reading font library files and picture files, distributing storage areas for the interface control parameters, and distributing the storage areas for the read font library files and picture files;
S2, creating an interface control, acquiring a user requirement, adding a font library and a picture file according to the user requirement, reading a control parameter configuration file and performing corresponding font conversion and picture conversion on the font file, and generating a control parameter configuration file, a font file and a picture file required by the user;
S3, copying the control parameter configuration file, the font file and the picture file required by the user into the temperature controller for compiling, and downloading the compiled temperature controller multi-interface file to the local operation.
Further, obtaining interface control parameters, reading font library files and picture files, distributing storage areas for the interface control parameters, and distributing the storage areas for the read font library files and picture files, wherein the method comprises the following steps:
distributing each interface control parameter storage area, each font parameter storage area and each picture parameter storage area and judging whether a folder path storing fonts is effective or not;
if so, retrieving the files in the font library folder;
if not, creating a font library folder under the path and judging whether the path for storing the picture folder is effective or not;
if not, creating a picture folder under the path;
If so, searching the picture files in the picture folder and judging whether the picture files accord with the picture format or not;
if the picture format is met, adding the picture information to the picture parameter storage area and continuing to search the files in the picture folder until all the picture files are searched.
Further, retrieving a file in a font library folder includes:
Judging whether the files in the font library folder accord with the font library format or not;
if yes, adding font library information to a font parameter storage area and retrieving the next file in the font library folder;
if not, retrieving the next file in the font library folder;
and detecting whether the path for storing the picture folder is effective or not after the search of the font library folder is finished.
Further, adding a font library and a picture file according to the user demand, including:
Adding a font library includes:
Clicking a button for adding the font library file to open a font library folder interface and selecting a font library file to be added;
Judging whether the font library file accords with a font library format or not;
if yes, judging whether the font library parameter area contains the font library file;
If not, adding the font library file to a parameter storage area;
interrupting the adding of the font library file if included;
Adding the picture file includes:
clicking a picture file adding button to open a picture folder interface and selecting a picture file to be added;
judging whether the picture file accords with a picture format or not;
if yes, judging whether the picture parameter area contains the picture file;
if not, adding the picture file to a parameter storage area;
if so, interrupting the addition of the picture file.
Further, reading the control parameter configuration file and the font file includes:
clicking a configuration file reading button and selecting a configuration file storage path;
judging whether a control parameter configuration file exists or not;
if yes, reading file data, storing the file data into a control parameter storage area, and reading corresponding control parameters according to a current interface;
Judging whether all the controls are read completely;
judging the font file if the reading is finished;
If the current control is not read, judging that the current control is enabled, and if the current control is not read, reading corresponding space parameters according to the current interface;
If yes, creating and configuring parameters according to the control type and the parameter data;
judging whether the font file exists or not, and if the font file does not exist, prompting that the font file does not exist by using a popup window;
And if the font file exists, reading file data and storing the file data in a font storage area.
Further, generating a font file and a picture file includes:
clicking a button for generating a font file by one key, searching a font parameter storage area, and judging whether the font parameter is searched;
if not, retrieving the lower case letter numbers in the current font, converting other characters into corresponding uincode codes, calling a font conversion function to generate a file, and retrieving the font parameter storage area again;
If the retrieval is finished, the font parameter storage area is retrieved, whether the font parameters are retrieved is judged, if the retrieval is not finished, whether the conversion is successful is judged, and if the conversion is successful, the font parameter storage area is retrieved again;
recording the name of the unconverted font if the conversion is successful;
Judging whether all fonts are successfully converted, if not, popup all the unconverted successful fonts, and if so, ending;
generating the picture file includes:
Clicking a button for generating a picture file by one key, searching a picture parameter storage area, and judging whether the picture parameter is searched;
if not, calling a picture transfer function to generate a file and retrieving the picture parameter storage area again;
if the searching is finished, searching the picture parameter storage area and judging whether the picture parameter is finished, if the searching is not finished, judging whether the conversion is successful, if the conversion is successful, re-searching the picture parameter storage area, if the conversion is unsuccessful, recording the name of the picture which is not successfully converted and re-searching the picture parameter storage area;
if the search is finished, judging whether the pictures are converted successfully, if yes, popup all the unconverted successful pictures, and if all the conversion is successful, ending.
Further, generating a control parameter configuration file required by a user comprises:
Creating a chart by a control on the double-click interface and judging the control creation type;
If the control creation type is not a button, a picture or a character, judging whether the control is a two/three-level interface currently, and if the control is not the two/three-level interface, searching and judging whether the control corresponding to the control parameter storage area has unused controls or not;
If the control creation type is buttons, pictures or characters, searching and judging whether unused controls exist in the controls corresponding to the control parameter storage areas;
If the window flick prompt control does not exist, the window flick prompt control is used up;
If yes, creating a control, filling in control parameters, automatically synchronizing the control parameters to a corresponding parameter storage area, clicking a configuration file generating button to open a file stream, reading the control parameter area, performing read-write operation, and generating a control parameter configuration file.
According to a second aspect of an embodiment of the present invention, there is provided a visual multi-interface design system for a thermostat, the system comprising:
The initialization module is used for acquiring interface control parameters, reading font library files and picture files, distributing storage areas for the interface control parameters, and distributing the storage areas for the read font library files and picture files;
The file operation module is used for creating an interface control, acquiring user requirements, adding a font library and a picture file according to the user requirements, reading a control parameter configuration file and performing corresponding font conversion and picture conversion on the font file, and generating a control parameter configuration file, a font file and a picture file which are required by a user;
And the compiling module is used for copying the control parameter configuration file, the font file and the picture file required by the user into the temperature controller for compiling, and downloading the compiled temperature controller multi-interface file to the local operation.
According to a third aspect of an embodiment of the present invention, there is provided a visual multi-interface design apparatus for a thermostat, the apparatus including a processor and a memory;
the memory is used for storing one or more program instructions;
the processor is configured to execute one or more program instructions to perform the steps of the visual multi-interface design method of the thermostat of any one of the above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for visual multi-interface design of a thermostat as described in any one of the above.
The embodiment of the invention has the following advantages:
The embodiment of the invention automatically generates the control parameter configuration file based on the visual multi-interface, and directly writes the unused parameters into the configuration file, so that a large amount of memory can be saved, the precompilation time is greatly shortened, font/picture conversion is integrated to the local, the conversion can be performed under the condition of no network, the font/picture information configured on each interface can be automatically acquired, the identifiable file of the temperature controller can be generated by one key, the error is avoided, the efficiency is improved, the control is created by a double-click mode, the state change of the control can be intuitively seen by modifying the parameters, the interface display/operation functions of the temperature controller are effectively matched, and the problem is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It will be apparent to those of ordinary skill in the art that the drawings in the following description are exemplary only and that other implementations can be obtained from the extensions of the drawings provided without inventive effort.
The structures, proportions, sizes, etc. shown in the present specification are shown only for the purposes of illustration and description, and are not intended to limit the scope of the invention, which is defined by the claims, so that any structural modifications, changes in proportions, or adjustments of sizes, which do not affect the efficacy or the achievement of the present invention, should fall within the ambit of the technical disclosure.
FIG. 1 is a schematic diagram of a logic structure of a visual multi-interface design system for a thermostat according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a visual multi-interface design method for a thermostat according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a visual multi-interface design system for a thermostat according to an embodiment of the present invention;
Fig. 4 is a schematic flow chart of initialization in the visual multi-interface design method of the temperature controller according to the embodiment of the present invention;
FIG. 5 is a schematic flow chart of adding font library in the visual multi-interface design method of the temperature controller provided by the embodiment of the invention;
fig. 6 is a schematic flow chart of adding a picture file in a visual multi-interface design method of a temperature controller according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart of a configuration file of a write control parameter in a visual multi-interface design method of a thermostat according to an embodiment of the present invention;
FIG. 8 is a schematic flow chart of a read control parameter configuration file and a font file in a visual multi-interface design method of a thermostat according to an embodiment of the present invention;
FIG. 9 is a logic diagram of a font file generated by one key in a visual multi-interface design method of a thermostat according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a single font file converting logic in a visual multi-interface design method for a thermostat according to an embodiment of the present invention;
FIG. 11 is a logic diagram of a one-touch generated picture file conversion in a visual multi-interface design method of a thermostat according to an embodiment of the present invention;
Fig. 12 is a logic diagram of manually generated picture file conversion in a visual multi-interface design method of a thermostat according to an embodiment of the present invention.
Detailed Description
Other advantages and advantages of the present invention will become apparent to those skilled in the art from the following detailed description, which, by way of illustration, is to be read in connection with certain specific embodiments, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Along with the application of the color screen technology on the temperature controller, the color screen technology is more and more favored by users in the aspects of attractive appearance, dynamic feeling and the like, the complexity of the technical architecture is higher and higher, the requirement on engineers is higher and higher, the color screen interface is designed rapidly and efficiently, the color screen interface is particularly important, the control parameters (such as control enabling, position, size, background color, events and the like) required by each interface are firstly modified in a control parameter configuration file according to a product technical document, then the files which can be identified by a conversion tool export program are summarized, corresponding quotation processing is carried out in the program after conversion is completed, and finally, a compiling program can be downloaded to the temperature controller for operation.
In order to solve the technical problems that a great amount of time is consumed in the pre-compiling stage, errors are easy to occur in the parameter configuration process, and the efficiency is low.
Referring to fig. 1, the embodiment of the invention discloses a visual multi-interface design system of a temperature controller, which comprises an initialization module 1, a file operation module 2 and a compiling module 3.
Corresponding to the visual multi-interface design system of the temperature controller disclosed above, the embodiment of the invention also discloses a visual multi-interface design method of the temperature controller. The following describes the method for designing the visual multi-interface of the temperature controller disclosed in the embodiment of the invention in detail in combination with the visual multi-interface design system of the temperature controller described above.
The invention discloses a visual multi-interface design method of a temperature controller, which is applied to the temperature controller and comprises the steps of S1, obtaining interface control parameters, reading font library files and picture files, distributing storage areas for the interface control parameters, distributing the storage areas for the read font library files and picture files, S2, creating interface controls, obtaining user requirements, adding font library and picture files according to the user requirements, and carrying out corresponding font conversion and picture conversion on the read control parameter configuration files and the font files to generate control parameter configuration files, font files and picture files required by the user, S3, copying the control parameter configuration files, the font files and the picture files required by the user to the temperature controller, compiling, and downloading the compiled temperature controller multi-interface files to local operation.
As can be seen from fig. 3, the visual multi-interface system mainly comprises an initialization module, a file operation module, a font conversion module and a picture conversion module:
The initialization module is mainly used for firstly distributing storage areas for all interface control parameters after the system starts, and storing the parameters when the control is created so as to subsequently generate control parameter configuration files, and secondly distributing the storage areas for the read font library files and the read picture files, and displaying texts and pictures with corresponding sizes when the control is created so as to subsequently generate font files and picture files.
The font conversion module is used for generating a font file by one key and is mainly used for uniformly processing after the control parameter configuration is completed, and the single font file generation module is mainly used for modifying the content of fonts.
The picture conversion module is used for generating a picture file by one key and is mainly used for uniformly processing after the control parameter configuration is completed, and the manual picture file generation module is mainly used for processing newly added pictures.
Further, referring to FIG. 4, acquiring interface control parameters and reading font library files and picture files, distributing storage areas for the interface control parameters and distributing storage areas for the read font library files and picture files, including distributing the interface control parameter storage areas, the font parameter storage areas and the picture parameter storage areas and judging whether the file folder path storing fonts is effective, searching files in the font library file folder if the interface control parameter storage areas, the font parameter storage areas and the picture parameter storage areas are effective, creating the font library file folder under the path and judging whether the file folder path storing pictures is effective if the file folder is ineffective, creating a picture file folder under the path if the file folder storing the fonts is ineffective, searching the picture files in the picture file folder and judging whether the picture files accord with the picture format if the file folder storing the picture files accord with the picture format, and continuing searching the files in the picture file folder until all the picture files are searched.
The logic for judging the completion of file retrieval is as follows:
wherein 1 indicates yes, 0 indicates no, x indicates the number of the current retrieved files, and d sum indicates the total number of the retrieved files under the path.
The logic for judging the file to conform to the font library format is as follows:
Wherein, 1 represents no, x represents the suffix name of the current search file, ttf, woff and otf represent three supported font library formats, and the suffix name of the current search font library file satisfies one of the three formats, namely 1, otherwise 0.
The logic for judging the file to conform to the picture format is as follows:
wherein, 1 represents no, x represents the suffix name of the current search file, png, jpg, svg and bmp represent the supported four picture formats, and the suffix name of the current search picture file satisfies one of the four formats, namely, 1, otherwise, 0.
Further, referring to FIG. 4, retrieving files in the font library folder includes determining whether the files in the font library folder conform to the font library format, if so, adding font library information to the font parameter storage area and retrieving a next file in the font library folder, if not, retrieving a next file in the font library folder, and detecting whether the path of the stored picture folder is valid after the font library folder is retrieved.
Further, referring to FIG. 5, adding a font library and a picture file according to the user requirement comprises the steps of clicking an add font library file button to open a font library folder interface and select a font library file to be added, judging whether the font library file accords with a font library format, judging whether a font library parameter area contains the font library file if so, adding the font library file to a parameter storage area if not, and interrupting the adding of the font library file if so.
The judgment that the file accords with the font library format logic is as follows:
wherein, 1 represents no, x represents the suffix name of the current search file, ttf, woff and otf represent three supported font library formats, and the suffix name satisfies one of the three formats, namely 1, otherwise, 0.
The logical formula for judging that the font library parameter storage area contains the file is as follows:
Wherein 1 indicates yes, 0 indicates no, x indicates current file name, and p names indicates all relevant file names in the parameter storage area.
Referring to fig. 6, adding a picture file includes clicking an add picture file button to open a picture folder interface, selecting a picture file to be added, judging whether the picture file conforms to a picture format, judging whether a picture parameter area contains the picture file if so, adding the picture file to a parameter storage area if not, and interrupting the addition of the picture file if so.
The logic for judging the file to conform to the picture format is as follows:
wherein, 1 represents no, x represents the suffix name of the current search file, png, jpg, svg and bmp represent the supported four picture formats, and the suffix name of the current search picture file satisfies one of the four formats, namely, 1, otherwise, 0.
The logical formula for judging that the picture parameter storage area contains the file is as follows:
Wherein 1 indicates yes, 0 indicates no, x indicates current file name, and p names indicates all relevant file names in the parameter storage area.
Further, referring to FIG. 8, reading the control parameter configuration file and the font file includes clicking a configuration file reading button and selecting a storage path of the configuration file, judging whether the control parameter configuration file exists, if so, storing the read file data in a control parameter storage area and reading corresponding control parameters according to a current interface, judging whether all the controls are read completely, if the reading is completed, judging that the font file is judged, if not, judging that the current control is enabled, if not, reading corresponding space parameters according to the current interface, if so, creating and configuring parameters according to the control type and the parameter data, judging whether the font file exists, if not, prompting that the font file does not exist by popup, and if the font file exists, reading the file data and storing the file data in the font storage area.
Judging that a logic formula exists in the control configuration file:
Where 1 indicates presence, 0 indicates absence, x indicates file name under path, and its content cannot be empty and matches specified content to be valid.
The logical formula for judging the existence of the font file is as follows:
wherein 1 indicates existence, 0 indicates no, x indicates font file name under path, and the name suffix name is.c format is valid.
The logic formula for judging that all the controls are read is as follows:
Wherein 1 represents yes, 0 represents no, x represents the interface where the control is located, and d represents the current interface.
The logic formula for judging the current control enabling is as follows:
where 1 indicates yes, 0 indicates no, and x indicates a control enable value.
Further, referring to FIG. 9, generating a font file and a picture file includes clicking a button for generating the font file by one key and searching a font parameter storage area to judge whether the font parameters are searched, searching a lower case letter number in the current font and converting other characters into corresponding uincode codes if the font parameters are not searched, calling a font conversion function to generate the file and re-searching the font parameter storage area, searching the font parameter storage area and judging whether the font parameters are searched, judging whether the conversion is successful if the conversion is not completed, re-searching the font parameter storage area if the conversion is successful, recording the name of the font which is not converted successfully if the conversion is not successful, judging whether all fonts are converted successfully, if not, popup window all the fonts which are not converted successfully, and ending if the conversion is successful.
The automatic conversion logic starts to operate after clicking the one-key generation button, the retrieval font parameter storage area mainly comprises information such as a font library file name, a path, a font name to be converted, a size, converted character content and the like, the information is used as parameters to participate in a function for generating a file to operate, the judgment that the font parameter retrieval completion logic is the same as the retrieval file completion logic formula logic, the number of font parameters is increased by 1 each time a type of fonts is retrieved, whether the retrieval is completed or not is obtained after the comparison with the total number of the font parameters, whether all the font parameter storage areas are converted is checked again after the retrieval is completed or not is judged, and the judgment that the conversion success logic is to check whether the font names to be converted in the parameter storage area have the same name in the generated file can be referred to the judgment that the font library parameter storage area contains the file logic formula.
For unsuccessful file names recorded, the logical formula is as follows:
and if the value is null, the conversion is successful, otherwise, the popup window prompts all the fonts which are not successfully converted, and the popup window is used for an operator to position which type of fonts are not successfully converted, so that the problem is quickly solved.
Referring to fig. 10, a single generated font file button is clicked to open a font conversion interface, a selected font library file is clicked and the font size and character content to be converted are input, a start conversion button is clicked, whether parameters are correct or not is judged, if the parameters are incorrect, the terminal converts the font, if the parameters are correct, the lower case letter numbers in the current font are searched out and other characters are converted into corresponding uincode codes, a font conversion function generation file is called to convert and judge whether the conversion is successful, if the conversion is successful, the conversion is finished, and if the conversion is unsuccessful, a popup window prompts that the font conversion is failed.
After clicking a button for generating a font file, logic starts, and the operator is required to input required parameters and then to convert the parameters, and at this time, the correctness of the parameters needs to be judged, unlike the one-key generation, as follows:
Wherein, 1 indicates yes, 0 indicates no, x 1 indicates an input font library file, x 2 indicates input character content, x 3 value indicates font size and belongs to digits, and only if all three meet the condition, the method is correct.
Referring to fig. 11, generating a picture file includes clicking a button for generating a picture file by one key and retrieving a picture parameter storage area to determine whether picture parameters are retrieved, invoking a picture conversion function to generate a file and retrieving the picture parameter storage area again if not, retrieving the picture parameter storage area and determining whether the picture parameters are retrieved completely, determining whether conversion is successful if not, retrieving the picture parameter storage area again if conversion is successful, recording an unsuccessful picture name and retrieving the picture parameter storage area again if not, determining whether the pictures are converted successfully if retrieval is completed, popup all the unsuccessful pictures if there are unsuccessful pictures, and ending if all conversion is successful.
After clicking a button for generating a picture file by one key, logic starts to search the picture parameter storage area mainly comprising information such as picture file names, paths and the like, the information is used as parameters to participate in a function for generating the picture file to run, the picture parameter search completion logic is judged to be the same as a file search completion logic formula logic, the number of picture parameters is increased by 1 each time the picture is searched, whether the picture is completed is obtained after the comparison with the total number of the picture parameters, whether all picture parameter storage areas are converted is checked again after the completion, the conversion success logic is judged to be the same as a file conversion success logic formula, and the follow-up logic can refer to the one-key generation font file logic.
Referring to fig. 12, click a manual generation picture file button, pop-up window picture conversion interface and click a selection picture file, input a picture conversion format and click a conversion start button, at this time, judge whether parameters are correct, if not, end, if correct, call a picture conversion function to generate a file and judge whether conversion is successful, if successful, end, if failed, pop-up window picture conversion fails.
The correctness formula of the judging parameter is as follows:
Where 1 indicates yes, 0 indicates no, x 1 indicates an input picture file, x 2 indicates an input picture format, and only if both are in compliance.
Further, referring to FIG. 7, a control parameter configuration file required by a user is generated, wherein the control configuration file comprises a control creation chart on a double-click interface and a control creation type judgment, if the control creation type is not a button, a picture or a character, whether the control is a two/three-level interface currently is judged, if the control is not the two/three-level interface, whether an unused control exists in a control corresponding to a control parameter storage area or not is searched and judged, if the control creation type is the button, the picture or the character, whether the control corresponding to the control parameter storage area exists or not is searched and judged, if the control does not exist, a popup prompt control is used up, if the control exists, a control parameter is created, the control parameter is filled and automatically synchronized to the corresponding parameter storage area, and a configuration file generation button is clicked to open a file stream to read the control parameter area for reading and writing operation, so as to generate the control parameter configuration file.
Judging a logical formula of the control creation type:
wherein 1-14 respectively represent the type value of the control creation, x represents the mark of the creation control, the type value of the creation control is judged according to the name attribute value of the double-click icon, and the corresponding control is created according to the value;
The unused logic formula of the corresponding control of the search control parameter storage area is as follows:
Wherein, 1 indicates that there is, 0 indicates that there is nothing, x indicates the enabling value of the control parameter area, when the control is found to be disabled, the control is enabled, if the enabling value is 0, the control is used up, and a popup prompt is sent.
Judging whether the current two/three-level interface logic formula is as follows:
Where 1 indicates yes, 0 indicates no, x indicates a current interface value, d2 min indicates a secondary interface minimum, d3 min indicates a tertiary interface minimum, and the interface is valid when it is within the intermediate range of the two.
The embodiment of the invention has the following advantages:
1) Reducing code pre-compilation time;
2) The complicated font and picture conversion steps are reduced, and one-key generation is performed;
3) The configuration file is automatically generated, so that the memory is saved;
4) Visual interface feeling is beneficial to the layout of the control.
In addition, the embodiment of the invention also provides visual multi-interface design equipment of the temperature controller, which comprises a processor and a memory, wherein the memory is used for storing one or more program instructions, and the processor is used for running the one or more program instructions so as to execute the steps of the visual multi-interface design method of the temperature controller.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program realizes the steps of the visual multi-interface design method of the temperature controller according to any one of the above steps when being executed by a processor.
In the embodiment of the invention, the processor may be an integrated circuit chip with signal processing capability. The Processor may be a general purpose Processor, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field programmable gate array (FieldProgrammable GateArray, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The processor reads the information in the storage medium and, in combination with its hardware, performs the steps of the above method.
The storage medium may be memory, for example, may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable ROM (ELECTRICALLY EPROM, EEPROM), or a flash Memory.
The volatile memory may be a random access memory (Random Access Memory, RAM for short) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DataRateSDRAM, ddr SDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and direct memory bus random access memory (DirectRambus RAM, DRRAM).
The storage media described in embodiments of the present invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the present invention may be implemented in a combination of hardware and software. When the software is applied, the corresponding functions may be stored in a computer-readable medium or transmitted as one or more instructions or code on the computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
While the invention has been described in detail in the foregoing general description and specific examples, it will be apparent to those skilled in the art that modifications and improvements can be made thereto. Accordingly, such modifications or improvements may be made without departing from the spirit of the invention and are intended to be within the scope of the invention as claimed.

Claims (10)

1. The visual multi-interface design method of the temperature controller is characterized by being applied to the temperature controller and comprising the following steps of:
S1, acquiring interface control parameters, reading font library files and picture files, distributing storage areas for the interface control parameters, and distributing the storage areas for the read font library files and picture files;
S2, creating an interface control, acquiring a user requirement, adding a font library and a picture file according to the user requirement, reading a control parameter configuration file and performing corresponding font conversion and picture conversion on the font file, and generating a control parameter configuration file, a font file and a picture file required by the user;
S3, copying the control parameter configuration file, the font file and the picture file required by the user into the temperature controller for compiling, and downloading the compiled temperature controller multi-interface file to the local operation.
2. The visual multi-interface design method of a thermostat of claim 1, wherein obtaining interface control parameters and reading font library files and picture files, allocating storage areas for each interface control parameter and allocating storage areas for the read font library files and picture files, comprises:
distributing each interface control parameter storage area, each font parameter storage area and each picture parameter storage area and judging whether a folder path storing fonts is effective or not;
if so, retrieving the files in the font library folder;
if not, creating a font library folder under the path and judging whether the path for storing the picture folder is effective or not;
if not, creating a picture folder under the path;
If so, searching the picture files in the picture folder and judging whether the picture files accord with the picture format or not;
if the picture format is met, adding the picture information to the picture parameter storage area and continuing to search the files in the picture folder until all the picture files are searched.
3. The visual multi-interface design method of a thermostat of claim 2, wherein retrieving files in a font library folder comprises:
Judging whether the files in the font library folder accord with the font library format or not;
if yes, adding font library information to a font parameter storage area and retrieving the next file in the font library folder;
if not, retrieving the next file in the font library folder;
and detecting whether the path for storing the picture folder is effective or not after the search of the font library folder is finished.
4. A visual multi-interface design method of a thermostat according to claim 3, wherein adding font library and picture file according to the user's demand comprises:
Adding a font library includes:
Clicking a button for adding the font library file to open a font library folder interface and selecting a font library file to be added;
Judging whether the font library file accords with a font library format or not;
if yes, judging whether the font library parameter area contains the font library file;
If not, adding the font library file to a parameter storage area;
interrupting the adding of the font library file if included;
Adding the picture file includes:
clicking a picture file adding button to open a picture folder interface and selecting a picture file to be added;
judging whether the picture file accords with a picture format or not;
if yes, judging whether the picture parameter area contains the picture file;
if not, adding the picture file to a parameter storage area;
if so, interrupting the addition of the picture file.
5. The visual multi-interface design method of a thermostat of claim 4, wherein reading the control parameter configuration file and the font file comprises:
clicking a configuration file reading button and selecting a configuration file storage path;
judging whether a control parameter configuration file exists or not;
if yes, reading file data, storing the file data into a control parameter storage area, and reading corresponding control parameters according to a current interface;
Judging whether all the controls are read completely;
judging the font file if the reading is finished;
If the current control is not read, judging that the current control is enabled, and if the current control is not read, reading corresponding space parameters according to the current interface;
If yes, creating and configuring parameters according to the control type and the parameter data;
judging whether the font file exists or not, and if the font file does not exist, prompting that the font file does not exist by using a popup window;
And if the font file exists, reading file data and storing the file data in a font storage area.
6. The visual multi-interface design method of a thermostat of claim 5, wherein generating font files and picture files comprises:
clicking a button for generating a font file by one key, searching a font parameter storage area, and judging whether the font parameter is searched;
if not, retrieving the lower case letter numbers in the current font, converting other characters into corresponding uincode codes, calling a font conversion function to generate a file, and retrieving the font parameter storage area again;
If the retrieval is finished, the font parameter storage area is retrieved, whether the font parameters are retrieved is judged, if the retrieval is not finished, whether the conversion is successful is judged, and if the conversion is successful, the font parameter storage area is retrieved again;
recording the name of the unconverted font if the conversion is successful;
Judging whether all fonts are successfully converted, if not, popup all the unconverted successful fonts, and if so, ending;
generating the picture file includes:
Clicking a button for generating a picture file by one key, searching a picture parameter storage area, and judging whether the picture parameter is searched;
if not, calling a picture transfer function to generate a file and retrieving the picture parameter storage area again;
if the searching is finished, searching the picture parameter storage area and judging whether the picture parameter is finished, if the searching is not finished, judging whether the conversion is successful, if the conversion is successful, re-searching the picture parameter storage area, if the conversion is unsuccessful, recording the name of the picture which is not successfully converted and re-searching the picture parameter storage area;
if the search is finished, judging whether the pictures are converted successfully, if yes, popup all the unconverted successful pictures, and if all the conversion is successful, ending.
7. The method for visual multi-interface design of a thermostat of claim 6, wherein generating a user-desired control parameter profile comprises:
Creating a chart by a control on the double-click interface and judging the control creation type;
If the control creation type is not a button, a picture or a character, judging whether the control is a two/three-level interface currently, and if the control is not the two/three-level interface, searching and judging whether the control corresponding to the control parameter storage area has unused controls or not;
If the control creation type is buttons, pictures or characters, searching and judging whether unused controls exist in the controls corresponding to the control parameter storage areas;
If the window flick prompt control does not exist, the window flick prompt control is used up;
If yes, creating a control, filling in control parameters, automatically synchronizing the control parameters to a corresponding parameter storage area, clicking a configuration file generating button to open a file stream, reading the control parameter area, performing read-write operation, and generating a control parameter configuration file.
8. Visual multi-interface design system of temperature controller, characterized by, the system includes:
The initialization module is used for acquiring interface control parameters, reading font library files and picture files, distributing storage areas for the interface control parameters, and distributing the storage areas for the read font library files and picture files;
The file operation module is used for creating an interface control, acquiring user requirements, adding a font library and a picture file according to the user requirements, reading a control parameter configuration file and performing corresponding font conversion and picture conversion on the font file, and generating a control parameter configuration file, a font file and a picture file which are required by a user;
And the compiling module is used for copying the control parameter configuration file, the font file and the picture file required by the user into the temperature controller for compiling, and downloading the compiled temperature controller multi-interface file to the local operation.
9. The visual multi-interface design equipment of the temperature controller is characterized by comprising a processor and a memory;
the memory is used for storing one or more program instructions;
the processor is configured to execute one or more program instructions for performing the steps of the visual multi-interface design method of the thermostat of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the visual multi-interface design method of a thermostat according to any one of claims 1 to 7.
CN202411447127.8A 2024-10-16 2024-10-16 Visual multi-interface design method, system, device and storage medium for temperature controller Pending CN119473282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411447127.8A CN119473282A (en) 2024-10-16 2024-10-16 Visual multi-interface design method, system, device and storage medium for temperature controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411447127.8A CN119473282A (en) 2024-10-16 2024-10-16 Visual multi-interface design method, system, device and storage medium for temperature controller

Publications (1)

Publication Number Publication Date
CN119473282A true CN119473282A (en) 2025-02-18

Family

ID=94566941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411447127.8A Pending CN119473282A (en) 2024-10-16 2024-10-16 Visual multi-interface design method, system, device and storage medium for temperature controller

Country Status (1)

Country Link
CN (1) CN119473282A (en)

Similar Documents

Publication Publication Date Title
KR101312867B1 (en) Markup based extensibility for user interfaces
US20060150125A1 (en) Methods and systems for interface management
US7577905B2 (en) Applying a design to a slide using equivalent layouts
US8078965B2 (en) Automatic switching fonts on multilingual text runs
CN111800492A (en) Method and device for marking characters in web page, computer equipment and storage medium
US20220237256A1 (en) Rendering method, electronic device and storage medium
CN114579912A (en) Page layout method, device, equipment and medium
JP2001034249A (en) Picture communication system
AU2019341037B2 (en) Dynamically adjusting text strings based on machine translation feedback
CN115629763A (en) Target code generation method and NPU instruction display method and device
CN113779943B (en) Form generation method, form generation device, storage medium and electronic equipment
CN119473282A (en) Visual multi-interface design method, system, device and storage medium for temperature controller
US20200265612A1 (en) Automatic patent drawings displaying device
CN107133204A (en) A kind of terminal shortcut input method
CN114416162B (en) A database interface and interactive script generation method and system
CN112256708B (en) Method, device, terminal and storage medium for acquiring and storing text content
CN112631476B (en) SDL library-based camera function menu display method
WO2007132984A1 (en) Document editing program of tree-structure and method thereof
US20080306994A1 (en) Method and System for Processing User-Defined Object Based on Object Storage
CN113792244A (en) Webpage adaptation method and system, corresponding computer equipment and storage medium
CN112765914A (en) Method and system for automatically selecting design layer under layout design window
CN113778488B (en) Page updating method and device, computer equipment and storage medium
RU2821841C2 (en) Imaging method, electronic device and data medium
CN112529643B (en) Electronic invoice processing method and device, storage medium and electronic equipment
CN112784542B (en) Document editing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination