CN101414259A - Method and apparatus for setting graphical user interface - Google Patents

Method and apparatus for setting graphical user interface Download PDF

Info

Publication number
CN101414259A
CN101414259A CNA2008101792036A CN200810179203A CN101414259A CN 101414259 A CN101414259 A CN 101414259A CN A2008101792036 A CNA2008101792036 A CN A2008101792036A CN 200810179203 A CN200810179203 A CN 200810179203A CN 101414259 A CN101414259 A CN 101414259A
Authority
CN
China
Prior art keywords
control assembly
user interface
attribute
graphic user
described control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008101792036A
Other languages
Chinese (zh)
Inventor
邵东志
胡晓亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Electronics Co Ltd
Qingdao Hisense Electronic Industry Holdings Co Ltd
Original Assignee
Qingdao Hisense Electronic Industry Holdings 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 Qingdao Hisense Electronic Industry Holdings Co Ltd filed Critical Qingdao Hisense Electronic Industry Holdings Co Ltd
Priority to CNA2008101792036A priority Critical patent/CN101414259A/en
Publication of CN101414259A publication Critical patent/CN101414259A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method for setting a graphical user interface and a device thereof and relates to the field of graphics. The invention aims at solving the problems that the operation for setting the graphical user interface for different display devices in the prior art is complicated and the code reusability is low. The technical proposal which is provided by the embodiment of the invention is as follows: a control part is obtained from a preset control part library according to the interface requirement of the display device; the attributes of the control part are set to generate the graphical user interface. The technical proposal which is provided by the embodiment of the invention can be applied on the display devices, such as mobile phone, game machines, handheld video players, television set-top boxes and refrigerators, air conditioners or water heaters with the display function.

Description

