WO2020062121A1 - 页面操作方法、电子装置及计算机可读存储介质 - Google Patents

页面操作方法、电子装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2020062121A1
WO2020062121A1 PCT/CN2018/108529 CN2018108529W WO2020062121A1 WO 2020062121 A1 WO2020062121 A1 WO 2020062121A1 CN 2018108529 W CN2018108529 W CN 2018108529W WO 2020062121 A1 WO2020062121 A1 WO 2020062121A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
display area
processor
gesture operation
preset
Prior art date
Application number
PCT/CN2018/108529
Other languages
English (en)
French (fr)
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 深圳市柔宇科技有限公司
Priority to PCT/CN2018/108529 priority Critical patent/WO2020062121A1/zh
Priority to CN201880094179.8A priority patent/CN112639710A/zh
Publication of WO2020062121A1 publication Critical patent/WO2020062121A1/zh

Links

Images

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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present application relates to the technical field of electronic devices, and in particular, to a method for operating a page, an electronic device, and a computer-readable storage medium.
  • the embodiment of the present application discloses a page operation method, an electronic device, and a computer-readable storage medium, which can delete a currently displayed page through a gesture operation, increase the interest of the operation, and improve the operation efficiency and user experience.
  • a page operation method disclosed in the embodiment of the present application is applied to an electronic device, and the electronic device includes a touch screen; the page operation method includes the following steps:
  • the page that received the preset gesture operation is deleted from the electronic device in response to the preset gesture operation.
  • An electronic device disclosed in the embodiments of the present application includes a touch screen and a processor, where the processor is configured to determine a page currently displayed on the touch screen;
  • the processor is further configured to determine whether the user has editing permission on the page; and when the user has editing permission on the page, the page that received the preset gesture operation is received from the electronic device in response to a preset gesture operation Delete.
  • a computer-readable storage medium disclosed in the embodiments of the present application stores a control program for page operations.
  • the control program for page operations is executed by a processor, the page operation method described above is implemented. A step of.
  • the page operation method, electronic device, and computer-readable storage medium of the present application determine the currently displayed page, and when it is determined that the user has editing authority for the page, it can respond to the gesture operation input by the user to change the currently displayed page Deletion is convenient, fast, and adds fun to the operation, thereby improving the efficiency of the operation and the user experience.
  • FIG. 1 is a flowchart of a page operation method disclosed in an embodiment of the present application.
  • FIG. 2 is a detailed flowchart of a page operation method disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic diagram showing a relationship between a plurality of touch points of a grasping operation disclosed in an embodiment of the present application.
  • FIG. 4 is a flowchart of a page operation method disclosed in an embodiment of the present application.
  • 5A is a schematic diagram of a display interface of a touch screen disclosed in an embodiment of the present application.
  • FIG. 5B is a schematic diagram of a display interface of a touch screen disclosed in another embodiment of the present application.
  • FIG. 6 is a schematic diagram of a display interface of a touch screen disclosed in another embodiment of the present application.
  • FIG. 7 is a detailed flowchart of a page operation method disclosed in another embodiment of the present application.
  • FIG. 8 is a schematic diagram of a page deletion process disclosed in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a display interface after deleting a page disclosed in an embodiment of the present application.
  • FIG. 10 is a structural block diagram of an electronic device disclosed in an embodiment of the present application.
  • FIG. 1 is a flowchart of a page operation method disclosed in an embodiment of the present application.
  • the page operation method is applied to an electronic device, and the electronic device includes a touch screen.
  • the page operation method includes the following steps:
  • Step S11 Determine a page currently displayed on the touch screen.
  • the currently displayed page is a document editing page, such as a handwriting input interface or an office document editing interface.
  • the currently displayed page may also be an image preview or editing interface.
  • step S12 it is determined whether the user has editing rights on the page. If yes, go to step S13; if not, then the process ends.
  • the editing permission of a page when the editing permission of a page is turned on, it indicates that the user has the editing operation permission on the page. When the editing permission of the page is closed, it indicates that the user does not have editing permission for the page.
  • the editing authority includes a user can delete, modify and other operations on the page.
  • Step S13 In response to a preset gesture operation, the page that received the preset gesture operation is deleted from the electronic device.
  • the currently displayed page can be deleted from the electronic device in response to a preset gesture operation input by the user, which is convenient, fast, and Increase the fun of operation, improve the efficiency of operation and user experience.
  • the preset gesture operation is a gripping operation
  • deleting the page that received the preset gesture operation in response to the preset gesture operation specifically includes:
  • step S21 it is determined whether the gesture operation received on the page is a preset gripping operation. If yes, go to step S22; if no, then the process ends.
  • step S22 the page on which the grasping operation is received is deleted.
  • the currently displayed page is deleted only when the user inputs a grasping gesture, so that the real paper can be compared to the action of kneading and throwing out a real paper by grasping it. , Better meet the natural habits of users, and improve the user experience.
  • the coordinates of each touch point generated by the user's touch are acquired.
  • the coordinate data of the touch point may be determined according to a touch sensing signal generated by the touch screen.
  • a touch screen includes multiple touch sensors, each touch sensor corresponds to a coordinate, and when a user touches the touch screen, a touch point is generated on the touch screen, so that a touch sensor corresponding to the touch point will generate The touch sensing signal, therefore, by determining the touch sensor that generates the touch sensing signal, the coordinate data of the corresponding touch point can be obtained. Then, the coordinates of the center point are obtained according to the coordinates of each touch point. Specifically, as shown in FIG.
  • the gesture operation is a grasping gesture. Specifically, when the finger is grasping toward the palm of the hand, the distance between the center point and the coordinate point of each finger end currently sampled is calculated every preset time interval and added to obtain the distance and L (t1), L (t2 ... and compare them with the initial distance and L (sum) in turn.
  • n is a positive integer greater than or equal to 2, which can be set according to the design requirements. It is not specifically limited here.
  • the determining whether the gesture operation received on the page is a gripping operation further includes:
  • generating a gripping operation generally requires a certain number of fingers (for example, five) to simultaneously touch the touch screen and slide toward the same center position.
  • the number of touch points is small (for example, there are only 1-2 touch points) ), A gripping action cannot be formed, so it is not necessary to obtain the coordinates of each touch point and perform subsequent corresponding actions, which can save the response processing time of the electronic device, thereby improving the response speed of the electronic device.
  • the preset value is 4. In other embodiments, the preset value may also be 3.
  • FIG. 4 is a flowchart of a page operation method disclosed in another embodiment of the present application.
  • the page operation method further includes after step S12:
  • Step S41 Determine whether the number of currently displayed pages is multiple. If yes, go to step S42. If not, go to step S13.
  • Step S42 Select one or more pages currently displayed in response to the first specific operation input by the user.
  • step S43 the selected page is deleted in response to a preset gesture operation input by the user.
  • the first specific operation includes, but is not limited to, specific operations such as a single-finger touch, a two-finger touch, a click operation, a circle drawing, and a polyline.
  • specific operations such as a single-finger touch, a two-finger touch, a click operation, a circle drawing, and a polyline.
  • the user selects a page by clicking it, or the user draws a circle in the area corresponding to the page to be selected to select the page.
  • the position where the user inputs a gesture operation may be any position in the display area of the touch screen, and is not limited to the area corresponding to the determined currently displayed page. For example, if FIG. 5A To delete page 1, you can also enter a gesture operation in the display area corresponding to page 2. Since page 1 has been previously selected, even if you enter the corresponding gesture operation in the display area corresponding to page 2, you can also enter page 1. delete.
  • the touch screen further includes a non-display area (for example, a touch-only touchpad area), it can also respond to a gesture operation input in a non-display area. Therefore, in this application, The location is not limited.
  • the display mode of the multiple pages is a page thumbnail mode.
  • the page thumbnail mode is that the current display window includes a main display area 11 and an auxiliary display area 12.
  • the auxiliary display area 12 displays thumbnails of one or more pages, and the main display area 11 displays auxiliary images.
  • the main display area 11 and the auxiliary display area 12 are displayed side by side in a display window of the touch screen.
  • the auxiliary main display area 12 is located on the left or above the main display area 11, To facilitate user viewing and operation.
  • the size of the auxiliary display area 11 should be smaller than the size of the main display area 12.
  • the page operation method has the following different steps after step S12 compared to the method shown in FIG. 1:
  • Step S71 Determine whether the display mode of the page is a page thumbnail mode. If yes, step S72 is performed. If not, step S13 is executed.
  • the page thumbnail mode includes a main display area 11 and a secondary display area 12.
  • step S72 it is determined whether a preset gesture operation applied by the user is located in the auxiliary display area 12. If yes, go to step S73; if no, go to step S74.
  • Step S73 Delete one or more pages that received the preset gesture operation in the auxiliary display area.
  • the preset gesture operation is a grasping operation.
  • the gripping operation is located in the auxiliary display area 12
  • the multiple pages are deleted in response to the gripping operation. That is, as shown in FIG. 6, when the starting point of the grasping operation falls on the thumbnail A and the thumbnail C, it indicates that the grasping potential is applied to the 2 pages of the auxiliary display area 12 in response to the grasping. Grip to delete these two pages.
  • step S74 control is performed to delete a page that has received the preset gesture operation in the main display area.
  • the preset gesture operation received in the main display area 11 is also a gripping operation.
  • the preset gesture operation received in the main display area 11 is a slide operation, and when the slide operation is located in the main display area 11, it is further determined whether the slide operation is a The page displayed on the main display area 11 slides to the auxiliary display area 12, and when the page displayed on the main display area 11 slides from the main display area 11 to the auxiliary display area 12, the The page displayed on the main display area 11. Further, when a page in the main display area 11 receives the preset sliding operation, the page is further controlled to be displayed in the form of a thumbnail and moved with the sliding operation. When the thumbnail is moved to the auxiliary display area 12, the page displayed in the main display area is deleted from the electronic device.
  • a page deletion operation can be implemented by dragging a page, and the operation is simple, and during the dragging process, the page is displayed in the form of a thumbnail to improve the delete operation error. For example, during dragging, if It is not displayed as a thumbnail to remind the user, which may cause accidental deletion due to accidental sliding.
  • a method for determining whether the gesture operation is a sliding gesture operation from the main display area 11 to the auxiliary display area 12 is similar to the previous embodiment.
  • the coordinates of the generated touch points Next, it is determined whether the coordinates of the touch point are close to the coordinate range corresponding to the auxiliary display area 12.
  • the sliding operation may be a single-finger sliding operation or a two-finger sliding operation.
  • page B continues to be displayed on the touch screen. Specifically, when the coordinates of the pages displayed in the form of thumbnails in the main display area 11 are all within the coordinate range corresponding to the auxiliary display area 12, it is determined that the pages displayed in the form of thumbnails in the main display area 11 are moved to the pages.
  • the secondary display area 12 is used to delete the page from the electronic device. Further, referring to FIG. 9 again, when the page B displayed in the main display area 11 is deleted, the page (such as page C) corresponding to the next thumbnail in the auxiliary display area 12 is displayed in the main display area 11.
  • the page operation method further includes: responding to a second specific operation of the user to restore the deleted page. Therefore, when a user deletes a certain page by mistake, the deleted page can be restored to reduce the trouble and loss caused by the accidental deletion.
  • the second specific operation includes, but is not limited to, a double-tap touch screen, a specific gesture operation (drawing a specific shape pattern on the touch screen, for example, a line, a polyline, a curve, a circle, a square, a star, etc.), a long press
  • a physical key (such as a volume adjustment key, a home key, etc.) of the electronic device is not limited herein.
  • the electronic device further includes a prompting unit
  • the page operation method further includes: when deleting the currently displayed page is completed, controlling the prompting unit to issue a prompting message to prompt the user to delete carry out.
  • the prompting unit includes, but is not limited to, a buzzer, a speaker for emitting sound, a light emitting diode for emitting light of different colors, a display screen for outputting and displaying text information, and the like.
  • FIG. 10 is a structural block diagram of an electronic device 100 according to an embodiment of the present application.
  • the electronic device 100 may be, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a personal digital assistant (PDA), a portable media player (Portable Media Player, PMP), a navigation device, a wearable device, Smart bracelets, pedometers, etc. are not limited here.
  • the electronic device 100 includes, but is not limited to, a touch screen 10, a memory 20, and a processor 30. Specifically, the touch screen 10, the memory 20 and the processor 30 may be coupled through a communication bus 40.
  • FIG. 12 is only an example of the electronic device 100 and does not constitute a limitation on the electronic device 100.
  • the electronic device 100 may include more or more than that shown in FIG. There are few components, or some components are combined, or different components, for example, the electronic device 100 may further include an input / output device, a network access device, and the like.
  • the touch screen 10 includes, but is not limited to, a liquid crystal touch screen (Liquid Crystal Display, LCD), a quantum dot touch screen (Quantum Light Emitting Diodes, QLED), an organic light emitting diode touch screen (Organic Light-Emitting Diode, OLED), etc., which are not described here. limited.
  • a liquid crystal touch screen Liquid Crystal Display, LCD
  • a quantum dot touch screen Quantum Light Emitting Diodes, QLED
  • organic light emitting diode touch screen Organic Light-Emitting Diode, OLED
  • the memory 20 may be used to store computer programs and / or modules, and the processor 30 implements all functions by running or executing computer programs and / or modules stored in the memory 20 and invoking data stored in the memory 20.
  • the memory 20 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for multiple functions (such as a sound playback function, an image playback function, etc.), etc .; the data storage area may Stores data (such as audio data, phone book, etc.) created based on the use of the phone.
  • the memory 20 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a SmartMedia Card (SMC), and a Secure Digital (SD). ) Card, flash memory card (Flash card), multiple disk storage devices, flash memory devices, or other volatile solid-state storage devices.
  • a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a SmartMedia Card (SMC), and a Secure Digital (SD).
  • SSD Secure Digital
  • the processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), Field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the processor is a control center of the electronic device 100, and uses various interfaces and lines to connect the entire electronic device 100. Various parts.
  • the processor 30 is configured to be used by the processor to determine a page currently displayed on the touch screen; the processor is further configured to determine whether a user has editing permission on the page, and when determining that the user has editing on the page In the case of permission, the processor deletes the page that received the preset gesture operation from the electronic device in response to a preset gesture operation.
  • the electronic device disclosed in the embodiments of the present application can delete the currently displayed page in response to a gesture operation input by a user, which is convenient and quick, increases the interest of the operation, and improves the operation efficiency and user experience.
  • the currently displayed page is a document editing page, such as a handwriting input interface or an office document editing interface.
  • the currently displayed page may also be an image preview or editing interface.
  • the editing permission of a page When the editing permission of a page is turned on, it indicates that the user has the editing permission for the page.
  • the editing permission of the page When the editing permission of the page is closed, it indicates that the user does not have editing permission for the page.
  • the editing authority includes operations such as deletion and modification.
  • the preset gesture operation is a gripping operation
  • the processor 30 responds to the preset gesture operation to delete the page that has received the preset gesture operation, including: the processor 30 determines that the page receives Whether the obtained gesture operation is a gripping operation; when it is determined that the gesture operation is a gripping operation, the processor 30 deletes the page deletion that has received the gripping operation.
  • the processor 30 determines that the page receives Whether the obtained gesture operation is a gripping operation; when it is determined that the gesture operation is a gripping operation, the processor 30 deletes the page deletion that has received the gripping operation.
  • the currently displayed page is deleted only when the user inputs a grasping gesture, so that the real paper can be compared to the action of kneading and throwing out a real paper by grasping it. , Better meet the natural habits of users, and improve the user experience.
  • the processor 30 In the step of determining whether the gesture operation received on the page is a gripping operation, the processor 30 first obtains the coordinates of each touch point generated by the user's touch; and then obtains the coordinates of each touch point based on the coordinates of each touch point. The coordinates of the center point; then calculate the distance L1, L2, L3, L4, L5 from each touch point to the center point, and calculate the sum L (sum) of the distances from each touch point to the center point; finally Determine whether the sum L (sum) of the distances from each touch point to the center point gradually decreases within a preset time; when the sum of the distances from each touch point to the center point gradually decreases within a preset time , Determining that the gesture operation is a grasping gesture.
  • the determining whether the gesture operation received on the page is a gripping operation further includes: the processor 30 further uses In counting the number of touch points generated by the user's touch; determining whether the number of touch points is greater than a preset value; when the number of touch points is greater than a preset value, the processor 30 determines the gesture operation For gripping operation. It can be understood that generating a gripping operation generally requires a certain number of fingers (for example, five) to simultaneously touch the touch screen and slide toward the same center position.
  • the preset value is 4. In other embodiments, the preset value may also be 3.
  • the processor 30 further determines whether the number of currently displayed pages is multiple, and when it is determined that the number of currently displayed pages is multiple At this time, the processor 30 selects one or more pages currently displayed in response to a first specific operation input by the user, and deletes the selected pages in response to a preset gesture operation input by the user. Specifically, referring to FIG. 5A and FIG. 5B again, when a user browses a document using the electronic device 100, multiple pages may be displayed at the same time.
  • the first specific operation includes, but is not limited to, specific operations such as a single-finger touch, a two-finger touch, a click operation, a circle drawing, and a polyline.
  • specific operations such as a single-finger touch, a two-finger touch, a click operation, a circle drawing, and a polyline.
  • the user selects a page by clicking it, or the user draws a circle in the area corresponding to the page to be selected to select the page.
  • the display mode of the multiple pages is a page thumbnail mode.
  • the page thumbnail mode is that the current display window includes a main display area 11 and an auxiliary display area 12.
  • the auxiliary display area 12 displays thumbnails of one or more pages, and the main display area 11 displays auxiliary images.
  • the main display area 11 and the auxiliary display area 12 are displayed side by side in a display window of the touch screen.
  • the auxiliary main display area 12 is located on the left or above the main display area 11, To facilitate user viewing and operation.
  • the size of the auxiliary display area 11 should be smaller than the size of the main display area 12.
  • the processor 30 further determines whether the display mode of the page is a page thumbnail mode. When it is determined that the display mode of the page is a page thumbnail mode, the processor 30 determines whether a preset gesture operation applied by the user is located in the auxiliary display area 12. When it is determined that the preset gesture operation applied by the user is located in the auxiliary display area 12, one or more pages in the auxiliary display area 12 that received the preset gesture operation are deleted. When it is determined that a preset gesture operation applied by the user is located in the main display area 11, control is performed to delete a page in the main display area 11 that has received the preset gesture operation.
  • the preset gesture operation received in the main display area 11 is also a gripping operation.
  • the preset gesture operation received in the main display area 11 is a sliding operation, and the sliding direction of the sliding operation is from the main display area 11 to the auxiliary display area 12.
  • the processor 30 also controls the page to be displayed in the form of a thumbnail and move with the sliding operation.
  • the processor 30 deletes the page displayed in the main display area from the electronic device.
  • a page deletion operation can be implemented by dragging a page, and the operation is simple, and during the dragging process, the page is displayed in the form of a thumbnail to improve the delete operation error. For example, during the dragging process, if It is not displayed as a thumbnail to remind the user, which may cause accidental deletion due to accidental sliding.
  • a method for judging whether the gesture operation is a sliding gesture operation from the main display area 111 to the auxiliary display area 12 is similar to the foregoing embodiment.
  • a method for obtaining The coordinates of the touch point is obtained.
  • the sliding operation may be a single-finger sliding operation or a two-finger sliding operation.
  • page B continues to be displayed on the touch screen. Specifically, when the coordinates of the pages displayed in the form of thumbnails in the main display area 11 are all within the coordinate range corresponding to the auxiliary display area 12, it is determined that the pages displayed in the form of thumbnails in the main display area 11 are moved to the pages.
  • the secondary display area 12 is used to delete the page from the electronic device. Further, referring to FIG. 9 again, when the page B displayed in the main display area 11 is deleted, the page (such as page C) corresponding to the next thumbnail in the auxiliary display area 12 is displayed in the main display area 11.
  • the processor 30 is further configured to respond to a second specific operation of the user to restore the deleted page. Therefore, when a user deletes a certain page by mistake, the deleted page can be restored to reduce the trouble and loss caused by the accidental deletion.
  • the electronic device 100 further includes a prompting unit 50.
  • the processor 30 is further configured to control the prompting unit 50 to issue a prompting message to prompt the user to complete the deletion.
  • the prompting unit 50 includes, but is not limited to, a buzzer, a speaker for emitting sound, a light emitting diode for emitting light of different colors, a display screen for outputting and displaying text information, and the like.
  • the page operation method provided in this application can be implemented in hardware or firmware, or can be used as software or computer code that can be stored in a computer-readable storage medium such as a CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or can Computer code that is originally stored on a remote recording medium or a non-transitory machine-readable medium, downloaded over a network, and stored in a local recording medium, so that the methods described herein can utilize a general-purpose computer or special processor or in a device such as Programmable or special-purpose hardware such as this is presented as software stored on a recording medium.
  • a computer, processor, microprocessor, controller, or programmable hardware includes a memory component, such as RAM, ROM, flash memory, etc., which is accessed when the computer, processor, or hardware implements the processing methods described herein
  • the memory component can store or receive software or computer code.
  • a general-purpose computer accesses code for implementing the processing shown here, execution of the code converts the general-purpose computer into a special-purpose computer for performing the processing shown here.
  • the computer-readable storage medium may be a solid-state memory, a memory card, an optical disc, or the like.
  • the computer-readable storage medium stores program instructions and is called by a computer to execute the page operation method shown in this application.

