CN103116499A - Configuration method of menu - Google Patents

Configuration method of menu Download PDF

Info

Publication number
CN103116499A
CN103116499A CN2013100747335A CN201310074733A CN103116499A CN 103116499 A CN103116499 A CN 103116499A CN 2013100747335 A CN2013100747335 A CN 2013100747335A CN 201310074733 A CN201310074733 A CN 201310074733A CN 103116499 A CN103116499 A CN 103116499A
Authority
CN
China
Prior art keywords
menu
configuration
data
textresource
dataresource
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
CN2013100747335A
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.)
NANJING INTELLIGENT APPARATUS CO Ltd
Original Assignee
NANJING INTELLIGENT APPARATUS 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 NANJING INTELLIGENT APPARATUS CO Ltd filed Critical NANJING INTELLIGENT APPARATUS CO Ltd
Priority to CN2013100747335A priority Critical patent/CN103116499A/en
Publication of CN103116499A publication Critical patent/CN103116499A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a configuration method of a menu and aims at that an existing embedded type human-computer interface menu can not be configured, and displayed contents are fixed by programs and can not be modified easily. The technical scheme includes that firstly, a configuration file is generated through configuration software or manual editing, the configuration file is composed of FRAME, DATARESOURCE, TEXTRESOURCE and ENVIRONMENT, and finally article names of the TEXTRESOURCE and data of the DATARESOURCE are respectively quoted by the article reference number and address of the FRAME by analyzing the configuration file through programs, the DATARESOURCE obtains data names by utilizing the data reference number in the TEXTRESOURCE, a menu interface needed by a developer is finally generated according to designed form of the ENVIRONMENT, and therefore configuration of the menu is achieved.

Description