The method to set up of graphic user interface and device
Technical field
The present invention relates to the graphics field, relate in particular to a kind of method to set up and device of graphic user interface.
Background technology
Along with the continuous development of science and technology, various display devices emerge in an endless stream, for satisfy different display devices to graphic user interface (prior art provides two kinds of methods that GUI is set for Graphic User Interface, requirement GUI):
A kind of method is, existing GUI is transplanted and revises, and makes it adapt to the interface requirement of different display devices.For example: the open source project provides the open source of realizing Microsoft Windows or X Window look ﹠ feel, when GUI being set for different display devices, can transplant described open source low layer, and require the top layer of described open source is encapsulated again according to the interface of display device, generate and adapt to the GUI that described display device interface requires.
In realizing process of the present invention, the inventor finds that the GUI style that generates according to described method is more single, can not satisfy the individual demand of different display devices to the GUI style.
Another kind method is to reset for each different display device and satisfy the GUI that its interface requires.At present, this method can realize by dual mode:
A kind ofly be, adopt the mode of common picture point, setting-out directly to draw the various control assemblies of GUI, generate and satisfy the GUI that the display device interface requires.For example: the digital family set-top box GUI system of the disclosed a kind of optimization based on Microwindows of Chinese patent CN200710027951.8, comprise GUI core mechanism module, graphics engine module and GUI object module, basic mapping operation by the graphics engine module, draw out the profile of GUI as point, straight line, circle, rectangle and rectangle filling etc., and carry out color by a kind of mode of searching of palette efficiently and fill, draw out complete GUI.
In realizing process of the present invention, the inventor finds that draw the operation more complicated of GUI by the mode of described picture point, setting-out, code reuse is lower.
Another kind is that adopting the mode of programming is that different display devices is provided with GUI.For example: the implementation method of the disclosed graphic user interface of Chinese patent CN200710072834.3, realize demonstration and the control of GUI by the animation technology.
In realizing process of the present invention, the inventor finds, adopting the mode of programming is that different display devices are provided with GUI, code reuse is higher relatively, but, because interface code and the concrete application code of display device of GUI combined, make that the operation of GUI is set is still complicated for different display devices.
Summary of the invention
The embodiment of the invention provides a kind of method to set up and device of graphic user interface, and simple to operate, code reuse is higher.
In order to achieve the above object, embodiments of the invention adopt following technical scheme:
A kind of method to set up of graphic user interface comprises: according to the interface requirement of display device, obtain control assembly from the control assembly storehouse that sets in advance; Attribute to described control assembly is provided with, and generates graphic user interface.
A kind of setting device of graphic user interface comprises:
The control assembly storehouse is used for scu;
The control assembly acquiring unit is used for the interface requirement according to display device, obtains control assembly from the control assembly storehouse that sets in advance;
Attribute is provided with the unit, and the attribute that is used for control assembly that described control assembly acquiring unit is obtained is provided with, and generates graphic user interface.
The method to set up of the graphic user interface that the embodiment of the invention provides and device, can be according to the interface requirement of display device, from the control assembly storehouse that sets in advance, obtain control assembly, and be provided with by the attribute to described control assembly, generate and satisfy the graphic user interface that the display device interface requires.Compared with prior art, the graphic user interface that the technical scheme that adopts the embodiment of the invention to provide generates can satisfy the personalized style requirement of different display devices to graphic user interface.Because scu in the control assembly storehouse in advance, so when graphic user interface being set for different display devices, only need require to choose control assembly according to the interface, and the attribute of this control assembly is provided with, simple to operate, to generate the required code reuse of graphic user interface higher, solved the service load that prior art adopts the mode graphing user interface of picture point, setting-out, the problem that code reuse is low; The technical scheme that the embodiment of the invention provides only is provided with graphic user interface itself, the concrete application code of graphic user interface and display device is separated, having solved prior art adopts the mode of programming that graphic user interface is set, the concrete application code of the graphic user interface that make to generate and display device combines, and causes graphic user interface setting operation complicated problems.
Description of drawings
The method to set up process flow diagram of the graphic user interface that Fig. 1 provides for the embodiment of the invention;
The setting device structural representation of the graphic user interface that Fig. 2 provides for the embodiment of the invention;
Attribute is provided with the cellular construction synoptic diagram in the setting device of the graphic user interface that Fig. 3 provides for the described embodiment of the invention of Fig. 2.
Embodiment
In order to solve prior art is the complicated operation that different display devices are provided with graphic user interface, and the problem that code reuse is low, the embodiment of the invention provide a kind of method to set up and device of graphic user interface.
As shown in Figure 1, the method to set up of the graphic user interface that the embodiment of the invention provides comprises:
Step 101 according to the interface requirement of display device, is obtained control assembly from the control assembly storehouse that sets in advance.
In the present embodiment, described control assembly storehouse can be stored polytype control assembly in advance, for example: list box that dialog box, the button with video display function, label, multirow show and page turning sign etc.; Every type control assembly quantity can be for a plurality of, for example: the button with video display function that can store a plurality of difformities (as circular, rectangle or triangle etc.) in the described control assembly storehouse.
Step 102 is provided with the attribute of described control assembly, generates graphic user interface, specifically can realize by dual mode:
A kind of mode is to be provided with according to the attribute of the Provisioning Policy of storing in advance to described control assembly; In the present embodiment, described Provisioning Policy can be overall Provisioning Policy, also can be local Provisioning Policy, when being overall Provisioning Policy, can being provided with the attribute of each control assembly of obtaining in the step 101 according to this overall situation Provisioning Policy and generating GUI; When being local Provisioning Policy, can carrying out the part according to some or a plurality of control assembly attributes that described Provisioning Policy obtains step 101 and be provided with;
Another kind of mode is: the attribute to described control assembly carries out self-defined setting, comprising: receive the attribute configuration information; Be provided with according to the attribute of described attribute configuration information described control assembly.
In the use of reality, described step 102 can be provided with the control assembly attribute of choosing in the described step 101 by above-described any one mode or combination.
In the present embodiment, the attribute setting of step 102 pair control assembly is specifically as follows the size of control assembly and color (background picture or background color) is provided with, for example: when the control assembly that obtains in the step 101 be multirow show list box the time, the size of the list box that step 102 can show this multirow (OK/columns), list box background picture or background color, the background picture of option or background color (comprising: choose in the list box, do not choose and choose by inferior), side-play amount in the list box between the respective option, list box page turning mode (by row or by page or leaf), scroll bar slide block background picture or background color are provided with in list box scroll bar arrow background picture or background color and the list box.When having obtained two above control assemblies in the described step 101, described step 102 also needs attributes such as position offset between the described plural control assembly are provided with, and every kind of situation is not given unnecessary details one by one herein.
Satisfy the control assembly that the display device interface requires in order to guarantee that step 101 can be obtained from the control assembly storehouse, the method to set up of the graphic user interface that present embodiment provides can also comprise the step of revising described control assembly storehouse.
The method to set up of the graphic user interface that the embodiment of the invention provides, can be according to the interface requirement of display device, from the control assembly storehouse that sets in advance, obtain control assembly, and be provided with by the attribute to described control assembly, generate and satisfy the graphic user interface that the display device interface requires.Compared with prior art, the graphic user interface that the technical scheme that adopts the embodiment of the invention to provide generates can satisfy the personalized style requirement of different display devices to graphic user interface.Because scu in the control assembly storehouse in advance, so when graphic user interface being set for different display devices, only need require to choose control assembly according to the interface, and the attribute of this control assembly is provided with, simple to operate, to generate the required code reuse of graphic user interface higher, solved the service load that prior art adopts the mode graphing user interface of picture point, setting-out, the problem that code reuse is low; The technical scheme that the embodiment of the invention provides only is provided with graphic user interface itself, the concrete application code of graphic user interface and display device is separated, having solved prior art adopts the mode of programming that graphic user interface is set, the concrete application code of the graphic user interface that make to generate and display device combines, and causes graphic user interface setting operation complicated problems.Owing to use control assembly, the most function of GUI, such as the focus between the space switch, button selected, forms refresh etc., and work all is that the GUI module is finished oneself, makes the programmer no longer be responsible for the maintenance work at interface, has guaranteed the stability of software.
With said method accordingly, as shown in Figure 2, the embodiment of the invention also provides a kind of setting device of graphic user interface, comprising:
Control assembly storehouse 201 is used for scu;
In the present embodiment, polytype control assembly can be stored in described control assembly storehouse 201, for example: list box that dialog box, the button with video display function, label, multirow show and page turning sign etc.; Wherein, the quantity of every kind of control assembly can be for more than one, for example: the button with video display function of a plurality of difformities (as circular, rectangle or triangle etc.) can be stored in described control assembly storehouse 201, perhaps stores list box that the multirow of a plurality of different sizes shows etc.;
Control assembly acquiring unit 202 is used for the interface requirement according to display device, obtains control assembly from the control assembly storehouse 201 that sets in advance;
Attribute is provided with unit 203, and the attribute that is used for control assembly that described control assembly acquiring unit 202 is obtained is provided with, and generates graphic user interface.
In the present embodiment, described attribute is provided with the size of the control assembly that unit 203 specifically can obtain control assembly acquiring unit 202 and color (background picture or background color) etc. and is provided with, for example: the control assembly that obtains when control assembly acquiring unit 202 be multirow show list box the time, attribute is provided with the size (OK/columns) of the list box that unit 203 can show this multirow, list box background picture or background color, the background picture of option or background color (comprising: choose in the list box, do not choose and choose by inferior), side-play amount in the list box between the respective option, list box page turning mode (by row or by page or leaf), scroll bar slide block background picture or background color are provided with in list box scroll bar arrow background picture or background color and the list box;
Described attribute is provided with unit 203 and can be provided with the control assembly attribute that described control assembly acquiring unit 202 obtains by dual mode: a kind of is to be provided with according to the attribute of the Provisioning Policy of storing in advance to described control assembly; Another kind is, the attribute of described control assembly is carried out self-defined setting.
Further, when described attribute was provided with unit 203 and according to the Provisioning Policy of storage in advance the attribute of described control assembly is provided with, as shown in Figure 3, described attribute was provided with unit 203 and can comprises:
Provisioning Policy storage unit 2031 is used to store Provisioning Policy; In the present embodiment, described attribute Provisioning Policy can be overall Provisioning Policy, also can be local Provisioning Policy;
Unit 2032 is set, is used for the Provisioning Policy stored in advance according to described Provisioning Policy storage unit 2031 attribute of described control assembly is provided with.
When the Provisioning Policy of described Provisioning Policy storage unit 2031 storages was global policies, the attribute that each control assembly that unit 2032 can obtain control assembly acquiring unit 202 according to this overall situation Provisioning Policy is set was provided with and generates GUI; When the Provisioning Policy of described Provisioning Policy storage unit 2031 storages is local Provisioning Policy, unit 2032 is set carries out the part setting according to some or a plurality of control assembly attributes that described Provisioning Policy obtains control assembly acquiring unit 202.
Further, when the attribute that the 203 pairs of described control assemblies in unit is set when described attribute carried out self-defined the setting, as shown in Figure 3, described attribute was provided with unit 203 and can comprises:
Attribute configuration information receiving element 2033 is used to receive the attribute configuration information;
Unit 2032 is set, is used for the attribute configuration information that receives according to described attribute configuration information receiving element 2033, the attribute of described control assembly is provided with.
In the present embodiment, described attribute is provided with unit 203 and can be provided with according to above-described any one mode or combination control assembly attribute that described control assembly acquiring unit 202 is obtained.
Further, satisfy the control assembly that the display device interface requires in order to guarantee that control assembly acquiring unit 202 can obtain from control assembly storehouse 201, as shown in Figure 2, the setting device of described graphic user interface can also comprise:
Revise unit 204, be used to revise described control assembly storehouse 201.
The setting device of the graphic user interface that the embodiment of the invention provides, can be according to the interface requirement of display device, from the control assembly storehouse that sets in advance, obtain control assembly, and be provided with by the attribute to described control assembly, generate and satisfy the graphic user interface that the display device interface requires.Compared with prior art, the graphic user interface that the technical scheme that adopts the embodiment of the invention to provide generates can satisfy the personalized style requirement of different display devices to graphic user interface.Because scu in the control assembly storehouse in advance, so when graphic user interface being set for different display devices, only need require to choose control assembly according to the interface, and the attribute of this control assembly is provided with, simple to operate, to generate the required code reuse of graphic user interface higher, solved the service load that prior art adopts the mode graphing user interface of picture point, setting-out, the problem that code reuse is low; The technical scheme that the embodiment of the invention provides only is provided with graphic user interface itself, the concrete application code of graphic user interface and display device is separated, having solved prior art adopts the mode of programming that graphic user interface is set, the concrete application code of the graphic user interface that make to generate and display device combines, and causes graphic user interface setting operation complicated problems.Owing to use control assembly, the most function of GUI, such as the focus between the space switch, button selected, forms refresh etc., and work all is that the GUI module is finished oneself, makes the programmer no longer be responsible for the maintenance work at interface, has guaranteed the stability of software.
The method to set up of the graphic user interface that the embodiment of the invention provides and device can be widely used in as mobile phone, game machine, hand-held video player, TV set-top box and be with on the display devices such as refrigerator, air-conditioning or water heater of Presentation Function.
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, as ROM/RAM, magnetic disc or CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection domain with claim.

Claims (10)

1, a kind of method to set up of graphic user interface is characterized in that, comprising:
According to the interface requirement of display device, from the control assembly storehouse that sets in advance, obtain control assembly;
Attribute to described control assembly is provided with, and generates graphic user interface.
2, the method to set up of graphic user interface according to claim 1 is characterized in that, described attribute setting to described control assembly comprises:
Be provided with according to the attribute of the Provisioning Policy of storing in advance described control assembly.
3, the method to set up of graphic user interface according to claim 1 is characterized in that, described attribute setting to described control assembly comprises:
Receive the attribute configuration information;
Be provided with according to the attribute of described attribute configuration information described control assembly.
According to the method to set up of the described graphic user interface of arbitrary claim in the claim 1 to 3, it is characterized in that 4, described attribute setting to described control assembly comprises:
Size and color to described control assembly are provided with.
5, the method to set up of graphic user interface according to claim 4 is characterized in that, described attribute to described control assembly is provided with also and comprises:
When having two above control assemblies, the position offset between the described control assembly is provided with.
6, the method to set up of graphic user interface according to claim 1 is characterized in that, also comprises: revise described control assembly storehouse.
7, a kind of setting device of graphic user interface is characterized in that, comprising:
The control assembly storehouse is used for scu;
The control assembly acquiring unit is used for the interface requirement according to display device, obtains control assembly from the control assembly storehouse that sets in advance;
Attribute is provided with the unit, and the attribute that is used for control assembly that described control assembly acquiring unit is obtained is provided with, and generates graphic user interface.
8, the setting device of graphic user interface according to claim 7 is characterized in that, described attribute is provided with the unit and comprises:
The Provisioning Policy storage unit is used to store Provisioning Policy;
The unit is set, is used for the Provisioning Policy stored in advance according to described Provisioning Policy storage unit the attribute of described control assembly is provided with.
According to the setting device of claim 7 or 8 described graphic user interfaces, it is characterized in that 9, described attribute is provided with the unit and comprises:
Attribute configuration information receiving element is used to receive the attribute configuration information;
The unit is set, is used for the attribute configuration information that receives according to described attribute configuration information receiving element, the attribute of described control assembly is provided with.
10, the setting device of graphic user interface according to claim 7 is characterized in that, also comprises:
Revise the unit, be used to revise described control assembly storehouse.
CNA2008101792036A 2008-11-27 2008-11-27 Method and apparatus for setting graphical user interface Pending CN101414259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101792036A CN101414259A (en) 2008-11-27 2008-11-27 Method and apparatus for setting graphical user interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101792036A CN101414259A (en) 2008-11-27 2008-11-27 Method and apparatus for setting graphical user interface

Publications (1)

Publication Number Publication Date
CN101414259A true CN101414259A (en) 2009-04-22

Family

ID=40594800

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101792036A Pending CN101414259A (en) 2008-11-27 2008-11-27 Method and apparatus for setting graphical user interface

Country Status (1)

Country Link
CN (1) CN101414259A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004646A (en) * 2010-12-24 2011-04-06 青岛海信信芯科技有限公司 Method, device and multimedia terminal for processing user interface (UI) of on screen display (OSD)
WO2012024968A1 (en) * 2010-08-25 2012-03-01 中兴通讯股份有限公司 Method and device for managing applications of mobile terminal
CN103019723A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Construction method of software framework
CN104423808A (en) * 2013-08-27 2015-03-18 腾讯科技(深圳)有限公司 List display method and device
CN104978195A (en) * 2015-06-26 2015-10-14 浪潮软件集团有限公司 Interface configuration device and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012024968A1 (en) * 2010-08-25 2012-03-01 中兴通讯股份有限公司 Method and device for managing applications of mobile terminal
CN102004646A (en) * 2010-12-24 2011-04-06 青岛海信信芯科技有限公司 Method, device and multimedia terminal for processing user interface (UI) of on screen display (OSD)
CN103019723A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Construction method of software framework
CN104423808A (en) * 2013-08-27 2015-03-18 腾讯科技(深圳)有限公司 List display method and device
CN104423808B (en) * 2013-08-27 2019-01-11 腾讯科技(深圳)有限公司 A kind of display methods and device of list
CN104978195A (en) * 2015-06-26 2015-10-14 浪潮软件集团有限公司 Interface configuration device and method