Abstract

一种页面操作方法,应用于电子装置(100)中,所述电子装置(100)包括触摸屏(10);所述页面操作方法包括如下步骤:确定所述触摸屏(10)当前显示的页面(S11);判断用户对该页面是否具有编辑权限(S12);当确定用户对该页面具有编辑权限时,响应预设的手势操作将接收到该预设的手势操作的页面从所述电子装置中删除(S13)。该方法能够根据预设的手势操作将接收到该预设的手势操作的页面进行删除,提高了操作效率和提高了用户体验。

Description

页面操作方法、电子装置及计算机可读存储介质 技术领域
本申请涉及电子装置技术领域,尤其涉及一种页面操作方法、电子装置及计算机可读存储介质。
背景技术
目前,手机、平板电脑、手写板等电子装置已经被广泛地使用,极大地便利了人们的生活。例如,用户可以通过电子装置来进行书写、文档(比如,PPT文档)编辑或者页面浏览等。然而,现有的电子装置在进行书写、编辑文档或者浏览页面时,无法实现快速的对当前显示的页面进行删除的功能,若要将当前显示的页面删除则需通过外部按键或者鼠标来实现,进而导致用户体验效果不佳。
发明内容
本申请实施例公开一种页面操作方法、电子装置及计算机可读存储介质,能够通过手势操作来对当前显示的页面进行删除,增加操作的趣味性,提升了操作的效率和用户体验。
本申请实施例公开的一种页面操作方法,应用于电子装置中,所述电子装置包括触摸屏;所述页面操作方法包括如下步骤:
确定所述触摸屏当前显示的页面;
判断用户对该页面是否具有编辑权限;
当用户对该页面具有编辑权限时,响应预设的手势操作将接收到该预设的手势操作的页面从所述电子装置中删除。
本申请实施例公开的一种电子装置,包括触摸屏和处理器,所述处理器用于确定所述触摸屏当前显示的页面;
所述处理器还用于判断用户对该页面是否具有编辑权限;并当用户对该页面具有编辑权限时,响应预设的手势操作将接收到该预设的手势操作的页面从所述电子装置中删除。
本申请实施例公开的一种计算机可读存储介质,所述计算机可读存储介质上存储有页面操作的控制程序,所述页面操作的控制程序被处理器执行时实现如上所述的页面操作方法的步骤。
本申请的页面操作方法、电子装置及计算机可读存储介质,通过对当前显示的页面进行确定,并当确定用户对该页面具有编辑权限时,能够响应用户输入的手势操作以将当前显示的页面删除,方便、快捷且增加了操作的趣味性,从而提升了操作的效率和用户体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例中公开的页面操作方法的流程图。
图2为本申请一实施例中公开的页面操作方法细化的流程图。
图3为本申请一实施例中公开的抓握操作的多个触控点之间的关系示意图。
图4为本申请一实施例中公开的页面操作方法的流程图。
图5A为本申请一实施例中公开的触摸屏的显示界面示意图。
图5B为本申请另一实施例中公开的触摸屏的显示界面示意图。
图6为本申请另一实施例中公开的触摸屏的显示界面示意图。
图7为本申请另一实施例中公开的页面操作方法细化的流程图。
图8为本申请一实施例中公开的页面删除过程示意图。
图9为本申请一实施例中公开的页面删除后的显示界面示意图。
图10为本申请一实施例中公开的电子装置的结构框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清 楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
请参阅图1,图1为本申请一实施例公开的页面操作方法的流程图。所述页面操作方法应用于一电子装置中,所述电子装置包括触摸屏。如图1所示,所述页面操作方法包括如下步骤:
步骤S11,确定所述触摸屏当前显示的页面。
在本实施方式中,所述当前显示的页面为一文档编辑页面,例如手写输入界面或办公文档编辑界面。在其他实施方式中,所述当前显示的页面还可以是图像预览或编辑界面。
步骤S12,判断用户对该页面是否具有编辑权限。若是,则进入步骤S13;若否,则流程结束。
在本实施方式中,当一页面的编辑权限开启时,表明用户对该页面具有编辑操作的权限。当该页面的编辑权限关闭时,表明用户对该页面不具有编辑操作的权限。其中,所述编辑权限包括用户可对该页面进行删除、修改等操作。
步骤S13,响应预设的手势操作将接收到所述预设的手势操作的页面从所述电子装置中删除。
本申请实施例所述公开的页面操作方法,当确定用户对该页面具有编辑权限时,可以响应用户输入的预设的手势操作来将当前显示的页面从电子装置中进行删除,方便、快捷且增加了操作的趣味性,提升了操作的效率和用户体验。
请再参阅图2,在一些实施例中,所述预设的手势操作为抓握操作,所述响应预设的手势操作将接收到所述预设的手势操作的的页面删除具体包括:
步骤S21,判断页面所接收到的手势操作是否为预设的抓握操作。若是,则执行步骤S22;若否,则流程结束。
步骤S22,删除接收到所述抓握操作的页面。
在本实施方式中,通过对用户输入的手势进行判断,使得当用户输入抓握手势时才将当前显示的页面删除,从而可以比拟将真实的纸张通过抓握揉成纸团并扔掉的动作,更好的满足用户的自然习惯,提高了用户体验。
其中,在判断页面所接收到的手势操作是否为抓握操作的步骤中,首先获取由用户触摸而产生的每个触控点的坐标。具体地,可以依据触摸屏产生的触控感应信号确定触控点的坐标数据。例如,触摸屏包括多个触控传感器,每一触控传感器对应一坐标,当用户触摸所述触摸屏时会在所述触摸屏上产生触控点,从而与该触控点对应的触控传感器会产生触控感应信号,因此,通过确定产生触控感应信号的触控传感器能够得出对应的触控点的坐标数据。接着根据各个触控点的坐标得出中心点的坐标。具体的,如图3所示,当用户的手指与所述触摸屏接触并滑动时,会在触摸屏上产生触控点,由于产生抓握的动作由5个手指与触摸屏接触,因此,会产生5个触控点,其中,设每个触控点的坐标分别为(X1,Y1)、(X2,Y2)、(X3,Y3)、(X4,Y4)、(X5,Y5)。当用户手指接触触摸屏的初始时刻,即初次接收到触摸屏产生的触控感应信号而确定有5个触控点时,从5个触控点对应的5个坐标点中选取出X轴方向最大X(max)和最小X(min)的两个值,Y轴方向最大Y(max)和最小Y(min)的两个值,并计算出用户5个手指接触触摸屏的初始时刻时5个手指的中心点的坐标(X(core),Y(core)),其中,X(core)=(X(min)+X(max))/2,Y(core)=(Y(min)+Y(max))/2。
然后计算各个触控点到所述中心点的距离L1、L2、L3、L4、L5,并计算各个触控点到所述中心点的初始距离和L(sum)。
最后判断在预设时间内各个触控点到所述中心点的距离之和L(sum)是否逐渐减小;当在预设时间内各个触控点到所述中心点的距离之和逐渐减小时,判断所述手势操作为抓握手势操。具体地,当手指在向手心抓取的过程中,每间隔预设时间计算中心点和当前采样到的每个手指端的坐标点的距离,并将其相加得出每个时刻下的距离和L(t1),L(t2…并且依次将它们和初始距离和L(sum)作比较,如果连续检测到L(sum)>L(t1)>L(t2)>L(t3)>L(t4)>L(tn),则表明在预设时间内各个触控点到中心点的距离之和逐渐减小。其中,n为大于等于2的正整数,具体可以依据设计需求而进行设定,在此不做具体限定。
进一步地,在一些实施例中,为了提高判断的效率,提高电子装置的响应速度,所述判断页面所接收到的手势操作是否为抓握操作,还包括:
统计由用户触摸而产生的触控点的数量;判断触控点的数量是否大于预设值;当所述触控点的数量大于预设值时,判断所述手势操作为抓握操作。可以理解,产生抓握操作一般需要一定数量的手指(例如5个)同时触摸所述触摸屏并朝同一中心位置滑动,当触控点的数量较少时(比如仅有1-2个触控点),则无法形成抓握动作,因此也无需获取每个触控点的坐标及做后续相应的动作,进而可以节约电子装置的响应处理时间,从而提高电子装置的反应速度。在本实施方式中,预设值为4。在其他实施方式中,预设值也可以为3。
请再参阅图4,为本申请另一实施例中公开的页面操作方法的流程图。在本实施例中,所述页面操作方法较之图1所示的方法是在步骤S12之后还包括:
步骤S41:判断当前显示的页面数量是否为多个。若是,则进入步骤S42。若否,则进入步骤S13。
步骤S42:响应用户输入的第一特定操作选定当前所显示的一个或多个页面。
步骤S43,响应用户输入的预设的手势操作删除所选定的页面。
具体地,请再参阅图5A和图5B,当用户使用电子装置浏览文档时,可能存在同时显示多个页面的情况,因此,需要对显示于触摸屏中的页面数量进行判断;当判断所述当所述触摸屏中显示有多个页面时,响应用户输入的第一特定操作而对一个或多个所显示的页面进行选择。其中,第一特定操作包括但不限于单指触摸、双指触摸等点选操作、画圆、折线等特定操作。例如,用户通过点选某一页面以将其选中,或者用户在要选择的页面对应的区域画圆以将页面选中。
需要说明的是,在本实施方式中,用户输入手势操作的位置可以是触摸屏的显示区域的任意位置,并不局限于与确定的当前显示的页面相对应的区域,例如,若将图5A中的页面1删除,也可以在与页面2对应的显示区域输入手势操作,由于先前已经对页面1进行了选择,因此,即使在与页面2对应的显示区域输入相应的手势操作也可以将页面1删除。在其他实施方式中,若所述触摸屏还包括非显示区域(例如,仅供触摸的触摸板区域),则还可以响应非 显示区域输入的手势操作,因此在本申请中,对手势操作输入的位置不进行限定。
请再参阅图6,在另一些实施例中,当用户对当前所显示的多个页面具有编辑权限时,还需要识别该多个页面的显示模式是否为页面缩略图模式。所述页面缩略图模式为该当前显示窗口包括一主显示区11以及一辅显示区12,所述辅显示区12显示有一个或多个页面的缩略图,所述主显示区11显示有辅显示区12中的一缩略图所对应的详细页面。在本实施方式中,所述主显示区11和辅显示区12并列地显示在所述触摸屏的显示窗口中,优选地,辅主显示区12位于所述主显示区11的左侧或者上方,以方便用户观看和操作。此外,所述辅显示区11的尺寸应当小于主显示区12的尺寸。
请参阅图7,在一些实施方式中,所述页面操作方法较之图1所示的方法是在步骤S12之后有以下区别步骤:
步骤S71,判断所述页面的显示模式是否为页面缩略图模式。若是,则执行步骤S72。若否,则执行步骤S13。在本实施方式中,所述页面缩略模式包括一主显示区11以及一辅显示区12。
步骤S72,判断用户所施加的预设的手势操作是否位于所述辅显示区12。若是,则进入步骤S73;若否,则进入步骤S74。
步骤S73,删除所述辅显示区内接收到所述预设的手势操作的一个或多个页面。
具体的,当该预设的手势操作施加于辅显示区内的一个页面时,则响应该预设的手势操作将该页面进行删除;当该预设的手势操作施加于辅显示区内的多个页面时,则响应该预设的手势操作将该多个页面进行删除。在本实施方式中,该预设的手上操作为抓握操作。所述抓握操作位于所述辅显示区12时,还判断所述抓握操作的起点是否位于所述辅显示区12的多个页面上,并当所述抓握操作的起点位于所述辅显示区12的多个页面上时,响应所述抓握操作删除该多个页面。也即,如图6中所示,当抓握操作的起点落于缩略图A和所述缩略图C上时,表明该抓握手势施加于辅显示区12的2个页面上,响应该抓握操作将这2个页面进行删除。
步骤S74,控制删除所述主显示区内接收到所述预设的手势操作的页面。
在一实施方式中,该主显示区11内所接收到的预设的手势操作也为抓握操作。在另一实施方式中,该主显示区11内所接收到的预设的手势操作为滑动操作,且当所述滑动操作位于所述主显示区11时,还判断所述滑动操作是否为将显示于所述主显示区11的页面滑动至所述辅显示区12,当显示于所述主显示区11的页面由所述主显示区11滑动至所述辅显示区12时,删除所述显示于所述主显示区11的页面。进一步的,当主显示区11内的页面接收到该预设的滑动操作时,还控制所述页面以缩略图的形式显示并随所述滑动操作移动。当该缩略图移动到所述辅显示区12时,将显示于所述主显示区内的所述页面从所述电子装置中删除。
本实施方式中,通过拖动页面即可实现页面删除的动作,操作简单,且在拖动过程中,页面以缩略图的形式显示可以提高删除误操作性,例如,在拖动过程中,若没有以缩略图的方式显示以对用户进行提醒,会导致因误滑动而引起误删的情况发生。
请再参阅图8,在本实施方式中,判断所述手势操作是否为自所述主显示区11向所述辅显示区12的滑动手势操作的方法与前述实施例类似,首先获取由用户触摸而产生的触控点的坐标。接着,判断触控点的坐标是否向所述辅显示区12所对应的坐标范围靠近。当触控点的坐标开始向所述辅显示区12所对应的坐标范围靠近时,控制主显示区11内显示的页面(图8中页面B)以缩略图的形式显示并随着所述触摸点移动。其中,滑动操作可以是单指滑动操作也可以是双指滑动操作。需要说明的是,在拖动过程中,若用户想放弃对当前操作页面的删除,只需在所述以缩略图显示的当前显示的页面没有完全进入所述辅显示区12之前离开触摸屏即可,当用户离开触摸屏时页面B还继续显示于所述触摸屏中。具体地,当主显示区11内以缩略图形式显示的页面的坐标全部位于所述辅显示区12所对应的坐标范围内时,确定主显示区11内以缩略图形式显示的页面移动到所述辅显示区12内,从而将该页面从电子装置中删除。进一步地,请再参阅图9,当显示于主显示区11内的页面B被删除后,辅显示区12内后一缩略图所对应的页面(如页面C)显示于主显示区11内。
在另一些实施例中,所述页面操作方法还包括:响应用户出入的第二特定操作以将删除的页面恢复。因此,当用户将某一页面误删后可对删除的页面进 行复原,减少因误删而带来的困扰和损失。其中,所述第二特定操作包括但不限于双击触摸屏、特定的手势操作(在触摸屏上画出特定的形状的图案,例如,直线、折线、曲线、圆、方形、星形等)、长按电子装置的某一实体按键(比如音量调节键、Home键等)等,在此不做限定。
此外,在另一些实施例中,所述电子装置还包括提示单元,所述页面操作方法还包括:当将所述当前显示的页面删除完成时,控制所述提示单元发出提示信息以提示用户删除完成。其中,提示单元包括但不限于用于发出声音的蜂鸣器、扬声器、用于发出不同颜色光的发光二极管、用于输出并显示文字信息的显示屏等。
请参阅图10,其为本申请一实施例中的电子装置100的结构框图。所述电子装置100可以是但不限于手机、平板电脑、笔记本电脑、、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等,此处不做限定。所述电子装置100包括但不限于触摸屏10、存储器20以及处理器30。具体地,所述触摸屏10、所述存储器20和所述处理器30可以通过通信总线40耦合。本领技术人员应当理解的是,所述图12仅是所述电子装置100的示例,并不构成对所述电子装置100的限定,所述电子装置100可以包括比图12所示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子装置100还可以包括输入输出设备、网络接入设备等。
所述触摸屏10包括但不限于液晶触摸屏(Liquid Crystal Display,LCD)、量子点触摸屏(Quantum Dot Light Emitting Diodes,QLED)、有机发光二极管触摸屏(Organic Light-Emitting Diode,OLED)等,此处不做限定。
所述存储器20可用于存储计算机程序和/或模块,所述处理器30通过运行或执行存储在所述存储器20内的计算机程序和/或模块,以及调用存储在存储器20内的数据,实现所述电子装置100的各种功能。所述存储器20可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、多个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。
此外,所述存储器20可以包括高速随机存取存储器,还可以包括非易失 性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(SmartMedia Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
所述处理器30可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述电子装置100的控制中心,利用各种接口和线路连接整个所述电子装置100的各个部分。
具体地,所述处理器30用于所述处理器用于确定所述触摸屏当前显示的页面;所述处理器还用于判断用户对该页面是否具有编辑权限,并当确定用户对该页面具有编辑权限时,所述处理器响应预设的手势操作将接收到所述预设的手势操作的页面从所述电子装置中删除。本申请实施例所述公开的电子装置,可以响应用户输入的手势操作来讲当前显示的页面进行删除,方便快捷,增加操作的趣味性,提升了操作的效率和用户体验。
在本实施方式中,所述当前显示的页面为一文档编辑页面,例如手写输入界面或办公文档编辑界面。在其他实施方式中,所述当前显示的页面还可以是图像预览或编辑界面。当一页面的编辑权限开启时,表明用户对该页面具有编辑操作的权限。当该页面的编辑权限关闭时,表明用户对该页面不具有编辑操作的权限。其中,所述编辑权限包括删除、修改等操作。
其中,所述预设的手势操作为抓握操作,所述处理器30响应预设的手势操作将接收到所述预设的手势操作的页面删除,包括:所述处理器30判断页面所接收到的手势操作是否为抓握操作;当确定所述手势操作为抓握操作时,所述处理器30删除接收到所述抓握操的页面删除。在本实施方式中,通过对用户输入的手势进行判断,使得当用户输入抓握手势时才将当前显示的页面删除,从而可以比拟将真实的纸张通过抓握揉成纸团并扔掉的动作,更好的满足用户的自然习惯,提高了用户体验。
其中,在判断页面所接收到的手势操作是否为抓握操作的步骤中,所述处 理器30首先获取由用户触摸而产生的每个触控点的坐标;接着根据各个触控点的坐标得出中心点的坐标;然后计算各个触控点到所述中心点的距离L1、L2、L3、L4、L5,并计算各个触控点到所述中心点的距离之和L(sum);最后判断在预设时间内各个触控点到所述中心点的距离之和L(sum)是否逐渐减小;当在预设时间内各个触控点到所述中心点的距离之和逐渐减小时,判断所述手势操作为抓握手势操。
进一步地,在一些实施例中,为了提高判断的效率,提高电子装置100的响应速度,所述判断页面所接收到的的手势操作是否为抓握操作,还包括:所述处理器30还用于统计由用户触摸而产生的触控点的数量;判断触控点的数量是否大于预设值;当所述触控点的数量大于预设值时,所述处理器30判断所述手势操作为抓握操作。可以理解,产生抓握操作一般需要一定数量的手指(例如5个)同时触摸所述触摸屏并朝同一中心位置滑动,当触控点的数量较少时(比如仅有1-2个触控点),则无法形成抓握动作,因此也无需获取每个触控点的坐标及做后续相应的动作,进而可以节约电子装置的响应处理时间,从而提高电子装置的反应速度。在本实施方式中,预设值为4。在其他实施方式中,预设值也可以为3。
在一些实施例中,当所述处理器30确定用户对该页面具有编辑权限之后,所述处理器30还判断当前显示的页面数量是否为多个,并当确定当前显示的页面数量为多个时,所述处理器30响应用户输入的第一特定操作选定当前所显示的一个或多个页面,并响应用户输入的预设的手势操作删除所选定的页面。具体地,请再参阅图5A和图5B,当用户使用电子装置100浏览文档时,可能存在同时显示多个页面的情况,因此,需要对显示于触摸屏中的页面数量进行判断;当判断所述当所述触摸屏中显示有多个页面时,响应用户输入的第一特定操作而对一个或多个所显示的页面进行选择。其中,第一特定操作包括但不限于单指触摸、双指触摸等点选操作、画圆、折线等特定操作。例如,用户通过点选某一页面以将其选中,或者用户在要选择的页面对应的区域画圆以将页面选中。
在另一些实施例中,当用户对当前所显示的多个页面具有编辑权限时,还需要识别该多个页面的显示模式是否为页面缩略图模式。所述页面缩略图模式 为该当前显示窗口包括一主显示区11以及一辅显示区12,所述辅显示区12显示有一个或多个页面的缩略图,所述主显示区11显示有辅显示区12中的一缩略图所对应的详细页面。在本实施方式中,所述主显示区11和辅显示区12并列地显示在所述触摸屏的显示窗口中,优选地,辅主显示区12位于所述主显示区11的左侧或者上方,以方便用户观看和操作。此外,所述辅显示区11的尺寸应当小于主显示区12的尺寸。
具体地,在本实施方式中,当所述处理器30确定用户对该页面具有编辑权限之后,所述处理器30还判断所述页面的显示模式是否为页面缩略图模式。当确定所述页面的显示模式为页面缩略图模式时,所述处理器30判断用户所施加的预设的手势操作是否位于所述辅显示区12。当确定用户所施加的预设的手势操作位于所述辅显示区12时,删除所述辅显示区12内接收到所述预设的手势操作的一个或多个页面。当确定用户所施加的预设的手势操作位于所述主显示区11时,控制删除所述主显示区11内接收到所述预设的手势操作的页面。
在一实施方式中,该主显示区11内所接收到的预设的手势操作也为抓握操作。在另一实施方式中,该主显示区11内所接收到的预设的手势操作为滑动操作,该滑动操作的滑动方向为自所述主显示区11向所述辅显示区12滑动。进一步的,当主显示区11内的页面接收到该预设的滑动操作时,所述处理器30还控制所述页面以缩略图的形式显示并随所述滑动操作移动。当该缩略图移动到所述辅显示区12时,所述处理器30将显示于所述主显示区内的所述页面从所述电子装置中删除。本实施方式中,通过拖动页面即可实现页面删除的动作,操作简单,且在拖动过程中,页面以缩略图的形式显示可以提高删除误操作性,例如,在拖动过程中,若没有以缩略图的方式显示以对用户进行提醒,会导致因误滑动而引起误删的情况发生。
进一步地,在本实施方式中,判断所述手势操作是否为自所述主显示区111向所述辅显示区12的滑动手势操作的方法与前述实施例类似,首先获取由用户触摸而产生的触控点的坐标。接着,判断触控点的坐标是否向所述辅显示区12所对应的坐标范围靠近。当触控点的坐标开始向所述辅显示区12所对应的坐标范围靠近时,控制主显示区11内显示的页面(图8中页面B)以缩 略图的形式显示并随着所述触摸点移动。其中,滑动操作可以是单指滑动操作也可以是双指滑动操作。需要说明的是,在拖动过程中,若用户想放弃对当前操作页面的删除,只需在所述以缩略图显示的当前显示的页面没有完全进入所述辅显示区12之前离开触摸屏即可,当用户离开触摸屏时页面B还继续显示于所述触摸屏中。具体地,当主显示区11内以缩略图形式显示的页面的坐标全部位于所述辅显示区12所对应的坐标范围内时,确定主显示区11内以缩略图形式显示的页面移动到所述辅显示区12内,从而将该页面从电子装置中删除。进一步地,请再参阅图9,当显示于主显示区11内的页面B被删除后,辅显示区12内后一缩略图所对应的页面(如页面C)显示于主显示区11内。
在另一些实施例中,所述处理器30还用于响应用户出入的第二特定操作以将删除的页面恢复。因此,当用户将某一页面误删后可对删除的页面进行复原,减少因误删而带来的困扰和损失。
此外,所述电子装置100还包括提示单元50,当将所述当前显示的页面删除完成时,所述处理器30还用于控制所述提示单元50发出提示信息以提示用户删除完成。其中,提示单元50包括但不限于用于发出声音的蜂鸣器、扬声器、用于发出不同颜色光的发光二极管、用于输出并显示文字信息的显示屏等。
当前显示的页面当前显示的页面当前显示的页面需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请提供的页面操作方法可以在硬件、固件中实施,或者可以作为可以存储在例如CD、ROM、RAM、软盘、硬盘或磁光盘的等计算机可读存储介 质中的软件或计算机代码,或者可以作为原始存储在远程记录介质或非瞬时的机器可读介质上、通过网络下载并且存储在本地记录介质中的计算机代码,从而这里描述的方法可以利用通用计算机或特殊处理器或在诸如ASIC或FPGA之类的可编程或专用硬件中以存储在记录介质上的软件来呈现。如本领能够理解的,计算机、处理器、微处理器、控制器或可编程硬件包括存储器组件,例如,RAM、ROM、闪存等,当计算机、处理器或硬件实施这里描述的处理方法而存取和执行软件或计算机代码时,存储器组件可以存储或接收软件或计算机代码。另外,当通用计算机存取用于实施这里示出的处理的代码时,代码的执行将通用计算机转换为用于执行这里示出的处理的专用计算机。
其中,所述计算机可读存储介质可为固态存储器、存储卡、光碟等。所述计算机可读存储介质存储有程序指令而供计算机调用后执行本申请所示的页面操作方法。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施例进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领的一般技术人员,依据本申请的思想,在具体实施例及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种页面操作方法,应用于电子装置中,所述电子装置包括触摸屏;其特征在于,所述页面操作方法包括如下步骤:
    确定所述触摸屏当前显示的页面;
    判断用户对该页面是否具有编辑权限;
    当确定用户对该页面具有编辑权限时,响应预设的手势操作将接收到该预设的手势操作的页面从所述电子装置中删除。
  2. 如权利要求1所述的页面操作方法,其特征在于,所述预设的手势操作为抓握操作,所述响应预设的手势操作将接收到该预设的手上操作的页面删除,包括:
    判断页面所接收到的手势操作是否为预设的抓握操作;
    当页面所接收到的所述手势操作为预设的抓握操作时,删除接收到所述抓握操作的页面。
  3. 如权利要求2所述的页面操作方法,其特征在于,所述判断页面所接收到的所述手势操作是否为抓握操作具体包括:
    获取由用户触摸而产生的每个触控点的坐标;
    根据各个触控点的坐标得出中心点的坐标;
    计算各个触控点到所述中心点的距离;
    判断在预设时间内各个触控点到所述中心点的距离之和是否逐渐减小;
    当确定在预设时间内各个触控点到所述中心点的距离之和逐渐减小时,判断所述手势操作为抓握操作。
  4. 如权利要求2所述的页面操作方法,其特征在于,所述判断页面所接收到的所述手势操作是否为抓握操作,还包括:
    统计由用户触摸而产生的触控点的数量;
    判断所述触控点的数量是否大于预设值;
    当所述触控点的数量大于所述预设值时,判断所述手势操作为抓握操作。
  5. 如权利要求1中所述的页面操作方法,其特征在于,所述页面操作方法在所述确定用户对该页面具有编辑权限之后还包括:
    判断当前显示的页面数量是否为多个;
    当确定当前显示的页面数量为多个时,响应用户输入的第一特定操作选定当前所显示的一个或多个页面;
    响应用户输入的预设的手势操作删除所选定的页面。
  6. 如权利要求1所述的页面操作方法,其特征在于,所述页面操作方法在确定用户对该页面具有编辑权限时,还包括步骤:判断所述页面的显示模式是否为页面缩略图模式,其中,所述页面缩略图模式为所述触摸屏的显示窗口包括一主显示区以及一辅显示区,所述辅显示区显示有该多个页面的缩略图,所述主显示区显示有与所述缩略图相对应的一详细页面;
    当所述页面的显示模式为页面缩略图模式时,判断用户输入的预设的手势操作位于所述辅显示区或位于所述主显示区;
    当所输入的预设的手势操作位于所述辅显示区时,删除所述辅显示区内接收到所述预设的手势操作的一个或多个页面;或
    当所输入的预设的手势操作位于所述主显示区时,删除所述主显示屏区内接收到所述预设的手势操作的页面。
  7. 如权利要求6所述的页面操作方法,其特征在于,当所述预设的手势操作为抓握操作,且所述抓握操作位于所述辅显示区时,判断所述抓握操作的起点是否位于所述辅显示区的多个页面上;
    当所述抓握操作的起点位于所述辅显示区的多个页面上时,响应所述抓握操作删除该多个页面。
  8. 如权利要求6所述的页面操作方法,其特征在于,当所述预设的手势操作为滑动操作,且所述滑动操作位于所述主显示区时,判断所述滑动操作是否为将显示于所述主显示区的页面滑动至所述辅显示区;
    当显示于所述主显示区的页面由所述主显示区滑动至所述辅显示区时,删除所述显示于所述主显示区的页面。
  9. 如权利要求1所述的页面操作方法,其特征在于,所述将当前显示的页面删除后,所述页面操作方法还包括:
    响应用户输入的第二特定操作以将删除的页面恢复。
  10. 如权利要求1所述的页面操作方法,其特征在于,所述电子装置还包括提示单元,所述页面操作方法还包括:
    当将所述当前显示的页面删除完成时,控制所述提示单元发出提示信息。
  11. 一种电子装置,包括触摸屏和处理器,其特征在于,所述处理器用于确定所述触摸屏当前显示的页面;所述处理器还用于判断用户对该页面是否具有编辑权限,并当确定用户对该页面具有编辑权限时,所述处理器响应预设的手势操作将接收到该预设的手势操作的页面从所述电子装置中删除。
  12. 如权利要求11所述的电子装置,其特征在于,所述预设的手势操作为抓握操作,所述处理器用于响应预设的手势操作将接收到该预设的手上操作的页面删除,包括:所述处理器判断页面所接收到的手势操作是否为预设的抓握操作;当页面所接收到的所述手势操作为预设的抓握操作时,所述处理器删除接收到所述抓握操作的页面。
  13. 如权利要求12所述的电子装置,其特征在于,所述处理器判断页面所接收到的所述手势操作是否为抓握操作,具体包括:所述处理器用于获取由用户触摸而产生的每个触控点的坐标,并根据各个触控点的坐标得出中心点的坐标及计算各个触控点到所述中心点的距离;所述处理器还用于判断在预设时间内各个触控点到所述中心点的距离之和是否逐渐减小;当确定在预设时间内各个触控点到所述中心点的距离之和逐渐减小时,所述处理器判断所述手势操作为抓握操作。
  14. 如权利要求12所述的电子装置,其特征在于,所述处理器用于判断页面所接收到的所述手势操作是否为抓握操作,还包括:所述处理器统计由用户触摸而产生的触控点的数量并判断所述触控点的数量是否大于预设值;当所述触控点的数量大于所述预设值时,所述处理器判断所述手势操作为抓握操作。
  15. 如权利要求11所述的电子装置,其特征在于,当所述处理器确定用户对该页面具有编辑权限之后,所述处理器还判断当前显示的页面数量是否为多个,并当确定当前显示的页面数量为多个时,所述处理器响应用户输入的第一特定操作选定当前所显示的一个或多个页面;所述处理器还响应用户输入的预设的手势操作删除所选定的页面。
  16. 如权利要求11所述的电子装置,其特征在于,在确定用户对该页面具有编辑权限时,所述处理器还判断所述页面的显示模式是否为页面缩略图模 式,其中,所述页面缩略图模式为所述触摸屏的显示窗口包括一主显示区以及一辅显示区,所述辅显示区显示有该多个页面的缩略图,所述主显示区显示有与所述缩略图相对应的一详细页面;
    当所述页面的显示模式为页面缩略图模式时,所述处理器判断用户输入的预设的手势操作位于所述辅显示区或位于所述主显示区;当所输入的预设的手势操作位于所述辅显示区时,所述处理器删除所述辅显示区内接收到所述预设的手势操作的一个或多个页面;或
    当所输入的预设的手势操作位于所述主显示区时,所述处理器删除所述主显示屏区内接收到所述预设的手势操作的页面。
  17. 如权利要求16所述的电子装置,其特征在于,当所述预设的手势操作为抓握操作,且所述抓握操作位于所述辅显示区时,所述处理器判断所述抓握操作的起点是否位于所述辅显示区的多个页面上;
    当所述抓握操作的起点位于所述辅显示区的多个页面上时,所述处理器响应所述抓握操作删除该多个页面。
  18. 如权利要求11所述的电子装置,其特征在于,所述将当前显示的页面删除后,所述处理器还用于响应用户输入的第二特定操作以将删除的页面恢复。
  19. 如权利要求11所述的电子装置,其特征在于,所述电子装置还包括提示单元,当将所述当前显示的页面删除完成时,所述处理器还用于控制所述提示单元发出提示信息。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有页面操作的控制程序,所述页面操作的控制程序被处理器执行时实现如权利要求1至10中任一项所述的页面操作方法的步骤。
PCT/CN2018/108529 2018-09-29 2018-09-29 页面操作方法、电子装置及计算机可读存储介质 WO2020062121A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/108529 WO2020062121A1 (zh) 2018-09-29 2018-09-29 页面操作方法、电子装置及计算机可读存储介质
CN201880094179.8A CN112639710A (zh) 2018-09-29 2018-09-29 页面操作方法、电子装置及计算机可读存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/108529 WO2020062121A1 (zh) 2018-09-29 2018-09-29 页面操作方法、电子装置及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2020062121A1 true WO2020062121A1 (zh) 2020-04-02

Family

ID=69950337

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108529 WO2020062121A1 (zh) 2018-09-29 2018-09-29 页面操作方法、电子装置及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112639710A (zh)
WO (1) WO2020062121A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069372A (zh) * 2010-10-15 2013-04-24 夏普株式会社 信息处理装置以及信息处理装置的控制方法
CN105718150A (zh) * 2016-01-26 2016-06-29 百度在线网络技术(北京)有限公司 用于呈现输入法的页面元素的方法和装置
CN105912071A (zh) * 2009-05-19 2016-08-31 三星电子株式会社 用于编辑用于主屏幕的页面的移动装置和方法
CN107179866A (zh) * 2017-05-22 2017-09-19 北京小米移动软件有限公司 应用控制的方法、装置及存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193720A (zh) * 2010-03-03 2011-09-21 宏碁股份有限公司 内容选取方法及其触控系统
US8650509B2 (en) * 2011-08-19 2014-02-11 International Business Machines Corporation Touchscreen gestures for virtual bookmarking of pages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912071A (zh) * 2009-05-19 2016-08-31 三星电子株式会社 用于编辑用于主屏幕的页面的移动装置和方法
CN103069372A (zh) * 2010-10-15 2013-04-24 夏普株式会社 信息处理装置以及信息处理装置的控制方法
CN105718150A (zh) * 2016-01-26 2016-06-29 百度在线网络技术(北京)有限公司 用于呈现输入法的页面元素的方法和装置
CN107179866A (zh) * 2017-05-22 2017-09-19 北京小米移动软件有限公司 应用控制的方法、装置及存储介质

Also Published As

Publication number Publication date
CN112639710A (zh) 2021-04-09

Similar Documents

Publication Publication Date Title
US20240078375A1 (en) Device, method, and graphical user interface for sharing a content object in a document
US9626098B2 (en) Device, method, and graphical user interface for copying formatting attributes
US9563351B2 (en) Device, method, and graphical user interface for navigating between document sections
WO2019128732A1 (zh) 一种图标管理的方法及装置
US10146407B2 (en) Physical object detection and touchscreen interaction
US9483175B2 (en) Device, method, and graphical user interface for navigating through a hierarchy
US8826164B2 (en) Device, method, and graphical user interface for creating a new folder
US9569102B2 (en) Device, method, and graphical user interface with interactive popup views
US11262895B2 (en) Screen capturing method and apparatus
US8358281B2 (en) Device, method, and graphical user interface for management and manipulation of user interface elements
US8347238B2 (en) Device, method, and graphical user interface for managing user interface content and user interface elements by dynamic snapping of user interface elements to alignment guides
US8972879B2 (en) Device, method, and graphical user interface for reordering the front-to-back positions of objects
US8209630B2 (en) Device, method, and graphical user interface for resizing user interface content
US8621391B2 (en) Device, method, and computer readable medium for maintaining a selection order in a displayed thumbnail stack of user interface elements acted upon via gestured operations
US20110010626A1 (en) Device and Method for Adjusting a Playback Control with a Finger Gesture
US20130055119A1 (en) Device, Method, and Graphical User Interface for Variable Speed Navigation
US20130097551A1 (en) Device, Method, and Graphical User Interface for Data Input Using Virtual Sliders
US20120032891A1 (en) Device, Method, and Graphical User Interface with Enhanced Touch Targeting
US20120030624A1 (en) Device, Method, and Graphical User Interface for Displaying Menus
US20110074830A1 (en) Device, Method, and Graphical User Interface Using Mid-Drag Gestures
US20110074696A1 (en) Device, Method, and Graphical User Interface Using Mid-Drag Gestures
US9026951B2 (en) Device, method, and graphical user interface for selection of views in a three-dimensional map based on gesture inputs
US10379632B2 (en) Devices and methods for manipulating user interfaces with stylus and non-stylus contacts
WO2018010316A1 (zh) 桌面页面管理的方法及装置
CN108491152B (zh) 基于虚拟光标的触屏终端操控方法、终端及介质

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: 18935398

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: 18935398

Country of ref document: EP

Kind code of ref document: A1