CN1945526A - Method and system for displaying graphic user interface of application program - Google Patents

Method and system for displaying graphic user interface of application program Download PDF

Info

Publication number
CN1945526A
CN1945526A CN 200510108027 CN200510108027A CN1945526A CN 1945526 A CN1945526 A CN 1945526A CN 200510108027 CN200510108027 CN 200510108027 CN 200510108027 A CN200510108027 A CN 200510108027A CN 1945526 A CN1945526 A CN 1945526A
Authority
CN
China
Prior art keywords
mentioned
interface
application program
word content
attribute
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.)
Granted
Application number
CN 200510108027
Other languages
Chinese (zh)
Other versions
CN100456233C (en
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.)
Lite On Technology Corp
Original Assignee
Lite On Technology Corp
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 Lite On Technology Corp filed Critical Lite On Technology Corp
Priority to CNB2005101080273A priority Critical patent/CN100456233C/en
Publication of CN1945526A publication Critical patent/CN1945526A/en
Application granted granted Critical
Publication of CN100456233C publication Critical patent/CN100456233C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Digital Computer Display Output (AREA)

Abstract

The invention provides the showing method and system of graphical user interface in application. Firstly, the method executes the above-mentioned application which has a graphical user interface. The application starts an analyzer which is described for the analysis of a document. The documents describe the attributes of a number of graphical user interface components, and store in a data structure. When one interface component is to be displayed, its attribute is displayed in the above display through a standard control interface of different display driving unit.

Description

