CN103345515B - A kind of can the implementation method of graphical menu of on-demand restructuring - Google Patents
A kind of can the implementation method of graphical menu of on-demand restructuring Download PDFInfo
- Publication number
- CN103345515B CN103345515B CN201310287865.6A CN201310287865A CN103345515B CN 103345515 B CN103345515 B CN 103345515B CN 201310287865 A CN201310287865 A CN 201310287865A CN 103345515 B CN103345515 B CN 103345515B
- Authority
- CN
- China
- Prior art keywords
- menu
- sublayer
- floor
- data layer
- graphical
- 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.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to a kind of can the implementation method of graphical menu of on-demand restructuring, described method includes building complete graphical menu structure and content description collections in advance, is saved in ROM;After system powers up, enter first floor menu;Menu item is selected from described first floor menu, according to described selection menu item, in conjunction with the hardware information of control system, from described ROM, read corresponding construction descriptive statement and from system heap, apply for memory space according to actual needs, building the data Layer structure of the sublayer menu of described first floor menu;By that analogy, from described sublayer menu, select menu item, build the data Layer structure of the sublayer menu of described sublayer menu;When sublayer menu returns parent menu, corresponding to the structure of sublayer menu by destroyed in system heap, shared heap space is released.This method achieves the dynamical assemble formula design of menu, dynamic restructuring or extinction menu content and structure on demand during especially support program runs, and is greatly improved the flexibility of product, reduces subsequent upgrade and the maintenance cost of product.
Description
Technical field
The present invention relates to the graphical menu of control system, particularly relate to a kind of can on-demand restructuring
The implementation method of graphical menu.
Background technology
Most control field menu systems when writing code just it has been determined that its structure and interior
Hold, that is had clear and definite menu content and organisational level when compiling, be used for describing it
The code of structure is present in program storage.In this case, be to menu content and level
Being adjusted being necessary for revising source code, when program is run simultaneously, dynamic does not revises menu content
And institutional framework.The maintenance process of this kind of menu system is relatively cumbersome, maintenance cost is higher,
Limit the flexibility of product to a certain extent.
In order to solve the deficiency of existing menu system, it is achieved the assembled design of menu, especially
Support program run in dynamic restructuring or extinction menu content and structure on demand, be greatly promoted product
The flexibility of product, reduces subsequent upgrade and the maintenance cost of product, and the invention provides one can
The implementation method of the graphical menu of on-demand restructuring.
Summary of the invention
The problem to be solved in the present invention be to provide a kind of can the reality of graphical menu of on-demand restructuring
Existing method, to make up the deficiencies in the prior art.
To achieve these goals, present invention employs techniques below scheme: one can be on-demand heavy
The implementation method of the graphical menu of group, comprises the steps:
A, build complete graphical menu structure and content description collections, be saved in ROM, described
Complete graphical menu structure and content description collections are in order to describe the data Layer of menu system
Structure, described data Layer structure is the tree ring-type menu frame construction of a kind of doubly linked list, tree
Each node is ring structure, and described ring structure is i.e. one layer of menu interface, and described ring structure has
Several dot structures, described dot structure be i.e. detailed programs or expansible go out next ring knot
Structure;
After b, system power up, enter first floor menu;
C, from described first floor menu, select menu item, according to described selection menu item, combine and control
The hardware information of system processed, reads corresponding construction descriptive statement and according to reality from described ROM
Border needs to apply for memory space from system heap, builds the number of the sublayer menu of described first floor menu
According to Rotating fields;
D, by that analogy, selects menu item from described sublayer menu, builds described sublayer menu
The data Layer structure of sublayer menu;
E, from sublayer menu return parent menu time, corresponding to the number of sublayer menu in described system heap
According to Rotating fields by destroyed, shared heap space is released.
In described step c, according to the hardware information that described control system is actual, dynamic construction,
Revise, adjust or rebuild the data Layer structure of described sublayer menu.
Compared with prior art, the beneficial effects of the present invention is:
This method creates graphical menu system, only need to build the first floor during initial launch in internal memory
Menu interface.When user accesses deep layer menu or content, the structure of corresponding hierarchical menu and interior
Hold and will automatically generate;When user returns upper interface, the dependency structure at subhierarchy interface will be from
Dynamic extinction.This design makes system heap demand only need to maintain in menu organizational structure to arrive certain
Memory requirements level required during one bottommost layer path termination, can save the internal memory of system relatively
Demand, simultaneously it is important that, this design ensure that system has backtracking, works as system
When strongly being disturbed by the external world, the menu mistake caused can be recovered automatically.This method intelligent,
Achieve between economized and stability and preferably equalize.It is greatly improved the flexibility of product, fall
The subsequent upgrade of low product and maintenance cost, fully solve the most conventional menu system not
Foot, thus preferably meet and be actually needed.
Accompanying drawing explanation
Fig. 1 be a kind of in the embodiment of the present invention can the implementation method of graphical menu of on-demand restructuring
Flow chart.
Detailed description of the invention
Embodiments provide a kind of can the implementation method of graphical menu of on-demand restructuring,
As shown in Figure 1:
Step a, build complete graphical menu structure and content description collections, be saved in ROM;
After step b, system power up, enter first floor menu;
Step c, from described first floor menu, select menu item, according to described selection menu item, knot
Close the hardware information of control system, from described ROM, read corresponding construction descriptive statement root
According to being actually needed from system heap application memory space, build the sublayer menu of described first floor menu
Data Layer structure;The data Layer structure of the sublayer menu building described first floor menu here refers to
Be dynamic construction, revise, adjust or rebuild the data of the sublayer menu of described first floor menu
Rotating fields;When graphical menu structure and content description collections and control system hardware information not
Time consistent, system will be revised according to the hardware information of control system, adjusts and rebuild sublayer
The data Layer structure of menu.
Step d, by that analogy, selects menu item from described sublayer menu, builds described sublayer dish
The data Layer structure of single sublayer menu.
Step e, from sublayer menu return parent menu time, corresponding to sublayer menu in described system heap
Data Layer structure by destroyed, shared heap space is released.
If selecting the last layer menu item of arbitrary sublayer menu, the data Layer of described sublayer menu
The memory space that structure takies in system heap will be released, and described sublayer menu will disappear
Die.
Described complete graphical menu structure and content description collections are in order to describe this menu system
The data Layer structure of system.This structure is the tree ring-type menu frame construction of a kind of doubly linked list, tree
Each node be ring structure, described ring structure is i.e. one layer of menu interface, on described ring structure
Have several dot structures, described dot structure be i.e. detailed programs or expansible go out next ring
Structure.
In described step c, according to the hardware information that described control system is actual, dynamic construction,
Revise, adjust or rebuild the data Layer structure of described sublayer menu.
The above, the only present invention preferably detailed description of the invention, but the protection model of the present invention
Enclosing and be not limited thereto, any those familiar with the art is in the skill that the invention discloses
In the range of art, the change that can readily occur in or replacement, all should contain in protection scope of the present invention
Within.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.
Claims (2)
1. one kind can the implementation method of graphical menu of on-demand restructuring, it is characterised in that, including as follows
Step:
A, build complete graphical menu structure and content description collections, be saved in ROM, described
Complete graphical menu structure and content description collections are in order to describe the data Layer of menu system
Structure, described data Layer structure is the tree ring-type menu frame construction of a kind of doubly linked list, tree
Each node is ring structure, and described ring structure is i.e. one layer of menu interface, and described ring structure has
Several dot structures, described dot structure be i.e. detailed programs or expansible go out next ring knot
Structure;
After b, system power up, enter first floor menu;
C, from described first floor menu, select menu item, according to described selection menu item, combine and control
The hardware information of system processed, reads corresponding construction descriptive statement and according to reality from described ROM
Border needs to apply for memory space from system heap, builds the number of the sublayer menu of described first floor menu
According to Rotating fields;
D, by that analogy, selects menu item from described sublayer menu, builds described sublayer menu
The data Layer structure of sublayer menu;
E, from sublayer menu return parent menu time, corresponding to the number of sublayer menu in described system heap
According to Rotating fields by destroyed, shared heap space is released.
The most according to claim 1 a kind of can the implementation method of graphical menu of on-demand restructuring,
It is characterized in that, in described step c, according to the hardware information that described control system is actual, dynamic
State builds, revises, adjusts or rebuilds the data Layer structure of described sublayer menu.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310287865.6A CN103345515B (en) | 2013-07-10 | 2013-07-10 | A kind of can the implementation method of graphical menu of on-demand restructuring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310287865.6A CN103345515B (en) | 2013-07-10 | 2013-07-10 | A kind of can the implementation method of graphical menu of on-demand restructuring |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103345515A CN103345515A (en) | 2013-10-09 |
CN103345515B true CN103345515B (en) | 2016-08-31 |
Family
ID=49280310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310287865.6A Active CN103345515B (en) | 2013-07-10 | 2013-07-10 | A kind of can the implementation method of graphical menu of on-demand restructuring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103345515B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106570077B (en) * | 2016-10-17 | 2020-06-16 | 深圳市茁壮网络股份有限公司 | Column arrangement method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1780442A (en) * | 2004-11-23 | 2006-05-31 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication with settable dynamic manu and manu-setting method |
CN101222710A (en) * | 2008-01-31 | 2008-07-16 | 中兴通讯股份有限公司 | System and method for implementing menu dynamic configuration on mobile terminal |
CN103150158A (en) * | 2013-01-15 | 2013-06-12 | 由芳 | Method for generating case dynamic variety menu |
-
2013
- 2013-07-10 CN CN201310287865.6A patent/CN103345515B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1780442A (en) * | 2004-11-23 | 2006-05-31 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication with settable dynamic manu and manu-setting method |
CN101222710A (en) * | 2008-01-31 | 2008-07-16 | 中兴通讯股份有限公司 | System and method for implementing menu dynamic configuration on mobile terminal |
CN103150158A (en) * | 2013-01-15 | 2013-06-12 | 由芳 | Method for generating case dynamic variety menu |
Also Published As
Publication number | Publication date |
---|---|
CN103345515A (en) | 2013-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105677366B (en) | The method that Infinite Cyclic rolls selection is realized based on UITableView in iOS system | |
CN104007967B (en) | A kind of user interface creating method and device based on extensible markup language | |
US20160041963A1 (en) | Reference representation and transformation in collaborative documents | |
CN105487864A (en) | Method and device for automatically generating code | |
CN106155658A (en) | The behavior tree editing machine realized based on U3D Plugin Mechanism | |
CN103064682B (en) | Device oriented human-machine interface configuration method for designing | |
CN105573774B (en) | Application Parameters management and configuration method | |
CN104407863A (en) | Abstract control model programming device and method | |
CN103218751A (en) | Technological prescription document processing system of semiconductor equipment based on extensive markup language (XML) | |
KR20150110682A (en) | Widget creation method, apparatus and terminal device | |
CN104111857A (en) | Method for automatically configuring parameters of multi-model BIOS | |
Riliskis et al. | Ravel: Programming iot applications as distributed models, views, and controllers | |
CN104503769B (en) | A kind of character pattern liquid crystal interface implementation method based on XML configuration file | |
CN104636136B (en) | The method that Group is simulated based on UITableView types Plain in iOS system | |
CN104267962A (en) | Description-based interface UI control configuration method | |
CN103064661A (en) | Computer monitoring configuration screen extensible makeup language (XML) descriptor system and method | |
CN105630491A (en) | Method and device for changing functions of program | |
CN104881310A (en) | Method and device for configuring embedded system | |
CN104134228A (en) | Booting/shutdown animation making system and booting/shutdown animation making method based on Android system | |
CN105302558A (en) | Content presentation system and method for multiple clients | |
CN103345515B (en) | A kind of can the implementation method of graphical menu of on-demand restructuring | |
CN106250134A (en) | The code automatic generation method of unicity language | |
CN103488376A (en) | Desktop assembly fusing, combining and splitting method and equipment | |
CN104656543A (en) | PLC gradient diagram matrix editing display method | |
CN105812881A (en) | User interface window processing method and system and television set |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |