CN1275145C - Graphic interface development method of application program - Google Patents

Graphic interface development method of application program Download PDF

Info

Publication number
CN1275145C
CN1275145C CN 03100700 CN03100700A CN1275145C CN 1275145 C CN1275145 C CN 1275145C CN 03100700 CN03100700 CN 03100700 CN 03100700 A CN03100700 A CN 03100700A CN 1275145 C CN1275145 C CN 1275145C
Authority
CN
China
Prior art keywords
application program
file
development method
forms
graphical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 03100700
Other languages
Chinese (zh)
Other versions
CN1517859A (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.)
Inventec Corp
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CN 03100700 priority Critical patent/CN1275145C/en
Publication of CN1517859A publication Critical patent/CN1517859A/en
Application granted granted Critical
Publication of CN1275145C publication Critical patent/CN1275145C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to a graphic interface development method of an application program. An object describing file and a resource describing file corresponding to a window body are determined according to the established window body. Besides, the corresponding graphs are read into a memory. The corresponding graphs are invoked by the current state of calculating objects and displayed on a specified position. The present invention reduces the storage capacity occupied by the application program self. In addition, the present invention can realize self-adapting resolution and simultaneously sort graphic resources, and thus, the present invention can achieve the purpose of changing skin in the running process.

Description

The graphical interfaces development method of application program
Technical field
The present invention relates to a kind of interface development method, relate in particular to a kind of development approach of graphical interfaces of application program.
Background technology
Graphic user interface (Graphics User Interface), be called for short GUI, use the mode of figure, by standard interface element and mouse actions such as menu, buttons, help the user to send instruction to computer system easily, activation manipulation, and the result that system is moved is shown to the user with graphics mode equally.Graphical user interface is lively, simple to operate, and the user must remember the trouble of various command when having saved the use textual interface, has become the set standard of present nearly all application software.
Graphical interfaces has been the main means of man-machine interaction in the modern software.In the exploitation of known application programs graphical interfaces, develop all the neither one standard and method in common for graphical interfaces, the developer needs to write out quite tediously long program code usually.Qt storehouse with the exploitation of the Troll Tech company of Norway is an example, generates a pattern button on its basis, and required basic operational steps comprises: see also Fig. 1, at first, set up button and show required forms (step 111); Then picture to display is read in internal memory (step 112); The state current according to button shows required picture (step 113); When operating, the user calculates the new state (step 114) of button; According to the button required picture (step 115) of new state demonstration of this moment.
Use the graphical interfaces that said method comes developing application, for the graphical object of complexity, the complexity of the work that do well imagines that tediously long program code makes application program itself also take most storage space.And all just finish when design the object size of Application Program Interface and position, and interface display whole pattern style also is fixing and single, can not carry out conversion according to user's needs.When application program operated in the various different resolution of operating system, its display effect can not change along with the change of resolution, when user's operating environment and custom and design environment have difference, can seriously influence the outward appearance at interface.
Summary of the invention
Technical matters to be solved by this invention is for providing a kind of graphical interfaces development method of application program, the dirigibility of INTERFACE DESIGN is increased greatly, reduced the shared memory capacity of application program itself, the different resolution that can adapt to operating system can also change look ﹠ feel as required in operational process.
For achieving the above object, the invention provides a kind of graphical interfaces development method of application program, at first set up object factory library and resource description library; Create forms in the program run, determine the object factory file and the resource description file of forms correspondence; Then, according to the graphical information in the resource description file, graph of a correspondence is read in internal memory; According to the object properties in the object factory file, create all objects again; Calculate the current state of all objects, and, determine its graphical content parameter according to current state; At last, according to the graphical content parameter, access corresponding figure, and it is presented on the assigned address.
Application graphical interface development method provided by the present invention increases the dirigibility of window interfaces design greatly, has reduced the shared memory capacity of application program itself.Can also change the display position and size of all objects on the interface according to the difference of operating system resolution.The graphical interfaces that adopting said method develops can also change interface integral body style, the number and the kind of change object, and the position of change object and size, change language etc. make the interface of application program have more sight and practicality.
For making purpose of the present invention, structural attitude and function thereof that further understanding be arranged, conjunction with figs. is described in detail as follows:
Description of drawings
Fig. 1 is the process flow diagram of known graphical interfaces development method;
Fig. 2 is an application graphical interface development method process flow diagram provided by the present invention;
Fig. 3 is the process flow diagram of adaptive resolution among the present invention; And
Fig. 4 changes the skin process flow diagram in the program run among the present invention.
Wherein, description of reference numerals is as follows:
Step 111--sets up button and shows required forms, step 112--reads in internal memory with picture to display, step 113--shows required picture according to the current state of button, step 114--calculates the new state of button when the user operates, step 115--shows required picture according to the new state of button this moment, step 211--sets up object factory library and resource description library, step 212--creates forms, determine the object factory file and the resource description file of forms correspondence, step 213--is according to the graphical information in the resource description file, graph of a correspondence is read in internal memory, step 214--is according to the object properties in the object factory file, create all objects, step 215--calculates the current state of all objects, and according to current state, determine its graphical content parameter, step 216--is according to the graphical content parameter, access corresponding figure, and it is presented on the assigned address, step 311--detects the resolution of current operation system, the conversion of resolution coefficient of step 312--initialization forms, step 313--reads the given resolution of forms, step 314--calculates the conversion coefficient between given resolution and the current operation system resolution, step 315--is according to conversion coefficient, calculate the coordinate figure of object in the forms, step 411--hides all forms and all objects of current existence, the corresponding current form of step 412--, find purpose framework (frame) number specified object factory file and resource description file, step 413--is according to the existing object properties of the object factory file amendment of purpose frame number, step 414--reads in internal memory according to the graphical information of resource description file with corresponding figure.
Embodiment
The present invention is described in detail below in conjunction with accompanying drawing.
Before application program brought into operation, the developer needed the shown graphical interfaces of application programs to design usually.Application graphical interface development method provided by the invention sees also Fig. 2.At first, set up object factory library and resource description library (step 211); Create forms (Form), determine the object factory file and the resource description file (step 212) of forms correspondence; According to the graphical information in the resource description file, graph of a correspondence is read in internal memory (step 213) then; According to the object properties in the object factory file, create all objects (step 214) again; Calculate the current state of all objects, and, determine its graphical content parameter (step 215) according to current state; At last, according to the graphical content parameter, access corresponding figure, and it is presented at (step 216) on the assigned address.
Graphical for graphical interfaces is supported comprehensively, present embodiment is encapsulated as following program class with implementation procedure:
Graphic resource class (CPResImage): such represents each actual graphic file, and such reads in graphic file internal memory and according to display parameter it is presented at assigned address by the specified file name.
Object medium class (CPMediaList): such is an object and being connected of resource, and it is writing down in the object demand to required display graphics.
Basic object class (CPObject): be each base unit that can be used as demonstration in the interface.
Basic forms class (CPForm): be the interface that one group of basic object is formed, each forms correspondence a unique object factory file and resource description file.
After having finished the encapsulation to the program class, application designer also will be created the configuration file that the interface is described.Configuration file comprises object factory library of being made up of the object factory file and the resource description library of being made up of the resource description file.Wherein, each can be used as the base unit of demonstration in the graphic user interface to liking, its the inside no longer comprises other composition, its effect is to finish once mutual with the user, comprise an order accepting the user, accept user's a text input, show one a section text or a figure etc. to the user.The object factory file is an attribute of describing all objects in the graphical interfaces, as: the display position of object, show size, as shown in the content etc. of pattern.The resource description file is to describe all graphic files of using in the graphical interfaces.
When application program need be created forms, find out corresponding resource description file and object factory file according to the title of forms, listed the shown graphical information of these forms in the resource description file.From the resource description file, obtain the filename of all graphic files that Application Program Interface will use, and will its numbering, read in internal memory after the grouping.The object properties of these forms have been described in the object factory file.Just can create all objects according to the object properties that write down in the corresponding object factory file.The object factory file is connected by the medium class with the resource description file, and the medium class is writing down the demand of required display graphics in the object.When a certain object is refreshed, check at first whether this object has the medium class, if there is not the medium class in the object, description object does not need content displayed, then withdraws from refresh process.If object has the medium class, then go out the figure and the medium corresponding sequence number of required demonstration according to the current state computation of object, with medium sequence number, object display device, graphic file numbering, the source region that shows and purpose zone etc., giving the medium class as the graphical content parameter handles, the medium class is the required parameter of graphic resource class through calculating the graphical content parameter modification that will import into, and hands over its processing.The graphic resource class by designated parameters with graphic presentation on designated equipment.At last, close forms, the release profiles resource.
According to method provided by the present invention, but adaptive resolution.See also Fig. 3, when program brings into operation, at first detect the resolution (step 311) of current operation system; The conversion of resolution coefficient (step 312) of initialization forms; Read the given resolution (step 313) of forms; Conversion coefficient (step 314) between the resolution of calculating given resolution and current operation system; According to conversion coefficient, calculate the coordinate figure (step 315) of object in the forms.
In said process, detect the display resolution of current operation system, and count ResolutionX and ResolutionY.When creating a certain forms, initialization forms resolution coefficient FactorX and FactorY are respectively 1, read the given resolution of forms then, calculate the conversion coefficient between given resolution and the current resolution, and specific practice is:
Read the given resolution FormWidth and the FormHeight of forms, then, the conversion of resolution coefficient of forms is: FactorX=ResolutionX/FormWidth
FactorY=ResolutionY/FormHeight
If forms do not have appointment resolution, then FormWidth and FormHeight equal the display resolution ResolutionX and the ResolutionY of current operation system respectively.During object in creating forms, the displaing coordinate of each object is recomputated through the conversion of resolution coefficient, the newer coordinate of object after according to conversion shown.
Peculiar program outward appearance is enough to influence user's selection.Have the close friend and be rich in the software of the user interface of individual character, often have stronger function again.Graphical interfaces development method provided by the invention changes skin in the time of can also being implemented in the application program operation.Changing skin just makes the interface can change display styles, language version etc.Above-mentioned file to all graphic files is numbered, divides into groups exactly in order to make this method can change skin when application program is moved.See also Fig. 4, Fig. 4 changes the skin process flow diagram in the program run among the present invention.At first, hide all forms and all objects (step 411) of current existence; Corresponding current form finds specified object factory file of purpose frame number and resource description file (step 412); Have the attribute (step 413) of object now according to the object factory file amendment of purpose frame number; According to the graphical information of resource description file, corresponding figure is read in internal memory (step 414).
Application developer need show that with Application Program Interface the graphic file of usefulness is divided into different groups according to type, and each consists of a cover framework, corresponding frame number.Every suit framework has been represented different display styles, language version etc.Before application program activates, the sequence number of shown framework this moment can be specified, in operational process, the interface of application program can be changed at any time by the interface of input frame number.Take out resource description file and object factory file that the purpose frame number is indicated, if current frame number is different with the purpose frame number, then take out forms of current existence, hide forms and subobject thereof, take out an object in the forms then, if object is present in the purpose frame number object factory file, then change the attribute of object.If object not in the description document of purpose frame number, then new object according to the object factory document creation of purpose frame number.Up to having finished all objects in the forms all behind the Alternative Attribute, through refresh process, the medium class is a graphic resource class desired parameters through calculating the parameter modification that will import into, calls corresponding graphic presentation on assigned address, has promptly finished the skin work of changing of whole interface.
The above only is preferred embodiment of the present invention, but is not to be used for limiting practical range of the present invention; Therefore the present invention's claim scope required for protection should be applied for that the claim of protecting is as the criterion with claims.