A kind of method of menu configuration
Technical field
The invention belongs to technical field of industrial automatic control, relate to a kind of menu configuration method.
Background technology
Along with the development of electric system, electric device basically all has been furnished with man-machine interface and has been used for man-machine interaction.Man-machine interface mainly contains two aspect functions.The first, display device and input/output information, the running status of device own, the information of the semaphore of device input, analog quantity, the traffic etc. and the output of device relay or network output.Man-machine interface can allow the user in time understand system situation by the demonstration to these information, makes strained handling; The second, some parameter in Apparatus and system is arranged.A system is not unalterable, need to carry out various adjustment according to running environment.And man-machine interface provides a visual interactive window easily, and the user can according to ruuning situation, arrange by man-machine interface some parameters to Apparatus and system.Easy to use, can accomplish to arrange on the spot fast, improved the adaptability to changes of electric system.
Existing embedded human-machine interface menu is all realized by coding mostly.The coding workload is large, the cycle is long, and menu content modification difficulty is large.Therefore need a kind of method of menu configuration, realize the configurable of menu under the prerequisite of update routine not.
Summary of the invention
The objective of the invention is can't configuration for existing embedded human-machine interface menu, and displaying contents is fixed by program, is difficult for revising and the method for a kind of menu configuration of proposing.
Technical scheme of the present invention is: a kind of method of menu configuration, and at first by configuration software or human-edited's generating configuration file, described configuration file is comprised of FRAME, DATARESOURCE, TEXTRESOURCE, ENVIRONMENT; Described configuration software is mainly that the developer can be by the means of custom, the concrete generative process of ignoring configuration file, only be concerned about content and the form of wanting configuration, a kind of means easily by configuration software automatic filling profile details, it has saved the numerous and diverse of human-edited and set form work, and configuration is convenient; The human-edited needs the developer to fill in a large amount of contents according to set form and rule, easily makes mistakes.But it does not need configuration software, only needs a text edit software just can complete.
Described FRAME has determined the demonstration relation of menu, comprises that the nest relation between menu, every grade of menu show the index of quantity and menu displaying contents.
Described DATARESOURCE has specified menu to show the address, type, scope, precision etc. of data, can support the demonstration of integer, floating-point, sexadecimal, character string, shows the data variation, can satisfy configuration requirements.
Described TEXTRESOURCE is used for the word demonstration of menu, and title and language are title and the clause name of menus at different levels, can configure as required any language, and quantity are unrestricted.
Described ENVIRONMENT determines the environmental variance of some menus, comprises menucolor, font, and size etc., by the setting of environmental variance, but the style of developer's set and display is done some to display menu and is beautified work.
At last, program is by resolving configuration file, the entry name of quoting respectively TEXTRESOURCE by entry index and the address of FRAME and the data of DATARESOURCE, DATARESOURCE utilizes data directory number to obtain data name in TEXTRESOURCE, form according to the ENVIRONMENT setting, the menu interface that the final developer of generation needs is realized the menu configuration.
Principal feature:
(1) the present invention has adopted the multiple new and high technologies such as microcomputer, power automation, optical-fibre communications.The ARM microprocessor provides sound assurance for showing at a high speed, accurately;
(2) man-machine interface is friendly, adopts 800 * 480 ultrahigh resolution figure liquid crystal, dynamic menu display information.Four-dimensional navigation key is adopted at friendly colorize interface, and is swift and convenient to operate;
(3) circuit board adopts surface mounting technology, has reduced circuit volume and power consumption;
(4) aesthetic in appearance generous, casing adopts aluminium alloy plate, totally-enclosed cabinet, and strong and weak electricity strictly separates, perfect heat-dissipating, anti-vibration and anti-electromagnetic interference performance are stronger;
(5) realize the menu configuration of man-machine interface, flexible configuration, convenience by configuration file;
(6) need not the change that the change program can realize the man-machine interface menu, menu content is revised convenient;
(7) configurable multilevel menu is realized the classification of man-machine interface menu, to the menu content demonstration of classifying;
(8) configuration file adopts XML form, highly versatile;
(9) menu content quantity at different levels can customize, and realize freely configuring.
Description of drawings
Fig. 1 menu configuration of the present invention system assumption diagram.
Fig. 2 configuration file pie graph of the present invention.
Fig. 3 inventory interface figure of the present invention.
Fig. 4 data interface figure of the present invention.
On each module relation diagram of Fig. 5 configuration file of the present invention.
Under each module relation diagram of Fig. 6 configuration file of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
The system assumption diagram of menu configuration as shown in Figure 1.At first by configuration software or human-edited's generating configuration file.Configuration software is mainly that the developer can ignore the concrete generative process of configuration file by the means of custom, only is concerned about content and the form of wanting configuration, by a kind of means easily of configuration software automatic filling profile details.It has saved the numerous and diverse of human-edited and set form work, and configuration is convenient.
The human-edited needs the developer to fill in a large amount of contents according to set form and rule, easily makes mistakes.But it does not need configuration software, only needs a text edit software just can complete.
Configuration file is comprised of FRAME, DATARESOURCE, TEXTRESOURCE, ENVIRONMENT as shown in Figure 2.
1. FRAME
FRAME has determined the demonstration relation of menu.Comprise that the nest relation between menu, every grade of menu show the index of quantity and menu displaying contents.Its form is as follows:
<Frame>
<h1 nametable="t000000" attr="MENUTREE">
<h2 nametable="t100000" attr="MENUTREE">
<h3 nametable="t101000" attr="DATATREE">
<para attr="DATA" input="G000.015"/>
<para attr="DATA" input="G000.016"/>
</h3>
</h2>
<h2 nametable="t200000" attr="MENUTREE">
<h3 nametable="t201000" attr="DATATREE">
<para attr="DATA" input="G000.001"/>
<para attr="DATA" input="G000.002"/>
<para attr="DATA" input="G000.003"/>
<para attr="DATA" input="G000.004"/>
<para attr="DATA" input="G000.005"/>
<para attr="DATA" input="G000.006"/>
<para attr="DATA" input="G000.007"/>
<para attr="DATA" input="G000.008"/>
</h3>
</h2>
<h2 nametable="t300000" attr="MENUTREE">
<h3 nametable="t301000" attr="NON">
</h3>
</h2>
<h2 nametable="t500000" attr=" NON ">
</h2>
</h1>
</Frame>
-h1 is the one-level menu, is comprised of its lower all h2 second-level menus;
-h2 is second-level menu, is comprised of its lower all h3 three-stage menus, sees Fig. 3;
-h3 is text, shows required displaying contents, can be data, event and figure, sees Fig. 4.
-nametable entry name index value points to the text index table.
As t100000 in resource table be:
<t100000>
<cn〉check</cn 〉
<en>examine</en>
</t100000>
Show during Chinese language state and check, show examine during English state.
The man-machine interface display name is fully fixed by the literal resource voting
-attr attribute (MENUTREE menu tree, DATATREE data tree, DATA data)
-input data correlation address number.
2. DATARESOURCE
DATARESOURCE has specified menu to show the address, type, scope, precision etc. of data.Can support the demonstration of integer, floating-point, sexadecimal, character string, show the data variation, can satisfy most demands.Its form is as follows:
<Dataresource>
<para nametable="t000001" attr="W1" type="UI-1-1" min="0" max="4" unit="" dots="1.0" addr="G000.001"/>
<para nametable="t000002" attr="W1" type="UI-1-1" min="0" max="1" unit="" dots="1.0" addr="G000.002"/>
<para nametable="t000003" attr="W1" type="UI-1-1" min="0" max="3" unit="" dots="1.0" addr="G000.004"/>
<para nametable="t000004" attr="W1" type="UI-1-1" min="0" max="1" unit="" dots="1.0" addr="G000.005"/>
<para nametable="t000005" attr="W2" type="UI-2-1" min="0" max="65535" unit="S" dots="5.0" addr="G000.006"/>
</Dataresource>
-nametable data name index value points to the text index table;
-attr attribute (WR read-write, RD read-only);
-type data type (R32.23-4-1 real number, UI-1-1 character type, UI-2-1 short, SPI-1-1 single-point type etc.);
-min data minimum value;
-max data maximal value;
-unit data unit;
-dots data display format;
-addr data address number.
3. TEXTRESOURCE
The word that TEXTRESOURCE is used for menu shows, title and language.Be mainly title and the clause name of menus at different levels, can configure as required any language, and quantity be unrestricted.Its form is as follows:
<Textresource>
<t000000>
<cn〉master menu</cn 〉
<en>MENU</en>
</t000000>
<t100000>
<cn〉check</cn 〉
<en>examine</en>
</t100000>
<t101000>
<cn〉arrange</cn 〉
<en>setting</en>
</t101000>
</Textresource>。
4. ENVIRONMENT
ENVIRONMENT determines the environmental variance of some menus, comprises menucolor, font, size etc.By the setting of environmental variance, but the style of developer's set and display is done some to display menu and is beautified work.Its form is as follows:
<Environment>
<para variable="LANGUAGENUM" data="4"/>
<para variable="LANGUAGE" addr="G000.004"/>
<para variable="CONTRAST" data="200"/>
<para variable="SLEEPTIME" addr="G000.006"/>
<para variable="USERPASSWORD" data="8888"/>
</Environment>
-variable environmental variance name
-addr environmental variance address number
-data environmental variance fixed value.
At last, as shown in Figure 3, program is by resolving configuration file, the entry name of quoting respectively TEXTRESOURCE by entry index and the address of FRAME and the data of DATARESOURCE, DATARESOURCE utilizes data directory number to obtain data name in TEXTRESOURCE, according to the form that ENVIRONMENT sets, finally generate the menu interface that the developer needs, realize the menu configuration.
Although the present invention with preferred embodiment openly as above; but they are not to limit the present invention; anyly be familiar with this skill person; without departing from the spirit and scope of the invention; from when can make various changes or retouch, so being as the criterion of should being defined with the application's claim protection domain of protection scope of the present invention.

