Method, computing device and storage medium for opening files based on drag-and-drop operation
By using drag and drop operations to display the application list and select application icons in the file manager, the problem of cumbersome file opening operations in the prior art is solved, and fast and concise application selection and new application addition are realized.
Patent Information
- Application Number
- CN202111010481.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-08-31
AI Technical Summary
Existing file managers have cumbersome operation steps when switching file opening methods. Users frequently switching applications to open files require complex interaction steps and multiple page operations.
Provides a drag-and-drop operation-based method that detects file drag-and-drop operations in the file manager's display page, displays the application list, and opens the file by dragging the file to the application icon, simplifying the process of selecting applications and allowing drag-and-drop addition. New app icon to app type list.
It enables quick and concise selection of applications to open files, avoids the tedious steps of multi-page operations, improves the efficiency of selecting applications, and supports adding new application icons.
Smart Images

Figure CN113741777B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method for opening a file based on a drag operation, a computing device and a storage medium. Background Art
[0002] At present, the file opening methods supported by mainstream file managers include single-click opening, double-click opening, and right-click menu opening. Although there are many types of file opening methods, the operation steps are relatively cumbersome when switching the file opening method (i.e., switching to different applications to open the file). For example, in the file manager on the Windows operating system, a method of selecting a file right-click to change the file opening method is provided. When the user needs to frequently switch the opening method for the same file, the user needs to operate back and forth, which is not fast enough.
[0003] In the prior art, the switching opening methods for file managers include the following three: changing applications to open files in the control center, switching applications to open files through the right-click menu, and changing applications to open files through the right-click properties of files. After changing the application to open the file, it is necessary to open the file again by single-clicking or double-clicking. Although this method can realize switching between different applications to open files, based on this method, the steps for users to switch between different applications to open files are relatively complicated. It is necessary to open the main window and call out the secondary window to realize the change of application to open the file. The interaction steps are complicated and there are many interactive interfaces. In addition, the method in the prior art is relatively complicated in the way of adding a new application for opening files to the default application list.
[0004] Therefore, a method for opening a file based on a drag operation is needed to solve the problems existing in the above technical solutions. Summary of the invention
[0005] To this end, the present invention provides a method for opening a file based on a drag operation, in an effort to solve or at least alleviate the above problems.
[0006] According to one aspect of the present invention, there is provided a method for opening a file based on a drag operation, which is executed in a file manager of a computing device, wherein a display page of the file manager is suitable for being displayed on a system desktop, wherein the display page includes a file display area and an application display area, wherein the file display area is suitable for displaying one or more files, and wherein the method comprises the steps of: detecting a drag operation on a file in the file display area; if the drag operation is an operation of dragging a file to a predetermined area, displaying an application list in the application display area, wherein the application list includes application icons corresponding to one or more applications suitable for opening the file; and in response to an operation of dragging the file to an application icon in the application list, opening the file through the application corresponding to the application icon.
[0007] Optionally, in the method for opening a file based on a drag operation according to the present invention, the operation of dragging the file to a predetermined area includes: an operation of dragging the file to a predetermined area outside a display page.
[0008] Optionally, the method for opening a file based on a drag operation according to the present invention further includes the steps of: receiving an operation of dragging an application icon to the application display area, and determining whether the application icon already exists in a corresponding application type list; if not, displaying an application type list corresponding to the application icon in the application display area; and in response to the operation of continuing to drag the application icon to the application type list, adding the application icon to the application type list for display.
[0009] Optionally, in the method for opening a file based on a drag operation according to the present invention, after receiving an operation of dragging an application icon to the application display area, the steps include: obtaining configuration parameters of the application icon, determining the application type corresponding to the application icon based on the configuration parameters, and obtaining a corresponding application type list.
[0010] Optionally, in the method for opening a file based on a drag operation according to the present invention, before the application list is displayed in the application display area, the steps include: determining the type of the file, and obtaining one or more application icons suitable for opening the file according to the type of the file; and sorting the one or more application icons based on an application icon sorting method so as to display the one or more application icons in order in the application list.
[0011] Optionally, in the method for opening a file based on a drag operation according to the present invention, before sorting one or more application icons based on the application icon sorting method, the method includes the steps of: obtaining a configuration file, and determining the application icon sorting method according to the configuration file.
[0012] Optionally, in the method for opening a file based on a drag operation according to the present invention, the application icon sorting method includes at least one of the following: determining the usage frequency of one or more applications, and sorting the corresponding one or more application icons in order from high to low usage frequency; obtaining the installation time of one or more applications, and sorting the corresponding one or more application icons according to the chronological order of installation time; or determining the type of the file, and sorting the one or more application icons according to the type of the file.
[0013] Optionally, in the method for opening a file based on a drag operation according to the present invention, the application icon sorting method further includes: determining a customized application icon arrangement order according to a configuration file, and sorting the one or more application icons according to the customized application icon arrangement order.
[0014] Optionally, the method for opening a file based on a drag operation according to the present invention further includes the step of: opening the file through a preset application in response to an operation of dragging the file from the application display area to outside the application display area.
[0015] Optionally, in the method for opening a file based on a drag operation according to the present invention, the steps are also included: receiving a configuration request for a drag function and displaying a configuration page; obtaining a predetermined area selected on the configuration page, wherein the selected predetermined area is one of a predetermined range area located at the upper side of the display page, a predetermined range area located at the lower side of the display page, a predetermined range area located at the left side of the display page, and a predetermined range area located at the right side of the display page; and writing the selected predetermined area into a configuration file.
[0016] Optionally, in the method for opening a file based on a drag operation according to the present invention, after displaying the configuration page, it also includes the steps of: obtaining the application icon sorting method selected on the configuration page, or obtaining the application icon arrangement order customized on the configuration page; and writing the selected application icon sorting method, or the customized application icon arrangement order, into a generated configuration file.
[0017] According to one aspect of the present invention, a computing device is provided, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for execution by the at least one processor, and the program instructions include instructions for executing the method for opening a file based on a drag operation as described above.
[0018] According to one aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes the method described above.
[0019] According to the technical solution of the present invention, a method for opening files based on a drag operation is provided. By dragging a file to a predetermined area outside the display page of the file manager, an application list will be presented in the application display area. By continuing to drag the file to any application icon in the application list, the dragged file can be opened by the application corresponding to the application icon. In this way, according to the method of the present invention, in the process of selecting an application to open a file, only one drag operation is required to select an application to open a file. The operation steps are simple and fast, avoiding the tedious steps of operating back and forth between multiple pages, and improving the efficiency of selecting an application to open a file.
[0020] In addition, according to the method of the present invention, by dragging a new application icon to the corresponding application type list, a new application icon can be added to the application type list, thereby enabling the addition of a new application for opening a file. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The above and other purposes, features and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.
[0022] Figure 1 A schematic diagram of a computing device 100 according to one embodiment of the present invention is shown;
[0023] Figure 2 A flowchart of a method 200 for opening a file based on a drag operation according to an embodiment of the present invention is shown;
[0024] Figure 3 A schematic diagram showing a display page 300 according to an embodiment of the present invention; and Figure 4 , Figure 5 Schematic diagrams of configuration pages according to an embodiment of the present invention are respectively shown. DETAILED DESCRIPTION
[0025] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0026] Figure 1 is a schematic block diagram of an example computing device 100 .
[0027] like Figure 1 As shown, in a basic configuration 102, computing device 100 typically includes system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between processor 104 and system memory 106.
[0028] Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (UP), a microcontroller (UC), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a primary cache 110 and a secondary cache 112, a processor core 114, and registers 116. An example processor core 114 may include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 118 may be used with the processor 104, or in some implementations, the memory controller 118 may be an internal part of the processor 104.
[0029] Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, application 122 may be arranged to execute instructions on the operating system by one or more processors 104 using program data 124.
[0030] Computing device 100 also includes storage 132 , which includes removable storage 136 and non-removable storage 138 .
[0031] The computing device 100 may also include a storage interface bus 134. The storage interface bus 134 enables communication from storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to the basic configuration 102 via the bus / interface controller 130. At least a portion of the operating system 120, the application 122, and the data 124 may be stored on the removable storage 136 and / or the non-removable storage 138, and when the computing device 100 is powered on or the application 122 is to be executed, it is loaded into the system memory 106 via the storage interface bus 134 and executed by one or more processors 104.
[0032] The computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus / interface controller 130. Example output devices 142 include a graphics processing unit 148 and an audio processing unit 150. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 158. Example communication devices 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via a network communication link via one or more communication ports 164.
[0033] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or its changes can be performed in the signal in a manner that encodes information. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein can include both storage media and communication media.
[0034] The computing device 100 can be implemented as a personal computer including a desktop computer and a notebook computer configuration. Of course, the computing device 100 can also be implemented as a part of a small-sized portable (or mobile) electronic device, which can be a cellular phone, a digital camera, a personal digital assistant (PDA), a personal media player device, a wireless network browsing device, a personal head-mounted device, an application-specific device, or a hybrid device that can include any of the above functions. It can even be implemented as a server, such as a file server, a database server, an application server, and a WEB server. The embodiments of the present invention are not limited to this.
[0035] In an embodiment according to the present invention, the computing device 100 is configured to execute the method 200 for opening a file based on a drag operation according to the present invention. The application of the computing device 100 includes a plurality of program instructions for executing the method 200 for opening a file based on a drag operation according to the present invention, so that the method 200 for opening a file based on a drag operation according to the present invention can be executed in the computing device 100.
[0036] According to one embodiment of the present invention, the operating system of the computing device 100 includes a file manager 125, and the file manager 125 contains multiple program instructions for executing the method 200 of opening a file based on a drag operation of the present invention, so that the method 200 of opening a file based on a drag operation of the present invention can be executed in the file manager.
[0037] Figure 2 A flowchart of a method 200 for opening a file based on a drag operation according to an embodiment of the present invention is shown. The method 200 for opening a file based on a drag operation can be executed in a file manager 125 of a computing device (e.g., the aforementioned computing device 100). The file manager 125 includes a corresponding display page 300, and the display page 300 of the file manager 125 is suitable for being displayed on the system desktop of the computing device 100.
[0038] Figure 3 FIG. 3 is a schematic diagram showing a display page 300 of a file manager according to an embodiment of the present invention. Figure 3 As shown, the display page 300 of the file manager includes a file display area 310 and an application display area 320. The file display area 310 is used to display one or more files in the selected directory. For example, Figure 3 The directories displayed include Recently Used, Home Directory, Desktop, Videos, Pictures, Music, Documents, and Downloads. The Documents directory is currently selected.
[0039] The application display area 320 is used to display application icons corresponding to one or more applications. It should be noted that the present invention does not impose any specific restrictions on the positions of the file display area 310 and the application display area 320 on the display page 300.
[0040] In one embodiment, the application display area 320 is arranged in an edge area on the display page 300, for example, it can be arranged in an upper edge area, a lower edge area, a left edge area, a right edge area, etc. on the display page 300. Figure 3 The application display area 320 is shown to be arranged at an upper edge area of the display page 300 .
[0041] like Figure 2 As shown, the method 200 starts at step S210 .
[0042] In step S210, the user's dragging operation on each file in the file display area 310 is detected. Subsequently, in step S220, if the detected dragging operation is an operation of dragging any file in the file display area 310 to a predetermined area, an application list 325 is displayed in the application display area 320 in response to the dragging operation. Here, the displayed application list includes application icons corresponding to one or more applications suitable for opening the dragged file. It should be noted that when the application list 325 is displayed in the application display area 320, the file is still in a state of being dragged and not released. In other words, the present invention presents an application list to the user in the process of the user dragging the file, so that the user can directly select the application for opening the file in the application list during the process of dragging the file, and the operation steps are simple.
[0043] It should be noted that the present invention can pre-configure one or more applications suitable for opening files of the same type for each type of file, that is, each file type corresponds to one or more applications. In this way, when an operation of dragging a file to a predetermined area is received, by determining the type of the file, one or more application icons suitable for opening the dragged file can be obtained according to the type of the file, and the one or more application icons are displayed side by side in the application list. Here, the present invention does not limit the order of arrangement of the one or more application icons in the application list, nor does it limit the size of each application icon.
[0044] In one embodiment, the predetermined area is an area within a predetermined range outside the edge of the display page 300, that is, when an operation of dragging a file to the predetermined area outside the display page is detected, an application list including one or more applications is displayed in the application display area 320 in response to the drag operation.
[0045] It should be noted that the present invention does not limit the specific arrangement position of the predetermined area relative to the display page 300. For example, the predetermined area can be any one of a predetermined range area located on the upper side of the display page 300, a predetermined range area located on the lower side of the display page 300, a predetermined range area located on the left side of the display page 300, and a predetermined range area located on the right side of the display page 300. Figure 3 The predetermined area indicated in the middle is a predetermined range area located on the upper side of the display page 300 .
[0046] Finally, in step S230, when the user continues to drag the file to one of the application icons in the application list, in response to the user's operation of dragging the file to one of the application icons in the application list, the dragged file is opened by the application corresponding to the application icon. Here, after the user drags the file to the application icon for opening the file, the file can be released to stop the dragging operation on the file.
[0047] In this way, the user can directly select the application for opening the file in the application list during the process of dragging and dropping the file, and only needs to continue dragging the file to the application icon corresponding to the application for opening the file to open the file through the corresponding application. It can be seen that according to the method 200 of the present invention, in the process of selecting an application to open a file, only one drag operation is required to select any application in the application list to open the file, and the operation steps are simple, avoiding the tedious steps of operating back and forth between multiple pages.
[0048] According to one embodiment, in the method 200 of the present invention, a user's dragging operation on an application icon may also be detected, so as to implement adding a new application icon to the corresponding application type list based on the dragging operation on the application icon. For example, when a new application is installed in the computing device 100, the new application icon is not added to the corresponding application type list. At this time, the user can drag the new application icon to implement adding the new application icon to the corresponding application type list.
[0049] It should be noted that multiple types of applications can be installed in the computing device 100 of the present invention, each application type can include one or more applications, and a corresponding application type list can be formed based on the icons of one or more applications included in each application type. In other words, each application type can correspond to an application type list, and the application type list is used to display one or more application icons corresponding to the application type. In addition, the application icon includes corresponding configuration parameters, and by obtaining the configuration parameters, the application name, application type and other information corresponding to the application icon can be determined.
[0050] In one implementation, when a user drags an application icon, the file manager first treats the application icon as a file to obtain the parameters of the file, and determines whether the dragged object is an application icon based on the file parameters. If it is determined that the dragged object is an application icon, the file manager responds to the user's dragging operation on the application icon.
[0051] Specifically, when the file manager determines that what is received is that the user drags an application icon (such as an icon of a newly installed application) to the application display area 320, first, by determining the application type corresponding to the dragged application icon, specifically, by obtaining the configuration parameters of the application icon, the application type corresponding to the application icon can be determined according to the configuration parameters, and the corresponding application type list is obtained. Then, it is determined whether the application icon already exists in the corresponding application type list, so as to determine whether the application icon is a new application icon. If it does not exist in the corresponding application type list, it means that it is a new application icon that needs to be added. At this time, in response to the user's drag operation on the application icon, the application type list corresponding to the application icon is displayed in the application display area 320. Subsequently, the user can continue to drag the application icon being dragged to the application type list already displayed in the application display area 320. In response to the user's operation of continuing to drag the application icon to the application type list, the file manager adds the application icon to the application type list for display, thereby realizing the addition of a new application icon to the application type list through the drag operation.
[0052] It should be noted that by dragging a new application icon to the corresponding application type list, if a file is subsequently dragged to the application display area 320 and the file can be opened by the new application, the new application icon will be displayed in the application list displayed in the application display area 320. In this way, a new application for opening a file is added.
[0053] According to one embodiment, the present invention can pre-configure one or more applications suitable for opening files of the same type for each file type, and each file type corresponds to one or more applications. Further, each file type can correspond to one or more applications contained in one or more application types. When receiving an operation of dragging a file to a predetermined area, by determining the type of the file, the corresponding one or more application icons suitable for opening the dragged file can be obtained according to the type of the file, and then the one or more application icons can be displayed in the application list, and the application list is displayed in the application display area 320.
[0054] Among them, one or more application icons in the application list can be sorted according to a preconfigured sorting method. Specifically, before the application display area 320 displays the application list 325, the application icons corresponding to one or more applications suitable for opening the file are first obtained. Subsequently, one or more application icons are sorted based on the preconfigured application icon sorting method so that the one or more application icons are displayed in the application list in a corresponding order. Here, by obtaining a configuration file, the application icon sorting method selected by the user can be determined according to the configuration file, and one or more application icons are sorted based on the application icon sorting method selected by the user. After sorting one or more application icons in the application list according to the application icon sorting method selected by the user, the application list is presented in the application display area 320, so that the presented application list displays one or more application icons arranged in a corresponding order.
[0055] In some embodiments, the application icon sorting method provided by the file manager 125 of the present invention includes: a usage frequency sorting algorithm, an installation time sorting algorithm, and a file type sorting algorithm, but is not limited to the following. That is, the application icon sorting method selected by the user determined according to the configuration file can be one of the usage frequency sorting algorithm, the installation time sorting algorithm, and the file type sorting algorithm.
[0056] Among them, the frequency sorting algorithm is used, that is, determining the usage frequency of one or more applications, and sorting the corresponding one or more application icons in order from high to low according to the usage frequency of one or more applications, so that the one or more application icons are sorted and displayed in the application list. It should be noted that the file manager can record the number of times each application is used and save it to a local configuration file. In this way, by reading the data in the configuration file, the usage frequency of each application can be determined, so that the application icons can be sorted according to the application usage frequency.
[0057] The installation time sorting algorithm reads the installation time of one or more applications and sorts the corresponding one or more application icons according to the order of the installation time of the one or more applications, so that the one or more application icons are displayed in the application list after sorting.
[0058] The file type sorting algorithm, that is, determines the type of file (MimeType), and sorts one or more application icons according to the type of file, so that the one or more application icons are displayed in the application list after sorting. It should be noted that the arrangement order of one or more application icons corresponding to each file type can be pre-configured. In this way, by determining the type of file, the arrangement order of one or more application icons corresponding to the file type can be determined according to the configuration file, and the one or more application icons are displayed in the application list according to the corresponding arrangement order. Here, the one or more application icons corresponding to each file type are application icons corresponding to one or more applications that support opening files of the corresponding type.
[0059] It should be noted that according to the method 200 of the present invention, any one of the above-mentioned application icon sorting methods can be selected to sort the application icons. Alternatively, a combination of multiple sorting methods among the above-mentioned application icon sorting methods can be selected to sort the application icons. For example, a comprehensive sorting method combining a frequency sorting algorithm and a file type sorting algorithm can be selected to sort one or more application icons.
[0060] In addition, in one embodiment, a custom sorting method can also be used to sort the application icons. Specifically, the user can pre-customize the application icon arrangement order according to his or her own usage habits, and generate a corresponding configuration file based on the user-defined application icon arrangement order. In this way, when the file manager sorts the application icons, it can read the configuration file, determine the user-defined application icon arrangement order according to the configuration file, and sort one or more application icons according to the user-defined application icon arrangement order, so that the one or more application icons are sorted and displayed in the application list.
[0061] It should also be noted that one or more application icons in the application type list may also be sorted according to the aforementioned application icon sorting method. When a new application icon is added to the application type list for display in response to the user dragging an application icon to the application type list, the new application icon is displayed at a corresponding position in the application type list using the application icon sorting method determined according to the configuration file.
[0062] In one implementation, both the application list and the application type list can be implemented by a ListView control. The application list implemented based on the ListView control can automatically adjust the size of the application list according to the number and size of the application icons, so as to present each application icon included in the application list and the application type list.
[0063] In one implementation, the first application icon displayed in the application list may be an application icon corresponding to the application used when the dragged file was last opened, and other application icons in the application list except the first application icon are arranged and displayed based on the selected application icon sorting method.
[0064] According to one embodiment, after the application list is displayed in the application display area 320, when the user drags a file, if the user wants to open the file through a preset application after dragging the file to the application display area 320, the user can directly drag the file from the application display area 320 to outside the application display area. Subsequently, the file manager can open the dragged file through the preset application in response to the user's operation of dragging the file from the application display area 320 to outside the application display area.
[0065] According to an embodiment, before executing step S210, a user's configuration request for the drag function may be received and a configuration page may be displayed. In one implementation, the user requests to configure the drag function by clicking a setting button.
[0066] Figure 4 and Figure 5 A schematic diagram of a configuration page according to an embodiment of the present invention is shown respectively.
[0067] like Figure 4 As shown, the configuration page includes a drag setting item. In the drag setting item in the configuration page, four directions of dragging and opening files are provided for the user to choose, namely, up, down, left, and right. Here, each direction table of dragging and opening files represents the direction position of the predetermined area relative to the display page 300 of the file manager, that is, the dragging direction of the file during the process of dragging and opening the file. Specifically, up, down, left, and right correspond to the predetermined area located at the predetermined range area on the upper side of the display page 300, the predetermined area located at the predetermined range area on the lower side of the display page 300, the predetermined area located at the predetermined range area on the left side of the display page 300, and the predetermined area located at the predetermined range area on the right side of the display page 300. In this way, the user selects the corresponding predetermined area by selecting the direction of dragging and opening the file, and the selectable predetermined area is any one of the predetermined range area located at the upper side of the display page, the predetermined range area located at the lower side of the display page, the predetermined range area located at the left side of the display page, and the predetermined range area located at the right side of the display page. After the user selects a direction, the file manager 125 may obtain the predetermined area selected by the user on the configuration page by selecting a direction to drag and open the file, and write the predetermined area information selected by the user into the configuration file.
[0068] It should be noted that by providing multiple directions for users to choose from when opening files by dragging them on the configuration page, the usage habits of different users can be met, and users are provided with more abundant ways to open files by dragging them.
[0069] like Figure 5 As shown, the configuration page also includes application sorting setting items. In the application sorting setting items in the configuration page, there are usage frequency sorting options (corresponding to usage frequency sorting algorithms), installation time sorting options (corresponding to installation time sorting algorithms), type sorting options (corresponding to file type sorting algorithms), and comprehensive sorting options (corresponding to a combination of multiple sorting algorithms). In this way, the user can select the corresponding application icon sorting method by selecting the sorting option. After the user selects the sorting option, the corresponding application icon sorting method selected by the user by selecting the sorting option on the configuration page is obtained, and the application icon sorting method selected by the user is written into the configuration file, so that before the application list is displayed, one or more application icons in the application list are sorted by reading the application icon sorting method selected by the user recorded in the configuration file.
[0070] In addition, the application sorting setting item in the configuration page also includes a custom sorting option. If the user selects the custom sorting option, the application icon arrangement order customized by the user on the configuration page is obtained, and the user-defined application icon arrangement order is written into the configuration file, so that before displaying the application list, one or more application icons in the application list are sorted by reading the user-defined application icon arrangement order recorded in the configuration file.
[0071] In one implementation, the configuration page can use a TableView control to implement switching between drag setting items and application sort setting items, and display the view corresponding to the drag setting item by default.
[0072] In one embodiment, Figure 5 As shown, after the configuration page switches to the view corresponding to the application sorting setting item, the view includes an application icon preview area, and the application icon preview area displays icons of all applications installed in the computing device 100. When the user selects a sorting option, all application icons are sorted based on the application icon sorting method corresponding to the sorting option and then displayed in the application icon preview area for preview, so that the user can view the arrangement order of the application icons corresponding to the selected sorting option.
[0073] In one implementation, the application icon preview area can be implemented by a ListView control. If the user selects a custom sorting option on the configuration page, the user can drag the application icons in the application icon preview area to adjust the order of the application icons, thereby enabling the user to customize the order of the application icons on the configuration page.
[0074] According to the method of opening files based on dragging operation of the present invention, the user drags the file to a predetermined area outside the display page of the file manager, and the application list will be presented in the application display area. By continuing to drag the file to any application icon in the application list, the dragged file can be opened by the application corresponding to the application icon. In this way, according to the method of the present invention, in the process of selecting an application to open a file, only one dragging operation is required to call out the application list and select an application in the application list to open the file. The operation steps are simple and fast, avoiding the tedious steps of operating back and forth between multiple pages, and improving the efficiency of selecting an application to open a file.
[0075] In addition, according to the method of the present invention, by dragging a new application icon to the corresponding application type list, a new application icon can be added to the application type list, thereby enabling the addition of a new application for opening a file.
[0076] A9. The method as described in any one of A1-A8, further comprising the step of: in response to an operation of dragging the file from the application display area to outside the application display area, opening the file through a preset application.
[0077] A10. A method as described in any one of A1-A9, further comprising the steps of: receiving a configuration request for a drag function and displaying a configuration page; obtaining a predetermined area selected on the configuration page, wherein the selected predetermined area is one of a predetermined range area located at the upper side of the display page, a predetermined range area located at the lower side of the display page, a predetermined range area located at the left side of the display page, and a predetermined range area located at the right side of the display page; and writing the selected predetermined area into a configuration file.
[0078] A11. A method as described in A10, wherein, after displaying the configuration page, it also includes the steps of: obtaining the application icon sorting method selected on the configuration page, or obtaining the application icon arrangement order customized on the configuration page; and writing the selected application icon sorting method or the customized application icon arrangement order into a generated configuration file.
[0079] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0080] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the multilingual junk text recognition method of the present invention according to the instructions in the program code stored in the memory.
[0081] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.
[0082] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the best mode of the present invention.
[0083] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0084] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0085] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0086] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0087] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0088] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0089] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0090] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.
Claims
1. A method for opening a file based on a drag operation, executed in a file manager of a computing device, wherein a display page of the file manager includes a file display area and an application display area, wherein the application display area is arranged in an edge area of the display page, and the file display area is suitable for displaying one or more files, and the method comprises the steps of: Detecting a drag operation on a file in the file display area; If the dragging operation is an operation of dragging the file to a predetermined area, displaying an application list in the application display area, wherein the predetermined area is an area within a predetermined range outside an edge of the display page, and the application list includes application icons corresponding to one or more applications suitable for opening the file; In response to an operation of dragging the file onto an application icon in the application list, opening the file through the application corresponding to the application icon; receiving an operation of dragging a newly installed application icon to the application display area, obtaining configuration parameters of the application icon, determining an application type corresponding to the application icon according to the configuration parameters, and obtaining a corresponding application type list; Determine whether the application icon already exists in the corresponding application type list; If not present, displaying an application type list corresponding to the application icon in the application display area; In response to the operation of continuing to drag the application icon to the application type list, the application icon is added to the application type list for display, so as to achieve adding a new application for opening a file.
2. The method of claim 1, wherein: Before the application list is displayed in the application display area, the steps include: Determine the type of the file, and obtain one or more application icons suitable for opening the file according to the type of the file; One or more application icons are sorted based on the application icon sorting method so as to display the one or more application icons in the application list in sequence.
3. The method of claim 2, wherein: Before sorting one or more application icons based on the application icon sorting method, the method includes the following steps: A configuration file is obtained, and an application icon sorting method is determined according to the configuration file.
4. The method according to claim 2 or 3, wherein: The application icon sorting method includes at least one of the following: Determine the usage frequency of one or more applications, and sort the corresponding one or more application icons in descending order of usage frequency; Obtaining the installation time of one or more applications, and sorting the corresponding one or more application icons according to the order of the installation time; or The type of the file is determined, and one or more application icons are sorted according to the type of the file.
5. The method according to claim 2 or 3, wherein: The application icon sorting method further includes: A customized application icon arrangement order is determined according to the configuration file, and the one or more application icons are sorted according to the customized application icon arrangement order.
6. The method according to any one of claims 1 to 3, wherein: Also includes the steps: In response to an operation of dragging the file from the application display area to outside the application display area, the file is opened by a preset application.
7. The method according to any one of claims 1 to 3, wherein: Also includes the steps: Receive configuration request for the drag function and display the configuration page; Acquire a predetermined area selected on the configuration page, wherein the selected predetermined area is one of a predetermined range area located at an upper side of the display page, a predetermined range area located at a lower side of the display page, a predetermined range area located at a left side of the display page, and a predetermined range area located at a right side of the display page; The selected predetermined area is written into a configuration file.
8. The method of claim 7, wherein: After the configuration page is displayed, the steps include: Obtaining the application icon sorting method selected on the configuration page, or obtaining the application icon sorting order customized on the configuration page; The selected application icon sorting method or the customized application icon arrangement order is written into the generated configuration file.
9. A computing device comprising: at least one processor; as well as A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the method according to any one of claims 1 to 8.
10. A readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device executes the method according to any one of claims 1 to 8.