Claims (12)

1. the graphical interfaces development method of an application program is characterized in that comprising the steps:
Set up object factory library and resource description library;
Create forms, determine the object factory file and the resource description file of forms correspondence;
According to the graphical information in the resource description file, graph of a correspondence is read in internal memory;
According to the object properties in the object factory file, create all objects;
Calculate the current state of all objects, and, determine its graphical content parameter according to current state; And
According to the graphical content parameter, access corresponding figure, and it is presented on the assigned address.
2. the graphical interfaces development method of application program according to claim 1 is characterized in that, determines the step of the object factory file and the resource description file of forms correspondence, determines according to the forms title.
3. the graphical interfaces development method of application program according to claim 1 is characterized in that, object properties comprise object display position, show size, shown graphical content.
4. the graphical interfaces development method of application program according to claim 1 is characterized in that the graphical content parameter comprises graphic file numbering, graphic presentation purpose zone, graphic presentation source region.
5. the graphical interfaces development method of application program according to claim 1 is characterized in that the state that object is current also comprises adaptive resolution.
6. as the graphical interfaces development method of application program as described in the claim 5, it is characterized in that adaptive resolution also comprises the steps:
Detect the resolution of current operation system;
The conversion of resolution coefficient of initialization forms;
Read the given resolution of forms;
Conversion coefficient between the resolution of calculating given resolution and current operation system; And
According to conversion coefficient, calculate the coordinate figure of object in the forms.
7. as the graphical interfaces development method of application program as described in the claim 6, it is characterized in that the conversion of resolution coefficient is the given resolution of current operation system resolution divided by forms.
8. the graphical interfaces development method of application program according to claim 1, it is characterized in that, according to the graphical information in the resource description file, required figure is read in the step of internal memory, be the filename of from the resource description file, obtaining all figures, and read in internal memory after it is numbered in certain sequence, divides into groups.
9. as the graphical interfaces development method of application program as described in the claim 8, it is characterized in that, the filename of all figures be numbered in certain sequence, divide into groups that change skin when operation, each block graphics file constitutes a cover framework, and corresponding frame number.
10. as the graphical interfaces development method of application program as described in the claim 9, it is characterized in that, change skin during operation, also comprise the steps:
Hide all forms and all objects of current existence;
Corresponding current form finds specified object factory file of purpose frame number and resource description file;
Have the attribute of object now according to the object factory file amendment of purpose frame number; And
According to the graphical information of resource description file, corresponding figure is read in internal memory.
11. the graphical interfaces development method as application program as described in the claim 10 is characterized in that, the step according to the attribute of the existing object of object factory file amendment of purpose frame number also comprises the object new according to the object factory document creation of purpose frame number.
12. the graphical interfaces development method as application program as described in the claim 9 is characterized in that every suit framework is corresponding to different display styles, the language version of application program.
CN 03100700 2003-01-17 2003-01-17 Graphic interface development method of application program Expired - Fee Related CN1275145C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03100700 CN1275145C (en) 2003-01-17 2003-01-17 Graphic interface development method of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03100700 CN1275145C (en) 2003-01-17 2003-01-17 Graphic interface development method of application program