Similar Documents

Publication Publication Date Title
CN103793134A (en) Touch screen terminal and multi-interface switching method thereof
KR101076974B1 (en) Method for generating an interactive menu
CN104216752A (en) Window-based information loading method and device
RU2006125118A (en) MEMORABLE MEDIA CONTAINING A STREAM OF INTERACTIVE GRAPHICS AND A DEVICE FOR ITS PLAYBACK
CN101414259A (en) Method and apparatus for setting graphical user interface
CN105677265A (en) Display method and terminal
CN105760038A (en) Multi-window display method and device
CN104184904A (en) Mobile phone screen recording method allowing user to define recording region
CN105992005A (en) Video decoding method and device and terminal device
RU2013111822A (en) METHOD AND DEVICE FOR MANAGING UPDATES
CN104363505A (en) Method and device for displaying playing interface
CN103019781A (en) Rapid skin changing method based on Android system
CN111901832B (en) Wireless screen projection module and screen projection method of all-in-one machine
CN102945146A (en) Display method and system for help information of projector equipment
US20110173550A1 (en) Data driven user interface animation
KR20160006545A (en) System and method for controlling a divided screen independently through mapping with an input device
CN109104628B (en) Focus foreground generation method, storage medium, device and system of android television
US8917356B2 (en) Play control system and method
CN103561289A (en) Interface configuration method and device
CN105100862A (en) Grid movement display processing method and grid movement display processing system
CN101377922A (en) Method for generating and displaying OSD
WO2010087132A1 (en) State display device and method for display in state display device
KR101437090B1 (en) Apparatus and methode for displaying secondary window and recording medium having secondary window displaying program
CN103051967A (en) Method and system for guiding user to carry out function configuration of smart television
KR102092156B1 (en) Encoding method for image using display device

Legal Events

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

Open date: 20090422