The method for realizing graphic user interface of application program and system
Technical field
The invention relates to computer technology, and be particularly to the method for realizing graphic user interface of application program.
Background technology
In programming procedure, graphic user interface (Graphical userinterface, abbreviation GUI) Application Program Interface (the Application Program Interface that normally utilizes the call operation system to provide, be called for short API) realize, and usually need be in conjunction with multi-lingual auxiliary literal.Program in conjunction with GUI nearly all is that the attribute of GUI, multi-lingual auxiliary literal and program itself are combined at present.So not only can influence executing efficiency, the readability of program itself be reduced, and be difficult to safeguard.For instance, in case after program was finished compiling, the modification of any GUI or multi-lingual auxiliary literal all need be recompilated program itself, therefore very inconvenience.In addition, the API that different operating system provides has nothing in common with each other, and is applicable to that the gui program code of an operating system not necessarily is applicable to another operating system.Therefore the deviser of program need learn different API and redesign GUI.
Summary of the invention
In view of this, purpose of the present invention is in method for realizing graphic user interface that application program is provided and system.
Based on above-mentioned purpose, the invention provides a kind of method for realizing graphic user interface of application program, be executed in the embedded system.Above-mentioned embedded system comprises a driver element, an application program, an analyzer, a description document and a Portable layer of a display, control aforementioned display device, and above-mentioned Portable layer provides the standard control interface of different display driver elements.Carry out above-mentioned application program, wherein above-mentioned application program has a graphic user interface.By above-mentioned application program launching one analyzer, in order to analyze a description document.The foregoing description file is in order to the attribute of a plurality of interface elements of describing above-mentioned graphic user interface.Analyze above-mentioned description document to produce the attribute of above-mentioned a plurality of interface elements by above-mentioned analyzer.The attribute of the above-mentioned a plurality of interface elements that produce is stored in the data structure.When an interface element will be shown, by the attribute of above-mentioned application program according to above-mentioned interface element in the above-mentioned data structure, generation met instructing in order to present one first of above-mentioned interface element of above-mentioned standard control interface.Produce one second instruction that meets the required form of above-mentioned driver element according to above-mentioned first instruction by above-mentioned Portable layer.After above-mentioned driver element receives above-mentioned second instruction, above-mentioned interface element is shown in aforementioned display device according to above-mentioned second instruction and the attribute of above-mentioned interface element.
The method for realizing graphic user interface of application program of the present invention, above-mentioned data structure are tree data structure.
The method for realizing graphic user interface of application program of the present invention, the foregoing description file meets extensible SGML.
The method for realizing graphic user interface of application program of the present invention more comprises a language file in the above-mentioned embedded system, comprise the word content of above-mentioned interface element, and above-mentioned analyzer is predicate speech file more analytically.
The method for realizing graphic user interface of application program of the present invention, the foregoing description file comprises the default word content of above-mentioned interface element, the above-mentioned word content of above-mentioned language file is in order to replace the above-mentioned default word content of its correspondence, and wherein foregoing description file and above-mentioned language file write down above-mentioned a plurality of interface element wherein word content of each and the corresponding informance of default word content.
The method for realizing graphic user interface of application program of the present invention, the above-mentioned word content of above-mentioned language file belongs to different country origin language with above-mentioned default word content.
The present invention also provides a kind of embedded system, comprise a display, in order to control aforementioned display device a driver element, an application program, a description document and an analyzer.Above-mentioned application program has a graphic user interface, and starts above-mentioned analyzer.The foregoing description file is in order to the attribute of a plurality of interface elements of describing above-mentioned graphic user interface.Above-mentioned analyzer is in order to analyze a description document to produce the attribute of above-mentioned a plurality of interface elements, wherein the attribute of above-mentioned a plurality of interface elements of Chan Shenging is stored in the data structure, when an interface element will be shown, by the attribute of above-mentioned application program according to above-mentioned interface element in the above-mentioned data structure, generation meets instructing in order to present one first of above-mentioned interface element of standard control interface.Above-mentioned Portable layer provides the above-mentioned standard control interface of different display driver elements, produce one second instruction that meets the required form of above-mentioned driver element according to above-mentioned first instruction, wherein above-mentioned driver element is shown in aforementioned display device according to the attribute of above-mentioned second instruction and above-mentioned interface element with above-mentioned interface element after receiving above-mentioned second instruction.
Embedded system of the present invention, above-mentioned data structure are tree data structure.
Embedded system of the present invention, the foregoing description file meets extensible SGML.
Embedded system of the present invention more comprises a language file in the above-mentioned embedded system, comprise the word content of above-mentioned interface element, and above-mentioned analyzer is predicate speech file more analytically.
Embedded system of the present invention, the foregoing description file comprises the default word content of above-mentioned interface element, the above-mentioned word content of above-mentioned language file is in order to replace the above-mentioned default word content of its correspondence, and wherein foregoing description file and above-mentioned language file write down above-mentioned a plurality of interface element wherein word content of each and the corresponding informance of default word content.
Embedded system of the present invention, the above-mentioned word content of above-mentioned language file belongs to different country origin language with above-mentioned default word content.
The method for realizing graphic user interface of application program of the present invention and system when interface element disposes when changing, can revise description document and need not recompilate application program.When application programs is executed in the embedded system of different size, can revises the Portable layer and need not recompilate application program.
Description of drawings
Fig. 1 shows an embedded system example structure calcspar;
The method for realizing graphic user interface embodiment process flow diagram of Fig. 2 display application program;
Fig. 3 shows a description document embodiment;
Fig. 4 shows a language file embodiment;
Fig. 5 shows that attribute display according to the language file of the description document of Fig. 3 and Fig. 4 is in the interface element embodiment of display synoptic diagram;
Fig. 6 shows a description document embodiment;
Fig. 7 shows a language file embodiment;
Fig. 8 shows that attribute display according to the language file of the description document of Fig. 6 and Fig. 7 is in the interface element embodiment of display synoptic diagram.
Embodiment
Graphic user interface (the Graphical userinterface of application program below is provided, be called for short GUI) rendering method, be executed in the embedded system, for example mobile phone, personal digital assistant (Personal Digital Assistant is called for short PDA) or game machine (video game console).
In Fig. 1, a kind of method for realizing graphic user interface of application program is executed in the embedded system 10.The driver element 3 of Portable layer 2, control display 5, and analyzer 9 can do by computer program or circuit are real.Application program 12 comprises GUI11, can produce GUI 11 a plurality of interface elements wherein under different situations.Can see through these a plurality of interface element operating application programs 12.The mechanism that produces interface element will be illustrated in down.
Description document 6 and language file 7 can meet extensible SGML (Extensible Markup Language is called for short XML) or other form, and can be analyzed by analyzer 9 for being independent of two files outside the application program 12.Description document 6 is in order to the attribute of a plurality of interface elements of description GUI 11.Portable layer 2 provides the standard control interface of different display driver elements.
With reference to Fig. 2, embedded system 10 1 processors are carried out above-mentioned application program 12, shown in step S2.
Call out where necessary for analyzer 9 by the necessary callback function (callback function) of application program 12 registrations, and start analyzer 9, shown in step S4.
Analyzer 9 is analyzed description document 6 to produce the attribute of above-mentioned a plurality of interface elements, shown in step S8.The attribute of above-mentioned a plurality of interface elements is stored in the data structure 8, for example tree data structure.Description document 6 comprises the default word content of above-mentioned a plurality of interface elements, reaches " Cancel " as literal " Country ", " China ", " Japan ", " U.S. ", " Ok " that label surrounded among Fig. 3.Language file 7 comprises in order to replace the word content of above-mentioned default word content, reaches " cancellation " as literal " country ", " China ", " Japan ", " U.S. ", " determining " that label surrounded among Fig. 4 in regular turn.The above-mentioned word content of language file 7 and above-mentioned default word content can belong to different language.
With reference to Fig. 3 and Fig. 4, wherein be description document and the language file of doing description with the standard of XML.The label of all uses is predefineds.L9 row<meta〉label is the shared attribute of description document.For instance, [charset=" UTF-8 "], representing this description document is with eight general format transformations (UniversalTransformation Format 8bit is called for short UTF-8) coding.The content of Chinese.lang language description file is quoted in [lang-src=" Chinese.lang "] representative, lists in Fig. 4.In the L10 row definition description document except that the interface element that indivedual definition are arranged, the definition that the font of all literal, size, color will be listed as according to L10.L12 row<display〉label is in order to describe the attribute of interface element.For instance, [xBeg=" 50 " yBeg=" 50 " xEnd=" 100 " yEnd=" 100 "] can be absolute coordinates or relative coordinate in order to describe the scope coordinate of interface element in the configuration attribute.<text 〉,<select, and<button respectively in order to descriptive text, menu, and the interface element of button, wherein can have the description of configuration attribute.For example<and text〉attributes such as [xBeg=" 10 " yBeg=" 10 "] is arranged in the label;<select〉attributes such as [style=" 3 " maxlist=" 3 "] is arranged in the label, respectively in order to describe the pattern and the option number of menu.In the language file of Fig. 4,<language〉label is in order to the country origin of indicating language.
Analyzer 9 judges whether to want load language file 7, shown in step S10.In this way, then analyzer 9 is resolved language file 7, shown in step S12, the word content of resolving gained is replaced above-mentioned default word content, shown in step S14.For instance, according to [id] attribute in the language file of the description document of Fig. 3 and Fig. 4, analyzer 9 can find other country origin spoken and written languages content in order to the default word content that replaces description document 6 in language file 7.As not, then analyzer 9 is resolved language files 7, shown in step S11, and continues to resolve description document 6.When parse operation finished, analyzer 9 stored the analysis result of description document 6 and language file 7 in data structure 8, and the callback function that can call out registration earlier is so that desired data and initialization interface element to be provided, shown in step S20.For instance, the attribute of the menu U2 of Fig. 5 is described by the L14-L18 row of Fig. 3 and the L24-L29 row of Fig. 4, and is recorded in the attribute 81 of data structure 8.
When the interface element (for example menu U2 of Fig. 5) of application program 12 in the time of will being shown, by the attribute (for example attribute 81 of the L24-L29 row of the L14-L18 of corresponding diagram 3 row and Fig. 4) of application program 12 according to above-mentioned interface element in the data structure 8, generation meets above-mentioned standard control interface and instructs in order to present one first of above-mentioned interface element, shown in step S22.
Produce one second instruction meet the required form of driver element 3 by Portable layer 2 according to above-mentioned first instruction, shown in step S24.Portable layer 2 provides the standard control interface of different display driver elements, and the program code that makes application program 12 present GUI 11 can be applicable to different display driver elements.
After driver element 3 receives above-mentioned second instruction, according to the attribute (for example attribute 81) of above-mentioned second instruction and above-mentioned interface element (for example menu U2 of Fig. 5) above-mentioned interface element is shown in display 5, shown in step S26.
Fig. 5 shows that attribute display according to the language file of the description document of Fig. 3 and Fig. 4 is in the interface element of display 5.In the description document of literal interface element U1 corresponding diagram 3 and the language file of Fig. 4 [id] attribute be all " country "<text label (L13 row and L24 row), its default word content is substituted by " country " by " Country ".Interface element U1-U4 is respectively literal, menu and two buttons, and its configuration attribute depends on corresponding label (L13-L20 row), and its word content then replaces (L24-L31 row) by the word content of corresponding label.
Since the difference of country origin, the variation that the configuration of interface element also can be relative, and need not recompilate application program 12.The description document of Fig. 3 is modified as the description of Fig. 6.Fig. 8 shows that attribute display according to the language file of the description document of Fig. 6 and Fig. 7 is in the interface element of display 5.The content of English.lang language description file is quoted in [lang-src=" English.lang "] representative among the description document L33 of Fig. 6, lists in Fig. 7.The configuration attribute of interface element U5-U8 depends on its corresponding label (L37-L44 row), and its word content then replaces (L48-L55 row) by the word content of corresponding label.In the language file of Fig. 7<select〉in the description document of the option (L49-L53 row) of label and corresponding Fig. 6<select〉option (L38-L42 row) order of label is different.Therefore, after the option of language file and word content replaced the option and default word content of description document, the interface element U6 of Fig. 8 presented in proper order according to the option of language file, and word content is English.
Therefore, when interface element disposes when changing, can revise description document and need not recompilate application program.When application programs is executed in the embedded system of different size, can revises the Portable layer and need not recompilate application program.
The above only is preferred embodiment of the present invention; so it is not in order to limit scope of the present invention; any personnel that are familiar with this technology; without departing from the spirit and scope of the present invention; can do further improvement and variation on this basis, so the scope that claims were defined that protection scope of the present invention is worked as with the application is as the criterion.
Being simply described as follows of symbol in the accompanying drawing:
2: the Portable layer
3: driver element
5: the control display device
6: description document
7: language file
8: data structure
9: analyzer
10: embedded system
11:GUI
12: application program
81: attribute
U1-U8: interface element

