The content of the invention
A kind of method and device of the new folder on touch panel device is provided in the embodiment of the present invention, it is existing to solve
Establishment file presss from both sides the low problem of efficiency in having technology.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
First aspect provides a kind of method of the new folder on touch panel device, and methods described includes:
After object on touch panel device current interface is detected enters editing mode, detect trailing first pair
As, and obtain the second object in the dragged paths traversed of the first object;Second object is described first pair
As all objects in dragged paths traversed;
When detecting first object and being released, by first object and second object merging in a text
In part folder.
It is described when detecting first object and being released in the first possible implementation of first aspect
Method also includes:
The prompt message merged to first object and second object is displayed whether in current interface;
When merging configured information is received, perform first object and second object merging in a file
In step.
With reference to the first possible implementation of first aspect or first aspect, in second possible implementation
In, second object obtained in the dragged paths traversed of the first object includes:
During first object is trailing, when first object overlaps with the coordinate of an object, then
Judge that the object overlapped with first object coordinates is the object on the path;
Obtain all objects on the path.
Second aspect provides a kind of method of the new folder on touch panel device, and methods described includes:
After object on touch panel device current interface is detected enters editing mode, detect trailing first pair
As, at least one of selected 3rd object, and obtain the second object in the dragged paths traversed of the first object;
Second object is all objects in the dragged paths traversed of the first object;
When first object is detected and the 3rd object is released, displayed whether in current interface to described
The prompt message that one object, the second object and the 3rd object are merged;Second object is that first object is dragged
All objects in paths traversed;
When merging configured information is received, by first object, the second object and the 3rd object merging in a file
In folder.
In the first possible implementation of second aspect, acquisition first object is dragged passed through
The second object on path includes:
During first object is trailing, when first object overlaps with the coordinate of an object, then
Judge that the object overlapped with first object coordinates is the object on the path;
Obtain all objects on the path.
The third aspect provides a kind of touch panel device, and the touch panel device includes:
Detection unit, after entering editing mode for the object on the touch panel device current interface is detected, inspection
Survey trailing first object;
Acquiring unit, for obtaining the second object in the dragged paths traversed of the first object;Described second
Object is all objects in the dragged paths traversed of the first object;
Combining unit, for when detecting first object and being released, by first object and described second pair
As merging in a file.
In the first possible implementation of the third aspect, the touch panel device also includes:
Display unit, for when the detection unit detects first object and is released, showing in current interface
Show whether the prompt message merged to first object and second object;
Receiving unit, for after the display unit shows the prompt message, receiving and merging configured information;
The combining unit, be additionally operable to the receiving unit receive merge configured information when, will first object with
Second object merging is in a file.
With reference to the first possible implementation of the third aspect or the third aspect, in second possible implementation
In, the acquiring unit includes:
Judging unit, for during first object is trailing, judging first object and an object
Coordinate whether overlap;
Determining unit, for when the judging unit judges that first object overlaps with the coordinate of an object, really
The object for being overlapped with first object coordinates calmly is the object on the path;
Subelement is obtained, for obtaining all objects on the path.
Fourth aspect provides a kind of touch panel device, and the touch panel device includes:
Detection unit, after entering editing mode for the object on touch panel device current interface is detected, detects quilt
3rd object of at least one of first object of dragging, selected;
Acquiring unit, for obtaining the second object in the dragged paths traversed of the first object;Described second
Object is all objects in the dragged paths traversed of the first object;
Display unit, for when first object is detected and the 3rd object is released, showing in current interface
Show whether the prompt message merged to first object, the second object and the 3rd object;Second object is described
All objects in the dragged paths traversed of first object;
Receiving unit, for after the display unit shows the prompt message, receiving and merging configured information;
Combining unit, for when the receiving unit receives the merging configured information, by first object, the
Two objects and the 3rd object merging are in a file.
In the first possible implementation of fourth aspect, the acquiring unit includes:
Judging unit, for during first object is trailing, judging first object and an object
Coordinate whether overlap;
Determining unit, for when the judging unit judges that first object overlaps with the coordinate of an object, really
The object for being overlapped with first object coordinates calmly is the object on the path;
Subelement is obtained, for obtaining all objects on the path.
From technical scheme disclosed above, in the embodiment of the present invention, can be by trailing first object and
All objects in the dragged paths traversed of one object are saved in a file simultaneously, improve the effect of compound object
Rate, improves Consumer's Experience.
Specific 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 clear, complete
Whole description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The term for using in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting
The present invention." one kind ", " described " and " being somebody's turn to do " of singulative used in the embodiment of the present invention and appended claims
It is also intended to include most forms, unless context clearly shows that other implications.It is also understood that term used herein
"and/or" refers to and may be combined comprising one or more associated any or all of project listed.
It will be appreciated that though various letters may be described using term first, second, third, etc. in embodiments of the present invention
Breath, but these information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example,
In the case where range of embodiment of the invention is not departed from, the first information can also be referred to as the second information, similarly, the second information
The first information can also be referred to as.Depending on linguistic context, word as used in this " if " can be construed to " ...
When " or " when ... " or " in response to determining ".
Fig. 1 is referred to, Fig. 1 is a kind of method of new folder on touch panel device provided in an embodiment of the present invention
Flow chart, methods described includes:
Step 101:After object on touch panel device current interface is detected enters editing mode, detect trailing
First object, and obtain the second object in the dragged paths traversed of the first object;Second object is described
All objects in the dragged paths traversed of first object.
In the step, the object in current interface can be in several ways set to enter editing mode, for example:Long-time point
The empty position on any one object or long-time point touching screen hit in touch panel device current interface, in current interface
Object will enter editing mode.In the present embodiment, a predetermined time range, such as 2 seconds etc. are can be understood as a long time.
Wherein, it is the known technology of those skilled in the art for prolonged setting, is not described in detail herein.
The embodiment, the object in current interface, it is also possible to referred to as application icon, such as, and the application icon of recorder, day
The application of application icon, the application icon of notepad, the application icon of picture, the application icon of camera and the E-mail address gone through
Icon etc..
Wherein, in the present embodiment, the second object in the dragged paths traversed of the first object is obtained, including:
During first object is trailing, when first object overlaps with the coordinate of an object, then judge and institute
The object for stating the coincidence of the first object coordinates is the object on the path;Obtain all objects on the path.Specifically
As shown in Fig. 2 Fig. 2 is the signal of all objects on the path that a kind of trailing object provided in an embodiment of the present invention passes through
Figure;As shown in Fig. 2 the object that current interface shows(That is application icon)Be into by the object of editing mode, it is trailing right
As(That is the first object)It is recorder application icon, all objects on path that trailing object passes through(That is the second object)
It is followed successively by calendar application icon, e-mail applications icon and picture library application icon.Fig. 2 is a kind of example, when implementing
The application icon in figure is not limited to, the path in figure is also not necessarily limited to.
It should be noted that when applying, application icon can show actual image, such as, and recorder application
Icon, it is shown that image of recorder etc..
Wherein, after object is dragged, the object may be at vibrating state or color change state etc..Such as, after dragged
Object be in vibrating state, or, it is dragged before and after object color it is different or be of different shades.Or, it is dragged
The color of all objects on path that object afterwards passes through is different.Certainly, the state of trailing object can also be upper
The combination of various states is stated, the present embodiment is not restricted.
Wherein, in the present embodiment, the coordinate overlaps, and can be that coordinate is completely superposed, or meets a position fixing inclined
Difference etc..That is, coordinate herein overlaps and can be completely superposed, or not exclusively overlap, that is, meet target offset.
Its it is a kind of judge coordinate overlap process be:If detect in current interface having an object(That is the first object)
It is dragged near an object A, then the first coordinate points of the current location where judging first object and the object A
Whether the second coordinate points of position meet pre-conditioned, if meeting pre-conditioned, illustrate that first object is dragged
Move on the object A, i.e., the first object is Chong Die with object A(For a user, the diplopia quilt of the first object in current interface
Drag to above object A), wherein, the object A is referred to as an object on the path that first object passes through.Overlap
The first object afterwards can be referred to as trailing first object with object A, afterwards, if the first object and object after overlapping
A(Referred to as trailing first object)It is dragged to again near an object B in current interface, then, continues to judge to overlap
Whether the first object afterwards is Chong Die with object B with object A, and its deterministic process is similar with said process, will not be repeated here, successively
Analogize, it is possible to judge all objects on the path that trailing first object passes through(That is the second object).Wherein, it is described
The second object can be with least two.
Wherein, the first coordinate points of the current location where judging first object and the second object position
The second coordinate points whether meet pre-conditioned, including:
Judge the difference of the abscissa value of first coordinate points and the abscissa value of second coordinate points whether less than the
One predetermined threshold value;If it is, determination meets pre-conditioned, otherwise it is unsatisfactory for pre-conditioned;Judge first coordinate points
Whether the difference of the ordinate value of ordinate value and second coordinate points is less than the second predetermined threshold value, if it is, determining to meet
It is pre-conditioned, otherwise it is unsatisfactory for pre-conditioned;Wherein, first predetermined threshold value is identical with second predetermined threshold value or not
Together.
Optionally, user can be not intended to merge file so that the short time drags an object, in order to prevent erroneous judgement,
Second coordinate of the first coordinate points of the current location where first object is judged and the second object position
When point meets pre-conditioned, methods described can also include:When it is determined that the coordinate value and the seat of the second coordinate points of the first coordinate points
When the difference of scale value coincidence or the two coordinate values is less than predetermined threshold value, then judge that the first object trailing time is
It is no more than Preset Time, if it is, determining that first object is Chong Die with second object;Otherwise, it determines described first
Object is not overlap with second object.Wherein, Preset Time can be any one time in 1 to 5 second, such as 2 seconds etc..
That is, in the present embodiment, judging whether the first object is overlap with second object, a kind of mode is to lead to
Cross and judge whether two coordinate points of object meet pre-conditioned;If it is satisfied, then first object and the second object weight of explanation
It is folded;Otherwise, do not overlap.
Another way, in order to prevent user misoperation, the coordinate points for judging two objects meet it is pre-conditioned after, enter
Whether one step judges the object trailing time more than Preset Time, if it is greater, then explanation the first object and the second object weight
It is folded;Otherwise it is assumed that not overlapping, it is believed that user is in mobile object(Or the position of Mobile solution icon);This mode, just
It is, when judging that two conditions are satisfied by, just to illustrate that two objects are overlapped.
Step 102:When detecting first object and being released, by first object and second object merging
In a file.
In the step, when detecting the first object and being released, by first object and the second object merging Cheng Yi
In individual file, wherein, this document folder can be on the clear position of any one in current interface, it is also possible in the first object
Or on the position in the second current interface residing for object.
Optionally, in another embodiment, the embodiment is on the basis of above-described embodiment, by first object and
Second object merging after a file, user's end operation(Such as, determined by menu setecting, or click on screen
The operation such as curtain)When, display whether to be named file in current interface, if receiving the instruction of user input,
Instruction according to user input is named to this document folder, if being not received by the instruction of the user input, not to this
File is named.
In the embodiment of the present invention, all objects on trailing object and its dragged paths traversed can be closed
And in a file, the efficiency of compound object is improve, improve Consumer's Experience.
Refering to Fig. 3, Fig. 3 is a kind of the another of the method for new folder on touch panel device provided in an embodiment of the present invention
One flow chart;In the embodiment, the difference with Fig. 1 embodiments, when detecting first object and being released, is user
Text message is provided, is confirmed whether to need to merge the first object and the second object in order to user, prevent maloperation.Specific bag
Include:
Step 301:After object on touch panel device current interface is detected enters editing mode, detect trailing
First object, and obtain the second object in the dragged paths traversed of the first object;Second object is described
All objects in the dragged paths traversed of first object.
The process that implements of the step refers to above-mentioned, will not be repeated here.
Step 302:When detecting first object and being released, displayed whether in current interface to described first pair
As the prompt message merged with second object.
In the step, in order to prevent maloperation, when detecting first object and being released, a text is provided the user
The prompt message of this frame or similar text box, allows user to determine the need for merging the first object and the second object.
Step 303:When merging configured information is received, by first object and second object merging in a text
In part folder.
In the step, if receiving the merging configured information of user input, illustrate to need the first object and second
Object merging in a file, otherwise, it is not necessary to by the first object and the second object merging to a file, mainly
Prevent maloperation.
In the embodiment of the present invention, when detecting trailing object and being released, display whether to merge many in current interface
The prompt message of individual object, and when merging instruction is received, then by multiple object mergings a to file, not only improve
The combined efficiency of object, also reduces the probability of maloperation, improves Consumer's Experience.
Refering to Fig. 4, Fig. 4 is a kind of the another of the method for new folder on touch panel device provided in an embodiment of the present invention
One flow chart, methods described includes:
Step 401:After object on touch panel device current interface is detected enters editing mode, detect trailing
3rd object of at least one of first object, selected, and obtain in the dragged paths traversed of the first object the
Two objects;Second object is all objects in the dragged paths traversed of the first object.
Wherein, second object obtained in the dragged paths traversed of the first object includes:Described
During one object is trailing, when first object overlaps with the coordinate of an object, then judge and described first pair
As the object that coordinate overlaps is the object on the path;Obtain all objects on the path.Wherein, the coordinate
Coincidence can be completely superposed, or meet the coincidence of predetermined condition.In specifically referring to above-mentioned Fig. 1, embodiment illustrated in fig. 2
Description.
In the step, user can select to need the object of merging, a kind of mode by repeatedly similar and different mode
For one or more objects chosen in current interface can be clicked by one or many;Another way, first chooses and works as prezone
An object on face, then drags the object, and obtains all objects in the trailing object paths traversed,
Also a kind of mode is exactly the closed loop path drawn in current interface according to user, by the judgement of the coordinate points of closed loop path,
Determine that all application icons in the closed loop path are selected application icon, it is, of course, also possible to reference to above-mentioned several ways
In at least two modes, it is specific as shown in figure 5, Fig. 5 is right for a kind of multiple different modes selection provided in an embodiment of the present invention
The exemplary plot of elephant, as shown in Figure 5, the 1st kind of mode, user is by clicking the recorder icon chosen in current interface, the 2nd kind
Mode, user first chooses calendar application icon, then drags calendar application icon by email icon, picture library application icon
On;3rd kind of mode, gets the coordinate points of the closed loop path of user's picture, and coordinate points are judged, determines the closed loop path
In all application icons be selected application icon, such as the Fetion application icon and camera applications icon in Fig. 5 be by
The application icon chosen.But above-mentioned three kinds of modes are not limited to, application icon can be chosen with excessively other modes.
In the step, trailing first object is detected, and obtain the dragged paths traversed of the first object
On the second object;Second object is the process of all objects in the dragged paths traversed of the first object,
Refer in above-described embodiment, will not be repeated here.
Step 402:When first object is detected and the 3rd object is released, displayed whether in current interface
The prompt message merged to first object, the second object and the 3rd object;Second object is described first pair
As all objects in dragged paths traversed.
In the example, due to the object for selecting to need to merge by repeatedly different modes on the interface face to face, and
Before user combines the object, display whether to need in current interface to first object, the second object and the 3rd pair
As the prompt message being combined;Maloperation is avoided to reduce.
If receiving user to agree to merge chosen object, that is, the merging configured information of input is received, held afterwards
Row step 403;If being not received by the merging configured information of user input in Preset Time, then it represents that institute need not be merged
State object.
Certainly, in this process, before combining objects, if user needs modification, can reselect needs to merge
Object, or, increase new object again, or delete with object for choosing etc..
Step 403:When merging configured information is received, first object, the second object and the 3rd object merging are existed
In one file.
In the step, if touch panel device receives the merging configured information of user input, by institute in current interface
The multiple objects chosen are while be merged into a file.Wherein, this document folder may be located at any in current interface
On individual clear position, or merge before all objects in any one object current interface on the location of
On.
Optionally, in another embodiment, the embodiment is on the basis of above-described embodiment, by first object,
Second object and the 3rd object merging during user's end operation, are displayed whether after a file in current interface
File is named, if receiving the instruction of user input, this document folder is carried out according to the instruction of user input
Name, if being not received by the instruction of the user input, is not named to this document folder.
In the embodiment of the present invention, due to the object for needing to merge can be chosen in the different mode of multipass, and merging
Before display whether need merge prompt message, and receive merge configured information when, by the plurality of object merging a to text
In part folder, the efficiency of compound object is not only increased, reduce maloperation, also improve Consumer's Experience.
Implementation process based on the above method, the embodiment of the present invention also provides a kind of touch panel device, its structural representation
As shown in fig. 6, the touch panel device includes:Detection unit 61, acquiring unit 62 and combining unit 63, wherein,
The detection unit 61, editing mode is entered for the object on the touch panel device current interface is detected
Afterwards, trailing first object is detected;
The acquiring unit 62, for obtaining the second object in the dragged paths traversed of the first object;Institute
It is all objects in the dragged paths traversed of the first object to state the second object;
The combining unit 63, for when detecting first object and being released, by first object and described
Second object merging is in a file.
Wherein, the acquiring unit 62 includes:Judging unit, determining unit and acquisition subelement(Do not show in figure), it is described
Judging unit, for during first object is trailing, judging that first object is with the coordinate of an object
No coincidence;The determining unit, for when the judging unit judges that first object overlaps with the coordinate of an object,
It is determined that the object overlapped with first object coordinates is the object on the path;The acquisition subelement, for obtaining
Take all objects on the path.
In another embodiment, on the basis of above-described embodiment, the touch panel device can also include the embodiment:
Display unit and receiving unit, wherein, the display unit is released for detecting first object in the detection unit
When putting, the prompt message merged to first object and second object is displayed whether on front interface;It is described to connect
Unit is received, for after the display unit shows the prompt message, receiving and merging configured information;The combining unit, also
For when the receiving unit is received and merges configured information, by first object and second object merging in a text
In part folder.
The function of unit and the implementation process of effect refer to correspondence step in the above method in the touch panel device
Implementation process.
The embodiment of the present invention also provides a kind of touch panel device, shown in its structural representation Fig. 7, the touch panel device bag
Include:Detection unit 71, acquiring unit 72, display unit 73, receiving unit 74 and combining unit 75, wherein,
The detection unit 71, after entering editing mode for the object on touch panel device current interface is detected,
Detect 3rd object of at least one of trailing first object, selected;
The acquiring unit 72, for obtaining the second object in the dragged paths traversed of the first object;Institute
It is all objects in the dragged paths traversed of the first object to state the second object;
The display unit 73, for when first object is detected and the 3rd object is released, working as prezone
The prompt message merged to first object, the second object and the 3rd object is displayed whether on face;Second object
It is all objects in the dragged paths traversed of the first object;
The receiving unit 74, letter is indicated for after the display unit 73 shows the prompt message, receiving to merge
Breath;
The combining unit 75, for when the receiving unit 75 receives the merging configured information, by described the
One object, the second object and the 3rd object merging are in a file.
Optionally, in another embodiment, the acquiring unit includes:Judging unit, determining unit and acquisition subelement,
Wherein, the judging unit, for during first object is trailing, judging first object and an object
Coordinate whether overlap;The determining unit, the seat for judging first object and an object in the judging unit
When indicated weight is closed, it is determined that the object overlapped with first object coordinates is the object on the path;It is described to obtain son list
Unit, for obtaining all objects on the path.
The function of unit and the implementation process of effect refer to correspondence step in the above method in the touch panel device
Implementation process.
The embodiment of the present invention also provides a kind of touch panel device, and its structural representation is as shown in figure 8, the touch panel device
8 include:Detector 81 and processor 82, wherein,
The detector 81, after entering editing mode for the object on touch panel device current interface is detected, inspection
Survey trailing first object;
The processor 82, for obtaining the dragged paths traversed of the first object that the detector is detected
On the second object;Second object is all objects in the dragged paths traversed of the first object;
The detector 81, is additionally operable to whether detection first object is released;
The processor 82, is additionally operable to when the detector detects first object and is released, by described first
Object and second object merging are in a file.
Optionally, the processor 82, is additionally operable to, when the detector detects first object and is released, working as
The prompt message merged to first object and second object is displayed whether on front interface;And reception merging refers to
Show information.
The processor, is additionally operable to when the transceiver receives the merging configured information, by first object
With second object merging in a file.
Optionally, the second object that the processor is obtained in the dragged paths traversed of the first object includes:
During first object is trailing, when first object overlaps with the coordinate of an object, then judge and institute
The object for stating the coincidence of the first object coordinates is the object on the path;Obtain all objects on the path.
The function of each device and the implementation process of effect refer to correspondence step in the above method in the touch panel device
Implementation process.
The embodiment of the present invention also provides a kind of touch panel device, and the touch panel device includes:Detector and processor, its
In,
The detector, after entering editing mode for the object on touch panel device current interface is detected, detection
3rd object of at least one of trailing first object, selected;
The processor, for obtaining the second object in the dragged paths traversed of the first object;Described
Two objects are all objects in the dragged paths traversed of the first object;
The detector, is additionally operable to detecting first object and whether the 3rd object is released;
The processor, is additionally operable to when the detector detects first object and the 3rd object is released,
The prompt message merged to first object, the second object and the 3rd object is displayed whether on front interface;Described
Two objects are all objects in the dragged paths traversed of the first object;And receive merging configured information;
The processor, is additionally operable to when the transceiver receives merging configured information, by first object, second
Object and the 3rd object merging are in a file.
The second object that the processor is obtained in the dragged paths traversed of the first object can include:Institute
State detector detect first object it is trailing during, when first object overlaps with the coordinate of an object
When, then judge that the object overlapped with first object coordinates is the object on the path;Obtain on the path
All objects.
The function of each device and the implementation process of effect refer to correspondence step in the above method in the touch panel device
Implementation process.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to realized by hardware.Based on such understanding,
The part that technical scheme substantially contributes to prior art in other words can be with the shape of computer software product
Formula is embodied, and the computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, if including
Dry instruction is used to cause the method described in some parts of station terminal equipment execution each embodiment of the invention or embodiment.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.