CN101051270A - Interface layout changing method and interface display controller - Google Patents

Interface layout changing method and interface display controller Download PDF

Info

Publication number
CN101051270A
CN101051270A CN 200710104399 CN200710104399A CN101051270A CN 101051270 A CN101051270 A CN 101051270A CN 200710104399 CN200710104399 CN 200710104399 CN 200710104399 A CN200710104399 A CN 200710104399A CN 101051270 A CN101051270 A CN 101051270A
Authority
CN
China
Prior art keywords
forms
interface
layout style
style
coordinate system
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 200710104399
Other languages
Chinese (zh)
Other versions
CN100478884C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2007101043998A priority Critical patent/CN100478884C/en
Publication of CN101051270A publication Critical patent/CN101051270A/en
Application granted granted Critical
Publication of CN100478884C publication Critical patent/CN100478884C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

A method for varying boundary lay-out includes obtaining selection information of boundary and confirming boundary lay-out style to be displayed by window body, setting coordinate system used by window display according boundary lay-out style to be displayed by window body and carrying out window display as per set coordinate system or loading resource file corresponding to boundary lay-out style to be displayed by window body and generating window body as per said resource file to carry out display when it is judged out that boundary lay-out style to be displayed by window body is different from existed boundary lay-out style. The boundary display controller is also disclosed.

Description