Claims (7)

1. the method for a menu configuration is characterized in that:
At first by configuration software or human-edited's generating configuration file, described configuration file is comprised of FRAME, DATARESOURCE, TEXTRESOURCE, ENVIRONMENT; At last, program is by resolving configuration file, the entry name of quoting respectively TEXTRESOURCE by entry index and the address of FRAME and the data of DATARESOURCE, DATARESOURCE utilizes data directory number to obtain data name in TEXTRESOURCE, form according to the ENVIRONMENT setting, the menu interface that the final developer of generation needs is realized the menu configuration.
2. the method for menu configuration according to claim 1 is characterized in that:
Described configuration software is mainly that the developer can be by the means of custom, the concrete generative process of ignoring configuration file, only be concerned about content and the form of wanting configuration, a kind of means easily by configuration software automatic filling profile details, it has saved the numerous and diverse of human-edited and set form work, and configuration is convenient;
The human-edited needs the developer to fill in a large amount of contents according to set form and rule, easily make mistakes, but it does not need configuration software, only needs a text edit software just can complete.
3. the method for menu configuration according to claim 1, is characterized in that, described FRAME:
FRAME has determined the demonstration relation of menu, comprises that the nest relation between menu, every grade of menu show the index of quantity and menu displaying contents.
4. the method for menu configuration according to claim 1, is characterized in that, described DATARESOURCE:
DATARESOURCE has specified menu to show the address, type, scope, precision etc. of data, can support the demonstration of integer, floating-point, sexadecimal, character string, shows the data variation, can satisfy configuration requirements.
5. the method for menu configuration according to claim 1, is characterized in that, described TEXTRESOURCE:
TEXTRESOURCE is used for the word demonstration of menu, and title and language are title and the clause name of menus at different levels, can configure as required any language, and quantity are unrestricted.
6. the method for menu configuration according to claim 1, is characterized in that, described ENVIRONMENT:
ENVIRONMENT determines the environmental variance of some menus, comprises menucolor, font, and size etc., by the setting of environmental variance, but the style of developer's set and display is done some to display menu and is beautified work.
One of according to claim 1 to 6 described menu configuration method, it is characterized in that: configuration file adopts the XML form; Menu content quantity at different levels can customize, and realize freely configuring.
CN2013100747335A 2013-03-11 2013-03-11 Configuration method of menu Pending CN103116499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100747335A CN103116499A (en) 2013-03-11 2013-03-11 Configuration method of menu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100747335A CN103116499A (en) 2013-03-11 2013-03-11 Configuration method of menu

