Summary of the invention
In the embodiment of the present invention, provide a kind of on touch panel device method and the device of new folder, to solve, in prior art, create the inefficient problem of file.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses following technical scheme:
First aspect provide a kind of on touch panel device the method for new folder, described method comprises:
At the object detecting in touch panel device current interface, enter after editing mode, detect trailing the first object, and obtain the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging;
When described the first object being detected and be released, described the first object and described second object are incorporated in a file.
In the possible implementation of the first of first aspect, when described the first object being detected and be released, described method also comprises:
Whether in current interface, show the information that described the first object and described second object are merged;
When receiving merging indication information, carry out described the first object and described second object are incorporated in to a step in file.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second, described in the second object that obtains on the path of described the first object process by dragging comprise:
In the trailing process of described the first object, when described the first object overlaps with the coordinate of an object, the described object that judgement overlaps with described the first object coordinate is the object on described path;
Obtain all objects on described path.
Second aspect provide a kind of on touch panel device the method for new folder, described method comprises:
At the object detecting in touch panel device current interface, enter after editing mode, detect trailing the first object, selected at least one the 3rd object, and obtain the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging;
When described the first object and the 3rd object being detected and be all released, in current interface, show the information whether described the first object, second object and the 3rd object being merged; Described second object is all objects on the path of described the first object process by dragging;
When receive merging indication information, by described the first object, second object and the 3rd object merging in a file.
In the possible implementation of the first of second aspect, described in the second object that obtains on the path of described the first object process by dragging comprise:
In the trailing process of described the first object, when described the first object overlaps with the coordinate of an object, the described object that judgement overlaps with described the first object coordinate is the object on described path;
Obtain all objects on described path.
The third aspect provides a kind of touch panel device, and described touch panel device comprises:
Detecting unit, enters after editing mode for the object detecting in described touch panel device current interface, detects trailing the first object;
Acquiring unit, for obtaining the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging;
Merge cells, for when described the first object being detected and be released, is incorporated in described the first object and described second object in a file.
In the possible implementation of the first of the third aspect, described touch panel device also comprises:
Whether display unit, while being released for described the first object detected at described detecting unit, show the information that described the first object and described second object are merged in current interface;
Receiving element, for showing after described information at described display unit, receives and merges indication information;
Described merge cells, also, for when described receiving element reception merges indication information, is incorporated in described the first object and described second object in a file.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in the possible implementation of the second, described acquiring unit comprises:
Judging unit, in the trailing process of described the first object, judges whether described the first object overlaps with the coordinate of an object;
Determining unit, when judging that at described judging unit described the first object overlaps with the coordinate of an object, determines that the described object overlapping with described the first object coordinate is the object on described path;
Obtain subelement, for obtaining all objects on described path.
Fourth aspect provides a kind of touch panel device, and described touch panel device comprises:
Detecting unit, enters after editing mode for the object detecting in touch panel device current interface, detects trailing the first object, selected at least one the 3rd object;
Acquiring unit, for obtaining the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging;
Display unit for when described the first object and the 3rd object being detected and be all released, shows the information whether described the first object, second object and the 3rd object being merged in current interface; Described second object is all objects on the path of described the first object process by dragging;
Receiving element, for showing after described information at described display unit, receives and merges indication information;
Merge cells, for when described receiving element receives described merging indication information, by described the first object, second object and the 3rd object merging in a file.
In the possible implementation of the first of fourth aspect, described acquiring unit comprises:
Judging unit, in the trailing process of described the first object, judges whether described the first object overlaps with the coordinate of an object;
Determining unit, when judging that at described judging unit described the first object overlaps with the coordinate of an object, determines that the described object overlapping with described the first object coordinate is the object on described path;
Obtain subelement, for obtaining all objects on described path.
From above-mentioned disclosed technical scheme, in the embodiment of the present invention, can be by trailing the first object and the first object all objects on the path of the process by dragging be saved in a file simultaneously, improved the efficiency of compound object, promoted user's experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out to clear, complete description, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The term using is in embodiments of the present invention only for the object of describing specific embodiment, but not is intended to limit the present invention." a kind of " of the singulative using in the embodiment of the present invention and appended claims, " described " and " being somebody's turn to do " are also intended to comprise most forms, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more projects of listing that are associated any or all may combine.
Although should be appreciated that and may adopt in embodiments of the present invention term first, second, third, etc. to describe various information, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.For example, in the situation that not departing from embodiment of the present invention scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, as used in this word " if " can be construed as into " ... time " or " when ... time " or " in response to determine ".
Refer to Fig. 1, Fig. 1 for the embodiment of the present invention provide a kind of on touch panel device the process flow diagram of the method for new folder, described method comprises:
Step 101: enter after editing mode at the object detecting in touch panel device current interface, detect trailing the first object, and obtain the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging.
In this step, can make in several ways the object in current interface enter editing mode, for example: the empty position on any one object in long-time point touching screen equipment current interface or long-time point touching screen, the object in current interface will enter editing mode.In the present embodiment, can be understood as for a long time one predetermined time scope, such as 2 seconds etc.Wherein, for long setting, be those skilled in the art's known technology, at this, be not described in detail.
This embodiment, the object in current interface, also can be called application icon, such as, the application icon of sound-track engraving apparatus, the application icon of calendar, the application icon of notepad, the application icon of the application icon of picture, camera and the application icon of E-mail address etc.
Wherein, in the present embodiment, obtain the second object on the path of described the first object process by dragging, comprise: in the trailing process of described the first object, when described the first object overlaps with the coordinate of an object, the described object that judgement overlaps with described the first object coordinate is the object on described path; Obtain all objects on described path.The schematic diagram of all objects on the path of a kind of trailing object process that specifically as shown in Figure 2, Fig. 2 provides for the embodiment of the present invention; As shown in Figure 2, the object (being application icon) that current interface shows is for to enter by the object of editing mode, trailing object (i.e. the first object) is sound-track engraving apparatus application icon, and all objects on the path of trailing object process (being second object) are followed successively by calendar application icon, e-mail applications icon and picture library application icon.Fig. 2 is a kind of example, is not limited to the application icon in figure during specific implementation, is also not limited to the path in figure.
It should be noted that, when adapting to application, application icon can show actual image, such as, sound-track engraving apparatus application icon, demonstration be the image etc. of sound-track engraving apparatus.
Wherein, after object is dragged, this object can be in vibrating state or variable color state etc.Such as, the object after quilt drags is in vibrating state, or quilt is dragged the object color difference of front and back or is of different shades.Or, all different by the color of all objects on the path of the object process after dragging.Certainly, the state of trailing object can be also the combination of above-mentioned various states, and the present embodiment is not restricted.
Wherein, in the present embodiment, it can be that coordinate overlaps completely that described coordinate overlaps, and can be also to meet certain grid deviation etc.That is to say, coordinate herein overlaps and can overlap completely, can be also incomplete coincidence, meets target offset.
Its a kind of process that judges that coordinate overlaps is: if detected in current interface, have an object (i.e. the first object) to be dragged near an object A, whether the first coordinate points of current location and the second coordinate points of described object A position that judge described the first object place meet pre-conditioned, if meet pre-conditioned, illustrate that described the first object is dragged on described object A, the first object and object A are overlapping (for user, the diplopia of the first object in current interface be dragged to object A above), wherein, described object A is called an object on the path of described the first object process.The first object after overlapping and object A can be called as trailing the first object, afterwards, if the first object after overlapping and object A(are called trailing the first object) be dragged to again near an object B in current interface, then, continue to judge that whether the first object and object A after overlapping be overlapping with object B, its deterministic process and said process are similar, do not repeat them here, the like, just can judge all objects (being second object) on the path of trailing the first object process.Wherein, described second object can be at least two.
Wherein, judge whether first coordinate points of current location at described the first object place and the second coordinate points of described second object position meet pre-conditioned, comprising:
Whether the difference that judges the abscissa value of described the first coordinate points and the abscissa value of described the second coordinate points is less than the first predetermined threshold value; If so, determine to meet pre-conditionedly, otherwise do not meet pre-conditioned; Whether the difference that judges the ordinate value of described the first coordinate points and the ordinate value of described the second coordinate points is less than the second predetermined threshold value, if so, determines to meet pre-conditionedly, otherwise does not meet pre-conditioned; Wherein, described the first predetermined threshold value and described the second predetermined threshold value are identical or different.
Optionally, user can drag an object short time and be not for merged file folder, in order to prevent erroneous judgement, in judgement first coordinate points of current location at described the first object place and the second coordinate points of described second object position, meet when pre-conditioned, described method can also comprise: when definite coordinate figure of the first coordinate points is when and the coordinate figure of the second coordinate points overlaps or the difference of these two coordinate figures is less than predetermined threshold value, judge again whether described the first trailing time of object is greater than Preset Time, if, determine that described the first object and described second object are overlapping, otherwise, determine that described the first object and described second object are not overlapping.Wherein, Preset Time can be any one time in 1 to 5 second, such as 2 seconds etc.
That is to say, in the present embodiment, judge that whether the first object and described second object be overlapping, a kind of mode is, by judging whether the coordinate points of two objects meets pre-conditioned; If met, the first object and the second object of explanation are overlapping; Otherwise, not overlapping.
Another kind of mode, in order to prevent user misoperation, the coordinate points of two objects of judgement meet pre-conditioned after, further judge whether the trailing time of object be greater than Preset Time, if be greater than, illustrate that the first object and second object are overlapping; Otherwise, thinking not overlapping, can think, user is in mobile object (or position of mobile application icon); This mode, when two conditions of judgement all meet, just illustrates that two objects are overlapping exactly.
Step 102: when described the first object being detected and be released, described the first object and described second object are incorporated in a file.
In this step, when the first object being detected and be released, described the first object and second object are merged in a file, wherein, this document folder can any one clear position in current interface on, also can the position in the first object or the residing current interface of second object on.
Optionally, in another embodiment, this embodiment is on the basis of above-described embodiment, described the first object and described second object are being incorporated in after a file, user's end operation (such as, by menu setecting, determine, or click the operations such as screen) time, in current interface, show and whether file is named, if receive the instruction of user's input, according to the instruction of user's input, this document folder is named, if do not receive the instruction of this user's input, this document folder is not named.
In the embodiment of the present invention, can in all object mergings to file on the path of process, improve the efficiency of compound object by trailing object and by dragging, promote user's experience.
Consult Fig. 3, Fig. 3 for the embodiment of the present invention provide a kind of on touch panel device another process flow diagram of the method for new folder; In this embodiment, with the difference of Fig. 1 embodiment, when described the first object being detected and be released, for user provides text message, so that user is confirmed whether to merge the first object and second object, prevent maloperation.Specifically comprise:
Step 301: enter after editing mode at the object detecting in touch panel device current interface, detect trailing the first object, and obtain the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging.
The specific implementation process of this step refers to above-mentioned, does not repeat them here.
Step 302: when described the first object being detected and be released, whether show the information that described the first object and described second object are merged in current interface.
In this step, in order to prevent maloperation, when described the first object being detected and be released, the information for user provides a text box or similar text box, allows user determine whether to merge the first object and second object.
Step 303: when receiving merging indication information, described the first object and described second object are incorporated in a file.
In this step, if receive the merging indication information of user's input, explanation need to merge to the first object and second object in a file, otherwise, do not need the first object and second object to merge in a file, mainly prevent maloperation.
In the embodiment of the present invention, when trailing object being detected and be released, in current interface, show the information that whether merges a plurality of objects, and when receiving merge command, again by a plurality of object mergings to file, not only improve the combined efficiency of object, also reduced the probability of maloperation, promoted user's experience.
Consult Fig. 4, Fig. 4 for the embodiment of the present invention provide a kind of on touch panel device another process flow diagram of the method for new folder, described method comprises:
Step 401: enter after editing mode at the object detecting in touch panel device current interface, detect trailing the first object, selected at least one the 3rd object, and obtain the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging.
Wherein, second object on the described path that obtains described the first object process by dragging comprises: in the trailing process of described the first object, when described the first object overlaps with the coordinate of an object, the described object that judgement overlaps with described the first object coordinate is the object on described path; Obtain all objects on described path.Wherein, described coordinate overlaps and can overlap completely, can be also the coincidence that meets predetermined condition.Specifically refer to above-mentioned Fig. 1, the description in embodiment illustrated in fig. 2.
In this step, user can select to need the object of merging by repeatedly similar and different mode, and a kind of mode is to click one or more objects of choosing in current interface by one or many, another way, first choose an object in current interface, then drag this object, and obtain trailing described object all objects on the path of process, also having a kind of mode is exactly the closed loop path of drawing in current interface according to user, the judgement of the coordinate points of process closed loop path, determine that all application icons in this closed loop path are selected application icon, certainly, can also be in conjunction with at least two kinds of modes in above-mentioned several modes, specifically as shown in Figure 5, the exemplary plot of a kind of repeatedly different modes alternative that Fig. 5 provides for the embodiment of the present invention, as shown in Figure 5, the 1st kind of mode, user is by clicking the sound-track engraving apparatus icon of choosing in current interface, the 2nd kind of mode, user first chooses calendar application icon, then drag calendar application icon through email icon, on picture library application icon, the 3rd kind of mode, get the coordinate points of the closed loop path of user's picture, and coordinate points is judged, determine that all application icons in this closed loop path are selected application icon, such as the Fetion application icon in Fig. 5 and camera applications icon are selected application icon.But be not limited to above-mentioned three kinds of modes, can also choose application icon with the mode of crossing other.
In this step, detect trailing the first object, and obtain the second object on the path of described the first object process by dragging; Described second object, by the process of all objects on the path of described the first object process by dragging, refers in above-described embodiment, does not repeat them here.
Step 402: when described the first object and the 3rd object being detected and be all released, show the information whether described the first object, second object and the 3rd object being merged in current interface; Described second object is all objects on the path of described the first object process by dragging.
In this example, owing to selecting to need the object of merging on the interface face to face by repeatedly different modes, and before user combines described object, in current interface, whether demonstration needs the information that described the first object, second object and the 3rd object are combined; To reduce, avoid maloperation.
If receive user, agree to the object in merge selected, receive the merging indication information of input, perform step afterwards 403; If do not receive the merging indication information of user's input in Preset Time, represent not need to merge described object.
Certainly, in this process, before combining objects, if user needs to revise, can reselect and need the object that merges, or, again increase new object, or delete object to choose etc.
Step 403: when receive merging indication information, by described the first object, second object and the 3rd object merging in a file.
In this step, if touch panel device receives the merging indication information of user's input, a plurality of objects of choosing in current interface are merged in a file simultaneously.Wherein, this document folder can be arranged on any one clear position of current interface, can be also any one object in all objects before merging current interface on residing position.
Optionally, in another embodiment, this embodiment is on the basis of above-described embodiment, by described the first object, second object and described the 3rd object merging after a file, during user's end operation, in current interface, show and whether file named, if receive the instruction of user's input, according to the instruction of user's input, this document folder is named, if do not receive the instruction of this user's input, this document folder is not named.
In the embodiment of the present invention, owing to can the different mode of Multiple through then out choosing the object that needs merging, and whether demonstration needs the information merging before merging, and when receiving merging indication information, by in the plurality of object merging to file, the efficiency that has not only improved compound object, has reduced maloperation, has also promoted user's experience.
Implementation procedure based on said method, the embodiment of the present invention also provides a kind of touch panel device, and as shown in Figure 6, described touch panel device comprises its structural representation: detecting unit 61, acquiring unit 62 and merge cells 63, wherein,
Described detecting unit 61, enters after editing mode for the object detecting in described touch panel device current interface, detects trailing the first object;
Described acquiring unit 62, for obtaining the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging;
Described merge cells 63, for when described the first object being detected and be released, is incorporated in described the first object and described second object in a file.
Wherein, described acquiring unit 62 comprises: judging unit, and determining unit and obtain subelement (not shown), described judging unit, in the trailing process of described the first object, judges whether described the first object overlaps with the coordinate of an object; Described determining unit, when judging that at described judging unit described the first object overlaps with the coordinate of an object, determines that the described object overlapping with described the first object coordinate is the object on described path; The described subelement that obtains, for obtaining all objects on described path.
In another embodiment, this embodiment is on the basis of above-described embodiment, described touch panel device can also comprise: display unit and receiving element, wherein, described display unit, for when described detecting unit detects described the first object and is released, whether on front interface, show the information that described the first object and described second object are merged; Described receiving element, for showing after described information at described display unit, receives and merges indication information; Described merge cells, also, for when described receiving element reception merges indication information, is incorporated in described the first object and described second object in a file.
In described touch panel device, the implementation procedure of the function and efficacy of unit refers to the implementation procedure of corresponding step in said method.
The embodiment of the present invention also provides a kind of touch panel device, and shown in its structural representation Fig. 7, described touch panel device comprises: detecting unit 71, and acquiring unit 72, display unit 73, receiving element 74 and merge cells 75, wherein,
Described detecting unit 71, enters after editing mode for the object detecting in touch panel device current interface, detects trailing the first object, selected at least one the 3rd object;
Described acquiring unit 72, for obtaining the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging;
Described display unit 73 for when described the first object and the 3rd object being detected and be all released, shows the information whether described the first object, second object and the 3rd object being merged in current interface; Described second object is all objects on the path of described the first object process by dragging;
Described receiving element 74, for showing after described information at described display unit 73, receives and merges indication information;
Described merge cells 75, for when described receiving element 75 receives described merging indication information, by described the first object, second object and the 3rd object merging in a file.
Optionally, in another embodiment, described acquiring unit comprises: judging unit, determining unit and obtain subelement, wherein, described judging unit, for in the trailing process of described the first object, judge whether described the first object overlaps with the coordinate of an object; Described determining unit, when judging that at described judging unit described the first object overlaps with the coordinate of an object, determines that the described object overlapping with described the first object coordinate is the object on described path; The described subelement that obtains, for obtaining all objects on described path.
In described touch panel device, the implementation procedure of the function and efficacy of unit refers to the implementation procedure of corresponding step in said method.
The embodiment of the present invention also provides a kind of touch panel device, and as shown in Figure 8, described touch panel device 8 comprises its structural representation: detecting device 81 and processor 82, wherein,
Described detecting device 81, enters after editing mode for the object detecting in touch panel device current interface, detects trailing the first object;
Described processor 82, for obtaining the second object on the path of described the first object process by dragging that described detecting device detects; Described second object is all objects on the path of described the first object process by dragging;
Whether described detecting device 81, be also released for detection of described the first object;
Described processor 82, also when described the first object being detected at described detecting device and be released, is incorporated in described the first object and described second object in a file.
Optionally, whether described processor 82, also when described the first object being detected at described detecting device and be released, show the information that described the first object and described second object are merged in current interface; And reception merges indication information.
Described processor, also for when described transceiver receives described merging indication information, is incorporated in described the first object and described second object in a file.
Optionally, the second object that described processor obtains on the path of described the first object process by dragging comprises: in the trailing process of described the first object, when described the first object overlaps with the coordinate of an object, the described object that judgement overlaps with described the first object coordinate is the object on described path; Obtain all objects on described path.
In described touch panel device, the implementation procedure of the function and efficacy of each device refers to the implementation procedure of corresponding step in said method.
The embodiment of the present invention also provides a kind of touch panel device, and described touch panel device comprises: detecting device and processor, wherein,
Described detecting device, enters after editing mode for the object detecting in touch panel device current interface, detects trailing the first object, selected at least one the 3rd object;
Described processor, for obtaining the second object on the path of described the first object process by dragging; Described second object is all objects on the path of described the first object process by dragging;
Described detecting device, also for detecting described the first object and whether the 3rd object is all released;
Described processor also when described the first object and the 3rd object being detected at described detecting device and be all released, shows the information whether described the first object, second object and the 3rd object being merged on front interface; Described second object is all objects on the path of described the first object process by dragging; And reception merges indication information;
Described processor, also for receiving at described transceiver while merging indication information, by described the first object, second object and the 3rd object merging in a file.
The second object that described processor obtains on the path of described the first object process by dragging can comprise: at described detecting device, detect in the trailing process of described the first object, when described the first object overlaps with the coordinate of an object, the described object that judgement overlaps with described the first object coordinate is the object on described path; Obtain all objects on described path.
In described touch panel device, the implementation procedure of the function and efficacy of each device refers to the implementation procedure of corresponding step in said method.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly realize by hardware.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of computer software product, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are used so that the method described in some part of station terminal equipment execution each embodiment of the present invention or embodiment.
The above is only some embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.