Interface layout changing method and interface display controller
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of interface layout changing method and interface display controller.
Background technology
At present increasing software needs to consider the globalization of support software in the process of exploitation, therefore should consider all users' localised users interface.Most of in the world family of languages users' reading habit is from left to right (LTR, Left to Right), but for example Arabic family of languages of some family of languages user and the family of languages user's of Hebrew reading habit is (RTL, Right to Left) from right to left.Because just there have been two kinds of interface layout styles in the difference of user's reading habit, the visual alignment mode of the forms element of these two kinds of interface layout styles also is heterochiral.
Therefore, consider the reading habit of different user, existing software development generally is design two cover resource files, corresponds respectively to the demonstration of the different interface layout style of software.Can design wherein a kind of resource file of interface layout style earlier, for example design the resource file of LTR style earlier, on this resource file basis, make amendment then, design the resource file of opposite interface layout style, for example the resource file of RTL style.During releasing software, reading habit according to the different regions user, select the resource file of corresponding a kind of interface layout style to be stored in the software, generate the forms of the corresponding interface layout style of this resource file during running software according to institute's stored resource file, and show, thereby satisfy different regions user's reading habit.
In realizing process of the present invention, the inventor finds that there are some problems in prior art, though prior art is by design two cover resource files, and select the resource file of corresponding a kind of interface layout style to be stored in the software according to different regions user's reading habit, generate the forms of corresponding interface layout style during running software according to institute's stored resource file, thereby meet the needs of different users, but for certain user, can only support a kind of demonstration of interface layout style during running software, if the user wishes to be transformed into another interface layout style, have no idea to realize this moment in operational process.
Summary of the invention
The technical matters that the embodiment of the invention will solve provides a kind of interface layout changing method and interface display controller, can realize the conversion of the different interface layout styles of software.
For solving the problems of the technologies described above, the embodiment of the invention is achieved through the following technical solutions:
The embodiment of the invention provides a kind of interface layout changing method, comprising: obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style; Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, want the interface displayed layout style that forms are set by forms and show employed coordinate system; Carry out the demonstration of forms according to the coordinate system after being provided with.
The embodiment of the invention provides a kind of interface layout changing method, comprising: obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style; Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, load with forms and want interface displayed layout style corresponding resource file; Generate forms and show by described resource file.
The embodiment of the invention provides a kind of interface display controller, comprising: message unit, and be used to obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style; First processing unit is used to judge the definite forms of message unit and wants interface displayed layout style and existing interface layout style not simultaneously, wants the interface displayed layout style that forms are set by the forms of determining and shows employed coordinate system; Display unit is used for carrying out according to the coordinate system after being provided with the demonstration of forms.
The embodiment of the invention provides a kind of interface display controller, comprising: message unit, and be used to obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style; First processing unit is used to load the forms of determining with described message unit and wants interface displayed layout style corresponding resource file, generates forms by described resource file; Display unit is used to carry out the demonstration of forms.
Above technical scheme as can be seen, the technical scheme of the embodiment of the invention is: obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style; Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, want the interface displayed layout style that forms are set by forms and show employed coordinate system; Carry out the demonstration of forms according to the coordinate system after being provided with; Perhaps want interface displayed layout style and existing interface layout style not simultaneously judging forms, load with forms and want interface displayed layout style corresponding resource file, generate all forms and show by described resource file.Because providing, the technical scheme of the embodiment of the invention obtains the flow process that look ﹠ feel is selected information, select information can determine that forms want the interface displayed layout style according to look ﹠ feel, and can dynamically carry out the conversion of different interface layout styles when coordinate parameters being set being implemented in running software, and all operations that the user carried out before the interface layout style changed does not exert an influence; Perhaps want interface displayed layout style corresponding resource file to regenerate forms, thereby can dynamically carry out the conversion of different interface layout styles when also being implemented in running software by loading with definite forms.
Description of drawings
Fig. 1 is the interface layout changing method process flow diagram of the embodiment of the invention one;
Fig. 2 is the interface layout changing method process flow diagram of the embodiment of the invention two;
Fig. 3 is the interface layout changing method process flow diagram of the embodiment of the invention three;
Fig. 4 is the interface layout changing method process flow diagram of the embodiment of the invention four;
Fig. 5 is the interface layout changing method process flow diagram of the embodiment of the invention five;
Fig. 6 is embodiment of the invention interface display controller one structural representation;
Fig. 7 is embodiment of the invention interface display controller two structural representations.
Embodiment
In the prior art, can't realize the change of interface layout style during running software, the embodiment of the invention provides a kind of interface layout changing method, can realize the conversion of the different interface layout styles of software.
Seeing also Fig. 1, is the interface layout changing method process flow diagram of the embodiment of the invention one, comprising:
A1, obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style;
Software can corresponding a kind of interface layout style by the resource file of former loading.At terminal device for example on the computing machine after the install software, software brings into operation, generate the forms of the corresponding interface layout style of former loading resource file, for example the resource file of software loading is the LTR style, and then the corresponding interface layout style of the forms that generate is the LTR style.It should be noted that,, also do not show though generated forms.At this moment, computing machine obtains look ﹠ feel and selects information, determines that forms want the interface displayed layout style.It can be identification information that look ﹠ feel is selected information, load language message or switch languages information.For example can be that computing machine generates prompt window, the prompting user carries out look ﹠ feel and selects, numeral 1 expression LTR style, and numeral 2 expression RTL styles, the user selects wherein one, after computing machine obtains user's selection, determines that forms want the interface displayed layout style.Also can be the loading language message of computing machine when obtaining user installation software, determine that forms want the interface displayed layout style.Can also be in operational process, the user selects to carry out language switches, and computing machine obtains the switch languages information of user's input, determines that forms want the interface displayed layout style.The interface layout style that different language is corresponding different, for example English and Chinese, corresponding LTR style, and the corresponding RTL style of Arabic.
A2, judge forms and want interface displayed layout style and the existing interface layout style of forms not simultaneously, want the interface displayed layout style that all forms are set by forms and show employed coordinate system;
Here the existing interface layout style of said forms can be meant when just having brought into operation software, the initial interface layout style that forms have after generating, and this moment, forms did not also show; Can refer to that also in the software running process, forms are just in the interface displayed layout style.
After computing machine determines that forms are wanted the interface displayed layout style, judge whether the existing interface layout style of this style and forms is identical, want interface displayed layout style and the existing interface layout style of forms not simultaneously if judge forms, also need carry out the conversion of interface layout style with regard to expression, then want the interface displayed layout style to revise the interface layout attribute of all forms by forms, just revise all forms and show employed coordinate system, for example the existing interface layout style of forms is the LTR style, its coordinate system is from left to right, and the forms of determining to want the interface displayed layout style be the RTL style, the requirement of its coordinate system is from right to left, then all forms is shown that employed coordinate system changes into from right to left.
A3, carry out interface display.
Carry out the demonstration of forms according to the coordinate system after being provided with.If when steps A 2 is judged forms to want the interface displayed layout style be identical with existing interface layout style, then show by existing interface layout style.
Can find that the scheme of the embodiment of the invention can realize the conversion of interface layout style dynamically, and all operations that user before the conversion is carried out do not exert an influence, promptly can keep before the conversion user the operation site of software.Simultaneously, use the scheme of the embodiment of the invention just not need to remove to set up different resource files as the different interface layout styles of software.That is to say, when design software, can only design a cover resource file, for example the developer only need then can realize dynamically changing the function of software interface layout style by the method for embodiment one by the resource file of the LTR style design one cover LTR style of oneself being familiar with in the software running process.
Seeing also Fig. 2, is the interface layout changing method process flow diagram of the embodiment of the invention two.Step comprises among the figure:
B1, obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style;
Software can corresponding a kind of interface layout style by the resource file of former loading.At terminal device for example on the computing machine after the install software, software brings into operation, generate the forms of the corresponding interface layout style of former loading resource file, for example the resource file of software loading is the LTR style, and then the corresponding interface layout style of the forms that generate is the LTR style.It should be noted that,, also do not show though generated forms.At this moment, computing machine obtains look ﹠ feel and selects information, determines that forms want the interface displayed layout style.It can be identification information or loading language message that look ﹠ feel is selected information.For example can be that computing machine generates prompt window, the prompting user carries out look ﹠ feel and selects, numeral 1 expression LTR style, and numeral 2 expression RTL styles, the user selects wherein one, after computing machine obtains user's selection, determines that forms want the interface displayed layout style.Also can be the loading language message of computing machine when obtaining user installation software, determine that forms want the interface displayed layout style.Language that can selective loading during user installation software for example, if user's selective loading language is an English, then computing machine determines that according to this information the window interfaces layout style that will show is the LTR style, if user's selective loading language is an Arabic, computing machine determines that according to this information the window interfaces layout style that will show is the RTL style.
B2, judge that forms want the interface displayed layout style whether identical with the interface layout style that has generated,, enter step B3,, then enter step B6 and show by the interface layout style that has generated if identical if inequality;
Suppose that the interface layout style that forms have generated is the LTR style, and forms to want the interface displayed layout style be the RTL style, then need to carry out the conversion of interface layout style, enter step B3.
B3, traversal also write down position and the size of all forms at its parent form;
Travel through all forms, write down relative position and the size of all forms at its parent form.
B4, want the interface displayed layout style to revise all forms by forms to show employed coordinate system;
Learn need carry out the conversion of interface layout style after, want the interface displayed layout style to revise the interface layout attribute of all forms by forms, just revise all forms and show employed coordinate system, the interface layout style that has for example generated is the LTR style, its coordinate system is from left to right, and want the interface displayed layout style is the RTL style, the requirement of its coordinate system is from right to left, then revise the coordinate system parameter on request, all forms are shown that employed coordinate system changes into from right to left.
B5, all forms are moved to the position of revising before the coordinate system at its parent form;
All forms show that change has taken place employed coordinate system, but having the relative position of a little forms in its parent form changes, come mobile forms according to revising the forms that write down before the coordinate system in the relative position and the size of its parent form this moment, makes it keep changing relative position and size preceding and parent form in the new coordinate system of parent form.
B6, carry out interface display.
Revise all forms and show employed coordinate system and carry out after window position moves that conversion has taken place its interface layout style, carry out the interface and refresh this moment, then is shown as amended interface layout style.If when judging forms in the B2 step to want the interface displayed layout style being identical with the interface layout style that has generated, by the interface layout style demonstration that has generated.
Seeing also Fig. 3, is the interface layout changing method process flow diagram of the embodiment of the invention three.Embodiment three carries out interface layout changing according to switch languages in the operational process.In existing multilingual software, only just the reloaded during switch languages string resource of switch languages, also conversion interface layout style when not accomplishing that language switches, and the embodiment of the invention is come conversion software interface layout style according to the reading habit of language when can be implemented in language and switching.Step comprises among the figure:
C1, obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style;
The look ﹠ feel selection information of obtaining among this embodiment is the information of the switch languages imported of user.In software running process, the forms of generation show by a kind of interface layout style, and the user selected to carry out language and switched this moment, and then computing machine obtains the information of the switch languages of user's input, determine that forms want the interface displayed layout style.For example the switch languages of user's input is an Arabic, and then computing machine determines that according to this information the window interfaces layout style that will show is the RTL style.
C2, judge that forms want the interface displayed layout style with the interface displayed layout style is identical,, enter step C3,, directly enter step C6 as if identical as if inequality;
Suppose that current operation language is an English, forms interface displayed layout style are the LTR style, and the switch languages of user's input is an Arabic, and determine that moving window interfaces layout style to display by Arabic is the RTL style, then need carry out the conversion of interface layout style this moment, then enter step C3.
C3, traversal also write down position and the size of all forms at its parent form;
Travel through all forms, write down relative position and the size of all forms at its parent form.
C4, want the interface displayed layout style to revise all forms by forms to show employed coordinate system;
Learn need carry out the conversion of interface layout style after, want the interface displayed layout style to revise the interface layout attribute of all forms by forms, just revise all forms and show employed coordinate system, for example the interface displayed layout style is the LTR style, its coordinate system is from left to right, and want the interface displayed layout style is the RTL style, the requirement of its coordinate system is from right to left, then revise the coordinate system parameter on request, all forms are shown that employed coordinate system changes into from right to left.
C5, all forms are moved to the position of revising before the coordinate system at its parent form;
All forms show that change has taken place employed coordinate system, but having the position of a little forms in its parent form does not change, come mobile forms according to revising the forms that write down before the coordinate system in the relative position and the size of its parent form this moment, makes it keep changing relative position and size preceding and parent form in the new coordinate system of parent form.
C6, load the string resource of the switch languages obtain, the language that current operation is shown is compiled into the language of switching;
C7, carry out interface display.
Revising all forms shows employed coordinate system and carries out after window position moves, conversion has taken place in its interface layout style, and language also switches, and carry out the interface and refresh this moment, then be shown as amended interface layout style, the language of the language of demonstration for switching.If the C2 step judges when forms are wanted the interface displayed layout style and the interface displayed layout style is identical, still show by interface displayed layout style.
Need to prove, convenience just here in order to describe, the string resource of the switch languages that loading is obtained and the step that compiles are listed in step C6, and this step is to carry out simultaneously with the process that the interface layout style is switched.
Seeing also Fig. 4, is the interface layout changing method process flow diagram of the embodiment of the invention four.Embodiment four regenerates forms by the interface layout style of determining.Step comprises among the figure:
D1, obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style;
It is identical that this step content and the foregoing description two B1 steps are described content, no longer describes in detail herein.
D2, judge that forms want the interface displayed layout style whether identical with the interface layout style that has generated,, enter step D3, if identical, then enter step D5 and show by the interface layout style of the interface layout style that has generated if inequality;
Suppose that the interface layout style that forms have generated is the LTR style, and forms to want the interface displayed layout style be the RTL style, then need to carry out the conversion of interface layout style, enter step D3.
D3, traversal also write down position and the size of all forms at its parent form;
Travel through all forms, write down relative position and the size of all forms, also write down active user's associative operation information simultaneously, for example the character of user's input and order etc. at its parent form.
D4, by the record information regenerate all forms;
At this moment, press the forms that the LTR style generates before destroying earlier, by the information of record, comprise that all forms are in the position of its parent form and size and user's associative operation information again, and want the coordinate system of interface displayed layout style correspondence according to forms, regenerate all forms.The forms of Sheng Chenging are the LTR styles before, its forms show that employed coordinate system correspondence is from left to right, and forms to want the interface displayed layout style be the RTL style, its forms show that employed coordinate system correspondence is from right to left, therefore set forms and show that employed coordinate is from right to left, and to regenerate coordinate by the information of record be from right to left all forms.
Need to prove, the forms that generate by the LTR style before also can not destroying, but it is hidden, perhaps adopt other modes to handle.
D5, carry out interface display.
Carry out the interface after forms generate and refresh, what then show is new interface layout style.If when judging forms in the D2 step to want the interface displayed layout style being identical with the interface layout style that has generated, by generated the demonstration of interface layout style.
Also need to prove, if in operational process, the user selects to carry out language switches, then obtain forms and want the interface displayed layout style by the information of the switch languages that obtains, and judge that forms are wanted the interface displayed layout style and whether the interface displayed layout style is identical, if inequality, press D3, the execution of D4 step, and loading the string resource of the switch languages obtain, the language that current operation is shown is compiled into the language of switching; As if identical, then directly load the string resource of the switch languages that obtains, the language of current operation demonstration is compiled into the language of switching.
The resource file that contains an Analysis of Nested Design in the software that is based on that top content is said carries out the conversion of interface layout style, and in addition, the embodiment of the invention can also be carried out the conversion of interface layout style according to two cover resource files of design.That is to say that set up two cover resource files and being stored in the software, a cover is the LTR style, a cover is the RTL style, dynamically switches as required to load different resource files and realize the conversion of interface layout style when running software.
Seeing also Fig. 5, is the interface layout changing method process flow diagram of the embodiment of the invention five.Step comprises among the figure:
E1, obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style;
It is identical that this step content and the foregoing description two B1 steps are described content, no longer describes in detail herein.
E2, judge that forms want the interface displayed layout style whether identical with the interface layout style that has generated,, enter step e 3,, then enter step e 5 and show by the interface layout style that has generated if identical if inequality;
Suppose that the interface layout style that forms have generated is the LTR style, and forms to want the interface displayed layout style be the RTL style, then need to carry out the conversion of interface layout style, enter step e 3.
E3, loading and forms are wanted interface displayed layout style corresponding resource file;
Because it is the RTL style that forms are wanted the interface displayed layout style, then destroy earlier and originally press the forms that the LTR style generates, and the resource file of unloading LTR style, then load the resource file of the RTL style of storage.
E4, generate all forms by described resource file;
Generate the forms of all RTL styles according to the resource file of the RTL style of loading.
E5, carry out interface display.
Press all forms of the resource file generation of RTL style, conversion has taken place in its interface layout style, and carry out the interface and refresh this moment, then is shown as amended interface layout style.If when judging forms in the E2 step to want the interface displayed layout style being identical with the interface layout style that has generated, by the interface layout style demonstration that has generated.
Also need to prove, if in operational process, the user selects to carry out language switches, then obtain forms and want the interface displayed layout style by the information of the described need switch languages that obtains, and judge that forms are wanted the interface displayed layout style and whether the interface displayed layout style is identical, if inequality, press E3, the execution of E4 step, and loading the string resource of the switch languages of described selection, the language that current operation is shown is compiled into the language of switching; As if identical, then directly load the string resource of the switch languages of described selection, the language of current operation demonstration is compiled into the language of switching.
Foregoing describes the interface layout changing method of the embodiment of the invention in detail, and the embodiment of the invention also provides interface display controller accordingly, can use but is not limited on computing machine or the personal terminal.
Seeing also Fig. 6, is embodiment of the invention interface display controller one structural representation.
This interface display controller comprises: message unit 100, first processing unit 200 and display unit 201.
Message unit 100 is used to obtain look ﹠ feel and selects information, determines that forms want the interface displayed layout style.The window interfaces layout style is meant that the window interfaces layout is from left to right layout or layout from right to left, is LTR style or RTL style.
It can be identification information that said look ﹠ feel is selected information, load language message or switch languages information.For example can be that computing machine generates prompt window, the prompting user carries out look ﹠ feel and selects, numeral 1 expression LTR style, numeral 2 expression RTL styles, the user selects wherein one, after message unit 100 obtains user's selection, determines that forms want the interface displayed layout style.Also can be the loading language message of message unit 100 when obtaining user installation software, determine that forms want the interface displayed layout style.Can also be in operational process, the user selects to carry out language switches, and message unit 100 obtains the switch languages information of user's input, determines that forms want the interface displayed layout style.
First processing unit 200 is used to judge message unit 100 definite forms and wants interface displayed layout style and existing interface layout style not simultaneously, wants the interface displayed layout style that all forms are set by the forms of determining and shows employed coordinate system.Here the existing interface layout style of said forms can be meant when just having brought into operation software, the initial interface layout style that forms have after generating, and this moment, forms did not also show; Can refer to that also in the software running process, forms are just in the interface displayed layout style.First processing unit 200 judges that the forms that message unit 100 is determined want the existing interface layout style of interface displayed layout style and forms whether identical, want interface displayed layout style and the existing interface layout style of forms not simultaneously if judge forms, also need carry out the conversion of interface layout style, then all forms be shown that employed coordinate system makes amendment with regard to expression.If existing interface layout style is the LTR style, its coordinate system is from left to right, and the forms that message unit 100 is determined to want the interface displayed layout style be the RTL style, the requirement of coordinate system is from right to left, then revise the coordinate system parameter, all forms are shown that employed coordinate system changes into from right to left.
Display unit 201 is used for carrying out according to the coordinate system after being provided with the demonstration of forms.
Interface display controller further comprises the record cell 300 and second processing unit 400.
Record cell 300 is used for wanting the interface displayed layout style to be provided with before all forms show employed coordinate system by the forms of determining at first processing unit 200, travels through and write down position and the size of all forms at its parent form.Here said size just refers to the length and the width of forms.
Second processing unit 400, be used for wanting the interface displayed layout style to be provided with after all forms show employed coordinate system by the forms of determining at first processing unit 200, according to all forms of described record cell 300 records position and size, move to the position of revising before the coordinate system at its parent form with revising all forms behind the coordinate system at its parent form.After first processing unit 200 carries out the modification of coordinate parameters, all forms show that change has taken place employed coordinate system, but having the relative position of a little forms in its parent form changes, this moment, second processing unit 400 came mobile forms according to revising the forms that write down before the coordinate system in the relative position and the size of its parent form, made it keep changing relative position and size preceding and parent form in the new coordinate system of parent form.
Second processing unit 400, or be used for wanting the interface displayed layout style to be provided with after all forms show employed coordinate system by the forms of determining at first processing unit 200, all forms that write down according to record cell 300 regenerate forms in the position and the size of its parent form.At this moment, second processing unit 400 is pressed the forms that the LTR style generates before destroying earlier, again according to all forms of record cell 300 record position and size, and want the coordinate system of interface displayed layout style correspondence, regenerate all forms according to the forms of determining at its parent form.If the existing interface layout style of forms is the LTR style, forms show that employed coordinate system correspondence is from left to right, and the forms of determining to want the interface displayed layout style be the RTL style, forms show that employed coordinate system correspondence is from right to left so.
Seeing also Fig. 7, is embodiment of the invention interface display controller two structural representations.The first processing unit function of interface display controller two and top said interface display controller one is different.
This interface display controller comprises: message unit 100, first processing unit 800 and display unit 201.
Message unit 100 is used to obtain look ﹠ feel and selects information, determines that forms want the interface displayed layout style.The window interfaces layout style is meant that the window interfaces layout is from left to right layout or layout from right to left, is LTR style or RTL style.
It can be identification information that said look ﹠ feel is selected information, load language message or switch languages information.For example can be that computing machine generates prompt window, the prompting user carries out look ﹠ feel and selects, numeral 1 expression LTR style, numeral 2 expression RTL styles, the user selects wherein one, after message unit 100 obtains user's selection, determines that forms want the interface displayed layout style.Also can be the loading language message of message unit 100 when obtaining user installation software, determine that forms want the interface displayed layout style.Can also be in operational process, the user selects to carry out language switches, and message unit 100 obtains the switch languages information of user's input, determines that forms want the interface displayed layout style.
First processing unit 800, be used to judge message unit 100 definite forms and want interface displayed layout style and existing interface layout style not simultaneously, load with described definite forms and want interface displayed layout style corresponding resource file, generate all forms by described resource file.Here the existing interface layout style of said forms can be meant when just having brought into operation software, the initial interface layout style that forms have after generating, and this moment, forms did not also show; Can refer to that also in the software running process, forms are just in the interface displayed layout style.First processing unit 200 judges that the forms that message unit 100 is determined want the existing interface layout style of interface displayed layout style and forms whether identical, want interface displayed layout style and the existing interface layout style of forms not simultaneously if judge forms, also need carry out the conversion of interface layout style with regard to expression.Because need conversion interface layout style, for example need to be transformed into the RTL style, then destroy earlier and originally press the forms that the LTR style generates, and the resource file of unloading LTR style, then load the resource file of the RTL style of storage, press the forms that RTL style resource file generates the RTL style.
Display unit 201 is used for carrying out the demonstration of forms after first processing unit 800 generates forms by resource file.
In sum, the technical scheme of the embodiment of the invention is: obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style; Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, want the interface displayed layout style that forms are set by forms and show employed coordinate system; Carry out the demonstration of forms according to the coordinate system after being provided with; Perhaps want interface displayed layout style and existing interface layout style not simultaneously judging forms, load with the forms of determining and want interface displayed layout style corresponding resource file, generate all forms and show by described resource file.Because providing, the technical scheme of the embodiment of the invention obtains the flow process that look ﹠ feel is selected information, select information can determine that forms want the interface displayed layout style according to look ﹠ feel, and can dynamically carry out the conversion of different interface layout styles when coordinate parameters being set being implemented in running software, and all operations that the user carried out before the interface layout style changed does not exert an influence; Perhaps want interface displayed layout style corresponding resource file to regenerate forms, thereby can dynamically carry out the conversion of different interface layout styles when also being implemented in running software by loading with the forms of determining.Simultaneously, if use first kind of scheme of the embodiment of the invention, can not need to remove to set up different resource files for the different interface layout styles of software;
Further, show that change has taken place employed coordinate system though consider all forms, but having the relative position of a little forms in its parent form changes, come mobile forms according to revising the forms that write down before the coordinate system in the relative position and the size of its parent form this moment, make it in the new coordinate system of parent form, keep changing relative position and size preceding and parent form, thereby in realizing interface layout style conversion process, reach better effect, perhaps directly regenerate forms in the relative position and the size of its parent form, also can realize the conversion of interface layout style according to the forms that write down;
Further, the technical scheme of the embodiment of the invention can also need determine the window interfaces layout style of demonstration according to the identification information that obtains, loading language message or switch languages information, carries out the conversion of interface layout style more on request.That is to say and to carry out the conversion of dynamic interface layout style according to different needs.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer-readable recording medium.This program comprises the steps: to obtain look ﹠ feel and selects information when carrying out, and determines that forms want the interface displayed layout style; Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, want the interface displayed layout style that forms are set by forms and show employed coordinate system; Carry out the demonstration of forms according to the coordinate system after being provided with.This program perhaps comprises the steps: to obtain look ﹠ feel and selects information when carrying out, and determines that forms want the interface displayed layout style; Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, load with forms and want interface displayed layout style corresponding resource file; Generate forms and show by described resource file.Described storage medium, as: ROM/RAM, magnetic disc, CD etc.
More than a kind of interface layout changing method and interface display controller that the embodiment of the invention provided are described in detail, used specific case herein the principle and the embodiment of the embodiment of the invention are set forth, the explanation of above embodiment just is used to help to understand the method and the core concept thereof of the embodiment of the invention; Simultaneously, for one of ordinary skill in the art, according to the thought of the embodiment of the invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1, a kind of interface layout changing method is characterized in that, comprising:
Obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style;
Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, want the interface displayed layout style that forms are set by forms and show employed coordinate system;
Carry out the demonstration of forms according to the coordinate system after being provided with.
2, interface layout changing method according to claim 1 is characterized in that:
Describedly want the interface displayed layout style that the step that forms show employed coordinate system is set by forms to adopt, want the interface displayed layout style that forms are shown that employed coordinate system makes amendment by described forms;
Describedly want the interface displayed layout style that forms are set by forms also to comprise before showing the step of employed coordinate system: travel through and write down position and the size of all forms at its parent form;
Described step of carrying out the demonstration of forms according to the coordinate system after being provided with comprises: according to all forms of record position and size at its parent form, move to the position of revising before the coordinate system at its parent form with revising all forms behind the coordinate system.
3, interface layout changing method according to claim 1 is characterized in that:
Describedly want the interface displayed layout style that forms are set by forms also to comprise before showing the step of employed coordinate system: travel through and write down position and the size of all forms at its parent form;
Described step of carrying out the demonstration of forms according to the coordinate system after being provided with comprises: all forms according to record regenerate forms in the position and the size of its parent form.
4, according to claim 1,2 or 3 described interface layout changing methods, it is characterized in that:
The described look ﹠ feel selection information of obtaining is: obtain identification information, load language message or switch languages information.
5, a kind of interface layout changing method is characterized in that, comprising:
Obtain look ﹠ feel and select information, determine that forms want the interface displayed layout style;
Want interface displayed layout style and existing interface layout style not simultaneously when judging forms, load with forms and want interface displayed layout style corresponding resource file;
Generate forms and show by described resource file.
6, interface layout changing method according to claim 5 is characterized in that:
The described look ﹠ feel selection information of obtaining is: obtain identification information, load language message or switch languages information.
7, a kind of interface display controller is characterized in that, comprising:
Message unit is used to obtain look ﹠ feel and selects information, determines that forms want the interface displayed layout style;
First processing unit is used to judge the definite forms of message unit and wants interface displayed layout style and existing interface layout style not simultaneously, wants the interface displayed layout style that forms are set by the forms of determining and shows employed coordinate system;
Display unit is used for carrying out according to the coordinate system after being provided with the demonstration of forms.
8, interface display controller according to claim 7 is characterized in that, further comprises:
Record cell is used for wanting the interface displayed layout style to be provided with before forms show employed coordinate system by the forms of determining at described first processing unit, travels through and write down position and the size of all forms at its parent form;
Second processing unit, be used for wanting the interface displayed layout style to be provided with after forms show employed coordinate system by the forms of determining at described first processing unit, according to all forms of described recording unit records position and size,, all forms behind the coordinate system move to the position that is provided with before the coordinate system at its parent form with being set at its parent form.
9, interface display controller according to claim 7 is characterized in that, further comprises:
Record cell is used for wanting the interface displayed layout style to be provided with before forms show employed coordinate system by the forms of determining at described first processing unit, travels through and write down position and the size of all forms at its parent form;
Second processing unit, be used for wanting the interface displayed layout style to be provided with after forms show employed coordinate system by the forms of determining, regenerate forms in the position and the size of its parent form according to all forms of described recording unit records at described first processing unit.
10, a kind of interface display controller is characterized in that, comprising:
Message unit is used to obtain look ﹠ feel and selects information, determines that forms want the interface displayed layout style;
First processing unit is used to load the forms of determining with described message unit and wants interface displayed layout style corresponding resource file, generates forms by described resource file;
Display unit is used to carry out the demonstration of forms.
CNB2007101043998A 2007-05-11 2007-05-11 Interface layout changing method and interface display controller Expired - Fee Related CN100478884C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101043998A CN100478884C (en) 2007-05-11 2007-05-11 Interface layout changing method and interface display controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101043998A CN100478884C (en) 2007-05-11 2007-05-11 Interface layout changing method and interface display controller