Publications (1)

Publication Number Publication Date
CN103116499A true CN103116499A (en) 2013-05-22

Family

ID=48414885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100747335A Pending CN103116499A (en) 2013-03-11 2013-03-11 Configuration method of menu

Country Status (1)

Country Link
CN (1) CN103116499A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309662A (en) * 2013-05-31 2013-09-18 福建鑫诺通讯技术有限公司 Method for generating multilevel menu on embedded equipment
WO2015006961A1 (en) * 2013-07-18 2015-01-22 Nokia Corporation User interface for an electronic device and associated methods
CN105116734A (en) * 2015-06-26 2015-12-02 青岛海信移动通信技术股份有限公司 Control device and device for intelligent household electrical appliance and control terminal
TWI721531B (en) * 2019-08-16 2021-03-11 台達電子工業股份有限公司 Control method for host machine
CN114610203A (en) * 2022-03-09 2022-06-10 冠捷电子科技(福建)有限公司 Method for realizing variable integrated menu based on structural formula text description

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020173964A1 (en) * 2001-03-30 2002-11-21 International Business Machines Corporation Speech driven data selection in a voice-enabled program
CN1869926A (en) * 2006-03-15 2006-11-29 华为技术有限公司 Method and system for generating artificial equipment panel
CN101246424A (en) * 2008-02-22 2008-08-20 深圳国人通信有限公司 Menu automatic generation system and method for based on file
CN101291253A (en) * 2008-06-06 2008-10-22 中兴通讯股份有限公司 Man-machine command interaction method for network management terminal based on graphical interface
CN101714083A (en) * 2009-12-16 2010-05-26 金蝶软件(中国)有限公司 Method and device for generating application menu and application system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020173964A1 (en) * 2001-03-30 2002-11-21 International Business Machines Corporation Speech driven data selection in a voice-enabled program
CN1869926A (en) * 2006-03-15 2006-11-29 华为技术有限公司 Method and system for generating artificial equipment panel
CN101246424A (en) * 2008-02-22 2008-08-20 深圳国人通信有限公司 Menu automatic generation system and method for based on file
CN101291253A (en) * 2008-06-06 2008-10-22 中兴通讯股份有限公司 Man-machine command interaction method for network management terminal based on graphical interface
CN101714083A (en) * 2009-12-16 2010-05-26 金蝶软件(中国)有限公司 Method and device for generating application menu and application system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309662A (en) * 2013-05-31 2013-09-18 福建鑫诺通讯技术有限公司 Method for generating multilevel menu on embedded equipment
WO2015006961A1 (en) * 2013-07-18 2015-01-22 Nokia Corporation User interface for an electronic device and associated methods
CN105579948A (en) * 2013-07-18 2016-05-11 诺基亚技术有限公司 User interface for electronic device and associated methods
CN105579948B (en) * 2013-07-18 2019-10-11 诺基亚技术有限公司 User interface and associated method for electronic equipment
CN105116734A (en) * 2015-06-26 2015-12-02 青岛海信移动通信技术股份有限公司 Control device and device for intelligent household electrical appliance and control terminal
TWI721531B (en) * 2019-08-16 2021-03-11 台達電子工業股份有限公司 Control method for host machine
CN114610203A (en) * 2022-03-09 2022-06-10 冠捷电子科技(福建)有限公司 Method for realizing variable integrated menu based on structural formula text description
CN114610203B (en) * 2022-03-09 2023-12-29 冠捷电子科技(福建)有限公司 Implementation method of variable integrated menu based on construction type text description