Claims (12)

1, a kind of method for realizing graphic user interface of application program, the method for realizing graphic user interface that it is characterized in that described application program is executed in the embedded system, above-mentioned embedded system comprises a driver element, an application program, an analyzer, a description document and a Portable layer of a display, control aforementioned display device, above-mentioned Portable layer provides the standard control interface of different display driver elements, comprises:
Carry out above-mentioned application program, wherein above-mentioned application program has a graphic user interface;
By above-mentioned application program launching one analyzer, in order to analyze a description document, wherein the foregoing description file is in order to the attribute of a plurality of interface elements of describing above-mentioned graphic user interface;
Analyze above-mentioned description document to produce the attribute of above-mentioned a plurality of interface elements by above-mentioned analyzer, wherein the attribute of above-mentioned a plurality of interface elements of Chan Shenging is stored in the data structure;
When an interface element will be shown, by the attribute of above-mentioned application program according to above-mentioned interface element in the above-mentioned data structure, generation met instructing in order to present one first of above-mentioned interface element of above-mentioned standard control interface;
Produce one second instruction that meets the required form of above-mentioned driver element according to above-mentioned first instruction by above-mentioned Portable layer; And
After above-mentioned driver element receives above-mentioned second instruction, above-mentioned interface element is shown in aforementioned display device according to above-mentioned second instruction and the attribute of above-mentioned interface element.
2, the method for realizing graphic user interface of application program according to claim 1 is characterized in that: above-mentioned data structure is a tree data structure.
3, the method for realizing graphic user interface of application program according to claim 1 is characterized in that: the foregoing description file meets extensible SGML.
4, the method for realizing graphic user interface of application program according to claim 1 is characterized in that: more comprise a language file in the above-mentioned embedded system, comprise the word content of above-mentioned interface element, above-mentioned analyzer is predicate speech file more analytically.
5, the method for realizing graphic user interface of application program according to claim 4, it is characterized in that: the foregoing description file comprises the default word content of above-mentioned interface element, the above-mentioned word content of above-mentioned language file is in order to replace the above-mentioned default word content of its correspondence, and wherein foregoing description file and above-mentioned language file write down above-mentioned a plurality of interface element wherein word content of each and the corresponding informance of default word content.
6, the method for realizing graphic user interface of application program according to claim 4 is characterized in that: the above-mentioned word content of above-mentioned language file belongs to different country origin language with above-mentioned default word content.
7, a kind of embedded system is characterized in that described embedded system comprises:
One display;
One driver element is in order to the control aforementioned display device;
One application program has a graphic user interface;
One description document is in order to the attribute of a plurality of interface elements of describing above-mentioned graphic user interface;
One analyzer, by above-mentioned application program launching, in order to analyze a description document to produce the attribute of above-mentioned a plurality of interface elements, wherein the attribute of above-mentioned a plurality of interface elements of Chan Shenging is stored in the data structure, when an interface element will be shown, by the attribute of above-mentioned application program according to above-mentioned interface element in the above-mentioned data structure, generation meets instructing in order to present one first of above-mentioned interface element of standard control interface; And
One Portable layer, the above-mentioned standard control interface of different display driver elements is provided, produce one second instruction that meets the required form of above-mentioned driver element according to above-mentioned first instruction, wherein above-mentioned driver element is shown in aforementioned display device according to the attribute of above-mentioned second instruction and above-mentioned interface element with above-mentioned interface element after receiving above-mentioned second instruction.
8, embedded system according to claim 7 is characterized in that: above-mentioned data structure is a tree data structure.
9, embedded system according to claim 7 is characterized in that: the foregoing description file meets extensible SGML.
10, embedded system according to claim 7 is characterized in that: more comprise a language file in the above-mentioned embedded system, comprise the word content of above-mentioned interface element, above-mentioned analyzer is predicate speech file more analytically.
11, embedded system according to claim 10, it is characterized in that: the foregoing description file comprises the default word content of above-mentioned interface element, the above-mentioned word content of above-mentioned language file is in order to replace the above-mentioned default word content of its correspondence, and wherein foregoing description file and above-mentioned language file write down above-mentioned a plurality of interface element wherein word content of each and the corresponding informance of default word content.
12, embedded system according to claim 11 is characterized in that: the above-mentioned word content of above-mentioned language file belongs to different country origin language with above-mentioned default word content.
CNB2005101080273A 2005-10-09 2005-10-09 Method and system for displaying graphic user interface of application program Expired - Fee Related CN100456233C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101080273A CN100456233C (en) 2005-10-09 2005-10-09 Method and system for displaying graphic user interface of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101080273A CN100456233C (en) 2005-10-09 2005-10-09 Method and system for displaying graphic user interface of application program

Publications (2)

Publication Number Publication Date
CN1945526A true CN1945526A (en) 2007-04-11
CN100456233C CN100456233C (en) 2009-01-28

Family

ID=38044944

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101080273A Expired - Fee Related CN100456233C (en) 2005-10-09 2005-10-09 Method and system for displaying graphic user interface of application program

Country Status (1)

Country Link
CN (1) CN100456233C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441567B (en) * 2008-11-18 2012-06-13 宇龙计算机通信科技(深圳)有限公司 Method and system for supporting multiple-language user interface in mobile terminal
CN101556535B (en) * 2008-04-08 2013-10-02 盛大计算机(上海)有限公司 Method for making general graphical interface in application program
CN105988801A (en) * 2015-02-13 2016-10-05 腾讯科技(深圳)有限公司 Method and device for displaying annotation information
CN106292407A (en) * 2015-06-02 2017-01-04 兆利丰股份有限公司 Built-in graphic user interface is described in the autocontrol method of Internet of things device
CN106462356A (en) * 2014-05-09 2017-02-22 三星电子株式会社 Method and device for controlling multiple displays
WO2021035552A1 (en) * 2019-08-27 2021-03-04 西门子股份公司 System and method supporting graphical programming based on neuron blocks, and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6829615B2 (en) * 2000-02-25 2004-12-07 International Business Machines Corporation Object type relationship graphical user interface
CN1235155C (en) * 2003-03-31 2006-01-04 联想(北京)有限公司 Picture interface forming method of insertion system
CN1567296A (en) * 2003-05-07 2005-01-19 中兴通讯股份有限公司 Multilanguage display method of flushbonding system
US20050028106A1 (en) * 2003-07-31 2005-02-03 Polycom, Inc. Graphical user interface for system status alert on videoconference terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556535B (en) * 2008-04-08 2013-10-02 盛大计算机(上海)有限公司 Method for making general graphical interface in application program
CN101441567B (en) * 2008-11-18 2012-06-13 宇龙计算机通信科技(深圳)有限公司 Method and system for supporting multiple-language user interface in mobile terminal
CN106462356A (en) * 2014-05-09 2017-02-22 三星电子株式会社 Method and device for controlling multiple displays
CN106462356B (en) * 2014-05-09 2019-10-15 三星电子株式会社 Method and apparatus for controlling multiple displays
CN105988801A (en) * 2015-02-13 2016-10-05 腾讯科技(深圳)有限公司 Method and device for displaying annotation information
CN105988801B (en) * 2015-02-13 2020-01-24 腾讯科技(深圳)有限公司 Method and device for displaying annotation information
CN106292407A (en) * 2015-06-02 2017-01-04 兆利丰股份有限公司 Built-in graphic user interface is described in the autocontrol method of Internet of things device
WO2021035552A1 (en) * 2019-08-27 2021-03-04 西门子股份公司 System and method supporting graphical programming based on neuron blocks, and storage medium

