WO2014082521A1 - Method and device for deleting or cutting file based on touch screen - Google Patents

Method and device for deleting or cutting file based on touch screen Download PDF

Info

Publication number
WO2014082521A1
WO2014082521A1 PCT/CN2013/086549 CN2013086549W WO2014082521A1 WO 2014082521 A1 WO2014082521 A1 WO 2014082521A1 CN 2013086549 W CN2013086549 W CN 2013086549W WO 2014082521 A1 WO2014082521 A1 WO 2014082521A1
Authority
WO
WIPO (PCT)
Prior art keywords
target file
file
gesture instruction
gesture
cut
Prior art date
Application number
PCT/CN2013/086549
Other languages
French (fr)
Chinese (zh)
Inventor
夏新球
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Publication of WO2014082521A1 publication Critical patent/WO2014082521A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present disclosure relates to the field of file processing, and more particularly to a method and apparatus for deleting or cutting a file based on a touch screen. Background technique
  • the operation of deleting the file through the touch screen includes:
  • the present disclosure provides a method and apparatus for deleting or cutting a file based on a touch screen, which simplifies the operation when deleting or cutting a file.
  • an embodiment of the present disclosure provides a method for deleting or cutting a file based on a touch screen, including the steps of: capturing a first gesture instruction input by a user through a touch screen; entering a to-be-deleted or cut state according to the first gesture instruction; capturing a user a second gesture instruction for the target file input through the touch screen; wherein the second gesture instruction includes a drag operation on the target file; and deleting or cutting the target file according to the second gesture instruction.
  • the delete button is not provided, but the second gesture is used to instruct the same action to implement both the selected file and the deleted file. Make deletion or cutting operations more flexible and easy.
  • the first gesture instruction is: performing a single point operation in a window where the target file is located; Alternatively, performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located.
  • the first gesture instruction can be implemented at any position in the window where the file is located, and the operation is more flexible without clicking a specific button.
  • the first gesture command is a long press operation. This can be distinguished from other gesture commands by single or multi-point operations combined with long press operations.
  • the step of entering the to-be-deleted or cut state according to the first gesture instruction comprises: determining whether the single-point operation selects the file, and if the single-point operation selects the file, the output Indicates whether to enter the prompt to be deleted or cut.
  • the user enters the state to be deleted or cut. If the file is not selected in the single point operation, the file to be deleted or cut is entered. Cut state.
  • the first gesture command is clicked at the icon of the file. In order to distinguish the operation of opening the file, the user selects the operation to be performed by outputting the prompt information. This solves the problem of how to enter the state to be deleted or cut in special cases.
  • the first gesture instruction input by the user through the touch screen is continuously captured.
  • the second gesture instruction is performed while maintaining the first gesture instruction, which is equivalent to deleting or cutting the file by the multi-point gesture operation. It only requires two gestures, it is easy to operate, and it is not easy to conflict with other existing gesture commands, and the operation is more accurate.
  • the step of deleting or cutting the selected file by the second gesture instruction according to the second gesture instruction comprises: determining, according to the second gesture instruction, whether the distance of the drag reaches a preset distance threshold If the dragged distance reaches the preset distance threshold, delete or cut the file selected by the second gesture instruction. In this embodiment, it is determined whether the user's delete (or cut) operation and the simple drag file operation are determined by determining whether the dragged distance reaches a preset distance threshold. To reduce misuse.
  • the second gesture instruction is: selecting the target file and dragging according to the preset first direction, or selecting the target file and dragging according to the preset second direction; Directing, deleting or cutting the target file is: if the second gesture instruction is a selected target file and dragging according to a preset first direction, deleting the target file; if the second gesture instruction is Select the target file and drag in the second direction of the preset to cut the target file.
  • This embodiment distinguishes deletion and cutting operations by different gesture directions to reduce erroneous operations and is easy to operate.
  • an embodiment of the present disclosure provides a method for deleting or cutting a file based on a touch screen, including the steps of: capturing a first gesture instruction input by a user through a touch screen; entering a to-be-deleted or cut state according to the first gesture instruction; capturing a second gesture instruction input by the user through the touch screen; selecting the target file according to the second gesture instruction; capturing a third gesture instruction for the target file input by the user through the touch screen, the third gesture instruction including dragging the at least one target file The operation is performed; according to the third gesture instruction, the target file selected by the second gesture instruction is deleted or cut.
  • a plurality of target files can be selected by the second gesture instruction, and then the third gesture instruction is used for batch deletion or cutting, so that the operation is faster.
  • the third gesture instruction is a drag gesture instruction, and does not need to click a specific delete button, and does not need to provide the button, so that the delete or cut operation is more flexible.
  • the first gesture instruction is: performing a single point operation in a window where the target file is located; or performing a multi-point operation in a window where the target file is located; or, in the target file A single point of sliding operation is performed in the window.
  • the first gesture instruction can be implemented at any position in the window where the file is located, and the operation is more flexible without clicking a specific button.
  • the first gesture command is a long press operation. This can be distinguished from other gesture commands by long presses of single or multiple points.
  • the step of entering the to-be-deleted or cut state according to the first gesture instruction comprises: determining whether the single-point operation selects the file, and if the single-point operation selects the file, the output Indicates whether to enter the prompt to be deleted or cut.
  • the user enters the state to be deleted or cut. If the file is not selected in the single point operation, the file to be deleted or cut is entered. Cut state.
  • the first gesture command is clicked at the icon of the file. In order to distinguish the operation of opening the file, the user selects the operation to be performed by outputting the prompt information. This solves the problem of how to enter the state to be deleted or cut in special cases.
  • the first gesture instruction made by the user on the touch screen is continuously captured.
  • the second gesture instruction and the third gesture instruction are performed while maintaining the first gesture instruction, which is equivalent to deleting or cutting the file by the multi-point gesture operation. It only requires two gestures, it is easy to operate, and it is not easy to conflict with other existing gesture commands, and the operation is more accurate.
  • the second gesture instruction is a single point operation
  • the selected target file includes one or more single point operations of the selected file; or the second gesture instruction is sliding and the sliding track forms a non-closed area
  • the selected target file is a file covered by the sliding track or a file other than the sliding track covering; or, the second gesture command is sliding and the sliding track forms a closed area, and the selected target file is a file in the closed area or outside the closed area.
  • Multiple files can be selected through various operations, which facilitates batch processing of files.
  • the step of deleting or cutting the target file according to the third gesture instruction includes: determining, according to the third gesture instruction, whether the distance of the drag reaches a preset distance threshold, if the dragged distance reaches a preset The distance threshold, then delete or cut the target file.
  • the user's delete (or cut) operation and the simple drag file operation are distinguished by determining whether the dragged distance reaches a preset distance threshold. To reduce misuse.
  • the third gesture instruction is: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction;
  • the instruction to delete or cut the target file is: if the third gesture instruction is to drag the at least one target file according to a preset first direction, deleting the target file selected by the second gesture instruction;
  • the three-gesture instruction is to drag the at least one target file according to a preset second direction, and cut the target file selected by the second gesture instruction.
  • an embodiment of the present disclosure provides an apparatus for deleting or cutting a file, including:
  • An interface module configured to capture a first gesture instruction input by the user through the touch screen; and capture a second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes dragging the target file Operation
  • a first processing module configured to enter a to-be-deleted or cut state according to the first gesture instruction
  • a second processing module configured to delete or cut the target file according to the second gesture instruction.
  • the first gesture instruction is:
  • the first gesture command is a long press operation.
  • the first processing module is configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, when the user is received When you select the command to enter the delete or cut state, enter the state to be deleted or cut; if the file is not selected in the single point operation, enter the state to be deleted or cut.
  • the interface module captures the first gesture instruction input by the user through the touch screen while capturing the second gesture instruction input by the user through the touch screen.
  • the second processing module is configured to: determine, according to the second gesture instruction, whether the dragged distance reaches a preset distance threshold, and if the dragged distance reaches a preset distance threshold, delete or cut the second gesture instruction Selected file.
  • the second gesture instruction is: selecting the target file and dragging the target file according to the preset first direction, or selecting the target file and dragging the target file according to the preset second direction;
  • the second processing module is configured to: if the second gesture instruction is a selected target file, and drag the target file according to a preset first direction, deleting the target file; if the second gesture instruction To select the target file and drag the target file in the preset second direction, cut the target file.
  • an embodiment of the present disclosure provides an apparatus for deleting or cutting a file, including:
  • An interface module configured to capture a first gesture instruction input by the user through the touch screen; capture a second gesture instruction input by the user through the touch screen; and capture a third gesture instruction of the user to the target file, where the third gesture instruction includes at least one target file Drag gesture instruction;
  • a first processing module configured to enter a to-be-deleted or cut state according to the first gesture instruction
  • a second processing module configured to select a target file according to the second gesture instruction
  • the first gesture instruction is: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single point in a window in which the target file is located Slide operation.
  • the first gesture command is a long press operation.
  • the first processing module is configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, when the user is received When you select the command to enter the delete or cut state, enter the state to be deleted or cut; if the file is not selected in the single point operation, enter the state to be deleted or cut.
  • the interface module captures the first gesture instruction made by the user on the touch screen while capturing the second gesture instruction and the third gesture instruction input by the user through the touch screen.
  • the second gesture instruction is a single point operation, and the selected target file is a file selected by one or more single point operations; or the second gesture instruction is a sliding and the sliding track forms a non-closed area, the selected target
  • the file is a file covered by a sliding track or a file other than a sliding track overlay;
  • the second gesture command is a slide and the sliding track forms a closed area
  • the selected object file is a file in the closed area or a file outside the closed area.
  • the third processing module is configured to: determine, according to the third gesture instruction, whether the dragged distance reaches a preset distance threshold, and if the dragged distance reaches a preset distance threshold, delete or cut the second gesture command to select Target file.
  • the third gesture instruction is: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction;
  • the third processing module is configured to: if the third gesture instruction is to drag the at least one target file according to a preset first direction, deleting the target file selected by the second gesture instruction;
  • the third gesture instruction is to drag the at least one target file in a preset second direction, cutting the target file selected by the second gesture command.
  • FIG. 1A is an exemplary flowchart of a primary method for deleting or cutting a file in the first embodiment of the present disclosure
  • FIG. 1B is a schematic diagram of a gesture position according to an embodiment of the present disclosure
  • FIG. 2 is an exemplary flowchart of a detailed method for deleting or cutting a file in the first embodiment of the present disclosure
  • FIG. 3 is an exemplary flowchart of a main method for deleting or cutting a file in the second embodiment of the present disclosure
  • FIG. 4 is an exemplary flowchart of a detailed method for deleting or cutting a file in the second embodiment of the present disclosure
  • FIG. 5 is an exemplary structural diagram of an apparatus for deleting or cutting a file in the first embodiment of the present disclosure
  • FIG. 6 is an exemplary structural diagram of an apparatus for deleting or cutting a file in the second embodiment of the present disclosure.
  • the embodiment of the present disclosure does not provide a delete button, but instructs one action by the second gesture to simultaneously implement two operations of selecting a file and deleting a file. Make deletion or cutting operations more flexible and simple.
  • the main method for deleting or cutting a file in the first embodiment is as follows:
  • Step 101 Capture a first gesture instruction input by the user through the touch screen.
  • Step 102 Enter a state to be deleted or cut according to the first gesture instruction.
  • Step 103 Capture a second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes a drag operation on the target file.
  • the file in this embodiment is embodied in the form of an icon in a window, and the file includes a text file, a picture file, an application, and the like.
  • the dragging includes: the file itself moves with the movement of the finger, or the file itself does not move with the movement of the finger, which is equivalent to clicking and sliding only on the selected file icon.
  • Step 104 Delete or cut the target file according to the second gesture instruction.
  • the preferred position of the first hand is the position shown by 11, and the position of the second gesture is as shown by 12.
  • the first gesture instruction includes: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located.
  • the single point operation here refers to a single point contact with the touch screen, for example, the user touches the touch screen with a single finger
  • the multi-point operation refers to multi-point contact with the touch screen, for example, the user touches the touch screen with multiple fingers
  • the single-point sliding finger touches and slides with the touch screen at a single point. For example, the user touches the touch screen with a single finger and then slides on the touch screen.
  • the first gesture can be operated at any position in the window, and the specific (such as "edit") button may not be provided in the window, and the to-be-deleted or cut state is directly entered according to the first gesture instruction, which simplifies the window content.
  • the first gesture instruction in this embodiment is a click or slide operation, if the position of the operation is a blank space of the window, the state to be deleted or cut can be directly entered according to the first gesture instruction. However, there may be a special case where the first gesture command is clicked on the icon of the file.
  • the first gesture instruction is to perform a long press operation in a window in which the target file is located, for example, the user touches the touch screen a single point and continuously contacts for more than one set time.
  • a prompt indicating whether to enter the to-be-deleted or cut state is output, and when the user selects to enter to be deleted or cut
  • the state command is cut, the state to be deleted or cut is entered.
  • the user can exit the delete or cut state by setting other gesture commands, or can exit the delete or cut state through a software or hardware button, for example, by "returning" on the terminal. "Hardware button, "Return” button 13 in Figure 1B.
  • the deletion or cutting operation is completed, the normal operating state of the terminal can be restored.
  • the first gesture instruction input by the user through the touch screen is continuously captured, and the continuous capture is ended.
  • the status to be deleted or cut is exited. This can effectively distinguish it from other gesture commands and reduce misoperations.
  • the second gesture instruction may be: selecting the target file and dragging according to the preset first direction, or selecting the target file and dragging according to the preset second direction.
  • the deletion operation and the cutting operation can be distinguished by different drag directions.
  • the distance of the second gesture drag file should reach a preset distance threshold (such as reaching one third of the window length in the drag direction). Therefore, according to the second gesture instruction, it is determined whether the distance of the drag reaches a preset distance threshold, and if so, the file selected by the second gesture instruction is deleted or cut; no shell I", no deletion or no clipping Cut the selected file by the second gesture command.
  • the first gesture command is a single point operation
  • the second gesture instruction is captured
  • the first gesture instruction is continuously captured
  • the delete or cut state is exited.
  • the detailed method for deleting or cutting a file in the first embodiment is as follows:
  • Step 201 Capture a first gesture instruction made by the user on the touch screen.
  • Step 202 Determine whether the position of the first gesture instruction operation is an icon position, and if yes, proceed to step 203, otherwise continue to step 204.
  • Step 203 Output a prompt to the user. If the user chooses to enter the to-be-deleted or cut state, proceed to step 204. If the user selects other operations prompted, continue with other operations to end the process.
  • Step 204 Enter a state to be deleted or cut according to the first gesture instruction.
  • Step 205 Capture a second gesture instruction that the user drags the file in the touch screen.
  • Step 206 Determine whether the dragged distance reaches a preset distance threshold, and if yes, proceed to step 207; otherwise, continue to step 208.
  • Step 207 Delete or cut the file selected by the second gesture instruction.
  • Step 208 The file selected by the second gesture instruction is not deleted or cut.
  • each time the second gesture instruction is executed a file can be deleted or cut. If multiple files need to be deleted or cut, the second gesture instruction needs to be executed and captured multiple times in the deleted or cut state. That is, steps 205 to 207 are repeated, thereby implementing bulk deletion or cutting.
  • the second main method for deleting or cutting a file in this embodiment is as follows:
  • Step 301 Capture a first gesture instruction input by the user through the touch screen.
  • Step 302 Enter a state to be deleted or cut according to the first gesture instruction.
  • Step 303 Capture a second gesture instruction input by the user through the touch screen.
  • Step 304 Select the target file according to the second gesture instruction.
  • Step 305 Capture a third gesture instruction for the target file input by the user through the touch screen, the third gesture instruction including a drag operation on the at least one target file.
  • Step 306 Delete or cut the target file selected by the second gesture instruction according to the third gesture instruction.
  • the deletion operation and the cutting operation can be distinguished by different drag directions.
  • the first gesture instruction includes: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located.
  • the single point operation here refers to a single point contact with the touch screen, for example, the user touches the touch screen with a single finger
  • the multi-point operation refers to multi-point contact with the touch screen, for example, the user touches the touch screen with multiple fingers
  • the single-point sliding finger touches and slides with the touch screen at a single point. For example, the user touches the touch screen with a single finger and then slides on the touch screen.
  • the first gesture can be operated at any position in the window, and the window may not provide a specific (eg,
  • the "Edit” button directly enters the state to be deleted or cut according to the first gesture command, which simplifies the window content.
  • the first gesture instruction in this embodiment is a click or slide operation, if the position of the operation is a blank space of the window, the state to be deleted or cut can be directly entered according to the first gesture instruction. However, there may be a special case where the first gesture command is clicked on the icon of the file.
  • the first gesture instruction may be a long-press operation, for example, performing a single-point long-press operation in a window in which the target file is located, that is, the single-point operation continues to exceed A set time. If the file is not selected in the single point operation, the status to be deleted or cut is entered.
  • a prompt indicating whether to enter the to-be-deleted or cut state is output, and when the user selects to enter to be deleted or cut
  • the state command is cut, the state to be deleted or cut is entered.
  • the user can exit the delete or cut state by setting other gesture commands, or can exit the delete or cut state through a software or hardware button, for example, by "returning" on the terminal.
  • "Hardware button, "Return” button 13 in Figure 1B This will restore the normal operating state of the terminal after the deletion or cutting operation is completed.
  • the first gesture instruction of the user on the touch screen is continuously captured, When the first gesture instruction is continuously captured, the state to be deleted or cut is exited.
  • the second gesture instruction may be a single point operation, and the selected target file is one or more single-point operation selected files, and steps 303 and 304 may be repeated multiple times to select multiple files; or, the second gesture The command is a sliding and the sliding track forms a non-closed area, and the selected target file is a file covered by the sliding track or a file other than the sliding track covering; or the second gesture command is sliding and the sliding track forms a closed area, the selected target The file is a file in a closed area or a file outside the enclosed area. In this way, it is convenient to select multiple files in one operation.
  • the third gesture instruction may be a drag instruction, in order to distinguish from the moving operation on the file, according to the third gesture instruction, determine whether the dragged distance reaches a preset distance threshold, and if so, delete or cut the target. File; otherwise, the target file is not deleted or not cut. And, the third gesture instruction is: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction. In this way, the deletion and cutting operations can be distinguished by two directions of a gesture, making the operation flexible and simple.
  • the first gesture instruction is a single point operation, while the second gesture instruction and the third gesture instruction are captured, the first gesture instruction is continuously captured, and when the first gesture instruction is continuously captured, the deletion is exited. Or cut state.
  • the second method for deleting or cutting a file in this embodiment is as follows:
  • Step 401 Capture a first gesture instruction made by the user on the touch screen.
  • Step 402 Determine whether the position of the first gesture instruction operation is the icon position, and if yes, proceed to step 403, otherwise continue to step 404.
  • Step 403 Output a prompt to the user. If the user chooses to enter the delete or cut state, proceed to step 204. If the user selects other operations prompted, the other operations are continued, and the process ends.
  • Step 404 Enter a state to be deleted or cut according to the first gesture instruction.
  • Step 405 Capture a second gesture instruction made by the user on the file in the touch screen.
  • Step 406 Select the target file according to the second gesture instruction.
  • Step 407 Capture a third gesture instruction of the user to the target file, where the third gesture instruction is a drag gesture instruction to the at least one target file.
  • Step 408 Determine whether the dragged distance reaches a preset distance threshold. If yes, proceed to step 409; otherwise, continue to step 410.
  • Step 409 Delete or cut the target file.
  • Step 410 Do not delete or cut the target file.
  • the apparatus for deleting or cutting a file in this embodiment includes: an interface module 501, a first processing module 502, and a second processing module 503.
  • the interface module 501 is configured to capture a first gesture instruction input by the user through the touch screen; and capture a second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes dragging the target file operating.
  • the first processing module 502 is configured to enter a state to be deleted or cut according to the first gesture instruction.
  • the second processing module 503 is configured to delete or cut the target file according to the second gesture instruction.
  • the first gesture instruction may be: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located.
  • the first gesture command can be a long press operation.
  • the first processing module 502 can be configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, To the user When you select the command to enter the delete or cut state, enter the state to be deleted or cut; if the file is not selected in the single point operation, enter the state to be deleted or cut.
  • the interface module 501 captures the second gesture instruction input by the user through the touch screen while continuously capturing the first gesture instruction input by the user through the touch screen.
  • the second processing module 503 is configured to: determine, according to the second gesture instruction, whether the dragged distance reaches a preset distance threshold, and if the dragged distance reaches a preset distance threshold, delete or cut through the second hand The file selected by the potential command; if the dragged distance does not reach the preset distance threshold, the file selected by the second gesture instruction is not deleted or cut.
  • the second gesture instruction may be: selecting the target file and dragging according to the preset first direction, or selecting the target file and dragging according to the preset second direction.
  • the second gesture instruction is a selected target file and dragged according to a preset first direction, deleting the target file; if the second gesture The instruction is to select the target file and drag according to the preset second direction to cut the target file.
  • the apparatus for deleting or cutting a file in this embodiment includes: an interface module 601, a first processing module 602, a second processing module 603, and a third processing module 604.
  • the interface module 601 is configured to capture a first gesture instruction input by the user through the touch screen; capture a second gesture instruction input by the user through the touch screen; and capture a third gesture instruction for the target file input by the user through the touch screen, the third gesture instruction includes At least one drag operation of the target file.
  • the first processing module 602 is configured to enter a state to be deleted or cut according to the first gesture instruction.
  • the second processing module 603 is configured to select the target file according to the second gesture instruction.
  • the third processing module 604 is configured to delete or cut the target file selected by the second finger instruction according to the third gesture instruction.
  • the first gesture instruction may include: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located.
  • the first gesture instruction is a long press operation.
  • the second gesture instruction may include a single point operation, the selected target file includes one or more single point operations of the selected file; or the second gesture instruction is a sliding and the sliding track forms a non-closed area, the selected The target file is a file covered by the sliding track or a file other than the sliding track cover; or the second gesture command is sliding and the sliding track forms a closed area, and the selected target file includes a file in the closed area or an enclosed area document.
  • the first processing module 602 can be configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, When the user selects the instruction to enter the state to be deleted or cut, the state to be deleted or cut is entered; if the file is not selected by the single point operation, the state to be deleted or cut is entered.
  • the interface module 601 captures the second gesture instruction and the third gesture instruction performed by the user on the file in the touch screen, and can continuously capture the first gesture instruction made by the user on the touch screen.
  • the third processing module 604 can be configured to: determine, according to the third gesture instruction, whether the distance of the drag reaches a preset distance From the threshold, if the dragged distance reaches the preset distance threshold, the target file is deleted or cut; if the dragged distance does not reach the preset threshold, the target file is not deleted or not cut.
  • the third gesture instruction may be: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction.
  • the third processing module 604 is configured to: if the third gesture instruction is to drag the at least one target file according to a preset first direction, deleting the target file selected by the second gesture instruction; The third gesture instruction is to drag the at least one target file according to a preset second direction, and cut the target file selected by the second gesture instruction.
  • the delete button is not provided, but the second gesture is used to instruct the same action to implement both the selected file and the deleted file. Make deletion or cutting operations more flexible and simple.
  • This embodiment also provides various gesture commands to solve special cases and distinguish between delete and cut operations.
  • embodiments of the present disclosure can be provided as a method, system, or computer program product.
  • embodiments of the present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • embodiments of the present disclosure may take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • Embodiments of the present disclosure are described with reference to flowchart illustrations and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more flows of the flowchart or a block or blocks of the I or block diagram.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Provided is a method for deleting or cutting a file based on a touch screen, capable of simplifying file deletion or cutting operations. The method comprises: capturing a first gesture instruction inputted by a user via a touch screen; entering a to-be-deleted or to-be-cut state according to the first gesture instruction; capturing a second gesture instruction inputted by the user for a target file via the touch screen, the second gesture instruction containing a drag operation for the target file; and deleting or cutting the target file according to the second gesture instruction. Also provided is a device for realizing the method.

Description

基于触摸屏删除或剪切文件的方法及装置 本申请基于申请号为 201210506204.3、 申请日为 2012年 11月 30日的中国专利申请 提出, 并要求该中国专利申请的优先权, 该中国专利申请的全部内容在此引入本申请作为 参考。 技术领域  Method and apparatus for deleting or cutting a document based on a touch screen This application is based on a Chinese patent application with the application number 201210506204.3 and the application date being November 30, 2012, and claims the priority of the Chinese patent application, the entire Chinese patent application The contents are incorporated herein by reference. Technical field
本公开涉及文件处理领域, 尤其涉及基于触摸屏删除或剪切文件的方法及装置。 背景技术  The present disclosure relates to the field of file processing, and more particularly to a method and apparatus for deleting or cutting a file based on a touch screen. Background technique
随着通信技术的发展, 具有触摸屏的手机已得到广泛的普及。手机的存储空间是有限 的, 为了能保证手机运行顺畅, 用户需要经常对手机上存储的文件进行整理, 包括对手机 上的联系人信息、 短信、 照片等进行整理, 这其中删除和剪切是非常常见的操作。  With the development of communication technologies, mobile phones with touch screens have been widely used. The storage space of the mobile phone is limited. In order to ensure the smooth operation of the mobile phone, the user needs to organize the files stored on the mobile phone frequently, including collating the contact information, short messages, photos, etc. on the mobile phone, wherein the deletion and cutting are Very common operation.
以删除文件为例, 如果手机中提供编辑和删除按钮的应用, 通过触摸屏删除文件的操 作过程包括:  Taking the deletion of the file as an example, if the application of the edit and delete buttons is provided in the mobile phone, the operation of deleting the file through the touch screen includes:
点击编辑按钮, 进入待删除或剪切状态;  Click the Edit button to enter the status to be deleted or cut;
点击需要删除的文件; 此时可以有多个文件被选中;  Click on the file you want to delete; at this point you can have multiple files selected;
点击删除按钮, 删除选中的文件。  Click the Delete button to delete the selected file.
由此可见, 整个删除操作较为繁琐, 操作过程较多, 并且需要点击特定的删除按钮才 能完成删除操作。  It can be seen that the entire deletion operation is cumbersome, the operation process is more, and the specific deletion button is required to complete the deletion operation.
如果手机中未提供编辑和删除按钮的应用, 则只能先选中要删除的一个文件, 然后通 过弹出菜单选择相应的命令进行删除, 当要删除多个文件时, 需要对每个文件逐一操作, 操作不够简便。 发明内容  If the application for editing and deleting buttons is not provided in the mobile phone, you can only select one file to be deleted first, and then select the corresponding command to delete it through the pop-up menu. When you want to delete multiple files, you need to operate each file one by one. The operation is not easy enough. Summary of the invention
本公开提供基于触摸屏删除或剪切文件的方法及装置,能够简化删除或剪切文件时的 操作。  The present disclosure provides a method and apparatus for deleting or cutting a file based on a touch screen, which simplifies the operation when deleting or cutting a file.
一方面, 本公开实施例提供一种基于触摸屏删除或剪切文件的方法, 包括以下步骤: 捕获用户通过触摸屏输入的第一手势指令; 根据第一手势指令进入待删除或剪切状态; 捕 获用户通过触摸屏输入的针对目标文件的第二手势指令; 其中, 第二手势指令包括对所述 目标文件的拖动操作; 根据第二手势指令, 删除或剪切所述目标文件。 本实施例不提供删 除按钮, 而是通过第二手势指令这一个动作同时实现选中文件和删除文件两个操作。使得 删除或剪切操作更灵活简便。  In one aspect, an embodiment of the present disclosure provides a method for deleting or cutting a file based on a touch screen, including the steps of: capturing a first gesture instruction input by a user through a touch screen; entering a to-be-deleted or cut state according to the first gesture instruction; capturing a user a second gesture instruction for the target file input through the touch screen; wherein the second gesture instruction includes a drag operation on the target file; and deleting or cutting the target file according to the second gesture instruction. In this embodiment, the delete button is not provided, but the second gesture is used to instruct the same action to implement both the selected file and the deleted file. Make deletion or cutting operations more flexible and easy.
在一种实施方式中, 第一手势指令为: 在所述目标文件所在的窗口中进行单点操作; 或者, 在所述目标文件所在的窗口中进行多点操作; 或者, 在所述目标文件所在的窗口中 进行单点滑动操作。 本实施例中第一手势指令可以在文件所在窗口中的任意一个位置实 现, 不需要点击特定的按钮, 操作更灵活。 In an embodiment, the first gesture instruction is: performing a single point operation in a window where the target file is located; Alternatively, performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located. In this embodiment, the first gesture instruction can be implemented at any position in the window where the file is located, and the operation is more flexible without clicking a specific button.
在一种实施方式中, 第一手势指令为长按操作。这样可通过单点或多点操作并结合长 按操作来区别于其它的手势指令。  In one embodiment, the first gesture command is a long press operation. This can be distinguished from other gesture commands by single or multi-point operations combined with long press operations.
在一种实施方式中, 当第一手势指令是单点操作时, 根据第一手势指令进入待删除或 剪切状态的步骤包括: 判断单点操作是否选中文件, 如果单点操作选中文件, 输出表示是 否进入待删除或剪切状态的提示, 当收到用户选择进入待删除或剪切状态的指令时, 进入 待删除或剪切状态; 如果单点操作未选中文件, 则进入待删除或剪切状态。 本实施例中可 能存在一种特殊的情况, 就是第一手势指令点击在文件的图标处, 为了区别于打开文件的 操作, 此时通过输出提示信息来由用户选择其所要进行的操作。 这样, 可解决特殊情况下 如何进入待删除或剪切状态的问题。  In an embodiment, when the first gesture instruction is a single-point operation, the step of entering the to-be-deleted or cut state according to the first gesture instruction comprises: determining whether the single-point operation selects the file, and if the single-point operation selects the file, the output Indicates whether to enter the prompt to be deleted or cut. When receiving the command to enter the state to be deleted or cut, the user enters the state to be deleted or cut. If the file is not selected in the single point operation, the file to be deleted or cut is entered. Cut state. In this embodiment, there may be a special case where the first gesture command is clicked at the icon of the file. In order to distinguish the operation of opening the file, the user selects the operation to be performed by outputting the prompt information. This solves the problem of how to enter the state to be deleted or cut in special cases.
在一种实施方式中, 捕获用户通过触摸屏输入的第二手势指令的同时, 持续捕获用户 通过触摸屏输入的第一手势指令。本实施例中在保持第一手势指令的同时进行第二手势指 令, 相当于通过多点手势操作来进行文件的删除或剪切。 仅需要两个手势, 操作简便, 并 且不容易与其它已有的手势指令冲突, 操作更准确。  In one embodiment, while capturing a second gesture instruction input by the user through the touch screen, the first gesture instruction input by the user through the touch screen is continuously captured. In this embodiment, the second gesture instruction is performed while maintaining the first gesture instruction, which is equivalent to deleting or cutting the file by the multi-point gesture operation. It only requires two gestures, it is easy to operate, and it is not easy to conflict with other existing gesture commands, and the operation is more accurate.
在一种实施方式中, 根据第二手势指令, 删除或剪切通过第二手势指令选中的文件的 步骤包括: 根据第二手势指令, 判断拖动的距离是否达到预设的距离门限, 如果拖动的距 离达到预设的距离门限, 则删除或剪切通过第二手势指令选中的文件。本实施例中通过判 断拖动的距离是否达到预设的距离门限, 来区分用户的删除(或剪切)操作与单纯的拖动 文件的操作。 以减少误操作。  In an embodiment, the step of deleting or cutting the selected file by the second gesture instruction according to the second gesture instruction comprises: determining, according to the second gesture instruction, whether the distance of the drag reaches a preset distance threshold If the dragged distance reaches the preset distance threshold, delete or cut the file selected by the second gesture instruction. In this embodiment, it is determined whether the user's delete (or cut) operation and the simple drag file operation are determined by determining whether the dragged distance reaches a preset distance threshold. To reduce misuse.
在一种实施方式中, 第二手势指令为: 选中目标文件并按照预设的第一方向拖动, 或 选中目标文件并按照预设的第二方向拖动; 所述根据第二手势指令, 删除或剪切所述目标 文件为: 如果所述第二手势指令为选中目标文件并按照预设的第一方向拖动, 删除所述目 标文件; 如果所述第二手势指令为选中目标文件并按照预设的第二方向拖动, 剪切所述目 标文件。 本实施例通过不同的手势方向来区分删除和剪切操作, 以减少误操作, 并且操作 简便。  In an embodiment, the second gesture instruction is: selecting the target file and dragging according to the preset first direction, or selecting the target file and dragging according to the preset second direction; Directing, deleting or cutting the target file is: if the second gesture instruction is a selected target file and dragging according to a preset first direction, deleting the target file; if the second gesture instruction is Select the target file and drag in the second direction of the preset to cut the target file. This embodiment distinguishes deletion and cutting operations by different gesture directions to reduce erroneous operations and is easy to operate.
另一方面,本公开实施例提供一种基于触摸屏删除或剪切文件的方法,包括以下步骤: 捕获用户通过触摸屏输入的第一手势指令; 根据第一手势指令进入待删除或剪切状态; 捕 获用户通过触摸屏输入的第二手势指令; 根据第二手势指令, 选中目标文件; 捕获用户通 过触摸屏输入的针对目标文件的第三手势指令,该第三手势指令包括对至少一个目标文件 的拖动操作; 根据第三手势指令, 删除或剪切第二手势指令选中的目标文件。 本实施例中 通过第二手势指令可以选择多个目标文件, 然后通过第三手势指令进行批量删除或剪切, 使操作更快捷。 并且, 第三手势指令为拖动手势指令, 不需要点击特定的删除按钮, 也不 需要提供该按钮, 使删除或剪切操作更灵活。 在一种实施方式中, 第一手势指令为: 在所述目标文件所在的窗口中进行单点操作; 或者, 在所述目标文件所在的窗口中进行多点操作; 或者, 在所述目标文件所在的窗口中 进行单点滑动操作。 本实施例中第一手势指令可以在文件所在窗口中的任意一个位置实 现, 不需要点击特定的按钮, 操作更灵活。 In another aspect, an embodiment of the present disclosure provides a method for deleting or cutting a file based on a touch screen, including the steps of: capturing a first gesture instruction input by a user through a touch screen; entering a to-be-deleted or cut state according to the first gesture instruction; capturing a second gesture instruction input by the user through the touch screen; selecting the target file according to the second gesture instruction; capturing a third gesture instruction for the target file input by the user through the touch screen, the third gesture instruction including dragging the at least one target file The operation is performed; according to the third gesture instruction, the target file selected by the second gesture instruction is deleted or cut. In this embodiment, a plurality of target files can be selected by the second gesture instruction, and then the third gesture instruction is used for batch deletion or cutting, so that the operation is faster. Moreover, the third gesture instruction is a drag gesture instruction, and does not need to click a specific delete button, and does not need to provide the button, so that the delete or cut operation is more flexible. In an embodiment, the first gesture instruction is: performing a single point operation in a window where the target file is located; or performing a multi-point operation in a window where the target file is located; or, in the target file A single point of sliding operation is performed in the window. In this embodiment, the first gesture instruction can be implemented at any position in the window where the file is located, and the operation is more flexible without clicking a specific button.
在一种实施方式中, 第一手势指令为长按操作。这样可通过单点或多点的长按操作来 区别于其它的手势指令。  In one embodiment, the first gesture command is a long press operation. This can be distinguished from other gesture commands by long presses of single or multiple points.
在一种实施方式中, 当第一手势指令是单点操作时, 根据第一手势指令进入待删除或 剪切状态的步骤包括: 判断单点操作是否选中文件, 如果单点操作选中文件, 输出表示是 否进入待删除或剪切状态的提示, 当收到用户选择进入待删除或剪切状态的指令时, 进入 待删除或剪切状态; 如果单点操作未选中文件, 则进入待删除或剪切状态。 本实施例中可 能存在一种特殊的情况, 就是第一手势指令点击在文件的图标处, 为了区别于打开文件的 操作, 此时通过输出提示信息来由用户选择其所要进行的操作。 这样, 可解决特殊情况下 如何进入待删除或剪切状态的问题。  In an embodiment, when the first gesture instruction is a single-point operation, the step of entering the to-be-deleted or cut state according to the first gesture instruction comprises: determining whether the single-point operation selects the file, and if the single-point operation selects the file, the output Indicates whether to enter the prompt to be deleted or cut. When receiving the command to enter the state to be deleted or cut, the user enters the state to be deleted or cut. If the file is not selected in the single point operation, the file to be deleted or cut is entered. Cut state. In this embodiment, there may be a special case where the first gesture command is clicked at the icon of the file. In order to distinguish the operation of opening the file, the user selects the operation to be performed by outputting the prompt information. This solves the problem of how to enter the state to be deleted or cut in special cases.
在一种实施方式中, 捕获用户通过触摸屏输入的第二手势指令和第三手势指令的同 时, 持续捕获用户对触摸屏进行的第一手势指令。本实施例中在保持第一手势指令的同时 进行第二手势指令和第三手势指令, 相当于通过多点手势操作来进行文件的删除或剪切。 仅需要两个手势, 操作简便, 并且不容易与其它已有的手势指令冲突, 操作更准确。  In one embodiment, while capturing the second gesture instruction and the third gesture instruction input by the user through the touch screen, the first gesture instruction made by the user on the touch screen is continuously captured. In this embodiment, the second gesture instruction and the third gesture instruction are performed while maintaining the first gesture instruction, which is equivalent to deleting or cutting the file by the multi-point gesture operation. It only requires two gestures, it is easy to operate, and it is not easy to conflict with other existing gesture commands, and the operation is more accurate.
在一种实施方式中, 第二手势指令为单点操作, 选中的目标文件包括一次或多次单点 操作选中的文件; 或者, 第二手势指令为滑动并且滑动轨迹形成非封闭区域, 选中的目标 文件为滑动轨迹覆盖的文件或除滑动轨迹覆盖之外的文件; 或者, 第二手势指令为滑动并 且滑动轨迹形成封闭区域, 选中的目标文件为封闭区域内的文件或封闭区域外的文件。通 过各种操作均可实现选择多个文件, 便于实现文件的批量处理。  In one embodiment, the second gesture instruction is a single point operation, and the selected target file includes one or more single point operations of the selected file; or the second gesture instruction is sliding and the sliding track forms a non-closed area, The selected target file is a file covered by the sliding track or a file other than the sliding track covering; or, the second gesture command is sliding and the sliding track forms a closed area, and the selected target file is a file in the closed area or outside the closed area. document. Multiple files can be selected through various operations, which facilitates batch processing of files.
在一种实施方式中, 根据第三手势指令, 删除或剪切目标文件的步骤包括: 根据第三 手势指令, 判断拖动的距离是否达到预设的距离门限, 如果拖动的距离达到预设的距离门 限, 则删除或剪切目标文件。 本实施例中通过判断拖动的距离是否达到预设的距离门限, 来区分用户的删除 (或剪切) 操作与单纯的拖动文件的操作。 以减少误操作。  In an embodiment, the step of deleting or cutting the target file according to the third gesture instruction includes: determining, according to the third gesture instruction, whether the distance of the drag reaches a preset distance threshold, if the dragged distance reaches a preset The distance threshold, then delete or cut the target file. In this embodiment, the user's delete (or cut) operation and the simple drag file operation are distinguished by determining whether the dragged distance reaches a preset distance threshold. To reduce misuse.
在一种实施方式中,第三手势指令为:对至少一个目标文件按照预设的第一方向拖动, 或对至少一个目标文件按照预设的第二方向拖动; 所述根据第三手势指令, 删除或剪切所 述目标文件为: 如果所述第三手势指令为对至少一个目标文件按照预设的第一方向拖动, 删除第二手势指令选中的目标文件;如果所述第三手势指令为对至少一个目标文件按照预 设的第二方向拖动, 剪切第二手势指令选中的目标文件。本实施例通过不同的手势方向来 区分删除和剪切操作, 以减少误操作, 并且操作简便。  In an embodiment, the third gesture instruction is: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction; The instruction to delete or cut the target file is: if the third gesture instruction is to drag the at least one target file according to a preset first direction, deleting the target file selected by the second gesture instruction; The three-gesture instruction is to drag the at least one target file according to a preset second direction, and cut the target file selected by the second gesture instruction. This embodiment distinguishes deletion and cutting operations by different gesture directions to reduce erroneous operations and is easy to operate.
又一方面, 本公开实施例提供一种删除或剪切文件的装置, 包括:  In another aspect, an embodiment of the present disclosure provides an apparatus for deleting or cutting a file, including:
接口模块, 用于捕获用户通过触摸屏输入的第一手势指令; 以及, 捕获用户通过触摸 屏输入的针对目标文件的第二手势指令; 其中, 第二手势指令包括对所述目标文件的拖动 操作; An interface module, configured to capture a first gesture instruction input by the user through the touch screen; and capture a second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes dragging the target file Operation
第一处理模块, 用于根据第一手势指令进入待删除或剪切状态;  a first processing module, configured to enter a to-be-deleted or cut state according to the first gesture instruction;
第二处理模块, 用于根据第二手势指令, 删除或剪切所述目标文件。  And a second processing module, configured to delete or cut the target file according to the second gesture instruction.
第一手势指令为:  The first gesture instruction is:
在所述目标文件所在的窗口中进行单点操作; 或者  Perform a single point operation in the window in which the target file is located; or
在所述目标文件所在的窗口中进行多点操作; 或者  Perform multiple operations in the window in which the target file is located; or
在所述目标文件所在的窗口中进行单点滑动操作。  Perform a single-point sliding operation in the window in which the target file is located.
第一手势指令为长按操作。  The first gesture command is a long press operation.
第一处理模块用于: 在第一手势指令是单点操作时, 判断单点操作是否选中文件, 如 果单点操作选中文件, 输出表示是否进入待删除或剪切状态的提示, 当收到用户选择进入 待删除或剪切状态的指令时, 进入待删除或剪切状态; 如果单点操作未选中文件, 则进入 待删除或剪切状态。  The first processing module is configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, when the user is received When you select the command to enter the delete or cut state, enter the state to be deleted or cut; if the file is not selected in the single point operation, enter the state to be deleted or cut.
接口模块捕获用户通过触摸屏输入的第二手势指令的同时,持续捕获用户通过触摸屏 输入的第一手势指令。  The interface module captures the first gesture instruction input by the user through the touch screen while capturing the second gesture instruction input by the user through the touch screen.
第二处理模块用于: 根据第二手势指令, 判断拖动的距离是否达到预设的距离门限, 如果拖动的距离达到预设的距离门限, 则删除或剪切通过第二手势指令选中的文件。  The second processing module is configured to: determine, according to the second gesture instruction, whether the dragged distance reaches a preset distance threshold, and if the dragged distance reaches a preset distance threshold, delete or cut the second gesture instruction Selected file.
第二手势指令为: 选中目标文件并按照预设的第一方向拖动所述目标文件, 或选中目 标文件并按照预设的第二方向拖动所述目标文件;  The second gesture instruction is: selecting the target file and dragging the target file according to the preset first direction, or selecting the target file and dragging the target file according to the preset second direction;
所述第二处理模块用于:如果所述第二手势指令为选中目标文件并按照预设的第一方 向拖动所述目标文件, 删除所述目标文件; 如果所述第二手势指令为选中目标文件并按照 预设的第二方向拖动所述目标文件, 剪切所述目标文件。  The second processing module is configured to: if the second gesture instruction is a selected target file, and drag the target file according to a preset first direction, deleting the target file; if the second gesture instruction To select the target file and drag the target file in the preset second direction, cut the target file.
再一方面, 本公开实施例提供一种删除或剪切文件的装置, 包括:  In still another aspect, an embodiment of the present disclosure provides an apparatus for deleting or cutting a file, including:
接口模块, 用于捕获用户通过触摸屏输入的第一手势指令; 捕获用户通过触摸屏输入 的第二手势指令; 捕获用户对目标文件的第三手势指令, 该第三手势指令包括对至少一个 目标文件的拖动手势指令;  An interface module, configured to capture a first gesture instruction input by the user through the touch screen; capture a second gesture instruction input by the user through the touch screen; and capture a third gesture instruction of the user to the target file, where the third gesture instruction includes at least one target file Drag gesture instruction;
第一处理模块, 用于根据第一手势指令进入待删除或剪切状态;  a first processing module, configured to enter a to-be-deleted or cut state according to the first gesture instruction;
第二处理模块, 用于根据第二手势指令, 选中目标文件;  a second processing module, configured to select a target file according to the second gesture instruction;
第三处理模块, 用于根据第三手势指令, 删除或剪切第二手势指令选中的目标文件。 第一手势指令为: 在所述目标文件所在的窗口中进行单点操作; 或者, 在所述目标文 件所在的窗口中进行多点操作; 或者, 在所述目标文件所在的窗口中进行单点滑动操作。  And a third processing module, configured to delete or cut the target file selected by the second gesture instruction according to the third gesture instruction. The first gesture instruction is: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single point in a window in which the target file is located Slide operation.
第一手势指令为长按操作。  The first gesture command is a long press operation.
第一处理模块用于: 在第一手势指令是单点操作时, 判断单点操作是否选中文件, 如 果单点操作选中文件, 输出表示是否进入待删除或剪切状态的提示, 当收到用户选择进入 待删除或剪切状态的指令时, 进入待删除或剪切状态; 如果单点操作未选中文件, 则进入 待删除或剪切状态。 接口模块捕获用户通过触摸屏输入的第二手势指令和第三手势指令的同时,持续捕获 用户对触摸屏进行的第一手势指令。 The first processing module is configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, when the user is received When you select the command to enter the delete or cut state, enter the state to be deleted or cut; if the file is not selected in the single point operation, enter the state to be deleted or cut. The interface module captures the first gesture instruction made by the user on the touch screen while capturing the second gesture instruction and the third gesture instruction input by the user through the touch screen.
第二手势指令为单点操作, 所述选中的目标文件为一次或多次单点操作选中的文件; 或者, 第二手势指令为滑动并且滑动轨迹形成非封闭区域, 所述选中的目标文件为滑 动轨迹覆盖的文件或除滑动轨迹覆盖之外的文件;  The second gesture instruction is a single point operation, and the selected target file is a file selected by one or more single point operations; or the second gesture instruction is a sliding and the sliding track forms a non-closed area, the selected target The file is a file covered by a sliding track or a file other than a sliding track overlay;
或者, 第二手势指令为滑动并且滑动轨迹形成封闭区域, 所述选中的目标文件为封闭 区域内的文件或封闭区域外的文件。  Alternatively, the second gesture command is a slide and the sliding track forms a closed area, and the selected object file is a file in the closed area or a file outside the closed area.
第三处理模块用于: 根据第三手势指令, 判断拖动的距离是否达到预设的距离门限, 如果拖动的距离达到预设的距离门限, 则删除或剪切第二手势指令选中的目标文件。  The third processing module is configured to: determine, according to the third gesture instruction, whether the dragged distance reaches a preset distance threshold, and if the dragged distance reaches a preset distance threshold, delete or cut the second gesture command to select Target file.
第三手势指令为: 对至少一个目标文件按照预设的第一方向拖动, 或对至少一个目标 文件按照预设的第二方向拖动;  The third gesture instruction is: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction;
所述第三处理模块用于:如果所述第三手势指令为对至少一个目标文件按照预设的第 一方向拖动, 删除第二手势指令选中的目标文件;  The third processing module is configured to: if the third gesture instruction is to drag the at least one target file according to a preset first direction, deleting the target file selected by the second gesture instruction;
如果所述第三手势指令为对至少一个目标文件按照预设的第二方向拖动,剪切第二手 势指令选中的目标文件。  If the third gesture instruction is to drag the at least one target file in a preset second direction, cutting the target file selected by the second gesture command.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。 本公开实施例的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说明书中 变得显而易见, 或者通过实施本公开实施例而了解。本公开实施例的目的和其他优点可通 过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实现和获得。  The above general description and the following detailed description are merely exemplary and are not intended to limit the disclosure. Other features and advantages of the embodiments of the present disclosure will be set forth in the description in the description. The objectives and other advantages of the embodiments of the present disclosure can be realized and obtained by the structure particularly pointed out in the written description.
下面通过附图和实施例, 对本公开实施例的技术方案做进一步的详细描述。 附图说明  The technical solutions of the embodiments of the present disclosure are further described in detail below through the accompanying drawings and embodiments. DRAWINGS
附图用来提供对本公开实施例的进一步理解, 并且构成说明书的一部分, 并不构成对 本公开实施例的限制。 在附图中:  The drawings are intended to provide a further understanding of the embodiments of the invention, In the drawing:
图 1A为本公开实施例中第一种删除或剪切文件的主要方法示例性流程图; 图 1B为本公开实施例中手势位置的示意图;  1A is an exemplary flowchart of a primary method for deleting or cutting a file in the first embodiment of the present disclosure; FIG. 1B is a schematic diagram of a gesture position according to an embodiment of the present disclosure;
图 2为本公开实施例中第一种删除或剪切文件的详细方法示例性流程图;  2 is an exemplary flowchart of a detailed method for deleting or cutting a file in the first embodiment of the present disclosure;
图 3为本公开实施例中第二种删除或剪切文件的主要方法示例性流程图;  3 is an exemplary flowchart of a main method for deleting or cutting a file in the second embodiment of the present disclosure;
图 4为本公开实施例中第二种删除或剪切文件的详细方法示例性流程图;  4 is an exemplary flowchart of a detailed method for deleting or cutting a file in the second embodiment of the present disclosure;
图 5为本公开实施例中第一种删除或剪切文件的装置的示例性结构图;  5 is an exemplary structural diagram of an apparatus for deleting or cutting a file in the first embodiment of the present disclosure;
图 6为本公开实施例中第二种删除或剪切文件的装置的示例性结构图。  FIG. 6 is an exemplary structural diagram of an apparatus for deleting or cutting a file in the second embodiment of the present disclosure.
通过上述附图, 已示出本公开明确的实施例, 后文中将有更详细的描述。 这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本 领域技术人员说明本公开的概念。 具体实施方式 The embodiments of the present disclosure have been shown by the above-described drawings, which will be described in more detail later. The drawings and the text are not intended to limit the scope of the present disclosure in any way, and the description of the present disclosure will be described by those skilled in the art by reference to the specific embodiments. detailed description
以下结合附图对本公开实施例进行说明, 应当理解, 此处所描述的实施例仅用于说明 和解释本公开, 并不用于限定本公开。  The embodiments of the present disclosure are described in the following with reference to the accompanying drawings, which are intended to illustrate and not to limit the disclosure.
本公开实施例不提供删除按钮,而是通过第二手势指令这一个动作同时实现选中文件 和删除文件两个操作。 使得删除或剪切操作更灵活简便。  The embodiment of the present disclosure does not provide a delete button, but instructs one action by the second gesture to simultaneously implement two operations of selecting a file and deleting a file. Make deletion or cutting operations more flexible and simple.
参见图 1A, 本实施例中第一种删除或剪切文件的主要方法流程如下:  Referring to FIG. 1A, the main method for deleting or cutting a file in the first embodiment is as follows:
步骤 101 : 捕获用户通过触摸屏输入的第一手势指令。  Step 101: Capture a first gesture instruction input by the user through the touch screen.
步骤 102: 根据第一手势指令进入待删除或剪切状态。  Step 102: Enter a state to be deleted or cut according to the first gesture instruction.
步骤 103: 捕获用户通过触摸屏输入的针对目标文件的第二手势指令; 其中, 第二手 势指令包括对所述目标文件的拖动操作。本实施例中的文件在窗口中体现为图标形式, 文 件包括文本文件、 图片文件、 应用程序等。 其中, 拖动包括: 文件本身随着手指的移动而 移动, 或者, 文件本身并不随手指的移动而移动, 相当于手指仅在选中的文件图标上点击 及滑动。  Step 103: Capture a second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes a drag operation on the target file. The file in this embodiment is embodied in the form of an icon in a window, and the file includes a text file, a picture file, an application, and the like. The dragging includes: the file itself moves with the movement of the finger, or the file itself does not move with the movement of the finger, which is equivalent to clicking and sliding only on the selected file icon.
步骤 104: 根据第二手势指令, 删除或剪切所述目标文件。 参见图 1B所示, 第一手 势的较佳位置为 11所示的位置, 第二手势的位置如 12所示的位置。  Step 104: Delete or cut the target file according to the second gesture instruction. Referring to Fig. 1B, the preferred position of the first hand is the position shown by 11, and the position of the second gesture is as shown by 12.
其中, 第一手势指令包括: 在目标文件所在的窗口中进行单点操作; 或者, 在目标文 件所在的窗口中进行多点操作; 或者, 在目标文件所在的窗口中进行单点滑动操作。 这里 的单点操作指与触摸屏的单点接触, 例如用户单手指接触触摸屏, 多点操作指与触摸屏的 多点接触, 例如用户多手指接触触摸屏, 单点滑动指与触摸屏单点接触并滑动, 例如用户 单手指接触触摸屏并接着在触摸屏上滑动。  The first gesture instruction includes: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located. The single point operation here refers to a single point contact with the touch screen, for example, the user touches the touch screen with a single finger, and the multi-point operation refers to multi-point contact with the touch screen, for example, the user touches the touch screen with multiple fingers, and the single-point sliding finger touches and slides with the touch screen at a single point. For example, the user touches the touch screen with a single finger and then slides on the touch screen.
本实施例中第一手势可以在窗口中的任意位置进行操作, 窗口中可以不提供特定(如 "编辑" ) 按钮, 直接根据第一手势指令进入待删除或剪切状态, 简化了窗口内容。  In this embodiment, the first gesture can be operated at any position in the window, and the specific (such as "edit") button may not be provided in the window, and the to-be-deleted or cut state is directly entered according to the first gesture instruction, which simplifies the window content.
由于本实施例中的第一手势指令为点击或滑动操作, 如果操作的位置为窗口空白处, 则可直接根据第一手势指令进入待删除或剪切状态。但是可能存在一种特殊情况, 就是第 一手势指令点击在文件的图标处。  Since the first gesture instruction in this embodiment is a click or slide operation, if the position of the operation is a blank space of the window, the state to be deleted or cut can be directly entered according to the first gesture instruction. However, there may be a special case where the first gesture command is clicked on the icon of the file.
为了区别于打开文件等其它操作, 作为第一种可选的实施方式, 第一手势指令为在目 标文件所在的窗口中进行长按操作, 例如用户单点接触触摸屏并持续接触超过一设定时 间。  In order to distinguish from other operations such as opening a file, as a first optional implementation manner, the first gesture instruction is to perform a long press operation in a window in which the target file is located, for example, the user touches the touch screen a single point and continuously contacts for more than one set time. .
为了区别于打开文件等其它操作, 作为第二种可选的实施方式, 在单点操作选中文件 时, 输出表示是否进入待删除或剪切状态的提示, 当收到用户选择进入待删除或剪切状态 的指令时, 进入待删除或剪切状态。  In order to distinguish it from other operations such as opening a file, as a second optional implementation manner, when the selected file is selected in a single point operation, a prompt indicating whether to enter the to-be-deleted or cut state is output, and when the user selects to enter to be deleted or cut When the state command is cut, the state to be deleted or cut is entered.
在上述前两种可选的实施方式中,用户可以通过设定的其他手势指令退出删除或剪切 状态, 也可以通过软件或硬件按钮来退出删除或剪切状态, 例如通过终端上的 "返回"硬 件按钮, 如图 1B中的 "返回"按钮 13。 这样在结束删除或剪切操作后, 可以恢复终端正 常的操作状态。 为了区别打开文件等其他操作, 作为第三种可选的实施方式, 在捕获用户通过触摸屏 输入的第二手势指令的同时, 持续捕获用户通过触摸屏输入的第一手势指令, 当结束持续 捕获第一手势指令时, 即退出待删除或剪切状态。 这样可有效的区别于其它手势指令, 减 少误操作。 In the above two optional embodiments, the user can exit the delete or cut state by setting other gesture commands, or can exit the delete or cut state through a software or hardware button, for example, by "returning" on the terminal. "Hardware button, "Return" button 13 in Figure 1B. In this way, after the deletion or cutting operation is completed, the normal operating state of the terminal can be restored. In order to distinguish other operations such as opening a file, as a third optional implementation manner, while capturing a second gesture instruction input by the user through the touch screen, the first gesture instruction input by the user through the touch screen is continuously captured, and the continuous capture is ended. When a gesture is commanded, the status to be deleted or cut is exited. This can effectively distinguish it from other gesture commands and reduce misoperations.
第二手势指令可以为: 选中目标文件并按照预设的第一方向拖动, 或选中目标文件并 按照预设的第二方向拖动。 本实施例中可通过不同的拖动方向来区分删除操作和剪切操 作。为了区别于对文件的位置移动操作, 第二手势拖动文件的距离应达到预设的距离门限 (如在拖动方向上达到窗口长度的三分之一) 。 因此, 需要根据第二手势指令, 判断拖动 的距离是否达到预设的距离门限, 若是, 则删除或剪切通过第二手势指令选中的文件; 否 贝 I」, 不删除或不剪切通过第二手势指令选中的文件。  The second gesture instruction may be: selecting the target file and dragging according to the preset first direction, or selecting the target file and dragging according to the preset second direction. In this embodiment, the deletion operation and the cutting operation can be distinguished by different drag directions. In order to distinguish from the position movement operation of the file, the distance of the second gesture drag file should reach a preset distance threshold (such as reaching one third of the window length in the drag direction). Therefore, according to the second gesture instruction, it is determined whether the distance of the drag reaches a preset distance threshold, and if so, the file selected by the second gesture instruction is deleted or cut; no shell I", no deletion or no clipping Cut the selected file by the second gesture command.
下面通过一个典型实施例来详细介绍实现过程。在该典型实施例中, 第一手势指令为 单点操作, 在捕获第二手势指令的同时, 持续捕获第一手势指令, 当结束持续捕获时, 退 出删除或剪切状态。  The implementation process will be described in detail below through a typical embodiment. In the exemplary embodiment, the first gesture command is a single point operation, while the second gesture instruction is captured, the first gesture instruction is continuously captured, and when the continuous capture is ended, the delete or cut state is exited.
参见图 2, 本实施例中第一种删除或剪切文件的详细方法流程如下:  Referring to FIG. 2, the detailed method for deleting or cutting a file in the first embodiment is as follows:
步骤 201 : 捕获用户对触摸屏进行的第一手势指令。  Step 201: Capture a first gesture instruction made by the user on the touch screen.
步骤 202: 判断第一手势指令操作的位置是否为图标位置, 若是, 则继续步骤 203, 否则继续步骤 204。  Step 202: Determine whether the position of the first gesture instruction operation is an icon position, and if yes, proceed to step 203, otherwise continue to step 204.
步骤 203 : 向用户输出提示, 若用户选择进入待删除或剪切状态, 则继续步骤 204, 若用户选择提示的其它操作, 则继续其它操作, 结束本次流程。  Step 203: Output a prompt to the user. If the user chooses to enter the to-be-deleted or cut state, proceed to step 204. If the user selects other operations prompted, continue with other operations to end the process.
步骤 204: 根据第一手势指令进入待删除或剪切状态。  Step 204: Enter a state to be deleted or cut according to the first gesture instruction.
步骤 205 : 捕获用户对触摸屏中文件进行拖动的第二手势指令。  Step 205: Capture a second gesture instruction that the user drags the file in the touch screen.
步骤 206: 判断拖动的距离是否达到预设的距离门限, 若是, 则继续步骤 207; 否则 继续步骤 208。  Step 206: Determine whether the dragged distance reaches a preset distance threshold, and if yes, proceed to step 207; otherwise, continue to step 208.
步骤 207: 删除或剪切通过第二手势指令选中的文件。  Step 207: Delete or cut the file selected by the second gesture instruction.
步骤 208: 不删除或不剪切通过第二手势指令选中的文件。  Step 208: The file selected by the second gesture instruction is not deleted or cut.
本实施例中每次执行第二手势指令可删除或剪切一个文件,若需要删除或剪切多个文 件,则在删除或剪切状态下需要多次执行和捕获第二手势指令,即重复步骤 205〜步骤 207, 由此实现批量删除或剪切。  In this embodiment, each time the second gesture instruction is executed, a file can be deleted or cut. If multiple files need to be deleted or cut, the second gesture instruction needs to be executed and captured multiple times in the deleted or cut state. That is, steps 205 to 207 are repeated, thereby implementing bulk deletion or cutting.
为了便于批量删除或剪切文件, 可以先选择多个文件, 再一次性删除或剪切选中的文 件, 可选的实现方式参见下面的实施例。  To facilitate batch deletion or file deletion, you can select multiple files first, and then delete or cut the selected files at one time. For the optional implementation, see the following example.
参见图 3, 本实施例中第二种删除或剪切文件的主要方法流程如下:  Referring to FIG. 3, the second main method for deleting or cutting a file in this embodiment is as follows:
步骤 301 : 捕获用户通过触摸屏输入的第一手势指令。  Step 301: Capture a first gesture instruction input by the user through the touch screen.
步骤 302: 根据第一手势指令进入待删除或剪切状态。  Step 302: Enter a state to be deleted or cut according to the first gesture instruction.
步骤 303 : 捕获用户通过触摸屏输入的第二手势指令。  Step 303: Capture a second gesture instruction input by the user through the touch screen.
步骤 304: 根据第二手势指令, 选中目标文件。 步骤 305 : 捕获用户通过触摸屏输入的针对目标文件的第三手势指令, 该第三手势指 令包括对至少一个目标文件的拖动操作。 Step 304: Select the target file according to the second gesture instruction. Step 305: Capture a third gesture instruction for the target file input by the user through the touch screen, the third gesture instruction including a drag operation on the at least one target file.
步骤 306: 根据第三手势指令, 删除或剪切第二手势指令选中的目标文件。 本实施例 中可通过不同的拖动方向来区分删除操作和剪切操作。  Step 306: Delete or cut the target file selected by the second gesture instruction according to the third gesture instruction. In this embodiment, the deletion operation and the cutting operation can be distinguished by different drag directions.
其中, 第一手势指令包括: 在目标文件所在的窗口中进行单点操作; 或者, 在目标文 件所在的窗口中进行多点操作; 或者, 在目标文件所在的窗口中进行单点滑动操作。 这里 的单点操作指与触摸屏的单点接触, 例如用户单手指接触触摸屏, 多点操作指与触摸屏的 多点接触, 例如用户多手指接触触摸屏, 单点滑动指与触摸屏单点接触并滑动, 例如用户 单手指接触触摸屏并接着在触摸屏上滑动。  The first gesture instruction includes: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located. The single point operation here refers to a single point contact with the touch screen, for example, the user touches the touch screen with a single finger, and the multi-point operation refers to multi-point contact with the touch screen, for example, the user touches the touch screen with multiple fingers, and the single-point sliding finger touches and slides with the touch screen at a single point. For example, the user touches the touch screen with a single finger and then slides on the touch screen.
本实施例中第一手势可以在窗口中的任意位置进行操作, 窗口中可以不提供特定(如 In this embodiment, the first gesture can be operated at any position in the window, and the window may not provide a specific (eg,
"编辑" ) 按钮, 直接根据第一手势指令进入待删除或剪切状态, 简化了窗口内容。 The "Edit" button directly enters the state to be deleted or cut according to the first gesture command, which simplifies the window content.
由于本实施例中的第一手势指令为点击或滑动操作, 如果操作的位置为窗口空白处, 则可直接根据第一手势指令进入待删除或剪切状态。但是可能存在一种特殊情况, 就是第 一手势指令点击在文件的图标处。  Since the first gesture instruction in this embodiment is a click or slide operation, if the position of the operation is a blank space of the window, the state to be deleted or cut can be directly entered according to the first gesture instruction. However, there may be a special case where the first gesture command is clicked on the icon of the file.
为了区别于打开文件等其它操作, 作为第一种可选的实施方式, 第一手势指令可以为 长按操作, 例如在目标文件所在的窗口中进行单点长按操作, 即单点操作持续超过一设定 时间。 如果单点操作未选中文件, 则进入待删除或剪切状态。  In order to distinguish from other operations such as opening a file, as a first optional implementation manner, the first gesture instruction may be a long-press operation, for example, performing a single-point long-press operation in a window in which the target file is located, that is, the single-point operation continues to exceed A set time. If the file is not selected in the single point operation, the status to be deleted or cut is entered.
为了区别于打开文件等其它操作, 作为第二种可选的实施方式, 在单点操作选中文件 时, 输出表示是否进入待删除或剪切状态的提示, 当收到用户选择进入待删除或剪切状态 的指令时, 进入待删除或剪切状态。  In order to distinguish it from other operations such as opening a file, as a second optional implementation manner, when the selected file is selected in a single point operation, a prompt indicating whether to enter the to-be-deleted or cut state is output, and when the user selects to enter to be deleted or cut When the state command is cut, the state to be deleted or cut is entered.
在上述前两种可选的实施方式中,用户可以通过设定的其他手势指令退出删除或剪切 状态, 也可以通过软件或硬件按钮来退出删除或剪切状态, 例如通过终端上的 "返回"硬 件按钮, 如图 1B中的 "返回"按钮 13。 这样在结束删除或剪切操作后, 可以恢复终端正 常的操作状态。  In the above two optional embodiments, the user can exit the delete or cut state by setting other gesture commands, or can exit the delete or cut state through a software or hardware button, for example, by "returning" on the terminal. "Hardware button, "Return" button 13 in Figure 1B. This will restore the normal operating state of the terminal after the deletion or cutting operation is completed.
为了区别打开文件等其他操作, 作为第三种可选的实施方式, 在捕获用户通过触摸屏 输入的第二手势指令和第三手势指令的同时, 持续捕获用户对触摸屏进行的第一手势指 令, 当结束持续捕获第一手势指令时, 即退出待删除或剪切状态。  In order to distinguish other operations such as opening a file, as a third optional implementation manner, while capturing a second gesture instruction and a third gesture instruction input by the user through the touch screen, the first gesture instruction of the user on the touch screen is continuously captured, When the first gesture instruction is continuously captured, the state to be deleted or cut is exited.
第二手势指令可以为单点操作, 选中的目标文件为一次或多次单点操作选中的文件, 此时可多次重复步骤 303和 304, 以选择多个文件; 或者, 第二手势指令为滑动并且滑动 轨迹形成非封闭区域,选中的目标文件为滑动轨迹覆盖的文件或除滑动轨迹覆盖之外的文 件; 或者, 第二手势指令为滑动并且滑动轨迹形成封闭区域, 选中的目标文件为封闭区域 内的文件或封闭区域以外的文件。 这样, 便于通过一次操作实现选择多个文件。  The second gesture instruction may be a single point operation, and the selected target file is one or more single-point operation selected files, and steps 303 and 304 may be repeated multiple times to select multiple files; or, the second gesture The command is a sliding and the sliding track forms a non-closed area, and the selected target file is a file covered by the sliding track or a file other than the sliding track covering; or the second gesture command is sliding and the sliding track forms a closed area, the selected target The file is a file in a closed area or a file outside the enclosed area. In this way, it is convenient to select multiple files in one operation.
第三手势指令可以为拖动指令, 为了区别于对文件的移动操作, 贝 I」, 根据第三手势指 令, 判断拖动的距离是否达到预设的距离门限, 若是, 则删除或剪切目标文件; 否则, 不 删除或不剪切目标文件。 并且, 第三手势指令为: 对至少一个目标文件按照预设的第一方向拖动, 或对至少一 个目标文件按照预设的第二方向拖动。这样, 便可通过一个手势的两个方向来区分删除和 剪切操作, 使得操作灵活简便。 The third gesture instruction may be a drag instruction, in order to distinguish from the moving operation on the file, according to the third gesture instruction, determine whether the dragged distance reaches a preset distance threshold, and if so, delete or cut the target. File; otherwise, the target file is not deleted or not cut. And, the third gesture instruction is: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction. In this way, the deletion and cutting operations can be distinguished by two directions of a gesture, making the operation flexible and simple.
下面通过一个典型实施例来详细介绍实现过程。在该典型实施例中, 第一手势指令为 单点操作, 在捕获第二手势指令和第三手势指令的同时, 持续捕获第一手势指令, 当结束 持续捕获第一手势指令时, 退出删除或剪切状态。  The implementation process will be described in detail below through a typical embodiment. In the exemplary embodiment, the first gesture instruction is a single point operation, while the second gesture instruction and the third gesture instruction are captured, the first gesture instruction is continuously captured, and when the first gesture instruction is continuously captured, the deletion is exited. Or cut state.
参见图 4, 本实施例中第二种删除或剪切文件的详细方法流程如下:  Referring to FIG. 4, the second method for deleting or cutting a file in this embodiment is as follows:
步骤 401 : 捕获用户对触摸屏进行的第一手势指令。  Step 401: Capture a first gesture instruction made by the user on the touch screen.
步骤 402: 判断第一手势指令操作的位置是否为图标位置, 若是, 则继续步骤 403, 否则继续步骤 404。  Step 402: Determine whether the position of the first gesture instruction operation is the icon position, and if yes, proceed to step 403, otherwise continue to step 404.
步骤 403 : 向用户输出提示, 若用户选择进入删除或剪切状态, 则继续步骤 204, 若 用户选择提示的其它操作, 则继续其它操作, 结束本次流程。  Step 403: Output a prompt to the user. If the user chooses to enter the delete or cut state, proceed to step 204. If the user selects other operations prompted, the other operations are continued, and the process ends.
步骤 404: 根据第一手势指令进入待删除或剪切状态。  Step 404: Enter a state to be deleted or cut according to the first gesture instruction.
步骤 405 : 捕获用户对触摸屏中文件进行的第二手势指令。  Step 405: Capture a second gesture instruction made by the user on the file in the touch screen.
步骤 406: 根据第二手势指令, 选中目标文件。  Step 406: Select the target file according to the second gesture instruction.
步骤 407: 捕获用户对目标文件的第三手势指令, 该第三手势指令为对至少一个目标 文件的拖动手势指令。  Step 407: Capture a third gesture instruction of the user to the target file, where the third gesture instruction is a drag gesture instruction to the at least one target file.
步骤 408: 判断拖动的距离是否达到预设的距离门限, 若是, 则继续步骤 409; 否则 继续步骤 410。  Step 408: Determine whether the dragged distance reaches a preset distance threshold. If yes, proceed to step 409; otherwise, continue to step 410.
步骤 409: 删除或剪切目标文件。  Step 409: Delete or cut the target file.
步骤 410: 不删除或不剪切目标文件。  Step 410: Do not delete or cut the target file.
通过以上介绍了解了删除或剪切文件的实现过程, 该过程可由装置实现, 下面对该装 置的内部结构和功能进行介绍。  Through the above introduction, the implementation process of deleting or cutting a file is understood. The process can be implemented by the device. The internal structure and function of the device are introduced below.
参见图 5, 本实施例中删除或剪切文件的装置包括: 接口模块 501、第一处理模块 502 和第二处理模块 503。  Referring to FIG. 5, the apparatus for deleting or cutting a file in this embodiment includes: an interface module 501, a first processing module 502, and a second processing module 503.
接口模块 501用于捕获用户通过触摸屏输入的第一手势指令; 以及, 捕获用户通过触 摸屏输入的针对目标文件的第二手势指令; 其中, 第二手势指令包括对所述目标文件的拖 动操作。  The interface module 501 is configured to capture a first gesture instruction input by the user through the touch screen; and capture a second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes dragging the target file operating.
第一处理模块 502用于根据第一手势指令进入待删除或剪切状态。  The first processing module 502 is configured to enter a state to be deleted or cut according to the first gesture instruction.
第二处理模块 503用于根据第二手势指令, 删除或剪切所述目标文件。  The second processing module 503 is configured to delete or cut the target file according to the second gesture instruction.
第一手势指令可以为: 在目标文件所在的窗口中进行单点操作; 或者, 在目标文件所 在的窗口中进行多点操作; 或者, 在目标文件所在的窗口中进行单点滑动操作。 第一手势 指令可以为长按操作。  The first gesture instruction may be: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located. The first gesture command can be a long press operation.
第一处理模块 502可以用于: 在第一手势指令是单点操作时, 判断单点操作是否选中 文件, 如果单点操作选中文件, 输出表示是否进入待删除或剪切状态的提示, 当收到用户 选择进入待删除或剪切状态的指令时,进入待删除或剪切状态;如果单点操作未选中文件, 进入待删除或剪切状态。 The first processing module 502 can be configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, To the user When you select the command to enter the delete or cut state, enter the state to be deleted or cut; if the file is not selected in the single point operation, enter the state to be deleted or cut.
接口模块 501捕获用户通过触摸屏输入的第二手势指令的同时,可以持续捕获用户通 过触摸屏输入的第一手势指令。  The interface module 501 captures the second gesture instruction input by the user through the touch screen while continuously capturing the first gesture instruction input by the user through the touch screen.
第二处理模块 503可以用于: 根据第二手势指令, 判断拖动的距离是否达到预设的距 离门限, 如果拖动的距离达到预设的距离门限, 则删除或剪切通过第二手势指令选中的文 件; 如果拖动的距离未达到预设的距离门限, 不删除或不剪切通过第二手势指令选中的文 件。  The second processing module 503 is configured to: determine, according to the second gesture instruction, whether the dragged distance reaches a preset distance threshold, and if the dragged distance reaches a preset distance threshold, delete or cut through the second hand The file selected by the potential command; if the dragged distance does not reach the preset distance threshold, the file selected by the second gesture instruction is not deleted or cut.
第二手势指令可以为: 选中目标文件并按照预设的第一方向拖动, 或选中目标文件并 按照预设的第二方向拖动。 在此基础上, 所述第二处理模块用于: 如果所述第二手势指令 为选中目标文件并按照预设的第一方向拖动, 删除所述目标文件; 如果所述第二手势指令 为选中目标文件并按照预设的第二方向拖动, 剪切所述目标文件。  The second gesture instruction may be: selecting the target file and dragging according to the preset first direction, or selecting the target file and dragging according to the preset second direction. On the basis of the second processing module, if the second gesture instruction is a selected target file and dragged according to a preset first direction, deleting the target file; if the second gesture The instruction is to select the target file and drag according to the preset second direction to cut the target file.
参见图 6,本实施例中删除或剪切文件的装置包括:接口模块 601、第一处理模块 602、 第二处理模块 603和第三处理模块 604。  Referring to FIG. 6, the apparatus for deleting or cutting a file in this embodiment includes: an interface module 601, a first processing module 602, a second processing module 603, and a third processing module 604.
接口模块 601用于捕获用户通过触摸屏输入的第一手势指令;捕获用户通过触摸屏输 入的第二手势指令; 捕获用户通过触摸屏输入的针对目标文件的第三手势指令, 该第三手 势指令包括对至少一个目标文件的拖动操作。  The interface module 601 is configured to capture a first gesture instruction input by the user through the touch screen; capture a second gesture instruction input by the user through the touch screen; and capture a third gesture instruction for the target file input by the user through the touch screen, the third gesture instruction includes At least one drag operation of the target file.
第一处理模块 602用于根据第一手势指令进入待删除或剪切状态。  The first processing module 602 is configured to enter a state to be deleted or cut according to the first gesture instruction.
第二处理模块 603用于根据第二手势指令, 选中目标文件。  The second processing module 603 is configured to select the target file according to the second gesture instruction.
第三处理模块 604 用于根据第三手势指令, 删除或剪切第二手指指令选中的目标文 件。  The third processing module 604 is configured to delete or cut the target file selected by the second finger instruction according to the third gesture instruction.
第一手势指令可以包括: 在目标文件所在的窗口中进行单点操作; 或者, 在目标文件 所在的窗口中进行多点操作; 或者, 在目标文件所在的窗口中进行单点滑动操作。  The first gesture instruction may include: performing a single point operation in a window in which the target file is located; or performing a multi-point operation in a window in which the target file is located; or performing a single-point sliding operation in a window in which the target file is located.
进一步, 第一手势指令为长按操作。  Further, the first gesture instruction is a long press operation.
第二手势指令可以包括单点操作,所述选中的目标文件包括一次或多次单点操作选中 的文件; 或者, 第二手势指令为滑动并且滑动轨迹形成非封闭区域, 所述选中的目标文件 为滑动轨迹覆盖的文件或除滑动轨迹覆盖之外的文件; 或者, 第二手势指令为滑动并且滑 动轨迹形成封闭区域, 所述选中的目标文件包括封闭区域内的文件或封闭区域外的文件。  The second gesture instruction may include a single point operation, the selected target file includes one or more single point operations of the selected file; or the second gesture instruction is a sliding and the sliding track forms a non-closed area, the selected The target file is a file covered by the sliding track or a file other than the sliding track cover; or the second gesture command is sliding and the sliding track forms a closed area, and the selected target file includes a file in the closed area or an enclosed area document.
第一处理模块 602可以用于: 在第一手势指令是单点操作时, 判断单点操作是否选中 文件, 如果单点操作选中文件, 输出表示是否进入待删除或剪切状态的提示, 当收到用户 选择进入待删除或剪切状态的指令时,进入待删除或剪切状态;如果单点操作未选中文件, 进入待删除或剪切状态。  The first processing module 602 can be configured to: when the first gesture instruction is a single point operation, determine whether the single point operation selects a file, and if the single point operation selects the file, output a prompt indicating whether to enter the to-be-deleted or cut state, When the user selects the instruction to enter the state to be deleted or cut, the state to be deleted or cut is entered; if the file is not selected by the single point operation, the state to be deleted or cut is entered.
接口模块 601捕获用户对触摸屏中文件进行的第二手势指令和第三手势指令的同时, 可以持续捕获用户对触摸屏进行的第一手势指令。  The interface module 601 captures the second gesture instruction and the third gesture instruction performed by the user on the file in the touch screen, and can continuously capture the first gesture instruction made by the user on the touch screen.
第三处理模块 604可以用于: 根据第三手势指令, 判断拖动的距离是否达到预设的距 离门限, 如果拖动的距离达到预设的距离门限, 则删除或剪切目标文件; 如果拖动的距离 未达到预设的门限, 不删除或不剪切目标文件。 The third processing module 604 can be configured to: determine, according to the third gesture instruction, whether the distance of the drag reaches a preset distance From the threshold, if the dragged distance reaches the preset distance threshold, the target file is deleted or cut; if the dragged distance does not reach the preset threshold, the target file is not deleted or not cut.
第三手势指令可以为: 对至少一个目标文件按照预设的第一方向拖动, 或对至少一个 目标文件按照预设的第二方向拖动。 在此基础上, 第三处理模块 604用于: 如果所述第三 手势指令为对至少一个目标文件按照预设的第一方向拖动,删除第二手势指令选中的目标 文件; 如果所述第三手势指令为对至少一个目标文件按照预设的第二方向拖动, 剪切第二 手势指令选中的目标文件。  The third gesture instruction may be: dragging at least one target file according to a preset first direction, or dragging at least one target file according to a preset second direction. On the basis of this, the third processing module 604 is configured to: if the third gesture instruction is to drag the at least one target file according to a preset first direction, deleting the target file selected by the second gesture instruction; The third gesture instruction is to drag the at least one target file according to a preset second direction, and cut the target file selected by the second gesture instruction.
本实施例不提供删除按钮,而是通过第二手势指令这一个动作同时实现选中文件和删 除文件两个操作。 使得删除或剪切操作更灵活简便。 本实施例还提供了多种手势指令, 以 解决特殊情况, 并且可区分删除和剪切操作。  In this embodiment, the delete button is not provided, but the second gesture is used to instruct the same action to implement both the selected file and the deleted file. Make deletion or cutting operations more flexible and simple. This embodiment also provides various gesture commands to solve special cases and distinguish between delete and cut operations.
本领域内的技术人员应明白,本公开实施例可提供为方法、系统、或计算机程序产品。 因此, 本公开实施例可采用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的 实施例的形式。而且, 本公开实施例可采用在一个或多个其中包含有计算机可用程序代码 的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序 产品的形式。  Those skilled in the art will appreciate that embodiments of the present disclosure can be provided as a method, system, or computer program product. Thus, embodiments of the present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, embodiments of the present disclosure may take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
本公开实施例是参照根据本公开实施例的方法、 设备 (系统) 、 和计算机程序产品的 流程图和 I或方框图来描述的。应理解可由计算机程序指令实现流程图和 I或方框图中的 每一流程和 /或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些 计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的 处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令 产生用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的装置。  Embodiments of the present disclosure are described with reference to flowchart illustrations and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方 式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品,该指令装置实现在流程图一个流程或多个流程和 I或方框图一个方框或多个 方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more flows of the flowchart or a block or blocks of the I or block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他 可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 /或方框图一个 方框或多个方框中指定的功能的步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本公开实施例进行各种改动和变型而不脱离本公开的 精神和范围。这样,倘若这些修改和变型属于本公开的权利要求及其等同技术的范围之内, 则本公开也意图包含这些改动和变型在内。  It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the disclosure. Thus, the present disclosure is intended to cover such modifications and modifications as the modifications and variations are

Claims

权利要求 Rights request
1、 一种基于触摸屏删除或剪切文件的方法, 其特征在于, 包括以下步骤: 捕获用户通过触摸屏输入的第一手势指令; 1. A method for deleting or cutting files based on a touch screen, characterized by including the following steps: capturing the first gesture command input by the user through the touch screen;
根据第一手势指令进入待删除或剪切状态; Enter the state to be deleted or cut according to the first gesture instruction;
捕获用户通过触摸屏输入的针对目标文件的第二手势指令;其中,第二手势指令包括 对所述目标文件的拖动操作; Capture the second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes a drag operation for the target file;
根据第二手势指令, 删除或剪切所述目标文件。 According to the second gesture instruction, the target file is deleted or cut.
2、 如权利要求 1所述的方法, 其特征在于, 第一手势指令为: 2. The method of claim 1, wherein the first gesture command is:
在所述目标文件所在的窗口中进行单点操作; Perform single-click operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行多点操作; Or, perform multi-point operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行单点滑动操作。 Or, perform a single-point sliding operation in the window where the target file is located.
3、 如权利要求 2所述的方法, 其特征在于, 第一手势指令为长按操作。 3. The method of claim 2, wherein the first gesture instruction is a long press operation.
4、 如权利要求 2或 3所述的方法, 其特征在于, 当第一手势指令是单点操作时, 根 据第一手势指令进入待删除或剪切状态的步骤包括: 4. The method of claim 2 or 3, wherein when the first gesture instruction is a single-point operation, the step of entering the state to be deleted or cut according to the first gesture instruction includes:
判断单点操作是否选中文件; Determine whether a single-click operation selects a file;
如果单点操作选中文件,则输出表示是否进入待删除或剪切状态的提示, 当收到用户 选择进入待删除或剪切状态的指令时, 进入待删除或剪切状态; If a file is selected by a single-click operation, a prompt indicating whether to enter the state to be deleted or cut is output. When the user's instruction to enter the state to be deleted or cut is received, the file is entered to the state to be deleted or cut;
如果单点操作未选中文件, 进入待删除或剪切状态。 If the file is not selected in the single-click operation, it will enter the state to be deleted or cut.
5、 如权利要求 1所述的方法, 其特征在于, 捕获用户通过触摸屏输入的第二手势指 令的同时, 持续捕获用户通过触摸屏输入的第一手势指令。 5. The method of claim 1, wherein while capturing the second gesture command input by the user through the touch screen, the first gesture command input by the user through the touch screen is continuously captured.
6、 如权利要求 1所述的方法, 其特征在于, 根据第二手势指令, 删除或剪切通过第 二手势指令选中的文件的步骤包括: 6. The method of claim 1, wherein, according to the second gesture instruction, the step of deleting or cutting the file selected by the second gesture instruction includes:
根据第二手势指令, 判断拖动的距离是否达到预设的距离门限; According to the second gesture command, determine whether the dragging distance reaches the preset distance threshold;
如果拖动的距离达到预设的距离门限, 则删除或剪切通过第二手势指令选中的文件。 If the dragging distance reaches the preset distance threshold, the file selected through the second gesture command is deleted or cut.
7、 如权利要求 1所述的方法, 其特征在于, 第二手势指令为: 选中目标文件并按照 预设的第一方向拖动, 或选中目标文件并按照预设的第二方向拖动; 7. The method of claim 1, wherein the second gesture instruction is: select the target file and drag it in the preset first direction, or select the target file and drag it in the preset second direction. ;
所述根据第二手势指令, 删除或剪切所述目标文件为: Deleting or cutting the target file according to the second gesture instruction is:
如果所述第二手势指令为选中目标文件并按照预设的第一方向拖动,删除所述目标文 件; If the second gesture instruction is to select the target file and drag it in the preset first direction, delete the target file;
如果所述第二手势指令为选中目标文件并按照预设的第二方向拖动,剪切所述目标文 件。 If the second gesture instruction is to select the target file and drag it in the preset second direction, the target file is cut.
8、 一种基于触摸屏删除或剪切文件的方法, 其特征在于, 包括以下步骤: 捕获用户通过触摸屏输入的第一手势指令; 8. A method for deleting or cutting files based on a touch screen, characterized by including the following steps: capturing the first gesture command input by the user through the touch screen;
根据第一手势指令进入待删除或剪切状态; Enter the state to be deleted or cut according to the first gesture instruction;
捕获用户通过触摸屏输入的第二手势指令; 根据第二手势指令, 选中目标文件; Capture the second gesture command input by the user through the touch screen; According to the second gesture instruction, select the target file;
捕获用户通过触摸屏输入的针对目标文件的第三手势指令;其中,第三手势指令包括 对至少一个目标文件的拖动操作; Capture the third gesture instruction for the target file input by the user through the touch screen; wherein the third gesture instruction includes a drag operation for at least one target file;
根据第三手势指令, 删除或剪切第二手势指令选中的目标文件。 According to the third gesture instruction, the target file selected by the second gesture instruction is deleted or cut.
9、 如权利要求 8所述的方法, 其特征在于, 第一手势指令为: 9. The method of claim 8, wherein the first gesture command is:
在所述目标文件所在的窗口中进行单点操作; Perform single-click operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行多点操作; Or, perform multi-point operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行单点滑动操作。 Or, perform a single-point sliding operation in the window where the target file is located.
10、 如权利要求 9所述的方法, 其特征在于, 第一手势指令为长按操作。 10. The method of claim 9, wherein the first gesture instruction is a long press operation.
11、 如权利要求 9或 10所述的方法, 其特征在于, 当第一手势指令是单点操作时, 根据第一手势指令进入待删除或剪切状态的步骤包括: 11. The method of claim 9 or 10, wherein when the first gesture instruction is a single-point operation, the step of entering the state to be deleted or cut according to the first gesture instruction includes:
判断单点操作是否选中文件; Determine whether a single-click operation selects a file;
如果单点操作选中文件,则输出表示是否进入待删除或剪切状态的提示, 当收到用户 选择进入待删除或剪切状态的指令时, 进入待删除或剪切状态; If a file is selected by a single-click operation, a prompt indicating whether to enter the state to be deleted or cut is output. When the user's instruction to enter the state to be deleted or cut is received, the file is entered to the state to be deleted or cut;
如果单点操作未选中文件, 进入待删除或剪切状态。 If the file is not selected in the single-click operation, it will enter the state to be deleted or cut.
12、如权利要求 8所述的方法, 其特征在于, 捕获用户通过触摸屏输入的第二手势指 令和第三手势指令的同时, 持续捕获用户对触摸屏进行的第一手势指令。 12. The method of claim 8, wherein while capturing the second gesture command and the third gesture command input by the user through the touch screen, the first gesture command performed by the user on the touch screen is continuously captured.
13、 如权利要求 8所述的方法, 其特征在于, 第二手势指令为单点操作, 所述选中的 目标文件为一次或多次单点操作选中的文件; 13. The method of claim 8, wherein the second gesture instruction is a single-point operation, and the selected target file is a file selected by one or more single-point operations;
或者,第二手势指令为滑动并且滑动轨迹形成非封闭区域,所述选中的目标文件为滑 动轨迹覆盖的文件或除滑动轨迹覆盖之外的文件; Alternatively, the second gesture instruction is sliding and the sliding trajectory forms a non-enclosed area, and the selected target file is a file covered by the sliding trajectory or a file other than the sliding trajectory covering;
或者,第二手势指令为滑动并且滑动轨迹形成封闭区域,所述选中的目标文件为封闭 区域内的文件或封闭区域外的文件。 Alternatively, the second gesture instruction is sliding and the sliding trajectory forms a closed area, and the selected target file is a file within the closed area or a file outside the closed area.
14、 如权利要求 8所述的方法, 其特征在于, 根据第三手势指令, 删除或剪切目标文 件的步骤包括: 14. The method of claim 8, wherein according to the third gesture instruction, the step of deleting or cutting the target file includes:
根据第三手势指令, 判断拖动的距离是否达到预设的距离门限; According to the third gesture command, determine whether the dragging distance reaches the preset distance threshold;
如果拖动的距离达到预设的距离门限, 则删除或剪切目标文件。 If the dragging distance reaches the preset distance threshold, the target file is deleted or cut.
15、 如权利要求 8所述的方法, 其特征在于, 第三手势指令为: 对至少一个目标文件 按照预设的第一方向拖动, 或对至少一个目标文件按照预设的第二方向拖动; 15. The method of claim 8, wherein the third gesture instruction is: dragging at least one target file in a preset first direction, or dragging at least one target file in a preset second direction. move;
所述根据第三手势指令, 删除或剪切所述目标文件为: According to the third gesture instruction, deleting or cutting the target file is:
如果所述第三手势指令为对至少一个目标文件按照预设的第一方向拖动,删除第二手 势指令选中的目标文件; If the third gesture instruction is to drag at least one target file in the preset first direction, delete the target file selected by the second gesture instruction;
如果所述第三手势指令为对至少一个目标文件按照预设的第二方向拖动,剪切第二手 势指令选中的目标文件。 If the third gesture instruction is to drag at least one target file in a preset second direction, cut the target file selected by the second gesture instruction.
16、 一种删除或剪切文件的装置, 其特征在于, 包括: 接口模块, 用于捕获用户通过触摸屏输入的第一手势指令; 以及, 捕获用户通过触摸 屏输入的针对目标文件的第二手势指令;其中,第二手势指令包括对所述目标文件的拖动 操作; 16. A device for deleting or cutting files, characterized in that it includes: The interface module is configured to capture a first gesture instruction input by the user through the touch screen; and, capture a second gesture instruction for the target file input by the user through the touch screen; wherein the second gesture instruction includes dragging the target file. operate;
第一处理模块, 用于根据第一手势指令进入待删除或剪切状态; The first processing module is used to enter the state to be deleted or cut according to the first gesture instruction;
第二处理模块, 用于根据第二手势指令, 删除或剪切所述目标文件。 The second processing module is configured to delete or cut the target file according to the second gesture instruction.
17、 如权利要求 16所述的装置, 其特征在于, 第一手势指令为: 17. The device according to claim 16, wherein the first gesture command is:
在所述目标文件所在的窗口中进行单点操作; Perform single-click operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行多点操作; Or, perform multi-point operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行单点滑动操作。 Or, perform a single-point sliding operation in the window where the target file is located.
18、 如权利要求 17所述的装置, 其特征在于, 第一手势指令为长按操作。 18. The device of claim 17, wherein the first gesture command is a long press operation.
19、 如权利要求 17或 18所述的装置, 其特征在于, 第一处理模块用于: 在第一手势 指令是单点操作时, 判断单点操作是否选中文件, 如果单点操作选中文件, 输出表示是否 进入待删除或剪切状态的提示, 当收到用户选择进入待删除或剪切状态的指令时,进入待 删除或剪切状态; 如果单点操作未选中文件, 进入待删除或剪切状态。 19. The device according to claim 17 or 18, wherein the first processing module is configured to: when the first gesture instruction is a single-point operation, determine whether the single-point operation selects a file, and if the single-point operation selects a file, Outputs a prompt indicating whether to enter the state to be deleted or cut. When receiving the user's instruction to enter the state to be deleted or cut, the system enters the state to be deleted or cut; if the file is not selected in a single-click operation, the system enters the state to be deleted or cut. cut status.
20、 如权利要求 16所述的装置, 其特征在于, 接口模块捕获用户通过触摸屏输入的 第二手势指令的同时, 持续捕获用户通过触摸屏输入的第一手势指令。 20. The device of claim 16, wherein the interface module captures the second gesture command input by the user through the touch screen and continues to capture the first gesture command input by the user through the touch screen.
21、 如权利要求 16所述的装置, 其特征在于, 第二处理模块用于: 根据第二手势指 令, 判断拖动的距离是否达到预设的距离门限, 如果拖动的距离达到预设的距离门限, 则 删除或剪切通过第二手势指令选中的文件。 21. The device of claim 16, wherein the second processing module is configured to: determine whether the dragging distance reaches a preset distance threshold according to the second gesture instruction. If the dragging distance reaches the preset distance threshold, distance threshold, the file selected by the second gesture command is deleted or cut.
22、 如权利要求 16所述的装置, 其特征在于, 第二手势指令为: 选中目标文件并按 照预设的第一方向拖动, 或选中目标文件并按照预设的第二方向拖动; 22. The device of claim 16, wherein the second gesture instruction is: select the target file and drag it in the preset first direction, or select the target file and drag it in the preset second direction. ;
所述第二处理模块用于:如果所述第二手势指令为选中目标文件并按照预设的第一方 向拖动,删除所述目标文件;如果所述第二手势指令为选中目标文件并按照预设的第二方 向拖动, 剪切所述目标文件。 The second processing module is used to: if the second gesture instruction is to select the target file and drag it in the preset first direction, delete the target file; if the second gesture instruction is to select the target file And drag according to the preset second direction to cut the target file.
23、 一种删除或剪切文件的装置, 其特征在于, 包括: 23. A device for deleting or cutting files, characterized in that it includes:
接口模块,用于捕获用户通过触摸屏输入的第一手势指令;捕获用户通过触摸屏输入 的第二手势指令;捕获用户通过触摸屏输入的针对目标文件的第三手势指令,该第三手势 指令包括对至少一个目标文件的拖动操作; The interface module is used to capture the first gesture instruction input by the user through the touch screen; capture the second gesture instruction input by the user through the touch screen; and capture the third gesture instruction directed to the target file input by the user through the touch screen, the third gesture instruction including Drag operation of at least one target file;
第一处理模块, 用于根据第一手势指令进入待删除或剪切状态; The first processing module is used to enter the state to be deleted or cut according to the first gesture instruction;
第二处理模块, 用于根据第二手势指令, 选中目标文件; The second processing module is used to select the target file according to the second gesture instruction;
第三处理模块, 用于根据第三手势指令, 删除或剪切第二手势指令选中的目标文件。 The third processing module is configured to delete or cut the target file selected by the second gesture instruction according to the third gesture instruction.
24、 如权利要求 23所述的装置, 其特征在于, 第一手势指令为: 24. The device of claim 23, wherein the first gesture command is:
在所述目标文件所在的窗口中进行单点操作; Perform single-click operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行多点操作; Or, perform multi-point operations in the window where the target file is located;
或者, 在所述目标文件所在的窗口中进行单点滑动操作。 Or, perform a single-point sliding operation in the window where the target file is located.
25、 如权利要求 24所述的装置, 其特征在于, 第一手势指令为长按操作。 25. The device of claim 24, wherein the first gesture command is a long press operation.
26、 如权利要求 24或 25所述的装置, 其特征在于, 第一处理模块用于: 在第一手势 指令是单点操作时, 判断单点操作是否选中文件, 如果单点操作选中文件, 输出表示是否 进入待删除或剪切状态的提示, 当收到用户选择进入待删除或剪切状态的指令时,进入待 删除或剪切状态; 如果单点操作未选中文件, 进入待删除或剪切状态。 26. The device according to claim 24 or 25, wherein the first processing module is configured to: when the first gesture instruction is a single-point operation, determine whether the single-point operation selects a file, and if the single-point operation selects a file, Outputs a prompt indicating whether to enter the state to be deleted or cut. When receiving the user's instruction to enter the state to be deleted or cut, the system enters the state to be deleted or cut; if the file is not selected in a single-click operation, the system enters the state to be deleted or cut. cut status.
27、 如权利要求 23所述的装置, 其特征在于, 接口模块捕获用户通过触摸屏输入的 第二手势指令和第三手势指令的同时, 持续捕获用户对触摸屏进行的第一手势指令。 27. The device according to claim 23, wherein while the interface module captures the second gesture command and the third gesture command input by the user through the touch screen, it continues to capture the first gesture command performed by the user on the touch screen.
28、 如权利要求 23所述的装置, 其特征在于, 第二手势指令为单点操作, 所述选中 的目标文件为一次或多次单点操作选中的文件; 28. The device of claim 23, wherein the second gesture instruction is a single-point operation, and the selected target file is a file selected by one or more single-point operations;
或者,第二手势指令为滑动并且滑动轨迹形成非封闭区域,所述选中的目标文件为滑 动轨迹覆盖的文件或除滑动轨迹覆盖之外的文件; Alternatively, the second gesture instruction is sliding and the sliding trajectory forms a non-enclosed area, and the selected target file is a file covered by the sliding trajectory or a file other than the sliding trajectory covering;
或者,第二手势指令为滑动并且滑动轨迹形成封闭区域,所述选中的目标文件为封闭 区域内的文件或封闭区域外的文件。 Alternatively, the second gesture instruction is sliding and the sliding trajectory forms a closed area, and the selected target file is a file within the closed area or a file outside the closed area.
29、 如权利要求 23所述的装置, 其特征在于, 第三处理模块用于: 根据第三手势指 令, 判断拖动的距离是否达到预设的距离门限, 如果拖动的距离达到预设的距离门限, 则 删除或剪切第二手势指令选中的目标文件。 29. The device of claim 23, wherein the third processing module is configured to: determine whether the dragging distance reaches the preset distance threshold according to the third gesture instruction. If the dragging distance reaches the preset distance threshold, distance threshold, then delete or cut the target file selected by the second gesture command.
30、 如权利要求 23所述的装置, 其特征在于, 第三手势指令为: 对至少一个目标文 件按照预设的第一方向拖动, 或对至少一个目标文件按照预设的第二方向拖动; 30. The device of claim 23, wherein the third gesture instruction is: drag the at least one target file in a preset first direction, or drag the at least one target file in a preset second direction. move;
所述第三处理模块用于:如果所述第三手势指令为对至少一个目标文件按照预设的第 一方向拖动,删除第二手势指令选中的目标文件;如果所述第三手势指令为对至少一个目 标文件按照预设的第二方向拖动, 剪切第二手势指令选中的目标文件。 The third processing module is configured to: if the third gesture instruction is to drag at least one target file in a preset first direction, delete the target file selected by the second gesture instruction; if the third gesture instruction To drag at least one target file in a preset second direction, and cut the target file selected by the second gesture instruction.
PCT/CN2013/086549 2012-11-30 2013-11-05 Method and device for deleting or cutting file based on touch screen WO2014082521A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210506204.3A CN102968277B (en) 2012-11-30 2012-11-30 Delete or shear method and the device of file based on touch screen
CN201210506204.3 2012-11-30

Publications (1)

Publication Number Publication Date
WO2014082521A1 true WO2014082521A1 (en) 2014-06-05

Family

ID=47798442

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/086549 WO2014082521A1 (en) 2012-11-30 2013-11-05 Method and device for deleting or cutting file based on touch screen

Country Status (2)

Country Link
CN (1) CN102968277B (en)
WO (1) WO2014082521A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968277B (en) * 2012-11-30 2016-06-08 小米科技有限责任公司 Delete or shear method and the device of file based on touch screen
CN103870187B (en) * 2012-12-17 2017-02-22 华为终端有限公司 Method for controlling terminal with touch screen and terminal
KR101437572B1 (en) * 2013-05-09 2014-09-04 (주)오픈벡스 Mobile terminal control method for voice talk
CN103677577A (en) * 2013-12-12 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Terminal object operating method and terminal
CN104777970B (en) * 2014-01-10 2018-01-23 联想(北京)有限公司 The method and a kind of electronic equipment of a kind of information processing
CN105653145A (en) * 2014-11-12 2016-06-08 阿里巴巴集团控股有限公司 Method and device for processing display object
CN105323368B (en) * 2014-12-10 2018-08-17 维沃移动通信有限公司 Batch selection method and its mobile terminal
CN104777981A (en) * 2015-04-24 2015-07-15 无锡天脉聚源传媒科技有限公司 Information fast sharing method and device
CN105183325B (en) * 2015-10-27 2019-06-18 上海斐讯数据通信技术有限公司 A kind of customized input method and system
CN105468257B (en) * 2015-11-20 2019-01-29 珠海市魅族通讯设备有限公司 A kind of delet method and terminal
CN105426049B (en) * 2015-11-20 2019-03-26 魅族科技(中国)有限公司 A kind of delet method and terminal
CN106934003B (en) * 2017-03-06 2021-01-15 宇龙计算机通信科技(深圳)有限公司 File processing method and mobile terminal
CN107728898B (en) * 2017-09-26 2020-03-03 维沃移动通信有限公司 Information processing method and mobile terminal
CN111427587B (en) * 2019-05-30 2023-08-29 杭州海康威视数字技术股份有限公司 Target deleting method and device
WO2021003730A1 (en) * 2019-07-11 2021-01-14 深圳市柔宇科技有限公司 Touch device and input control method therefor
CN113946208B (en) * 2021-09-10 2023-03-28 荣耀终端有限公司 Touch control panel control method and electronic equipment
CN114461125A (en) * 2022-01-21 2022-05-10 珠海格力电器股份有限公司 Short message deleting method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016777A (en) * 2008-03-04 2011-04-13 苹果公司 Methods and graphical user interfaces for editing on a portable multifunction device
CN102023797A (en) * 2009-09-14 2011-04-20 国基电子(上海)有限公司 Mobile device and method for controlling pictures browsing
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876865B (en) * 2009-11-27 2013-07-24 友达光电股份有限公司 Method for judging gesture of touch device
KR101687613B1 (en) * 2010-06-21 2016-12-20 엘지전자 주식회사 Mobile terminal and Method for generating group thereof
CN102375651A (en) * 2010-08-13 2012-03-14 Tcl集团股份有限公司 Method for unlocking portable electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016777A (en) * 2008-03-04 2011-04-13 苹果公司 Methods and graphical user interfaces for editing on a portable multifunction device
CN102023797A (en) * 2009-09-14 2011-04-20 国基电子(上海)有限公司 Mobile device and method for controlling pictures browsing
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen

Also Published As

Publication number Publication date
CN102968277B (en) 2016-06-08
CN102968277A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
WO2014082521A1 (en) Method and device for deleting or cutting file based on touch screen
WO2019128732A1 (en) Icon management method and device
US11556241B2 (en) Apparatus and method of copying and pasting content in a computing device
EP3190502B1 (en) Icon control method and corresponding terminal
EP2854380B1 (en) Method for quickly operating file of smart phone and smart phone
US8271908B2 (en) Touch gestures for remote control operations
CN105068723B (en) Information processing method and electronic equipment
EP2660700B1 (en) Method, apparatus and computer program product for operating items with multiple fingers
CN109923511B (en) Object processing method and terminal
US9465470B2 (en) Controlling primary and secondary displays from a single touchscreen
CN103870156A (en) Method and device for processing object
CN103970460A (en) Touch screen-based operation method and terminal equipment using same
CN104423869A (en) Text erasing method and device
CN105573653A (en) Multi-object selecting method and terminal
JP2014035603A (en) Information processing device, display processing method, display processing control program, and recording medium
US10642481B2 (en) Gesture-based interaction method and interaction apparatus, and user equipment
EP2772840A1 (en) Method and device for uploading and downloading file
CN105242865A (en) Input processing method, input processing apparatus and mobile terminal comprising apparatus
CN107817927B (en) Application icon management method and device
CN103324398A (en) Text editing method, text editing system and touch screen terminal
JP7030529B2 (en) Electronic devices, information processing methods, programs and storage media
KR101970506B1 (en) Method and apparatus for moving list items
CN106126107B (en) Electronic apparatus and control method
WO2013082764A1 (en) Information processing method and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13859074

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13859074

Country of ref document: EP

Kind code of ref document: A1