Similar Documents

Publication Publication Date Title
CN103116499A (en) Configuration method of menu
CN102207854A (en) Method, device and system for generating monitoring interfaces of equipment
CN104461346A (en) Method and device for visually impaired people to touch screen and intelligent touch screen mobile terminal
Wu et al. RETRACTED ARTICLE: Innovation and improvement of visual communication design of mobile app based on social network interaction interface design
CN104424265B (en) Digital asset management method and system
CN103543993A (en) Application program building method and system
CN104317587A (en) Automatic android mobile device oriented application generation method
CN111625226A (en) Prototype-based human-computer interaction design implementation method and system
CN104503769B (en) A kind of character pattern liquid crystal interface implementation method based on XML configuration file
CN102027474B (en) Data viewer management
CN107861459A (en) A kind of PLC control system and its control method of configurable aobvious control integration
CN110543306A (en) interactive data visualization method, application system and storage medium
CN202904558U (en) Interface modeler device
CN103810292A (en) Method and device for configuring graphical interface
EP3238052A1 (en) Computer implemented method for displaying a user interface
CN104809534A (en) Business process management system
CN102708710B (en) E-book reader and working method thereof
CN106372152B (en) Online form development system
WO2014130700A3 (en) Systems and methods for organizing, classifying, and discovering automatically generated computer software
CN110704154B (en) Multi-language template release method and system
CN104636523A (en) Machine tool simulation method running on network
Blumendorf et al. Multimodal user interaction in smart environments: Delivering distributed user interfaces
CN202632230U (en) All-in-one machine with remote control, touch and third-generation (3G) surfing functions
Deshayes A domain-specific modeling approach for gestural interaction
CN106547507B (en) The adaptation method and adapting appts of virtual information output equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130522