Summary of the invention
To solve the above-mentioned problems at least one, the application provide a kind of television interfaces operating setting method, system, electricitySub- equipment and readable medium.
First aspect present invention embodiment provides a kind of television interfaces operating setting method, comprising:
The first order menu interface for having network and Level-2 menu interface are provided;Wherein the two hierarchical levels of menus interface is equalIncluding several control buttons, each control button is arranged on one of crosspoint of grid;
For each control button in first order menu interface, multiple menu management action events are set;
For each control button in Level-2 menu interface, multiple focus item Object Operations events are set;
Wherein the menu management action event is the event of each button options on actions menu interface, the focusItem Object Operations event is the customized event of each case configuration.
In certain embodiments, the menu management action event includes: direction key events, returns to key events, leaves thingPart, menu key events and determining key events.
In certain embodiments, the focus item Object Operations event includes: direction key events, returns to key events, leavesEvent, menu key events and determining key events and customized animation event.
In certain embodiments, the customized animation event includes:
Button amplification special efficacy event chooses switching animation effect event, button flash of light special efficacy event, frame is chosen to follow shiftingIt moves to current location event.
In certain embodiments, further includes:
The key assignments and the menu management action event and focus item Object Operations event of the key of one remote controler are setCorresponding relationship.
Second aspect of the present invention embodiment provides a kind of television interfaces operation setting system, comprising:
Menu interface provides module, provides the first order menu interface with network and Level-2 menu interface;ItsIn the two hierarchical levels of menus interface include several control buttons, each control button is arranged on one of crosspoint of grid;
First setup module is that multiple menu managements operation things are arranged in each control button in first order menu interfacePart;
Second setup module is that multiple focus item Object Operations things are arranged in each control button in Level-2 menu interfacePart;
Wherein the menu management action event is the event of each button options on actions menu interface, the focusItem Object Operations event is the customized event of each case configuration.
In certain embodiments, the menu management action event includes: direction key events, returns to key events, leaves thingPart, menu key events and determining key events.
In certain embodiments, the focus item Object Operations event includes: direction key events, returns to key events, leavesEvent, menu key events and determining key events and customized animation event.
In certain embodiments, the customized animation event includes:
Button amplification special efficacy event chooses switching animation effect event, button flash of light special efficacy event, frame is chosen to follow shiftingIt moves to current location event.
In certain embodiments, further includes:
Key assignments corresponding relationship setup module, be arranged a remote controler key key assignments and the menu management action event andThe corresponding relationship of focus item Object Operations event.
The third aspect, the application provides a kind of electronic equipment, including memory, processor and storage are on a memory and canThe step of computer program run on a processor, the processor realizes above-mentioned method when executing described program.
Fourth aspect, the application provide a kind of computer readable storage medium, are stored thereon with computer program, the calculatingMachine program realizes the step of above-mentioned method when being executed by processor.
As shown from the above technical solution, the application provide a kind of television interfaces operating setting method, system, electronic equipment andReadable medium has the advantages that
1, separate focus button control logic and showing interface function, the display that developer will be allowed more to be concerned about interface itselfLogic and function are realized, without spending too many thought in remote controller operation setting.
2, unified object of focus management allows the coupling between each assembly module to reduce, it is easier to develop high qualityComponent code.
3, the scalability of whole project is promoted, maintenance difficulties are reduced.
4, at the same operating environment and development Experience based on television, the method that several sets provided quickly generate interface focusAnd open attribute modification, improve development efficiency and flexibility.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present applicationIn attached drawing, technical solutions in the embodiments of the present application carries out clear, complete description, it is clear that described embodiment isSome embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the artEvery other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
In order to reduce the adaptation complexity during interface development, cumbersome interface focus button logic exploitation generation is reducedCode;Focus button control logic and showing interface function are separated, the degree of coupling between interface assembly is reduced, reduces maintenance difficulties;To promote project quality and development efficiency.
The present invention provides a kind of television interfaces operating setting method, as shown in Figure 1, comprising:
S100: the first order menu interface with network and Level-2 menu interface are provided;The wherein two hierarchical levels of menusInterface includes several control buttons, and each control button is arranged on one of crosspoint of grid;
S200: multiple menu management action events are set for each control button in first order menu interface;
S300: multiple focus item Object Operations events are set for each control button in Level-2 menu interface;
Wherein the menu management action event is the event of each button options on actions menu interface, the focusItem Object Operations event is the customized event of each case configuration.
Wherein Level-2 menu interface is the sub-interface of first order menu interface, i.e. junior interface.First order menu interfaceIn each control button be menu management object, each control button is focus item object in Level-2 menu interface.
A kind of television interfaces operating setting method that present aspect provides has the advantages that
1, separate focus button control logic and showing interface function, the display that developer will be allowed more to be concerned about interface itselfLogic and function are realized, without spending too many thought in remote controller operation setting.
2, unified object of focus management allows the coupling between each assembly module to reduce, it is easier to develop high qualityComponent code.
3, the scalability of whole project is promoted, maintenance difficulties are reduced.
4, at the same operating environment and development Experience based on television, the method that several sets provided quickly generate interface focusAnd open attribute modification, improve development efficiency and flexibility.
In one embodiment, the menu management action event includes: direction key events, returns to key events, leavesEvent, menu key events and determining key events.The focus item Object Operations event includes: direction key events, return key thingPart leaves event, menu key events and determines key events and customized animation event.
Further, the customized animation event includes:
Button amplification special efficacy event chooses switching animation effect event, button flash of light special efficacy event, frame is chosen to follow shiftingIt moves to current location event.
In addition, in a preferred embodiment, the method also includes:
S400: the key assignments and the menu management action event and focus item Object Operations thing of the key of one remote controler of settingThe corresponding relationship of part.
Fig. 2 shows the flow diagrams of one concrete application scene of the application.Separation focus button control is shown in Fig. 2Logic and showing interface function, wherein focus button control logic is responsible for by menu management object, the event package being arranged on buttonIncluding the action event of four direction, push button exciting up and down chooses action event, key to leave action event, key click behaviourMake event and interface returns to action event.
Fig. 3 shows the structural schematic diagram of network, and menu management object is in the way of the chessboard of two-dimensional array, to boundaryThe button of face or component carries out the chess piece layout of X-axis and Y-axis, can infinitely extend to the outside.Circle represents the button in layout.This setsMeter can be automatically found on adjacent nearest focus button for each focus button.
Fig. 4 a shows the expansion relation schematic diagram between each menu management object and focus item object, and Fig. 4 b is shownThe foundation structure schematic diagram of menu management object, Fig. 4 c show the foundation structure schematic diagram of focus item object.It could be aware that, schemeIn focus item object be in the form of expansible two-dimensional array save.Each menu management object can execute addition button key prisonControl action event, global menu key events, creation event destruction event, activation event, global confirmation key events, global directionkeysEvent, global focus choose event, global return key events and global focus to leave event.Each focus item object can be heldLine direction key events, quick creation module focus event, return to key events, confirmation key events, customized animation at menu key eventsPerformance event, focus leave event and focus chooses event.
Fig. 5 shows a kind of example for finding other focus item logical algorithms downwards, menu management object " directionkeys thingIn part, customized special event is supported, default is the next switching of algorithm Automatic-searching " focus item according to certain rulesObject ".Next focus algorithm is found, during finding downwards, if looked for forward without Focus priority, then is looked for backward, untilFind available focus item.The logical algorithm in other directions that can similarly push away.After getting available focus item with algorithm, fromIt is dynamic to execute focus switching method, it will that successively triggers former focus item leaves event, leave animation, and new focus item chooses thingPart chooses animation.Here animation effect oneself can finish writing a few set templates and voluntarily call in advance, can also oneself in the side of extensionCustom writing in method event, with reference to Fig. 6.That supports here can customize particular orientation key events, for example user is not necessarily intended toDownward switching push button may only realize the feature operation of some down key.
" focus item object " can bind the button in interface, carry out that the special efficacy for leaving animation is chosen to show, binding interface is pressedJust it is enough for the thing that can be done after button, such as location of pixels and size for obtaining focus etc..
In the scene, operating environment and development Experience based on television provide some common templates, quickly develop boundaryThe variation of background color is chosen in face, such as switching, scales the variation of size, frame follows mobile variation, chooses substitution pictureDisplaying etc., can also oneself in method event, edit animation effect
And it is the variation of flexible adaptation demand, " focus item object " also provides the key-press event of oneself simultaneously, such as4 direction key events up and down determine key events, and selected, and leave the event chosen
In a preferred embodiment, " menu supervisory control desk object ", for capturing button value, and unified compatibility is all kinds ofThe button value of type remote controler is converted, and is transferred to the currently active " menu management object ", and trigger corresponding event, thanAs up and down, confirm, returns." menu supervisory control desk object " also needs to protect in not stopping changing interface activation operation simultaneouslyIt deposits the currently active " menu management object ", after related object introducing finishes, starts quick development interface, created in interface" menu management object ", input maximum row maximum column, can also later period dynamic generation, then further according to the button cloth of current interfaceOffice inputs X value by chessboard pendulum chess mode, and Y value carries out putting generation " focus item object ", and " focus item object " is bundled with boundary at this timeButton layout in face.Addition is activated after finishing and be arranged current default chooses " focus item object " X value, Y value.LetterSingle layout can be completed." menu management object " is transmitted in " menu supervisory control desk object " capture key assignments and is triggered up and downKey-press event and can obtain automatically and should currently choose " focus item object " " menu management object ", and according to the boundary of bindingFace button carries out simple zoom operations, and expression has been chosen, and chooses the special efficacy left.It is not desired to be used with special efficacy is scaledOther special efficacys or customized special efficacy in template.Developer can be in " menu management object " or " focus item object "In other events, the function of originally finishing writing, such as determination key, return key, Menu key etc. are set.
In the present embodiment, developer can be carried out the programming of modularization, and each component creates " a menu management pairAs ", or it is incoming one " menu management object " shared, the push-botton operation logical course of oneself is got well in management.Then draw in interfaceAfter entering each component, needing the enterprising line activating of component " menu management object " switched and the position chosen be arranged (to defaultAll it is in upper left corner origin 0,0), it is equally very applicable if necessary to develop the interface of not button layout." menu management object "Operation button event, directly write logic function, eliminate obtain key assignments the step of.
Based on the same technical idea, the application second aspect embodiment provides a kind of television interfaces operation setting system,As shown in fig. 7, comprises:
Menu interface provides module 100, provides the first order menu interface with network and Level-2 menu interface;Wherein the two hierarchical levels of menus interface includes several control buttons, and one of crosspoint of grid is arranged in each control buttonOn;
First setup module 200 is that multiple menu management operations are arranged in each control button in first order menu interfaceEvent;
Second setup module 300 is that multiple focus item Object Operations are arranged in each control button in Level-2 menu interfaceEvent;
Wherein the menu management action event is the event of each button options on actions menu interface, the focusItem Object Operations event is the customized event of each case configuration.
Based on identical reason, a kind of television interfaces operation setting system that present aspect provides is had the advantages that
1, separate focus button control logic and showing interface function, the display that developer will be allowed more to be concerned about interface itselfLogic and function are realized, without spending too many thought in remote controller operation setting.
2, unified object of focus management allows the coupling between each assembly module to reduce, it is easier to develop high qualityComponent code.
3, the scalability of whole project is promoted, maintenance difficulties are reduced.
4, at the same operating environment and development Experience based on television, the method that several sets provided quickly generate interface focusAnd open attribute modification, improve development efficiency and flexibility.
In one embodiment, the menu management action event includes: direction key events, returns to key events, leavesEvent, menu key events and determining key events.The focus item Object Operations event includes: direction key events, return key thingPart leaves event, menu key events and determines key events and customized animation event.
Further, the customized animation event includes:
Button amplification special efficacy event chooses switching animation effect event, button flash of light special efficacy event, frame is chosen to follow shiftingIt moves to current location event.
Preferably, the system further include:
Key assignments corresponding relationship setup module, be arranged a remote controler key key assignments and the menu management action event andThe corresponding relationship of focus item Object Operations event.
Embodiments herein also provides in the television interfaces operating setting method that can be realized in above-described embodiment allThe specific embodiment of a kind of electronic equipment of step, referring to Fig. 8, the electronic equipment specifically includes following content:
Processor (processor) 601, memory (memory) 602, communication interface (CommunicationsInterface) 603 and bus 604;
Wherein, the processor 601, memory 602, communication interface 603 complete mutual lead to by the bus 604Letter;
The processor 601 is used to call the computer program in the memory 602, and the processor executes the meterThe Overall Steps in the television interfaces operating setting method in above-described embodiment are realized when calculation machine program, for example, the processorFollowing step is realized when executing the computer program:
S100: the first order menu interface with network and Level-2 menu interface are provided;The wherein two hierarchical levels of menusInterface includes several control buttons, and each control button is arranged on one of crosspoint of grid;
S200: multiple menu management action events are set for each control button in first order menu interface;
S300: multiple focus item Object Operations events are set for each control button in Level-2 menu interface;
Based on identical inventive concept, electronic equipment provided by the present application has the technology of the above method or system accordinglyEffect, details are not described herein again.
Embodiments herein also provides in the television interfaces operating setting method that can be realized in above-described embodiment allA kind of computer readable storage medium of step is stored with computer program on the computer readable storage medium, the calculatingMachine program realizes the Overall Steps of the television interfaces operating setting method in above-described embodiment when being executed by processor, for example, instituteIt states when processor executes the computer program and realizes following step:
S100: the first order menu interface with network and Level-2 menu interface are provided;The wherein two hierarchical levels of menusInterface includes several control buttons, and each control button is arranged on one of crosspoint of grid;
S200: multiple menu management action events are set for each control button in first order menu interface;
S300: multiple focus item Object Operations events are set for each control button in Level-2 menu interface;
Based on identical inventive concept, readable medium provided by the present application has the technology of the above method or system accordinglyEffect, details are not described herein again.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodimentDividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for hardware+For program class embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to sideThe part of method embodiment illustrates.Although this specification embodiment provides the operation of the method as described in embodiment or flow chartStep, but may include more or less operating procedure based on conventional or without creativeness means.It is enumerated in embodimentThe step of sequence be only one of numerous step execution sequence mode, do not represent and unique execute sequence.In practiceIt, can be according to embodiment or the execution of method shown in the drawings sequence or parallel execution (example when device or end product executeSuch as parallel processor or the environment of multiple threads, even distributed data processing environment).The terms "include", "comprise"Or any other variant thereof is intended to cover non-exclusive inclusion, so that including the process, method of a series of elements, producingProduct or equipment not only include those elements, but also including other elements that are not explicitly listed, or further include for thisKind of process, method, product or the intrinsic element of equipment.In the absence of more restrictions, being not precluded is including instituteState in process, method, product or the equipment of element that there is also other identical or equivalent elements.For convenience of description, it retouchesIt is divided into various modules when stating apparatus above with function to describe respectively.It certainly, can be each mould when implementing this specification embodimentThe function of block is realized in the same or multiple software and or hardware, and the module of same function can also will be realized by multiple sonsCombination realization of module or subelement etc..The apparatus embodiments described above are merely exemplary, for example, the unitIt divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or componentsIt can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown orThe mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unitIt closes or communicates to connect, can be electrical property, mechanical or other forms.The present invention be referring to according to the method for the embodiment of the present invention,Equipment (system) and the flowchart and/or the block diagram of computer program product describe.It should be understood that can be referred to by computer programEnable process in each flow and/or block and flowchart and/or the block diagram in implementation flow chart and/or block diagram and/Or the combination of box.Can provide these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or itsThe processor of his programmable data processing device is to generate a machine, so that being handled by computer or other programmable datasThe instruction that the processor of equipment executes generates for realizing in one side of one or more flows of the flowchart and/or block diagramThe device for the function of being specified in frame or multiple boxes.It will be understood by those skilled in the art that the embodiment of this specification can provide forMethod, system or computer program product.Therefore, it is real that complete hardware embodiment, complete software can be used in this specification embodimentApply the form of example or embodiment combining software and hardware aspects.Moreover, this specification embodiment can be used in one or moreIt wherein include computer-usable storage medium (the including but not limited to magnetic disk storage, CD- of computer usable program codeROM, optical memory etc.) on the form of computer program product implemented.Each embodiment in this specification, which is all made of, passsInto mode describe, the same or similar parts between the embodiments can be referred to each other, and each embodiment stressesIt is the difference from other embodiments.For system embodiment, since it is substantially similar to the method embodiment,So being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.In the description of this specification, joinThe description for examining term " one embodiment ", " some embodiments ", " example ", " specific example " or " some examples " etc. means to tieClose the embodiment or example particular features, structures, materials, or characteristics described are contained in this specification embodiment at least oneIn a embodiment or example.In the present specification, schematic expression of the above terms are necessarily directed to identical implementationExample or example.In addition, without conflicting with each other, those skilled in the art can be by difference described in this specificationThe feature of embodiment or example and different embodiments or examples is combined.The foregoing is merely this specification implementationsThe embodiment of example, is not limited to this specification embodiment.To those skilled in the art, this specification is implementedExample can have various modifications and variations.All any modifications made within the spirit and principle of this specification embodiment are equalReplacement, improvement etc., should be included within the scope of the claims of this specification embodiment.