Publications (2)

Publication Number Publication Date
CN101051270A true CN101051270A (en) 2007-10-10
CN100478884C CN100478884C (en) 2009-04-15

Family

ID=38782696

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101043998A Expired - Fee Related CN100478884C (en) 2007-05-11 2007-05-11 Interface layout changing method and interface display controller

Country Status (1)

Country Link
CN (1) CN100478884C (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957757A (en) * 2010-09-30 2011-01-26 北京理工大学 Graphic layout method applicable to software visualization process
CN102117219A (en) * 2011-03-09 2011-07-06 深圳市融创天下科技发展有限公司 Method for generating clients, system and terminal equipment
CN102736913A (en) * 2011-12-19 2012-10-17 新奥特(北京)视频技术有限公司 Method for realizing multi-style window change in palette system
CN102902535A (en) * 2012-09-18 2013-01-30 深圳市融创天下科技股份有限公司 Picture self-adaption method, system and terminal equipment
CN102984350A (en) * 2012-11-01 2013-03-20 广东欧珀移动通信有限公司 User-defined subject switchover method and device in mobile terminal of Android operating system
CN103092596A (en) * 2011-11-08 2013-05-08 中国移动通信集团陕西有限公司 Method and device for achieving interface inversion automatically of low-level interface
CN103489268A (en) * 2013-09-06 2014-01-01 深圳市新国都技术股份有限公司 Arabic displaying method for POS platform
CN104951314A (en) * 2015-07-28 2015-09-30 上海斐讯数据通信技术有限公司 Dialog box display method and system
WO2016026379A1 (en) * 2014-08-18 2016-02-25 深圳市九洲电器有限公司 Interface display method and system
CN106095437A (en) * 2016-06-12 2016-11-09 青岛海信电器股份有限公司 The implementation method of the layout type of user interface RTL from right to left and device
CN107423058A (en) * 2017-07-07 2017-12-01 天脉聚源(北京)传媒科技有限公司 A kind of interface display method and device
CN108958859A (en) * 2018-06-01 2018-12-07 东软集团股份有限公司 RTL layout adaptation method, device, storage medium and electronic equipment based on Android
CN109710364A (en) * 2018-12-27 2019-05-03 北京微播视界科技有限公司 Adjust method, apparatus, electronic equipment and the storage medium of layout type
CN111124481A (en) * 2019-12-24 2020-05-08 广州市百果园信息技术有限公司 Installation package generation method and device of webpage application program, storage medium and equipment
CN111651113A (en) * 2020-07-16 2020-09-11 广州朱雀信息科技有限公司 Page display method, device, equipment and storage medium

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957757B (en) * 2010-09-30 2012-11-14 北京理工大学 Graphic layout method applicable to software visualization process
CN101957757A (en) * 2010-09-30 2011-01-26 北京理工大学 Graphic layout method applicable to software visualization process
CN102117219A (en) * 2011-03-09 2011-07-06 深圳市融创天下科技发展有限公司 Method for generating clients, system and terminal equipment
CN103092596B (en) * 2011-11-08 2016-03-30 中国移动通信集团陕西有限公司 Rudimentary interface development realizes method and the device of interface inversion automatically
CN103092596A (en) * 2011-11-08 2013-05-08 中国移动通信集团陕西有限公司 Method and device for achieving interface inversion automatically of low-level interface
CN102736913A (en) * 2011-12-19 2012-10-17 新奥特(北京)视频技术有限公司 Method for realizing multi-style window change in palette system
CN102902535A (en) * 2012-09-18 2013-01-30 深圳市融创天下科技股份有限公司 Picture self-adaption method, system and terminal equipment
CN102984350A (en) * 2012-11-01 2013-03-20 广东欧珀移动通信有限公司 User-defined subject switchover method and device in mobile terminal of Android operating system
CN103489268A (en) * 2013-09-06 2014-01-01 深圳市新国都技术股份有限公司 Arabic displaying method for POS platform
CN103489268B (en) * 2013-09-06 2015-12-02 深圳市新国都技术股份有限公司 A kind of Arabic display packing for POS platform
WO2016026379A1 (en) * 2014-08-18 2016-02-25 深圳市九洲电器有限公司 Interface display method and system
CN104951314A (en) * 2015-07-28 2015-09-30 上海斐讯数据通信技术有限公司 Dialog box display method and system
CN106095437A (en) * 2016-06-12 2016-11-09 青岛海信电器股份有限公司 The implementation method of the layout type of user interface RTL from right to left and device
CN107423058A (en) * 2017-07-07 2017-12-01 天脉聚源(北京)传媒科技有限公司 A kind of interface display method and device
CN108958859A (en) * 2018-06-01 2018-12-07 东软集团股份有限公司 RTL layout adaptation method, device, storage medium and electronic equipment based on Android
CN109710364A (en) * 2018-12-27 2019-05-03 北京微播视界科技有限公司 Adjust method, apparatus, electronic equipment and the storage medium of layout type
CN111124481A (en) * 2019-12-24 2020-05-08 广州市百果园信息技术有限公司 Installation package generation method and device of webpage application program, storage medium and equipment
CN111651113A (en) * 2020-07-16 2020-09-11 广州朱雀信息科技有限公司 Page display method, device, equipment and storage medium
CN111651113B (en) * 2020-07-16 2021-09-07 广州朱雀信息科技有限公司 Page display method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN100478884C (en) 2009-04-15

Similar Documents

Publication Publication Date Title
CN101051270A (en) Interface layout changing method and interface display controller
CN1249577C (en) Method and apparatus for interoperation between legacy software and screen reader programs
CN101051323A (en) Character input method, input method system and method for updating word stock
CN1118771C (en) Multiple language input-system
CN101063924A (en) Method and device for making user elect multiple objects in a document
CN101059748A (en) Display apparatus and image processing apparatus with flexible menu items and control method thereof
CN101038550A (en) Information processing apparatus and information processing method
CN1991839A (en) Method and system for supporting information access and record media therefor
CN100337231C (en) Structured document processor , method and programme
CN1685341A (en) Blinking annotation callouts highlighting cross language search results
CN1577263A (en) Multilanguage-supporting user interface realizing method and apparatus thereof
CN1517904A (en) Ink marking device and associated application programmed interface
CN1908931A (en) Literal data variable typesetting method
CN101076166A (en) Device having display buttons and display method and medium for the device
CN1908939A (en) Method and system for controlling a display on a data editing screen
CN1779782A (en) User interface design apparatus and method
CN1934533A (en) Display processing device and display processing method
CN1614927A (en) Method for realizing tree-shaped structure in B/S structure
CN1731351A (en) A method of model driving for grid computation
CN1325077A (en) Integrated network station searching method in communication network and storage medium of software to realize that
CN1320456C (en) Automatic forming method for intelligent instrument interface
CN1818898A (en) Electronic document data processing editor and its controlling method
CN1245685C (en) Drive method based on structure operation system dynamic equipment
CN1311375C (en) Server, information processing method and program
CN1741018A (en) HTTP web page dynamic outputting method and system

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

Granted publication date: 20090415