Embodiment
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
The application's principle can use other universal or special calculating or communication environment or configuration to operate.The example that is applicable to the application's well-known computing system, environment and configuration includes but not limited to, personal computer, server, multicomputer system, the system based on little processing, minicomputer, mainframe computer and the distributed computing environment that comprises arbitrary said system or equipment.
Turn to accompanying drawing, wherein identical reference number refers to identical element, and the application's principle is shown in the suitable computing environment and realizes.Below describe the embodiment based on described the application, and should not think to limit the application about the alternative embodiment clearly do not described herein.
Embodiment one:
Fig. 1 shows an exemplary computer system schematic representation of apparatus that can be used for these equipment.For purposes of illustration, the architecture of painting only is an example of proper environment, is not that usable range or function to the application proposes any limitation.This computing system should be interpreted as that arbitrary assembly shown in Figure 1 or its combination are had any dependence or demand yet.
In its most basic configuration, Fig. 1 is the structural representation according to the data processing equipment of the embodiment of the invention.As shown in Figure 1, this device comprises: first detection module 10, processing module 30 and preservation module 50.Wherein,
First detection module 10 after the contact signal that is used for generating detecting touch-screen reception user's touch, is determined contact position.Whether this first detection module 10 receives user's touch for detection of touch-screen, is detecting after the user touches touch-screen, then can determine contact position on the touch-screen according to the contact signal that generates.
Processing module 30 is used for determining the touch scope according to contact position, and obtains the data acquisition in the touch scope that data acquisition comprises one or more data.This processing module 30 can be chosen the data that are presented on the touch-screen by contact position, for example, the user use two fingers long by touch-screen on any two positions, and after putting together in the centre, can trigger processing module 30 and select two corresponding data according to these two positions, and triggering all data choose between these two positions, the scope between two positions is the touch scope, thereby gets access to all data acquisitions in the touch scope.
(for example: three fingers) length is pressed optional position on the touch-screen if the user uses many fingers, then can find the contact position of touch-screen the top, the contact position of below, and all data between these two positions are chosen in triggering, scope between two positions is the touch scope, thereby gets access to all data acquisitions in the touch scope.
Preserve module 50, be used for data acquisition is saved to the file in precalculated position.Processing module 30 finished obtain data acquisition after, by preserving module 50 data acquisition of choosing is preserved, thereby has been finished automatically, the operation of disposal data fast.
As from the foregoing, in the above embodiments of the present application, after the user touches this touch-screen (supporting the multi-point touch technology), detect current because the user touches the contact signal that generates by first detection module 10, thereby determine the position of user's finger touch display screen, processing module 30 can be determined the data chosen according to the contact position of determining, and calculates the data acquisition in the touch scope automatically, at last by preserving module 50 with in the disposable file that moves to appointment of data acquisition.Said apparatus has improved the mode of operation that will need a plurality of data of movement that multi-pass operations just can finish originally, for example, the user only needs to trigger the data of any two positions on the touch-screen, just all data in these two determined scopes in position all can be chosen, be obtained a data set and put in order.Solved the mode complex operation that is used for arrangement storage data in the related art, inefficient problem, and then realize having improved the data of storing in the automatical and efficient arrangement terminal efficient of user's disposal data, and improved user experience effect.
Concrete, be example with the mobile phone of supporting the multi-point touch technology, can realize putting in order automatically according to the specific gesture operation that mobile phone receives the file of mobile phone terminal, form the file that a new arrangement obtains.For example, long 2 files end to end of press on the touch-screen are put together to centre one, just can finish the arrangement of move one by one of original needs, thereby save user's running time, and user friendly operation has improved user's experience.Wherein, long by on the touch-screen end to end the application of 2 files realized choosing contact position on the touch-screen, realized beginning to trigger the data acquisition that calculates in the contact position scope to the application of a middle operation of putting together.
Embodiment two:
In the above embodiments of the present application one, because touch-screen is supported the multi-point touch technology, therefore, can more than or equal to being example, manage two touch event the example of all data acquisitions that get access to that module 30 realized with the contact in the open.
Concrete, touch-screen receives at least two contact information, to determine at least two contact positions, wherein, receive at least two contact signals detecting touch-screen, and determine under the situation of at least two contact positions, the processing module 30 that provides in embodiment one can comprise: parsing module 301, be used for resolution data information configuration file, to obtain the current position that is presented at every data on the touch-screen, wherein, the data message configuration file comprises title, position and the sequence number of data; Matching module 302, mate at least two contact positions and the current position that is presented at every data on the touch-screen that are used for determining, to obtain at least two corresponding data of contact position; First read module 303 is for the sequence number that reads at least two corresponding data of contact position, to obtain sequence number range; Extraction module 304 for the interior all sequences number corresponding data of extraction and sequence number range, obtains data acquisition.
Data message configuration file in the above embodiments of the present application one or two can be the text of tree structure, also can be XML(Extensible Markup Language, extend markup language) file or database file.This data message configuration file has recorded the descriptor of all data and the information such as data relationship between each data, for example, descriptor can be the Name ﹠ Location coordinates of data when being presented on the touch-screen, and at the sequence number of backstage record and attribute etc.
Preferably, when the data message configuration file adopts the tree structure record, and the content of record is file and file, parsing module 301 in the embodiment of the present application two can resolution data information configuration file, the data of root folder are shown in the screen, and record the position of every data in screen, when program is received touch event and contact greater than 2, according to the position that touches, and the position calculation of every data on screen goes out the data acquisition in the touch scope.
In addition, when touch-screen receives that the contact of touch event is 1, what can judge that the user clicks according to current touch location is that on the touch-screen which shows data, if the attribute of these data is files, then display file information, if the attribute of these data is picture or link, the then operation of capable certain correspondence, as show a pictures, perhaps open a web page interlinkage etc.; If a file, then resolution file folder content is shown in the screen, and records the position of every data in screen.
The device that above-mentioned each embodiment of the application provides can also comprise: load-on module is used for start-up loading data message configuration file, and structural relation and the descriptor of data in the data message configuration file is read in internal memory; Display module is used for according to the structural relation of data descriptor being shown to touch-screen.
Concrete, this load-on module is used for the data message configuration file that start-up loading above-described embodiment one and two has been created, be that file is example with the data that record in the data message configuration file, this configuration file has recorded the configuration information of the structural relation of description document in the file and file.
Preferably, be that folder type is example with data, the load-on module that provides in above-described embodiment one and two can comprise: first acquisition module is used for loading the data message configuration file according to demand, to obtain root folder; Second read module is used for reading article one record related with root folder; Creation module is used for creating article one record according to the type of article one record under root folder, wherein, is recorded as in article one under the situation of file type, and article one record is added under the root folder; Be recorded as in article one under the situation of folder type, under root folder, create sub-folder; Second detection module, for detection of whether there being next bar record under root folder and/or the sub-folder, wherein, under the situation that has next bar record, then under root folder and/or sub-folder, create next bar record according to the type of next bar record, otherwise, detect whether the current file folder is root folder, press from both sides under the situation of root folder at current file, close the data message configuration file.
Above-described embodiment has been realized the resolving of data message configuration file, specific as follows: as to load and open the data message configuration file by first acquisition module, create root folder at touch-screen, and be set to the current file folder, read article one record under this root folder by second read module then, if this article one record description is a file, then this document is added in the current file, and detect whether also have next bar record under the current root folder, if also have next bar record, then return and detect whether this next bar record is a file, if file then continues to add in the root folder.In said process, if the record under the root folder is a file, then will under root folder, create a sub-folder by creation module, and continue to detect the attribute of the record under the sub-folder, and whether have next bar to record to load under this word file.Preferably, all files and file are all created finish and show after, traversal detects whether file or folder is root folder or root file, namely use the mode of recalling to judge, after detecting root folder, close and read current data configuration file, namely read the configuration file flow process and finish, so far configuration file is read in the internal memory.
Preferably, the preservation module 50 that provides of the above embodiments of the present application can comprise:
The 3rd detection module for detection of the type of data in the data acquisition, is namely judged the type of the data acquisition that obtains.
First replication module is used for then the data in the data acquisition being copied in the first newly-built file when data acquisition does not have the data of folder type.Concrete, judge the data that obtain not having in the data acquisition folder type this moment, a newly-built file then, and All Files copied to wherein.
Second replication module is used for when there is a file in data acquisition, then the data of non-folder type in the data acquisition is copied to during this document in the data acquisition presss from both sides.Concrete, judge the data that obtain a folder type this moment, then the data with all non-folder type copy in this file.
The 3rd replication module is used for then the data under a plurality of files being copied in the second newly-built file when there is a plurality of file in data acquisition.Concrete, judge the data that obtain a plurality of folder type this moment, then a newly-built file and the data under the All Files folder are copied to wherein.
The device that the above embodiments of the present application provide can also comprise: second acquisition module is used for obtaining the corresponding new construction relation of each data of data acquisition and new descriptor; Update module is used for upgrading the data message configuration file according to new construction relation and new descriptor.
Embodiment three:
Fig. 2 is the process flow diagram according to the data processing method of the embodiment of the invention; Fig. 3 is the detail flowchart according to data processing method shown in Figure 2.
As shown in Figure 2, this method comprises the steps:
Step S10 can realize by first detection module shown in Figure 1 10, detecting after touch-screen receives contact signal, determines contact position.
Above-mentioned steps is by detecting the touch event whether touch-screen receives the user, and detecting after the user touches touch-screen, determines touch-screen upper contact position according to the contact signal that generates.
Step S30 can realize determining the touch scope according to contact position by processing module shown in Figure 1 30.
Step S50 can realize obtaining data acquisition in the scope of contact by processing module shown in Figure 1 30, and data acquisition comprises one or more data.
Above-mentioned steps S30 and step S50 can choose the data that are presented on the touch-screen by contact position, for example, the user use two fingers long by touch-screen on any two positions, and after putting together, the centre (namely triggers the function of obtaining data acquisition), can realize selecting two corresponding data according to these two positions, to determine that the scope between two positions is the touch scope, and trigger all data of choosing between these two positions, thereby get access to all data acquisitions in the touch scope.
Step S70 can be saved to data acquisition the file in precalculated position by preservation module shown in Figure 1.This step is preserved the data acquisition of choosing by preserving module, thereby has finished automatic, the operation of disposal data fast.
Preferably, the touch-screen in the above embodiments of the present application three receives at least two contact information, to determine at least two contact positions.
As from the foregoing, in the above embodiments of the present application, after the user touches this touch-screen, at first by detecting current because the user touches the position that the contact signal that generates is determined user's finger touch display screen, can determine the data chosen according to the contact position of determining then, and calculate data acquisition in the touch scope automatically, at last by preserving module with in the disposable file that moves to appointment of data acquisition.Said method has improved the mode of operation that will need a plurality of data of movement that multi-pass operations just can finish originally.Solved the mode complex operation that is used for arrangement storage data in the related art, inefficient problem, and then realize having improved the data of storing in the automatical and efficient arrangement terminal efficient of user's disposal data, and improved user experience effect.
Concrete, be example with the mobile phone of supporting the multi-point touch technology, above-described embodiment can realize putting in order automatically according to the specific gesture operation that mobile phone receives the file of mobile phone terminal, forms the file that a new arrangement obtains.
Preferably, as shown in Figure 3, in the above embodiments of the present application, at step S301 resolution data information configuration file, to obtain before the current position that is presented at every data on the touch-screen, above-described embodiment three can also comprise the steps:
Step S305, start-up loading data message configuration file.This data message configuration file has recorded the descriptor of all data and the information such as data relationship between each data, for example, descriptor can be the Name ﹠ Location coordinates of data when being presented on the touch-screen, and at the sequence number of backstage record and attribute etc.Be that file is example with the data that record in the data message configuration file, this configuration file has recorded the configuration information of the structural relation of description document in the file and file.
Step S306 reads in internal memory with structural relation and the descriptor of data in the data message configuration file.
Step S307 is shown to touch-screen according to the structural relation of data with descriptor.
Preferably, be under the situation of folder type in data, the start-up loading data message configuration file that step S305 and step S306 are performed, and the step that structural relation and the description document of data in the data message configuration file are read in internal memory can comprise the steps:
Step S501 loads the data message configuration file according to demand, to obtain root folder.This step has realized opening the data message configuration file that has created, and is set to the current file folder.
Step S502 reads article one record related with root folder.
Step S503 creates article one record according to the type of article one record under root folder.This step has realized determining to create corresponding data by judging the type of this article one record.
Specifically can comprise following two kinds of situations:
A kind of is to judge that article one is recorded as under the situation of file type, article one record is added under the root folder, and jump under the step S504 detection current root file whether have next bar record; Another is to be recorded as under the situation of folder type in article one, creates sub-folder under root folder, and reads article one record under this sub-folder, and the method for repeating step S503 is created the record under this sub-folder then.
Step S504, detect under root folder and/or the sub-folder and whether have next bar record, and in judging file and/or sub-folder, exist under the situation of next bar record, then under root folder and/or sub-folder, create next bar record according to the type of next bar record.
Above-mentioned each step has realized parsing data message configuration file, obtain structural relation and descriptor between each data, after the record of root folder and all sub-folders has been finished in establishment, system begins to detect whether the current file folder is root folder, press from both sides under the situation of root folder at current file, close the data message configuration file.Concrete, this step detects by traversal whether file or folder is root file or root folder, namely use the mode of recalling to judge, after detecting root folder, close and read current data configuration file, namely read the configuration file flow process and finish, so far configuration file is read in the internal memory.
Preferably, in the above embodiments of the present application, receive at least two contact signals detecting touch-screen, and determine under the situation of at least two contact positions, what step S30 and step S50 realized determines the touch scope according to contact position, and the data acquisition that obtains in the scope of contact can comprise the steps:
Step S301, resolution data information configuration file, to obtain the current position that is presented at every data on the touch-screen, wherein, the data message configuration file comprises title, position and the sequence number of data.
Concrete, the data message configuration file in the above embodiments of the present application three can be the text of tree structure, also can be XML file or database file.This data message configuration file has recorded the descriptor of all data and the information such as data relationship between each data.For example, long press on the touch-screen end to end two files after, the position coordinates of these two files is obtained in triggering.
Step S302 mates two contact positions and the current position that is presented at every data on the touch-screen determined, to obtain two corresponding data of contact position at least at least.
Concrete, this step has realized how obtaining the coordinate position of two files after the triggering, and the coordinate position that obtains after namely the user can being touched is as the current contact position that is presented at the file on the touch-screen.
Step S303 reads the sequence number of at least two corresponding data of contact position, to obtain sequence number range.
Step S304 extracts the data number corresponding with the interior all sequences of sequence number range, obtains data acquisition.
Data in the above embodiments of the present application three can be file, file, picture or web page interlinkage etc.
Preferably, in the above embodiments of the present application, as shown in Figure 3, the step of the file that data acquisition is saved to the precalculated position that this step S70 realizes can comprise the steps:
Step S701, the type of data in the detection data acquisition; Wherein, when not having the data of folder type in the data acquisition, then the data in the data acquisition are copied in the first newly-built file, namely new folder and the file that copies selected data set are to wherein; When having a file in the data acquisition, then the data of non-folder type in the data acquisition are copied in this document folder in the data acquisition; When having a plurality of file in the data acquisition, then the data under a plurality of files are copied in the second newly-built file, be about in file copy to the newly-built file in the selected All Files folder.
Preferably, step S70 performed data acquisition is saved to the file in precalculated position after, the method that embodiment three realizes also comprises the steps:
Step S801 obtains the corresponding new construction relation of each data and new descriptor in the data acquisition;
Step S802 upgrades the data message configuration file according to new construction relation and new descriptor.
Above-mentioned steps has realized after the embodiment that uses the application to provide finishes data preparation, needs to upgrade original data message configuration file, so that system can read up-to-date demonstration information, and in the correct data of touch-screen demonstration.
In addition, in the above embodiments of the present application three, if the touch event that touch-screen is received and when having only a contact, which data what can judge that the user clicks according to touch location is, is that file is example with the type of data, if what trigger is a file, then display file information is if a file, then resolution file folder content, be shown in the screen, record the position of every data in screen.When if data type is other types such as picture or webpage, can carry out and show a pictures, perhaps open a web page interlinkage etc.
Need to prove, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
From above description, as can be seen, the present invention has realized following technique effect: a plurality of steps that the application will arrange the document are originally integrated, and whole arrangement process is finished by the processor arrangement, thereby solved the mode complex operation that is used for arrangement storage data in the related art, inefficient problem, and then realize the data of storing in the automatical and efficient arrangement terminal, improve the efficient of user's disposal data, and improved user experience effect.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and be carried out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.