Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of method and system that generate icon operational order according to touch width, be intended to solve and terminal operation inefficient problem less by icon practical function.
Technical scheme of the present invention is as follows:
A method according to touching width generation icon operational order, comprises the following steps:
The operation strategy that A, setting are corresponding with touching width;
B, when user being detected icon carried out to touch operation, record all touch width of icon region touch operation;
C, in icon M region, stop when touch operation, with the operation strategy corresponding to touch width maximal value of touch operation in icon M region, generate the operational order to icon M or the corresponding program of icon M.
Described according to the method that touches width and generate icon operational order, wherein, steps A specifically comprises:
A100, will touch width and divide several regions;
A200, by operation strategy corresponding to touch width in the same area;
A300, by operation strategy corresponding to each region.
Described according to the method that touches width and generate icon operational order, wherein, before described step B, comprise:
B100, detection user touch the operation of icon region;
B200, obtain the touch width of the touch operation of user on icon region;
B300, record all touch width of icon region touch operation.
Described according to the method that touches width and generate icon operational order, wherein, step C also comprises:
When touch operation does not stop in icon M region, empty the touch width of the touch operation of icon M region record.
Described according to the method that touches width and generate icon operational order, wherein,
The operation strategy corresponding with touch width is set and comprises that program opens strategy, program unloading strategy, icon deletion strategy and icon naming policy and icon moving strategy;
If touch the corresponding program of width maximal value, open strategy, generate the OPEN to the corresponding program of icon;
If touch the corresponding program unloading strategy of width maximal value, generate the unloading command to the corresponding program of icon;
If touch width maximal value corresponding icon deletion strategy, generate the delete instruction to icon;
If touch width maximal value corresponding icon naming policy, generate the name instruction to icon;
If touch width maximal value corresponding icon shift strategy, generate the move to icon.
Corresponding with said method, it is a kind of according to the system that touches width generation icon operational order that the present invention also provides, and comprising:
Module is set, for the operation strategy corresponding with touching width is set;
Touch width record module, when user being detected icon is carried out to touch operation, record all touch width of icon region touch operation;
Respond module, when touch operation stops in icon M region, with the operation strategy corresponding to touch width maximal value of touch operation in icon M region, generates the operational order to icon M or the corresponding program of icon M.
Described according to the system that touches width and generate icon operational order, wherein, the described module that arranges specifically comprises:
Module is divided in region, for touching width, divides several regions;
Relating module, for by operation strategy corresponding to touch width in the same area;
Region division module, for by operation strategy corresponding to each region.
Described according to the system that touches width and generate icon operational order, wherein, also comprise:
Touch detection module, for detection of user, touch the operation of icon region;
Touch width acquisition module, for obtaining the touch width of the touch operation of user on icon region;
Logging modle, for recording all touch width of icon region touch operation.
Described according to the system that touches width and generate icon operational order, wherein, described respond module, when touch operation does not stop in icon M region, empties the touch width of the touch operation of icon M region record.
Described according to the system that touches width and generate icon operational order, wherein, the operation strategy corresponding with touch width is set and comprises that program opens strategy, program unloading strategy, icon deletion strategy and icon naming policy and icon moving strategy, wherein,
Described program is opened strategy, for generating the OPEN to the corresponding program of icon;
Described program unloading strategy, for generating the unloading command to the corresponding program of icon;
Described icon deletion strategy, for generating the delete instruction to icon;
Described icon naming policy, for generating the name instruction to icon;
Described icon moving strategy, for generating the move to icon.
Compared with prior art, provided by the present invention according to the method and system that touch width generation icon operational order, first will touch width associated with operation strategy, then detect the touch operation of user to icon, obtain touch width, according to touching operation strategy generating run instruction corresponding to width, icon is operated, described operational order comprises icon operational order and the operational order to the corresponding program of icon, opening and unloading as program, the deletion of icon, movement and rename etc., increased the new function to icon touch operation, take icon as the operation of object enforcement with icons association, the operation of user's application programs, directly by icon, can obtain action required, convenient and simple, save running time and operation steps.
Embodiment
The invention provides a kind of method and system that generate icon operational order according to touch width, for making object of the present invention, technical scheme and effect clearer, clear and definite, referring to accompanying drawing examples, the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is of the present invention according to the method flow diagram that touches width generation icon operational order.As shown in Figure 1, of the present invention a kind of according to the method that touches width generation icon operational order, comprising:
The operation strategy that step 101, setting are corresponding with touching width; Touch width refers in the touch operation of touch-screen reception, distance between two maximum touch points in other words, is obtained the point coordinate of the point being touched on all touch-screens in touch operation, calculate institute a little in distance between any two points, using distance value maximum as touch width.Described operation strategy refers to concrete operation, and as the opening, unload of application program, the deletion of icon, movement and rename etc., can generate corresponding operational order.The setting operation strategy corresponding with touching width refers to touch width and operation strategy associated, and terminal automatically performs corresponding operation strategy while receiving touch width.
Step 102, when user being detected icon carried out to touch operation, record all touch width of icon region touch operation; Each touch operation all needs touch-screen to contact, contact just has touch area, each touch area forms by touch point, as described in step 101, obtain the coordinate of each touch point, institute in touch area is connected to calculation level spacing a little between two, using the touch width of maximum dot spacing as this touch operation.Mobile terminal detects user's touch operation in real time, in other words, when user being detected icon carried out to touch operation, mobile terminal obtains the touch width of touch operation according to the time interval of setting, circulation successively, the touch width that obtains touch operation all in user's touch process, it should be noted that, the time of the time interval of setting with respect to user's touch operation is a very little time period.
Step 103, in icon M region, stop when touch operation, with the operation strategy corresponding to touch width maximal value of touch operation in icon M region, generate the operational order to icon M or the corresponding program of icon M.Any one in icon M described here general reference application icon, touch operation stops referring in icon M region and removes touch operation, touch operation no longer, but not the touch location of touch operation is constant.When touch operation stops in icon M region, obtain all touch width of touch operation in icon M region, to touch operation strategy corresponding to width maximal value, generate the operational order to icon M or the corresponding program of icon M.
For touching the peaked acquisition process of width, refer to Fig. 3, Fig. 3 is the peaked method flow diagram of touch width that obtains touch operation described in a preferred embodiment of the present invention.As shown in Figure 3, the described peaked method of touch width of obtaining touch operation, comprising:
Step 301:Wmax=0; To touch width maximal value Wmax zero setting.
Step 302: whether user stops touch operation; Judge whether touch operation stops, and if so, performs step 307, if not, perform step 303.
Step 303: the point coordinate that obtains all touch points.
Step 304: the touch width W n that calculates touch operation; Calculate the touch width W n of current touch operation, any two touch points are connected to calculation level spacing, using the dot spacing of maximum point-to-point transmission as touching width W n.
Step 305: if Wn> is Wmax; By Wn and Wmax comparison, if Wn> is Wmax, perform step 306, if Wn< is Wmax, enter next n+1 testing process, execution step 302.
Step 306:Wmax=Wn; By the value of Wn, give Wmax, enter next n+1 testing process.
Step 307: carry out corresponding operating strategy according to touching width W max.
Described according to the method that touches width and generate icon operational order, preferred, step 101 specifically comprises: will touch width and divide several regions; By operation strategy corresponding to the touch width in the same area; By operation strategy corresponding to each region.The operation strategy mode corresponding with touching width is set a lot, each can be touched to width corresponding with operation strategy, also can be divided into a plurality of regions by touching width, each in region touched to all corresponding a kind of operation strategies of width, can region be so just unit setting operation strategy, by operation strategy corresponding to different regions, like this, if the touch width maximal value of the touch operation of obtaining drops on that region, just only carry out corresponding operation strategy.Width subregion will be touched, operation strategy corresponding to touch width in certain limit can be made, very accurate without user's touch operation, be conducive to user's practical operation.
Described according to the method that touches width and generate icon operational order, preferred, before described step 102, comprise: detect the operation that user touches icon region; Obtain the touch width of the touch operation of user on icon region; Record all touch width of icon region touch operation.Touch width refers in the touch operation of touch-screen reception, the distance between two maximum touch points.Obtain touch width, first obtain the point coordinate of the point being touched in touch operation, then calculate the dot spacing of any two points in these points, using maximum dot spacing as touching width.After obtaining touch width, will touch width record.
Described according to the method that touches width and generate icon operational order, preferred, step 103 also comprises: when touch operation does not stop in icon M region, empty the touch width of the touch operation of icon M region record.Touch operation may be carried out in a plurality of icons, and the present invention be take single icon region as scope record touches width, at certain icon, does not stop, by the touch width of the touch operation of this icon region record in touch operation.Like this, if user's touch operation when a plurality of icons carry out, the operation strategy corresponding to touch width maximal value of the icon region stopping with user's touch operation, generating run instruction; When touch operation does not stop in icon M region, empty the touch width of the touch operation of icon M region record.
Described according to the method that touches width and generate icon operational order, preferred, the operation strategy corresponding with touch width is set and comprises that program opens strategy, program unloading strategy, icon deletion strategy and icon naming policy and icon moving strategy; If touch the corresponding program of width maximal value, open strategy, generate the OPEN to the corresponding program of icon; If touch the corresponding program unloading strategy of width maximal value, generate the unloading command to the corresponding program of icon; If touch width maximal value corresponding icon deletion strategy, generate the delete instruction to icon; If touch width maximal value corresponding icon naming policy, generate the name instruction to icon; If touch width maximal value corresponding icon shift strategy, generate the move to icon.The operation strategy corresponding with touching width is set and is divided into two kinds, the one, the operation to icon, the 2nd, the operation to the corresponding program of icon, can arrange different operation strategies for different icons.
Refer to Fig. 2, Fig. 2 is of the present invention according to the system construction drawing that touches width generation icon operational order.As shown in Figure 2, of the present invention a kind of according to the system that touches width generation icon operational order, comprising:
Module is set, for the operation strategy corresponding with touching width is set, as detailed above;
Touch width record module, when user being detected icon is carried out to touch operation, record all touch width of icon region touch operation, as detailed above;
Respond module, when touch operation stops in icon M region, with the operation strategy corresponding to touch width maximal value of touch operation in icon M region, generates the operational order to icon M or the corresponding program of icon M, as detailed above.
Described according to the system that touches width and generate icon operational order, preferred, the described module that arranges specifically comprises:
Module is divided in region, divides several regions, as detailed above for touching width;
Relating module, for by operation strategy corresponding to touch width in the same area, as detailed above;
Region division module, for by operation strategy corresponding to each region, as detailed above.
Described according to the system that touches width and generate icon operational order, preferred, also comprise:
Touch detection module, for detection of user, touch the operation of icon region, as detailed above;
Touch width acquisition module, for obtaining the touch width of the touch operation of user on icon region, as detailed above;
Logging modle, for recording all touch width of icon region touch operation, as detailed above.
Described according to the system that touches width and generate icon operational order, preferred, described respond module, when touch operation does not stop in icon M region, empties the touch width of the touch operation of icon M region record, as detailed above.
Described according to the system that touches width and generate icon operational order, preferably, the operation strategy corresponding with touch width is set and comprises that program opens strategy, program unloading strategy, icon deletion strategy and icon naming policy and icon moving strategy, as detailed above, wherein
Described program is opened strategy, for generating the OPEN to the corresponding program of icon, as detailed above;
Described program unloading strategy, for generating the unloading command to the corresponding program of icon, as detailed above;
Described icon deletion strategy, for generating the delete instruction to icon, as detailed above;
Described icon naming policy, for generating the name instruction to icon, as detailed above;
Described icon moving strategy, for generating the move to icon, as detailed above.
In sum, provided by the present invention according to the method and system that touch width generation icon operational order, first will touch width associated with operation strategy, then detect the touch operation of user to icon, obtain touch width, according to touching operation strategy generating run instruction corresponding to width, icon is operated, described operational order comprises icon operational order and the operational order to the corresponding program of icon, opening and unloading as program, the deletion of icon, movement and rename etc., increased the new function to icon touch operation, take icon as the operation of object enforcement with icons association, the operation of user's application programs, directly by icon, can obtain action required, convenient and simple, save running time and operation steps.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.