Publications (2)

Publication Number Publication Date
CN1517859A CN1517859A (en) 2004-08-04
CN1275145C true CN1275145C (en) 2006-09-13

Family

ID=34281275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03100700 Expired - Fee Related CN1275145C (en) 2003-01-17 2003-01-17 Graphic interface development method of application program

Country Status (1)

Country Link
CN (1) CN1275145C (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048408A (en) * 2004-08-05 2006-02-16 Obic Business Consultants Ltd Input and output screen creation system, input and output screen creation method and business processing system
CN100363879C (en) * 2004-09-28 2008-01-23 宏碁股份有限公司 Computer executable shortcut menu system and operation method thereof
CN100405293C (en) * 2006-06-29 2008-07-23 中国电子科技集团公司第三十研究所 Dot matrix graphic interface development method
US7908588B2 (en) 2006-12-18 2011-03-15 International Business Machines Corporation Program presentation with reviewer feedback maintenance
CN100456239C (en) * 2007-08-28 2009-01-28 中国科学院软件研究所 Multiple language self-adapting method of graphical user interface
CN101187870B (en) * 2007-10-18 2011-11-09 金蝶软件(中国)有限公司 Software system interface picture management method
US10248438B2 (en) * 2009-09-17 2019-04-02 Fluffy Spider Technologies Pty. Ltd. System and methods for a run time configurable user interface controller
CN102270109B (en) * 2011-08-23 2014-04-02 上海网达软件股份有限公司 Self-converting method and system for user interfaces with different resolutions
CN102591662B (en) * 2011-12-30 2014-08-27 深圳万兴信息科技股份有限公司 Method and device for drawing skin picture
CN102650946B (en) * 2012-03-22 2015-04-01 杭州梵艺科技有限公司 Method for loading and displaying graphical interface at hand-held terminal
CN103488512B (en) * 2013-09-29 2017-06-20 广州创维平面显示科技有限公司 program interface display processing method and device
CN103605506B (en) * 2013-10-30 2016-08-24 南通同洲电子有限责任公司 The display packing of a kind of graphical user interface resource and terminal
CN106155669B (en) * 2015-04-18 2019-04-05 成都复晓科技有限公司 A kind of characteristic parameter matching method of software interface and macrolanguage
WO2017069551A1 (en) 2015-10-23 2017-04-27 Samsung Electronics Co., Ltd. Image displaying apparatus and method of operating the same
CN105278811B (en) * 2015-10-23 2022-06-07 三星电子(中国)研发中心 Screen display device and method of intelligent terminal

Also Published As

Publication number Publication date
CN1517859A (en) 2004-08-04

Similar Documents

Publication Publication Date Title
CN1275145C (en) Graphic interface development method of application program
RU2371758C2 (en) Programming interface for computer platform
US8689121B2 (en) System and method for management of controls in a graphical user interface
US5485600A (en) Computer modelling system and method for specifying the behavior of graphical operator interfaces
US8130226B2 (en) Framework for graphics animation and compositing operations
US20110258534A1 (en) Declarative definition of complex user interface state changes
Gosling et al. The NeWS book: an introduction to the network/extensible window system
US20030067497A1 (en) Method and device for modifying a pre-existing graphical user interface
US20060117267A1 (en) System and method for property-based focus navigation in a user interface
JPH06208448A (en) Method for supplying set-browser having browser item to application and computer control display device therefor
US20030081007A1 (en) Object oriented explorer type environment
US7603624B2 (en) System and method for styling content in a graphical user interface control
WO1995004961A1 (en) Cursor manipulation system and method
US20170017464A1 (en) Layered contextual configuration management system and method and minimized input speech recognition user interface interactions experience
US7627832B2 (en) Dynamically placing resources within a graphical user interface
US20170352174A1 (en) Method and system for visual data management
US7447993B2 (en) System and method for displaying a user interface object using an associated style
TW201009685A (en) Program object properties defined by object space
CN102023805A (en) Method for assisting in browsing text messages on software interface
Andujar et al. A cost-effective approach for developing application-control GUIs for virtual environments
Levy et al. IUP/LED: a portable user interface development tool
CN102253841B (en) Small-scale graphical user interface system
US20030007004A1 (en) Differentiating dialog box boundaries by implementing reserved colors
US20110320970A1 (en) Method And System For Controlling A User Interface Of A Software Application
McDonald Pro WPF: Windows Presentation Foundation in. NET 3.0

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: 20060913

Termination date: 20110117