Also Published As

Publication number Publication date
CN100456233C (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN1945526A (en) Method and system for displaying graphic user interface of application program
Ferreira et al. ImageJ user guide
US20110314446A1 (en) Method and system for selectively copying portions of a document contents in a computing system (smart copy and paste
US8712989B2 (en) Wild card auto completion
CN100351839C (en) File searching and reading method and apparatus
CN100351849C (en) Character recognition apparatus and character recognition method
CN1838148A (en) Electronic device and recording medium
CN1502080A (en) Active ALT tag in HTML documents to increase the accessibility to users with visual, audio impairment
US8456688B2 (en) Data generating device, scanner and non-transitory computer readable medium
CN1841364A (en) Document translation method and document translation device
CN1869980A (en) Device and method for page smart configuration
CN1932802A (en) Host device having extraction function of text and extraction method thereof
CN1855041A (en) Method for implementing a virtual push-to-talk function and multimodal interface
US20050091035A1 (en) System and method for linguistic collation
CN1848109A (en) Method and system for editing optical character identification result
CN1271514C (en) Out-put method and apparatus for customization of user's instruction
CN1371043A (en) Numeral operation system
US8056002B2 (en) Image forming apparatus, image forming method, computer program, and computer-readable storage medium
CN1180858A (en) Character input apparatus
CN1869889A (en) Method of positive and negative sequence permutation language mixing input in electronic equipment
US20070011621A1 (en) Methods and systems of graphical user interface presentation
CN1517979A (en) Anchor for log-on speech and correlatated object to voice recognition engine
RU2398276C2 (en) Analysis alternatives in scope trees
CN1567296A (en) Multilanguage display method of flushbonding system
CN1449529A (en) Method and system for case conversion

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090128

Termination date: 20111009