












技术领域technical field
本申请属于通信技术领域,具体涉及一种对象编辑处理方法、装置及电子设备。The present application belongs to the technical field of communication, and in particular relates to an object editing and processing method, device and electronic equipment.
背景技术Background technique
通常,用户在需求对电子设备中保存的某个文件进行编辑操作(例如复制操作和删除操作)时,可以先触发电子设备显示文件管理页面,该文件管理页面中包括多个文件,然后用户可以对该多个文件中的某个文件进行输入,以使得电子设备可以显示多个编辑选项(例如复制选项和删除选项等),从而用户可以从该多个编辑选项中查找所需的编辑选项,并对该编辑选项进行选择输入,以触发电子设备通过该编辑选项对应的编辑方式处理该某个文件(例如从电子设备中删除该某个文件)。Usually, when a user needs to perform an editing operation (such as a copy operation and a delete operation) on a file stored in the electronic device, the electronic device can be triggered to display a file management page, which includes multiple files, and then the user can inputting a certain file in the multiple files, so that the electronic device can display multiple editing options (such as copy options and deletion options, etc.), so that the user can find the desired editing options from the multiple editing options, And select and input the editing option, so as to trigger the electronic device to process the certain file through the editing method corresponding to the editing option (for example, delete the certain file from the electronic device).
然而,上述方法中,需要用户先从多个编辑选项中逐一查找所需的编辑选项,才能通过对该编辑选项进行输入以实现对文件的编辑处理,因此用户的输入繁琐且耗时,从而电子设备对文件进行编辑处理的效率较低。However, in the above-mentioned method, the user needs to search for the desired editing option one by one from a plurality of editing options, so as to realize the editing process of the file by inputting the editing option, so the user's input is tedious and time-consuming. The editing process of the file by the device is inefficient.
发明内容Contents of the invention
本申请实施例的目的是提供一种对象编辑处理方法、装置及电子设备,能够解决电子设备对文件或文本进行编辑处理的效率较低的问题。The purpose of the embodiments of the present application is to provide an object editing and processing method, device and electronic device, which can solve the problem of low efficiency of electronic devices in editing and processing files or texts.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:
第一方面,本申请实施例提供了一种对象编辑处理方法,该方法包括:在电子设备显示第一界面的情况下,接收第一输入,该第一界面中包括目标对象,该第一输入为针对目标对象的输入;响应于第一输入,选中目标对象;在接收到对触控笔的第二输入的情况下,根据第二输入的输入参数,采用与输入参数对应的目标编辑方式处理目标对象。In a first aspect, an embodiment of the present application provides a method for editing an object, the method including: receiving a first input when the electronic device displays a first interface, the first interface includes a target object, and the first input is the input for the target object; in response to the first input, select the target object; in the case of receiving the second input to the stylus, according to the input parameters of the second input, use the target editing method corresponding to the input parameters to process target.
第二方面,本申请实施例提供了一种对象编辑处理装置,该装置包括:接收模块、选中模块和处理模块。其中,接收模块,用于在对象编辑处理装置显示第一界面的情况下,接收第一输入,该第一界面中包括目标对象,该第一输入为针对目标对象的输入。选中模块,用于响应于接收模块接收的第一输入,选中目标对象。处理模块,用于在接收到对触控笔的第二输入的情况下,根据第二输入的输入参数,采用与输入参数对应的目标编辑方式处理目标对象。In a second aspect, the embodiment of the present application provides an object editing and processing device, which includes: a receiving module, a selecting module and a processing module. Wherein, the receiving module is configured to receive a first input when the object editing processing device displays the first interface, the first interface includes the target object, and the first input is an input for the target object. The selecting module is configured to select the target object in response to the first input received by the receiving module. The processing module is configured to process the target object in a target editing mode corresponding to the input parameters according to the input parameters of the second input when the second input to the stylus is received.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
在本申请实施例中,在电子设备显示有包括目标对象的第一界面时,电子设备可以根据用户针对目标对象的第一输入,选中该目标对象,并在接收到用户对触控笔进行第二输入的情况下,根据用户对触控笔的输入参数,采用与该输入参数对应的目标编辑方式处理目标对象。由于在电子设备显示包括目标对象的第一界面时,用户可以对需求处理的目标对象进行输入,以使得电子设备选中这些内容,从而用户可以根据对这些内容的处理方式的需求,直接对触控笔进行相应的输入,以使得电子设备可以在接收到用户对触控笔的输入的情况下,采用与用户对触控笔的输入参数对应的目标编辑方式处理这些内容,即用户可以通过对触控笔的不同的输入,以使得电子设备采用不同的编辑方式处理选中的内容(即对触控笔的不同输入对应不同的编辑方式),而无需用户每次都从多个编辑选项中逐一查找所需的编辑选项,才能实现电子设备对选中的内容进行编辑处理,因此可以简化用户的输入且节省耗时,从而提高了电子设备对文件或文本进行编辑处理的效率。In this embodiment of the present application, when the electronic device displays the first interface including the target object, the electronic device may select the target object according to the user's first input on the target object, and upon receiving the user's first input on the stylus, In the case of two inputs, according to the input parameters of the user to the stylus, the target object is processed in the target editing mode corresponding to the input parameters. When the electronic device displays the first interface including the target object, the user can input the target object that needs to be processed, so that the electronic device selects these contents, so that the user can directly touch the corresponding input from the stylus, so that the electronic device can process the contents in the target editing mode corresponding to the user’s input Different input of the control pen, so that the electronic device uses different editing methods to process the selected content (that is, different input to the stylus corresponds to different editing methods), without the need for the user to search one by one from multiple editing options every time Only the required editing options can realize the editing process of the selected content by the electronic device, thus simplifying the user's input and saving time, thereby improving the efficiency of editing the file or text by the electronic device.
附图说明Description of drawings
图1是本申请实施例提供的一种对象编辑处理方法的示意图之一;Fig. 1 is one of the schematic diagrams of an object editing processing method provided by the embodiment of the present application;
图2是本申请实施例提供的一种手机的界面的实例示意图之一;Fig. 2 is one of the example schematic diagrams of the interface of a mobile phone provided by the embodiment of the present application;
图3是本申请实施例提供的一种触控笔的实例示意图之一;Fig. 3 is one of the example schematic diagrams of a stylus provided by the embodiment of the present application;
图4是本申请实施例提供的一种手机的界面的实例示意图之二;Fig. 4 is the second schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图5是本申请实施例提供的一种对象编辑处理方法的示意图之二;Fig. 5 is the second schematic diagram of an object editing processing method provided by the embodiment of the present application;
图6是本申请实施例提供的一种手机的界面的实例示意图之三;Fig. 6 is the third schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图7是本申请实施例提供的一种手机的界面的实例示意图之四;Fig. 7 is the fourth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图8是本申请实施例提供的一种对象编辑处理方法的示意图之三;Fig. 8 is the third schematic diagram of an object editing processing method provided by the embodiment of the present application;
图9是本申请实施例提供的一种触控笔的实例示意图之二;Fig. 9 is the second schematic diagram of an example of a stylus provided by the embodiment of the present application;
图10是本申请实施例提供的一种对象编辑处理装置的结构示意图之一;Fig. 10 is one of the structural schematic diagrams of an object editing processing device provided by the embodiment of the present application;
图11是本申请实施例提供的一种对象编辑处理装置的结构示意图之二;Fig. 11 is the second structural schematic diagram of an object editing and processing device provided by the embodiment of the present application;
图12是本申请实施例提供的一种电子设备的硬件结构示意图之一;Fig. 12 is one of the schematic diagrams of the hardware structure of an electronic device provided by the embodiment of the present application;
图13是本申请实施例提供的一种电子设备的硬件结构示意图之二。FIG. 13 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的对象编辑处理方法进行详细地说明。The object editing processing method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例中,在用户对电子设备中的文件或文本(即目标对象)进行编辑处理(例如删除文件、复制文件、删除文本、复制文本等)时,用户可以在电子设备显示包括文件的文件标识或显示文本信息的界面的情况下,对待编辑的对象(例如文件对应的文件标识或文本信息)进行输入,以使得电子设备可以选中该待编辑的对象,从而用户可以对与该电子设备进行连接的触控笔进行输入,以通过该触控笔,方便快捷地触发电子设备根据用户对触控笔输入的输入参数,采用与该输入参数对应的编辑方式处理该待编辑的对象。因此用户可以通过将某些方便快捷的输入(例如滑动输入、翻转输入等)所对应的输入参数设置为触发常用的编辑方式(例如删除文件或文本、复制文件或文本等)所对应的输入参数,从而无需先通过触发电子设备显示多个编辑选项,然后再从这些编辑选项中逐一查找所需的编辑选项之后,才能通过对该编辑选项进行输入之后,才能够触发电子设备对该待编辑的对象进行编辑处理。因此可以简化用户的输入且节省耗时,从而提高电子设备对文件或文本进行编辑处理的效率。In the embodiment of the present application, when the user edits the file or text (i.e. the target object) in the electronic device (such as deleting the file, copying the file, deleting the text, copying the text, etc.), the user can display the text containing the file on the electronic device. In the case of a file identification or an interface displaying text information, the object to be edited (such as the file identification or text information corresponding to the file) is input, so that the electronic device can select the object to be edited, so that the user can interact with the electronic device The connected stylus performs input, so that the stylus can conveniently and quickly trigger the electronic device to process the object to be edited in an editing mode corresponding to the input parameters input by the user to the stylus. Therefore, users can trigger common editing methods (such as deleting files or text, copying files or text, etc.) by setting the input parameters corresponding to some convenient and fast inputs (such as sliding input, flipping input, etc.) , so that there is no need to trigger the electronic device to display a plurality of editing options, and then search for the desired editing options one by one from these editing options, and only after the editing option is input can the electronic device be able to trigger the editing of the text to be edited. The object is edited. Therefore, the user's input can be simplified and time-consuming can be saved, thereby improving the efficiency of electronic equipment for editing files or texts.
本申请实施例提供一种对象编辑处理方法,图1示出了本申请实施例提供的一种对象编辑处理方法的流程图,该方法可以应用于电子设备。如图1所示,本申请实施例提供的对象编辑处理方法可以包括下述的步骤201至步骤203。An embodiment of the present application provides a method for editing and processing an object. FIG. 1 shows a flowchart of the method for editing and processing an object provided in the embodiment of the present application. The method can be applied to electronic devices. As shown in FIG. 1 , the object editing processing method provided by the embodiment of the present application may include the
步骤201、在电子设备显示第一界面的情况下,电子设备接收第一输入。
本申请实施例中,上述第一界面中包括目标对象,上述第一输入为针对目标对象的输入。In the embodiment of the present application, the above-mentioned first interface includes a target object, and the above-mentioned first input is an input for the target object.
本申请实施例中,在电子设备显示包括目标对象的第一界面时,用户可以针对该目标对象进行第一输入,以使得电子设备可以选中用户的输入所对应的目标对象,从而用户可以对触控笔进行第二输入,以在电子设备接收到对触控笔的第二输入的情况下,采用与第二输入的输入参数对应的目标编辑方式处理该目标对象。In the embodiment of the present application, when the electronic device displays the first interface including the target object, the user can perform a first input on the target object, so that the electronic device can select the target object corresponding to the user's input, so that the user can touch the target object. The stylus performs the second input, so that when the electronic device receives the second input to the stylus, the target object is processed in the target editing mode corresponding to the input parameter of the second input.
可选地,本申请实施例中,上述第一界面可以为以下任一项:文件管理界面、图像管理界面(即相册)、文本阅读(或编辑)界面(例如记事本界面、Word文档界面、小说阅读界面)等。Optionally, in this embodiment of the application, the above-mentioned first interface may be any of the following: a file management interface, an image management interface (that is, a photo album), a text reading (or editing) interface (such as a Notepad interface, a Word document interface, novel reading interface), etc.
可选地,本申请实施例中,上述目标对象可以为至少一个文件标识、至少一个图片标识或文本信息,每个文件标识分别用于指示一个文件,每个图片标识分别用于指示一个图片或视频片段,该目标对象为至少一个文件标识中的目标文件标识,至少一个图片标识中的目标图片标识或文本信息中的目标文本内容。Optionally, in the embodiment of the present application, the above-mentioned target object may be at least one file identifier, at least one picture identifier or text information, each file identifier is used to indicate a file, and each picture identifier is used to indicate a picture or In the video segment, the target object is a target file ID in at least one file ID, a target picture ID in at least one picture ID, or target text content in text information.
可选地,本申请实施例中,用户可以通过输入触发电子设备运行文件管理应用程序,以显示多个文件对应的多个文件标识;或者,用户可以通过输入触发电子设备运行相册应用程序,以显示多个图像对应的多个图像标识;或者,用户可以通过输入触发电子设备显示包括有文本信息的页面(例如浏览器页面、聊天对话页面、小说阅读页面等),以将该页面确定为第一界面。Optionally, in this embodiment of the application, the user can trigger the electronic device to run the file management application through input to display multiple file identifiers corresponding to multiple files; or, the user can trigger the electronic device to run the photo album application through input to display Display multiple image identifications corresponding to multiple images; or, the user can trigger the electronic device to display a page (such as a browser page, a chat conversation page, a novel reading page, etc.) an interface.
需要说明的是,上述第一界面为显示包括文本信息的界面,可以理解为:电子设备显示的界面中包括有文字、数字、字母或图片等内容,并且显示的这些内容是可编辑的内容(即这些内容可以复制或删除等),从而电子设备可以将该界面确定为第一界面。It should be noted that the above-mentioned first interface is an interface that displays text information, which can be understood as: the interface displayed by the electronic device includes content such as text, numbers, letters, or pictures, and the displayed content is editable content ( That is, these contents can be copied or deleted, etc.), so that the electronic device can determine the interface as the first interface.
可选地,本申请实施例中,电子设备可以包括触控笔(即触控笔和电子设备主体可以理解为一个完整的电子设备),或者电子设备可以与触控笔相连接。Optionally, in the embodiment of the present application, the electronic device may include a stylus (that is, the stylus and the main body of the electronic device may be understood as a complete electronic device), or the electronic device may be connected with the stylus.
可选地,本申请实施例中,触控笔包括第一端和第二端,上述第一输入为通过触控笔的第一端在第一界面上对目标对象的输入。Optionally, in this embodiment of the present application, the stylus includes a first end and a second end, and the first input is input to the target object on the first interface through the first end of the stylus.
可选地,本申请实施例中,上述第一输入可以为用户通过手指或触控装置进行的输入,具体的,用户可以通过手指或触控装置(例如触控笔的笔尖)对电子设备中显示的目标文件标识进行点击输入,以使得电子设备可以选中该目标文件标识;或者,用户可以通过手指或触控装置对电子设备中显示的文本信息中的光标进行拖动输入,以使得电子设备可以选中文本信息中的目标文本内容。Optionally, in this embodiment of the present application, the above-mentioned first input may be an input performed by the user through a finger or a touch device. Specifically, the user may use a finger or a touch device (such as the tip of a stylus pen) The displayed target file identification is clicked and input, so that the electronic device can select the target file identification; or, the user can drag the cursor in the text information displayed in the electronic device through a finger or a touch device, so that the electronic device The target text content in the text information can be selected.
步骤202、电子设备响应于第一输入,选中目标对象。
可选地,本申请实施例中,电子设备可以在检测到触控笔与电子设备的屏幕接触的情况下,标记选中目标对象。Optionally, in this embodiment of the present application, the electronic device may mark the selected target object when it detects that the stylus is in contact with the screen of the electronic device.
可选地,本申请实施例中,电子设备可以根据用户的第一输入,标记显示目标对象,以提示用户对该目标对象进行下一步的操作。Optionally, in this embodiment of the present application, the electronic device may mark and display the target object according to the user's first input, so as to prompt the user to perform a next operation on the target object.
可选地,本申请实施例中,电子设备标记显示目标对象可以为以下任一种形式:放大显示目标对象、通过预设背景颜色显示目标对象、通过预设颜色显示目标对象、闪烁显示目标对象等。Optionally, in this embodiment of the present application, the electronic device can mark and display the target object in any of the following forms: zooming in on the target object, displaying the target object in a preset background color, displaying the target object in a preset color, or displaying the target object in a blinking manner wait.
需要说明的是,在目标对象为文本信息中的目标文本内容的情况下,用户可以通过触控笔先对文本信息中的某个内容(例如目标文本内容中的第一个文字)进行长按输入,以使得电子设备可以先选中该内容,然后再进行滑动输入,以触发电子设备选中目标文本内容。It should be noted that, in the case that the target object is the target text content in the text information, the user can use the stylus to first perform a long press on a certain content in the text information (such as the first character in the target text content) Input, so that the electronic device can select the content first, and then perform sliding input to trigger the electronic device to select the target text content.
示例性的,以电子设备为手机为例进行说明。如图2中的(A)所示,在手机显示文件管理应用程序对应的文件列表页面10时,用户可以对该文件列表页面10中显示的多个文件标识中的目标文件标识11进行点击输入,以使得手机选中该目标文件标识11(图中通过阴影示意);或者,如图2中的(B)所示,在手机显示短信编辑页面20时,用户可以对该短信编辑页面20中显示的文本信息中的目标文本内容21进行选择输入(例如用户可以对该短信编辑页面20中显示的文本信息中的一个文字进行长按输入,然后再进行滑动输入,以选中多个文字),以使得手机选中该目标文本内容21。Exemplarily, the electronic device is a mobile phone as an example for description. As shown in (A) in Figure 2, when the mobile phone displays the
步骤203、在接收到对触控笔的第二输入的情况下,电子设备根据第二输入的输入参数,采用与输入参数对应的目标编辑方式处理目标对象。Step 203: In the case of receiving the second input from the stylus, the electronic device processes the target object according to the input parameters of the second input using the target editing mode corresponding to the input parameters.
可选地,本申请实施例中,上述电子设备与触控笔连接,上述触控笔可以包括触控模块、重力传感器、存储模块和处理模块,其中,触控模块和重力传感器用于接收用户的输入,存储模块用于存储从电子设备中获取的目标对象(即文件或文本),处理模块用于根据用户的输入得到输入参数。Optionally, in the embodiment of the present application, the above-mentioned electronic device is connected to a stylus, and the above-mentioned stylus may include a touch module, a gravity sensor, a storage module and a processing module, wherein the touch module and the gravity sensor are used to receive user input, the storage module is used to store the target object (ie, file or text) obtained from the electronic device, and the processing module is used to obtain input parameters according to the user's input.
可选地,本申请实施例中,电子设备与触控笔的连接方式可以为以下任一种:蓝牙连接方式、WiFi连接方式、有线连接方式等。Optionally, in the embodiment of the present application, the connection mode between the electronic device and the stylus may be any of the following: Bluetooth connection mode, WiFi connection mode, wired connection mode, and the like.
需要说明的是,上述触控笔还可以为其他形式的触控装置,本申请实施例不做限定。It should be noted that the above-mentioned stylus may also be other forms of touch devices, which are not limited in this embodiment of the present application.
可选地,本申请实施例中,在电子设备选中目标对象的情况下,用户可以对触控笔进行第二输入。Optionally, in this embodiment of the present application, when the electronic device selects the target object, the user may perform a second input to the stylus.
可选地,本申请实施例中,上述第二输入用于触发电子设备通过相应的处理方式处理选中的目标对象。Optionally, in this embodiment of the present application, the above-mentioned second input is used to trigger the electronic device to process the selected target object in a corresponding processing manner.
可选地,本申请实施例中,上述触控笔至少包括触控模块,上述第二输入为用户对触控模块的触控输入,用户可以对该触控模块进行手势输入。Optionally, in the embodiment of the present application, the stylus includes at least a touch module, the second input is a user's touch input to the touch module, and the user can perform gesture input on the touch module.
可选地,本申请实施例中,用户可以对触控模块进行满足于设条件的输入,例如:滑动输入的滑动方向为预设方向(例如顺时针或逆时针)且滑动距离在预设距离范围内、点击输入的次数为预设次数、按压输入的压力值大于或等于预设压力值等。Optionally, in this embodiment of the application, the user can perform an input to the touch module that satisfies the set conditions, for example: the sliding direction of the sliding input is a preset direction (such as clockwise or counterclockwise) and the sliding distance is within a preset distance Within the range, the number of clicks to input is the preset number of times, the pressure value of pressing input is greater than or equal to the preset pressure value, etc.
需要说明的是,上述滑动输入的滑动距离在预设距离范围内可以理解为:在触控模块为圆柱体形状时,围绕圆柱体的滑动角度在预设角度范围内。It should be noted that the aforementioned sliding distance of the sliding input being within the preset distance range can be understood as: when the touch module is in the shape of a cylinder, the sliding angle around the cylinder is within the preset angle range.
示例性的,以触控笔为触控笔为例进行说明。如图3所示,为本申请实施例提供的一种触控笔的结构示意图,触控笔30包括笔尾31和笔尖32,其中,笔尾31可以包括有触控模块,用户可以在笔尾31上进行手势输入,以触发电子设备执行相应的操作,笔尖32用于在电子设备中的屏幕中进行输入。Exemplarily, a stylus is used as an example for description. As shown in FIG. 3 , it is a schematic structural diagram of a stylus provided in the embodiment of the present application. The
可选地,本申请实施例中,电子设备可以响应于第二输入,以根据第二输入的输入参数,采用与输入参数对应的目标编辑方式处理目标对象。Optionally, in this embodiment of the present application, the electronic device may, in response to the second input, process the target object in a target editing manner corresponding to the input parameter according to the input parameter of the second input.
可选地,本申请实施例中,在用户通过触控笔进行输入之后,触控笔可以获取用户的输入所对应的输入参数(即第二输入的输入参数),并将该输入参数发送给电子设备,从而电子设备可以根据该输入参数处理目标对象。Optionally, in the embodiment of the present application, after the user makes an input through the stylus, the stylus may obtain the input parameter corresponding to the user's input (that is, the input parameter of the second input), and send the input parameter to The electronic device, whereby the electronic device can process the target object according to the input parameters.
可选地,本申请实施例中,电子设备可以预先设置多个不同的输入参数,并且多个不同的输入参数中的每个输入参数关联一种编辑方式。Optionally, in this embodiment of the present application, the electronic device may preset multiple different input parameters, and each input parameter in the multiple different input parameters is associated with an editing mode.
可选地,本申请实施例中,触控笔的第二端包括触控模块,上述第二输入为对触控模块的触控输入,上述输入参数包括以下至少一项:触控输入方式、触控输入距离、触控输入方向和触控输入轨迹,该触控输入方式具体为以下任一项:滑动输入、按压输入和点击输入。Optionally, in this embodiment of the application, the second end of the stylus includes a touch module, the second input is a touch input to the touch module, and the input parameters include at least one of the following: touch input method, The touch input distance, the touch input direction and the touch input track, the touch input method specifically is any one of the following: sliding input, pressing input and clicking input.
可选地,本申请实施例中,上述触控笔具有存储功能,该触控笔包括有预设大小的存储空间,可以存储文件占用的存储空间小于或等于预设存储空间的文件。Optionally, in the embodiment of the present application, the above-mentioned stylus has a storage function, the stylus includes a storage space of a preset size, and can store files whose storage space occupied by the file is less than or equal to the preset storage space.
可选地,本申请实施例中,电子设备可以将目标对象发送至触控笔,以在触控笔中保存该目标对象。Optionally, in this embodiment of the present application, the electronic device may send the target object to the stylus, so as to save the target object in the stylus.
可选地,本申请实施例中,在触控笔中保存有目标对象,且触控笔与其他电子设备进行连接的情况下,用户可以通过触控笔在其他电子设备中进行输入,以使得触控笔将目标对象发送至其他电子设备,并在其他电子设备中保存该目标对象。Optionally, in the embodiment of the present application, when the target object is saved in the stylus and the stylus is connected to other electronic devices, the user can use the stylus to perform input in other electronic devices, so that The stylus sends the object to the other electronic device and saves the object in the other electronic device.
示例性的,结合图2中的(A)和图3,如图4中的(A)所示,在手机选中目标文件标识11的情况下,用户可以对触控笔30的笔尾31进行顺时针的滑动输入,以触发手机对该目标文件标识11指示的文件进行复制,并在该滑动输入的角度在90度到120度之间时,手机可以将目标文件标识11指示的文件发送至触控笔30,并在触控笔30中保存该文件;或者,结合图2中的(B)和图3,如图4中的(B)所示,在手机选中目标文本内容21的情况下,用户可以对触控笔30的笔尾31进行顺时针的滑动输入,以触发手机对该目标文本内容21进行复制,并在该滑动输入的角度在90度到120度之间时,手机可以将目标文本内容21发送至触控笔30,并在触控笔30中保存该内容。Exemplarily, in combination with (A) in FIG. 2 and FIG. 3, as shown in (A) in FIG. Clockwise sliding input to trigger the mobile phone to copy the file indicated by the
本申请实施例提供一种对象编辑处理方法,在电子设备显示有包括目标对象的第一界面时,电子设备可以根据用户针对目标对象的第一输入,选中该目标对象,并在接收到用户对触控笔进行第二输入的情况下,根据用户对触控笔的输入参数,采用与该输入参数对应的目标编辑方式处理目标对象。由于在电子设备显示包括目标对象的第一界面时,用户可以对需求处理的目标对象进行输入,以使得电子设备选中这些内容,从而用户可以根据对这些内容的处理方式的需求,直接对触控笔进行相应的输入,以使得电子设备可以在接收到用户对触控笔的输入的情况下,采用与用户对触控笔的输入参数对应的目标编辑方式处理这些内容,即用户可以通过对触控笔的不同的输入,以使得电子设备采用不同的编辑方式处理选中的内容(即对触控笔的不同输入对应不同的编辑方式),而无需用户每次都从多个编辑选项中逐一查找所需的编辑选项,才能实现电子设备对选中的内容进行编辑处理,因此可以简化用户的输入且节省耗时,从而提高了电子设备对文件或文本进行编辑处理的效率。An embodiment of the present application provides an object editing processing method. When the electronic device displays a first interface including a target object, the electronic device can select the target object according to the user's first input on the target object, and upon receiving the user's When the stylus performs the second input, according to the user's input parameters to the stylus, the target object is processed in the target editing mode corresponding to the input parameters. When the electronic device displays the first interface including the target object, the user can input the target object that needs to be processed, so that the electronic device selects these contents, so that the user can directly touch the corresponding input from the stylus, so that the electronic device can process the contents in the target editing mode corresponding to the user’s input Different input of the control pen, so that the electronic device uses different editing methods to process the selected content (that is, different input to the stylus corresponds to different editing methods), without the need for the user to search one by one from multiple editing options every time Only the required editing options can realize the editing process of the selected content by the electronic device, thus simplifying the user's input and saving time, thereby improving the efficiency of editing the file or text by the electronic device.
可选地,本申请实施例中,结合图1,如图5所示,上述步骤203具体可以通过下述的步骤203a实现。Optionally, in this embodiment of the present application, referring to FIG. 1 , as shown in FIG. 5 , the
步骤203a、在接收到对触控笔的第二输入,并在第二输入的输入参数与预设输入参数匹配的情况下,电子设备将预设输入参数关联的编辑方式,确定为输入参数对应的目标编辑方式,并采用目标编辑方式处理目标对象。
本申请实施例中,不同的输入参数关联不同的编辑方式。In this embodiment of the application, different input parameters are associated with different editing modes.
可选地,本申请实施例中,上述编辑方式包括以下至少一项:复制处理方式、删除处理方式、剪切处理方式、移动处理方式和粘贴处理方式。Optionally, in this embodiment of the present application, the above-mentioned editing manners include at least one of the following: a copying processing manner, a deleting processing manner, a cutting processing manner, a moving processing manner, and a pasting processing manner.
可选地,本申请实施例中,在输入参数为顺时针滑动预设距离时,该输入参数关联的编辑方式为复制处理方式;在输入参数为逆时针滑动预设距离时,该输入参数关联的编辑方式为粘贴处理方式;在输入参数为按压输入时,该输入参数关联的编辑方式为删除处理方式。Optionally, in this embodiment of the application, when the input parameter is a clockwise sliding preset distance, the editing method associated with the input parameter is a copy processing method; when the input parameter is a counterclockwise sliding preset distance, the input parameter is associated with The editing method of the input parameter is the paste processing method; when the input parameter is press input, the editing method associated with the input parameter is the delete processing method.
需要说明的是,在编辑方式为复制处理方式、剪切处理方式和移动处理方式时,电子设备可将目标对象发送至触控笔,以在触控笔中保存该目标对象;在编辑方式为删除处理方式时,电子设备直接将目标对象从电子设备中删除即可,无需在触控笔中保存该目标对象;在编辑方式为粘贴处理方式时,电子设备可以获取触控笔中保存的目标对象,并保存该目标对象。It should be noted that, when the editing method is the copy processing method, the cutting processing method and the moving processing method, the electronic device can send the target object to the stylus to save the target object in the stylus; when the editing method is When deleting the processing method, the electronic device can directly delete the target object from the electronic device without saving the target object in the stylus; when the editing method is the paste processing method, the electronic device can obtain the target object saved in the stylus object, and save the target object.
可选地,本申请实施例中,在电子设备采用目标编辑方式处理目标对象之后,若该目标编辑方式为复制处理方式时,则用户可以触发电子设备显示其他页面,以在该其他页面中采用粘贴处理方式处理目标对象,从而将该目标对象保存在该其他页面对应的存储路径中。Optionally, in this embodiment of the application, after the electronic device uses the target editing method to process the target object, if the target editing method is a copy processing method, the user can trigger the electronic device to display other pages to use The paste processing manner processes the target object, thereby saving the target object in the storage path corresponding to the other page.
示例性的,结合图4中的(A),如图6中的(A)所示,在手机显示空白页面40(例如新建的一个文件管理页面)时,用户可以对触控笔30的笔尾31进行逆时针的滑动输入,以触发手机对该目标文件标识11指示的文件进行粘贴,并在该滑动输入的角度在90度到120度之间时,触控笔30可以将目标文件标识11指示的文件发送至手机,以在该空白页面40对应的存储路径中保存该文件;或者,结合图4中的(B),如图6中的(B)所示,在手机显示短信编辑页面20时,用户可以对触控笔30的笔尾31进行逆时针的滑动输入,以触发手机对目标文本内容进行粘贴,并在该滑动输入的角度在90度到120度之间时,触控笔30可以将目标文本内容发送至手机,以在短信编辑页面20中的光标22所在的位置显示目标文本内容。Exemplarily, in conjunction with (A) in FIG. 4, as shown in (A) in FIG.
可选地,本申请实施例中,在目标对象为文本信息中的目标文本内容的情况下,用户可以通过触控笔进行输入,以使得电子设备选中文本信息中的目标文本内容,然后对触控笔进行第二输入,以使得电子设备对目标文本内容进行删除;或者用户可以通过触控笔进行输入,以使得电子设备中的光标处于目标文本内容中的最后一个文本的之后的一个位置处,然后对触控笔进行多次的点击输入,以使得电子设备删除光标之前的多个文本,从而删除目标文本内容。Optionally, in the embodiment of the present application, when the target object is the target text content in the text information, the user can input through the stylus, so that the electronic device selects the target text content in the text information, and then touches the The control pen performs the second input, so that the electronic device deletes the target text content; or the user can input through the stylus, so that the cursor in the electronic device is at a position after the last text in the target text content , and then perform multiple click inputs on the stylus, so that the electronic device deletes multiple texts before the cursor, thereby deleting the target text content.
示例性的,结合图2中的(B)和图3,如图7所示,在手机显示文本信息的情况下,用户可以触发手机的光标22处于最后一个文本之后的一个位置,从而用户可以通过对触控笔30的笔尾31的顶部进行点击输入,以触发手机依次删除光标22之前的一个文本,直至删除目标文本内容(例如“不要了”)。Exemplarily, in conjunction with (B) in Fig. 2 and Fig. 3, as shown in Fig. 7, when the mobile phone displays text information, the user can trigger the
本申请实施例中,电子设备可以通过判断第二输入的输入参数与预设输入参数的匹配情况,从而可以在第二输入的输入参数与多个预设输入参数中的某个预设输入参数相匹配时,可以通过该预设输入参数对应的编辑方式处理目标对象,因此用户可以通过不同的输入,触发电子设备通过不同的编辑方式处理目标对象,从而提高了电子设备对目标对象进行编辑处理的效率。In the embodiment of the present application, the electronic device can determine the matching between the input parameter of the second input and the preset input parameter, so that the input parameter of the second input and a certain preset input parameter among the multiple preset input parameters can be selected. When matching, the target object can be processed through the editing method corresponding to the preset input parameter, so the user can trigger the electronic device to process the target object through different editing methods through different inputs, thereby improving the editing process of the target object by the electronic device s efficiency.
可选地,本申请实施例中,上述步骤203具体可以通过下述的步骤203b实现。Optionally, in the embodiment of the present application, the
步骤203b、在接收到对触控笔的第二输入,并在检测到触控笔的第二端与电子设备的屏幕接触的情况下,电子设备采用与触控笔的第二端对应的目标编辑方式处理目标对象。Step 203b. After receiving the second input to the stylus and detecting that the second end of the stylus is in contact with the screen of the electronic device, the electronic device adopts the target corresponding to the second end of the stylus. The target object is processed in edit mode.
可选地,本申请实施例中,用户可以预先设置触控笔的第二端对应的目标编辑方式,以在需求电子设备对目标对象进行编辑处理时,直接通过触控笔的第二端对应的目标编辑方式处理目标对象。Optionally, in this embodiment of the application, the user can preset the target editing method corresponding to the second end of the stylus, so that when the electronic device is required to edit the target object, the second end of the stylus can directly correspond to The target editing method handles target objects.
可选地,本申请实施例中,用户可以在设置页面调整触控笔的第二端对应的目标编辑方式,以灵活的设置触控笔的第二端对应的编辑方式。Optionally, in this embodiment of the application, the user can adjust the target editing mode corresponding to the second end of the stylus on the setting page, so as to flexibly set the editing mode corresponding to the second end of the stylus.
可选地,本申请实施例中,在触控笔的第二端与电子设备的屏幕保持接触的情况下,对触控笔进行的第二输入为有效输入,电子设备可以采用与触控笔的第二端对应的目标编辑方式处理目标对象。Optionally, in this embodiment of the present application, when the second end of the stylus is kept in contact with the screen of the electronic device, the second input to the stylus is an effective input, and the electronic device can use The second end corresponds to the way the target editor handles the target object.
可选地,本申请实施例中,在触控笔的第二端与电子设备的屏幕未接触的情况下,对触控笔进行的第二输入为无效输入,此时电子设备无响应。Optionally, in this embodiment of the present application, when the second end of the stylus is not in contact with the screen of the electronic device, the second input to the stylus is an invalid input, and the electronic device does not respond at this time.
本申请实施例中,在检测到触控笔的第二端与电子设备的屏幕接触的情况下,电子设备采用与触控笔的第二端对应的目标编辑方式处理目标对象,因此可以防止用户对触控笔的误操作,从而可以提高电子设备响应输入的准确性。In the embodiment of the present application, when it is detected that the second end of the stylus is in contact with the screen of the electronic device, the electronic device uses the target editing method corresponding to the second end of the stylus to process the target object, thus preventing the user from Misuse of the stylus, thereby improving the accuracy with which electronic devices respond to input.
可选地,本申请实施例中,上述触控笔包括重力传感器,该重力传感器用于确定触控笔的目标端的朝向,该目标端为第一端或第二端。结合图1,如图8所示,在上述步骤203之后,本申请实施例提供的对象编辑处理方法还包括下述步骤301和步骤302。Optionally, in the embodiment of the present application, the above-mentioned stylus includes a gravity sensor, and the gravity sensor is used to determine the orientation of the target end of the stylus, where the target end is the first end or the second end. Referring to FIG. 1 , as shown in FIG. 8 , after the
步骤301、电子设备接收对触控笔的翻转输入。In
可选地,本申请实施例中,上述触控笔的目标端用于在电子设备的屏幕上进行输入。Optionally, in the embodiment of the present application, the target end of the above-mentioned stylus is used for inputting on the screen of the electronic device.
可选地,本申请实施例中,在电子设备采用删除处理方式处理目标对象(例如用户误删目标对象)的预设时长之内,用户可以对触控笔进行翻转输入,以触发电子设备取消采用删除处理方式处理目标对象。Optionally, in this embodiment of the present application, within the preset time period during which the electronic device uses the deletion processing method to process the target object (for example, the user accidentally deletes the target object), the user can perform a flip input on the stylus to trigger the electronic device to cancel Use delete processing to process the target object.
步骤302、电子设备响应于翻转输入,在目标端的朝向从第一方向变化为第二方向的情况下,取消采用目标编辑方式处理目标对象。Step 302: In response to the flip input, the electronic device cancels the processing of the target object in the target editing mode when the orientation of the target terminal changes from the first direction to the second direction.
本申请实施例中,上述第一方向与第二方向之间的夹角值在预设范围内。In the embodiment of the present application, the value of the included angle between the above-mentioned first direction and the second direction is within a preset range.
可选地,本申请实施例中,在触控笔的目标端的朝向为向下时,用户可以通过翻转输入,触发该触控笔的目标端的朝向由向下转换为向上。Optionally, in this embodiment of the present application, when the orientation of the target end of the stylus is downward, the user can trigger the orientation of the target end of the stylus to change from downward to upward by flipping an input.
需要说明的是,在第一方向与第二方向之间的夹角值在预设范围内(例如160度到180度之间)时,可以理解为第一方向与第二方向的方向相反。It should be noted that when the angle between the first direction and the second direction is within a preset range (for example, between 160° and 180°), it can be understood that the first direction and the second direction are in opposite directions.
示例性的,结合图3,如图9所示,在触控笔30中包括有重力传感器33,用户可以对触控笔30进行翻转输入,以使得该触控笔30的笔尖32的朝向由向下转换为向上(即将触控笔30的状态从笔尾31在上、笔尖32在下的状态,转换为笔尖32在上、笔尾31在下的状态),从而重力传感器33可以检测到触控笔30状态的转换,以使得电子设备可以撤销对选中的文件或文本的删除操作。Exemplarily, referring to FIG. 3 , as shown in FIG. 9 , a
本申请实施例中,在电子设备采用删除处理方式处理目标对象之后,若用户希望电子设备不删除目标对象,则用户可以对触控笔进行翻转输入,以触发电子设备取消采用删除处理方式处理目标对象,从而提高了电子设备对目标对象进行编辑处理的灵活性。In the embodiment of the present application, after the electronic device uses the delete processing method to process the target object, if the user wants the electronic device not to delete the target object, the user can perform a flip input on the stylus to trigger the electronic device to cancel the use of the delete processing method to process the target object. object, thereby improving the flexibility of editing and processing the target object by the electronic device.
需要说明的是,本申请实施例提供的对象编辑处理方法,执行主体可以为对象编辑处理装置,或者该对象编辑处理装置中的用于执行对象编辑处理方法的控制模块。本申请实施例中以对象编辑处理装置执行加载对象编辑处理方法为例,说明本申请实施例提供的对象编辑处理装置。It should be noted that, the object editing and processing method provided in the embodiment of the present application may be executed by an object editing and processing device, or a control module in the object editing and processing device for executing the object editing and processing method. In the embodiment of the present application, the object editing and processing device provided in the embodiment of the present application is described by taking the object editing and processing device executing the loading object editing and processing method as an example.
图10示出了本申请实施例中涉及的对象编辑处理装置的一种可能的结构示意图。如图10所示,对象编辑处理装置70可以包括:接收模块71、选中模块72和处理模块73。FIG. 10 shows a possible structural diagram of an object editing processing apparatus involved in the embodiment of the present application. As shown in FIG. 10 , the object
其中,接收模块71,用于在对象编辑处理装置显示第一界面的情况下,接收第一输入,该第一界面中包括目标对象,该第一输入为针对目标对象的输入。选中模块72,用于响应于接收模块71接收的第一输入,选中目标对象。处理模块73,用于在接收到对触控笔的第二输入的情况下,根据第二输入的输入参数,采用与输入参数对应的目标编辑方式处理目标对象。Wherein, the receiving
在一种可能的实现方式中,处理模块73,具体用于在第二输入的输入参数与预设输入参数匹配的情况下,将预设输入参数关联的编辑方式,确定为输入参数对应的目标编辑方式,并采用目标编辑方式处理目标对象;其中,不同的输入参数关联不同的编辑方式。In a possible implementation manner, the
在一种可能的实现方式中,第一输入为通过触控笔的第一端在第一界面上对目标对象的输入;触控笔的第二端包括触控模块,第二输入为对触控模块的触控输入,输入参数触控输入方式、触控输入距离、触控输入方向和触控输入轨迹。In a possible implementation manner, the first input is an input to the target object on the first interface through the first end of the stylus; the second end of the stylus includes a touch module, and the second input is an input to the touch The touch input of the control module, input parameters touch input mode, touch input distance, touch input direction and touch input track.
在一种可能的实现方式中,处理模块73,具体用于在检测到触控笔的第二端与对象编辑处理装置的屏幕接触的情况下,采用与触控笔的第二端对应的目标编辑方式处理目标对象。In a possible implementation manner, the
在一种可能的实现方式中,触控笔包括重力传感器,该重力传感器用于确定触控笔的目标端的朝向,目标端为第一端或第二端。接收模块71,还用于在根据第二输入的输入参数,采用与输入参数对应的目标编辑方式处理目标对象之后,接收对触控笔的翻转输入。结合图10,如图11所示,本申请实施例提供的对象编辑处理装置70还可以包括:取消模块74。其中,取消模块74,用于响应于接收模块71接收的翻转输入,在目标端的朝向从第一方向变化为第二方向的情况下,取消采用目标编辑方式处理目标对象,该第一方向与第二方向之间的夹角值在预设范围内。In a possible implementation manner, the stylus includes a gravity sensor, and the gravity sensor is used to determine the orientation of the target end of the stylus, where the target end is the first end or the second end. The receiving
本申请实施例提供的对象编辑处理装置能够实现上述方法实施例中对象编辑处理装置实现的各个过程,为避免重复,详细描述这里不再赘述。The object editing and processing device provided in the embodiment of the present application can implement the various processes implemented by the object editing and processing device in the above method embodiments. To avoid repetition, the detailed description will not be repeated here.
本申请实施例提供一种对象编辑处理装置,由于在电子设备显示包括目标对象的第一界面时,用户可以对需求处理的目标对象进行输入,以使得电子设备选中这些内容,从而用户可以根据对这些内容的处理方式的需求,直接对触控笔进行相应的输入,以使得电子设备可以在接收到用户对触控笔的输入的情况下,采用与用户对触控笔的输入参数对应的目标编辑方式处理这些内容,即用户可以通过对触控笔的不同的输入,以使得电子设备采用不同的编辑方式处理选中的内容(即对触控笔的不同输入对应不同的编辑方式),而无需用户每次都从多个编辑选项中逐一查找所需的编辑选项,才能实现电子设备对选中的内容进行编辑处理,因此可以简化用户的输入且节省耗时,从而提高了电子设备对文件或文本进行编辑处理的效率。An embodiment of the present application provides an object editing and processing device. When the electronic device displays the first interface including the target object, the user can input the target object that needs to be processed, so that the electronic device selects these contents, so that the user can According to the requirements of the processing method of these contents, corresponding input is directly performed on the stylus, so that the electronic device can adopt the target parameter corresponding to the user's input parameters to the stylus when receiving the user's input to the stylus. Editing methods to process these contents, that is, the user can use different editing methods to process the selected content through different inputs to the stylus (that is, different inputs to the stylus correspond to different editing methods), without The user needs to find the required editing options one by one from multiple editing options each time, so that the electronic device can edit the selected content, so the user's input can be simplified and time-consuming, thereby improving the efficiency of the electronic device for files or texts. Efficiency in editing processing.
本申请实施例中的对象编辑处理装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The object editing processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., non-mobile electronic equipment can be server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的对象编辑处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The object editing processing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
可选地,如图12所示,本申请实施例还提供一种电子设备M00,包括处理器M01,存储器M02,存储在存储器M02上并可在所述处理器M01上运行的程序或指令,该程序或指令被处理器M01执行时实现上述对象编辑处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 12 , the embodiment of the present application further provides an electronic device M00, including a processor M01, a memory M02, and programs or instructions stored in the memory M02 and operable on the processor M01, When the program or instruction is executed by the processor M01, each process of the above-mentioned object editing and processing method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图13为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
其中,用户输入单元107,用于在电子设备显示第一界面的情况下,接收第一输入,该第一界面中包括目标对象,该第一输入为针对目标对象的输入。Wherein, the
处理器110,用于响应于第一输入,选中目标对象,并在接收到对触控笔的第二输入的情况下,根据第二输入的输入参数,采用与输入参数对应的目标编辑方式处理目标对象。The
本申请实施例提供一种电子设备,由于在电子设备显示包括目标对象的第一界面时,用户可以对需求处理的目标对象进行输入,以使得电子设备选中这些内容,从而用户可以根据对这些内容的处理方式的需求,直接对触控笔进行相应的输入,以使得电子设备可以在接收到用户对触控笔的输入的情况下,采用与用户对触控笔的输入参数对应的目标编辑方式处理这些内容,即用户可以通过对触控笔的不同的输入,以使得电子设备采用不同的编辑方式处理选中的内容(即对触控笔的不同输入对应不同的编辑方式),而无需用户每次都从多个编辑选项中逐一查找所需的编辑选项,才能实现电子设备对选中的内容进行编辑处理,因此可以简化用户的输入且节省耗时,从而提高了电子设备对文件或文本进行编辑处理的效率。An embodiment of the present application provides an electronic device. When the electronic device displays the first interface including the target object, the user can input the target object that needs to be processed, so that the electronic device selects these contents, so that the user can select these contents according to the According to the requirements of the processing method, directly input the stylus accordingly, so that the electronic device can adopt the target editing method corresponding to the user's input parameters of the stylus when receiving the user's input to the stylus Processing these contents means that the user can make the electronic device use different editing methods to process the selected content through different inputs to the stylus (that is, different inputs to the stylus correspond to different editing methods), without the need for the user to edit the selected content every time. Only by looking for the required editing options one by one from multiple editing options every time can the electronic equipment edit the selected content, so it can simplify the user's input and save time, thereby improving the electronic equipment to edit files or text. processing efficiency.
可选地,处理器110,具体用于在第二输入的输入参数与预设输入参数匹配的情况下,将预设输入参数关联的编辑方式,确定为输入参数对应的目标编辑方式,并采用目标编辑方式处理目标对象;其中,不同的输入参数关联不同的编辑方式。Optionally, the
本申请实施例中,电子设备可以通过判断第二输入的输入参数与预设输入参数的匹配情况,从而可以在第二输入的输入参数与多个预设输入参数中的某个预设输入参数相匹配时,可以通过该预设输入参数对应的编辑方式处理目标对象,因此用户可以通过不同的输入,触发电子设备通过不同的编辑方式处理目标对象,从而提高了电子设备对目标对象进行编辑处理的效率。In the embodiment of the present application, the electronic device can determine the matching between the input parameter of the second input and the preset input parameter, so that the input parameter of the second input and a certain preset input parameter among the multiple preset input parameters can be selected. When matching, the target object can be processed through the editing method corresponding to the preset input parameter, so the user can trigger the electronic device to process the target object through different editing methods through different inputs, thereby improving the editing process of the target object by the electronic device s efficiency.
处理器110,具体用于在检测到触控笔的第二端与电子设备的屏幕接触的情况下,采用与触控笔的第二端对应的目标编辑方式处理目标对象。The
本申请实施例中,在检测到触控笔的第二端与电子设备的屏幕接触的情况下,电子设备采用与触控笔的第二端对应的目标编辑方式处理目标对象,因此可以防止用户对触控笔的误操作,从而可以提高电子设备响应输入的准确性。In the embodiment of the present application, when it is detected that the second end of the stylus is in contact with the screen of the electronic device, the electronic device uses the target editing method corresponding to the second end of the stylus to process the target object, thus preventing the user from Misuse of the stylus, thereby improving the accuracy with which electronic devices respond to input.
用户输入单元107,还用于接收对触控笔的翻转输入。The
处理器110,还用于响应于翻转输入,在目标端的朝向从第一方向变化为第二方向的情况下,取消采用目标编辑方式处理目标对象,该第一方向与第二方向之间的夹角值在预设范围内。The
本申请实施例中,在电子设备采用删除处理方式处理目标对象之后,若用户希望电子设备不删除目标对象,则用户可以对触控笔进行翻转输入,以触发电子设备取消采用删除处理方式处理目标对象,从而提高了电子设备对目标对象进行编辑处理的灵活性。In the embodiment of the present application, after the electronic device uses the delete processing method to process the target object, if the user wants the electronic device not to delete the target object, the user can perform a flip input on the stylus to trigger the electronic device to cancel the use of the delete processing method to process the target object. object, thereby improving the flexibility of editing and processing the target object by the electronic device.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in the embodiment of the present application, the
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述对象编辑处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the object editing processing method is realized, and can achieve The same technical effects are not repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述对象编辑处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned embodiment of the object editing and processing method Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011173796.2ACN112269523B (en) | 2020-10-28 | 2020-10-28 | Object editing processing method and device and electronic equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011173796.2ACN112269523B (en) | 2020-10-28 | 2020-10-28 | Object editing processing method and device and electronic equipment |
| Publication Number | Publication Date |
|---|---|
| CN112269523A CN112269523A (en) | 2021-01-26 |
| CN112269523Btrue CN112269523B (en) | 2023-05-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011173796.2AActiveCN112269523B (en) | 2020-10-28 | 2020-10-28 | Object editing processing method and device and electronic equipment |
| Country | Link |
|---|---|
| CN (1) | CN112269523B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113282547B (en)* | 2021-04-25 | 2025-03-21 | 维沃移动通信有限公司 | File processing method, device and electronic equipment |
| CN114063854B (en)* | 2021-11-24 | 2024-11-15 | 维沃移动通信有限公司 | File editing processing method, device and electronic equipment |
| CN114564921B (en)* | 2022-02-18 | 2024-12-10 | 维沃移动通信有限公司 | Document editing method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9665206B1 (en)* | 2013-09-18 | 2017-05-30 | Apple Inc. | Dynamic user interface adaptable to multiple input tools |
| CN110851051A (en)* | 2019-10-28 | 2020-02-28 | 维沃移动通信有限公司 | Object sharing method and electronic equipment |
| WO2020199758A1 (en)* | 2019-03-29 | 2020-10-08 | 维沃移动通信有限公司 | Message display method and terminal device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9116558B2 (en)* | 2011-10-28 | 2015-08-25 | Atmel Corporation | Executing gestures with active stylus |
| US9857889B2 (en)* | 2012-06-29 | 2018-01-02 | Samsung Electronic Co., Ltd | Method and device for handling event invocation using a stylus pen |
| US9213424B1 (en)* | 2013-09-23 | 2015-12-15 | Amazon Technologies, Inc. | Stylus devices with eraser |
| US10346510B2 (en)* | 2015-09-29 | 2019-07-09 | Apple Inc. | Device, method, and graphical user interface for providing handwriting support in document editing |
| US10599283B2 (en)* | 2017-11-29 | 2020-03-24 | Dell Products L.P. | Displaying a paste preview that can be re-positioned prior to a paste operation |
| US12340034B2 (en)* | 2018-06-01 | 2025-06-24 | Apple Inc. | Devices, methods, and graphical user interfaces for an electronic device interacting with a stylus |
| CN111124245B (en)* | 2019-12-24 | 2022-06-10 | 维沃移动通信有限公司 | A control method and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9665206B1 (en)* | 2013-09-18 | 2017-05-30 | Apple Inc. | Dynamic user interface adaptable to multiple input tools |
| WO2020199758A1 (en)* | 2019-03-29 | 2020-10-08 | 维沃移动通信有限公司 | Message display method and terminal device |
| CN110851051A (en)* | 2019-10-28 | 2020-02-28 | 维沃移动通信有限公司 | Object sharing method and electronic equipment |
| Publication number | Publication date |
|---|---|
| CN112269523A (en) | 2021-01-26 |
| Publication | Publication Date | Title |
|---|---|---|
| CN112269523B (en) | Object editing processing method and device and electronic equipment | |
| WO2022194004A1 (en) | Application icon arrangement method and apparatus, and electronic device | |
| WO2023040896A1 (en) | Content sharing method and apparatus, and electronic device | |
| CN112988663B (en) | File storage method and electronic device | |
| CN106776821A (en) | A kind of album creating method and terminal | |
| WO2022242542A1 (en) | Application icon management method and electronic device | |
| CN105426049B (en) | A kind of delet method and terminal | |
| WO2024012508A1 (en) | Functional interface display method and apparatus | |
| CN110929484B (en) | Text processing method, device and storage medium | |
| WO2023284640A1 (en) | Picture processing method and electronic device | |
| CN112925456A (en) | Display method and device and electronic equipment | |
| CN114116098B (en) | Application icon management method and device, electronic equipment and storage medium | |
| WO2023045923A1 (en) | Text editing method and apparatus, and electronic device | |
| WO2022242641A1 (en) | Task implementation method and apparatus, and electronic device | |
| CN114063841A (en) | Text selection method, text selection device and electronic equipment | |
| CN113282546A (en) | File processing method and device | |
| CN108984077A (en) | A kind of convenient method, device and electronic equipment deleted and replicate content in document | |
| CN116756099A (en) | Display method and device | |
| CN117111811A (en) | Screenshot method and device, electronic equipment and readable storage medium | |
| CN117170792A (en) | Control display method and device, electronic equipment and readable storage medium | |
| CN113076010B (en) | Input method, input device, electronic device and medium | |
| CN116245615A (en) | Searching method and device and electronic equipment | |
| CN116610243A (en) | Display control method, display control device, electronic equipment and storage medium | |
| CN113037618B (en) | Image sharing method and device | |
| WO2023131092A1 (en) | Information display method and apparatus |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |