File opening method, project shortcut creating method and electronic equipment

By displaying the function bar and operating project controls in the electronic device, users can quickly open and manage project files, solving the problem of tedious preliminary preparations when completing the project, achieving quick entry into the project status and improving work efficiency.

CN118535045APending Publication Date: 2024-08-23HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410649987.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-09-19
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When users continue to complete electronic equipment projects, they need to spend a long time recalling the project progress and opening project files one by one. This makes early preparations cumbersome and makes it difficult to quickly enter the project status. This is especially a waste of time and energy when multiple projects are running in parallel.

Method used

Provide a method to open files. By displaying the function bar on the electronic device screen, users can quickly open related files by operating the project control (such as double-clicking the project control title bar). The window status is restored based on the status when it was last closed, and supports the creation of projects. Shortcuts allow users to flexibly manage and open different project files.

Benefits of technology

Users can open project files with one click, saving time on recalling project progress and manually opening files, achieving seamless connection with project progress, quickly entering project status, and improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535045A
    Figure CN118535045A
Patent Text Reader

Abstract

The invention provides a method for opening a file, a method for creating a project shortcut, electronic equipment and a computer readable storage medium. The file opening method comprises the steps that a first function bar is displayed in a first area of a screen of the electronic equipment, a first control and multiple options are displayed in the first function bar, the first control and the multiple options correspond to a first operation item, and each option is associated with a file stored in the electronic equipment; receiving a first operation for the first control; and in response to the first operation, opening an associated file of at least two options in the plurality of options. According to the method and the device, when the user continuously finishes the operation item, the item file related to the operation item can be opened by one key, so that the early-stage preparation work (such as recalling the project progress and manually opening the item file one by one) can be saved, and the user can quickly enter the item state.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202211139292.8, and the original application date is September 19, 2022. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the technical field of electronic devices, and in particular to a method for opening a file, a method for creating a project shortcut, an electronic device, and a computer-readable storage medium. Background Art

[0003] Electronic devices such as notebooks are important tools for users to complete homework projects (e.g., work projects, academic projects, and entertainment projects). The completion of a project usually takes a period of time (e.g., weeks or months), and users will complete a project in multiple times. For example, if a project is not completed on the same day, it can be completed the next day.

[0004] Each time a user completes a project, he or she needs to recall the previous project progress and open the project files involved one by one. The preliminary preparation work will take a long time and it is difficult to quickly enter the project status.

[0005] In addition, users sometimes work on multiple projects in parallel. Since different projects involve different files, users need to do different preliminary preparations when completing each project, which consumes more time and energy. Summary of the invention

[0006] Some embodiments of the present application provide a method for opening a file, a method for creating a project shortcut, an electronic device, and a computer-readable storage medium. The present application is introduced from multiple aspects below, and the embodiments and beneficial effects of the following aspects can be referenced to each other.

[0007] In a first aspect, the present application provides a method for opening a file, for use in an electronic device, the method comprising: displaying a first function bar in a first area of ​​a screen of the electronic device, displaying a first control and multiple options in the first function bar, the first control and the multiple options corresponding to a first job item, and each option being associated with a file stored in the electronic device; receiving a first operation on the first control; and opening, in response to the first operation, files associated with at least two of the multiple options.

[0008] According to the implementation mode of the present application, the user can open the file corresponding to the first operation project by performing the first operation on the first control (for example, double-clicking the title bar of the project control). In this way, when the user continues to complete the operation project, he can open the project file with "one click", thereby saving the preliminary preparation work (for example, recalling the project progress and manually opening the project files one by one), which is conducive to the user to quickly enter the project state.

[0009] In some implementations, the window state of the associated file after it is opened is the first window state, and the first window state is determined based on the window state of the associated file when the first job item was last closed.

[0010] According to the implementation mode of the present application, the window state when the associated file is opened can correspond to (for example, be the same as) the window state when it was last closed, thereby facilitating the user to seamlessly connect the progress of the project and further helping the user to quickly enter the project state.

[0011] In some embodiments, the first operation item is closed, including: the electronic device receives a second operation on the first control and closes the first operation item; or the electronic device closes the first operation item when shutting down.

[0012] According to the implementation manner of the present application, the user can actively close the first operation item through the second operation, and the electronic device can also automatically close the first operation item when shutting down.

[0013] In some embodiments, at least two options include a first option, the associated file of the first option was in an open state when the first job project was last closed, and the window state of the associated file of the first option after being opened corresponds to the window state of the associated file when the first job project was last closed.

[0014] In some implementations, the at least two options include a second option, an associated file of the second option was in a closed state when the first job item was last closed, and a window state in which the associated file of the second option is opened is a default state.

[0015] In some embodiments, the default state is a minimized state or a full-screen state at the bottom of other file windows. Through this setting, it is possible to avoid the window of the associated file of the second option from blocking other file windows.

[0016] In some implementations, the default state is a full-screen state located at the bottom of other file windows; there are multiple second options, and the windows of the files associated with the multiple second options are stacked in sequence after being opened according to the arrangement order of the second options.

[0017] In some implementations, the window state includes a window size or a window position of an associated file.

[0018] In some embodiments, the first control includes an expandable area, which can be expanded or collapsed based on a third operation on the first control; wherein the plurality of options are located in the expandable area.

[0019] In some implementations, the first control includes progress information of the first operation project. This setting helps the user to understand the project progress of the first operation project in a timely manner.

[0020] In some implementations, the first functional bar is a sidebar.

[0021] In a second aspect, the present application provides a method for creating a project shortcut for an electronic device, the method comprising: displaying a first function bar in a first area of ​​a screen of the electronic device; receiving a fourth operation for the first function bar; in response to the fourth operation, adding a first control in the first function bar, the first control corresponding to a first job item; adding multiple options in a setting area of ​​the first control, each option being associated with a file stored in the electronic device; wherein the first control is used to perform response processing on the received first operation, the response processing comprising opening associated files of at least two of the multiple options.

[0022] According to the implementation mode of the present application, the user can open the file corresponding to the first operation project by performing the first operation on the first control (for example, double-clicking the title bar of the project control). In this way, when the user continues to complete the operation project, he can open the project file with "one click", thereby saving the preliminary preparation work (for example, recalling the project progress and manually opening the project files one by one), which is conducive to the user to quickly enter the project state.

[0023] In some implementations, the window state of the associated file after it is opened is the first window state, and the first window state is determined based on the window state of the associated file when the first job item was last closed.

[0024] According to the implementation mode of the present application, the window state when the associated file is opened can correspond to (for example, be the same as) the window state when it was last closed, thereby facilitating the user to seamlessly connect the progress of the project and further helping the user to quickly enter the project state.

[0025] In some embodiments, multiple options include a first option, and the first option is associated with a first file; wherein, adding the first option in the setting area of ​​the first control includes: receiving a fifth operation for the file icon of the first file, and adding the first option in the setting area; or, receiving a sixth operation for the taskbar icon of the first file, and adding the first option in the setting area; or, receiving a seventh operation for the first control, and adding the first option in the setting area.

[0026] In some embodiments, the setting area for adding options in the first control is an expandable area, and the expandable area can be expanded or collapsed based on the third operation on the first control.

[0027] In some embodiments, the method further includes: receiving a fourth operation for the first function bar again; in response to the fourth operation received again, adding a second control in the first function bar, the second control corresponding to the second job item, and the first control and the second control are arranged in a first order; receiving an eighth operation for the second control, and adjusting the arrangement order of the first control and the second control from the first order to the second order.

[0028] In some embodiments, the first control includes a project identifier of the first operation project; the method further includes: receiving a ninth operation for the first control; and changing the project identifier in the first control according to the ninth operation.

[0029] In some embodiments, the method further includes: upon receiving a tenth operation on one of the multiple options, deleting one of the options from the setting area.

[0030] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; a processor, when the processor executes the instructions in the memory, the electronic device can execute the method provided by any embodiment of the first aspect of the present application or any embodiment of the second aspect of the present application. The beneficial effects that can be achieved in the third aspect can refer to the beneficial effects of any embodiment of the first aspect of the present application or any embodiment of the second aspect of the present application, and will not be repeated here.

[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions are executed on a computer, the computer can execute the method provided by any embodiment of the first aspect of the present application or any embodiment of the second aspect of the present application. The beneficial effects that can be achieved in the fourth aspect can refer to the beneficial effects of any embodiment of the first aspect of the present application or any embodiment of the second aspect of the present application, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 An exemplary application scenario of the embodiments of the present application is shown;

[0033] Figure 2A and Figure 2B Shows a shutdown setting interface of an electronic device in some embodiments;

[0034] Figure 3 A restart application setting interface of an electronic device in some embodiments is shown;

[0035] Figure 4 The schematic diagram of the project control setting method provided in the embodiment of the present application is shown Figure 1 ;

[0036] Figure 5 A schematic diagram of a project shortcut creation method provided in an embodiment of the present application is shown;

[0037] Figure 6A to Figure 6G An exemplary interface diagram of a create project control provided in an embodiment of the present application is shown;

[0038] Fig. 7A and Figure 7B An exemplary interface diagram of the creation options provided in an embodiment of the present application is shown;

[0039] Figure 8A to Figure 8C An exemplary interface diagram of project control operation provided by an embodiment of the present application is shown;

[0040] Figures 9A to 9C An exemplary interface diagram of adding a project control provided in an embodiment of the present application is shown;

[0041] Fig. 10A and Fig. 10B An exemplary interface diagram of the project control order adjustment operation provided in an embodiment of the present application is shown;

[0042] Fig.11 The following is a schematic diagram showing the process of opening a file provided by an embodiment of the present application. Figure 1 ;

[0043] Fig. 12A and Fig. 12B Schematic diagram 2 of the project control setting method provided in an embodiment of the present application is shown;

[0044] Fig.13 The project file window status diagram provided in the embodiment of the present application is shown Figure 1 ;

[0045] Fig.14A A second schematic diagram of the project file window state provided in an embodiment of the present application is shown;

[0046] Fig. 14B A second schematic diagram of the project file window state provided in an embodiment of the present application is shown;

[0047] Fig.15A A schematic diagram of the module structure of an electronic device provided in an embodiment of the present application is shown;

[0048] Fig. 15B The data structure of the project control provided in the embodiment of the present application is shown as follows Figure 1 ;

[0049] Fig.16 A schematic diagram of the process of adding option attribute information provided by an embodiment of the present application is shown;

[0050] Fig.17A schematic diagram of window status parameters provided in an embodiment of the present application is shown;

[0051] Fig.18 Schematic diagram 2 showing the process of the file opening method provided in the embodiment of the present application

[0052] Fig.19 A second schematic diagram of the data structure of the project control provided in an embodiment of the present application is shown;

[0053] Fig. 20 A block diagram of an electronic device provided in an embodiment of the present application is shown;

[0054] Fig.21 A schematic structural diagram of a system on chip (SOC) provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0055] The specific implementation of the present application will be described in detail below with reference to the accompanying drawings.

[0056] The embodiment of the present application is used to provide a method for opening a file. When a user needs to continue to complete a work project, the project file involved in the work project can be quickly opened to facilitate the user to quickly perform the project status.

[0057] The method of the present application can be applied to various electronic devices such as laptop computers (referred to as "notebooks"), desktop computers, servers, large-screen devices, vehicle-mounted devices, e-book readers, streaming media clients, etc. In the following, a notebook is introduced as an example of an electronic device.

[0058] Figure 1 An exemplary application scenario of the embodiment of the present application is shown. Figure 1 , users can use notebooks to complete various types of homework projects (referred to as "projects"). Among them, projects can be learning projects, such as graduation projects, innovation competitions, scientific research designs, etc.; they can also be work projects, such as software development, model simulation, project summaries, etc.; they can also be entertainment projects, such as photography portfolio production, playing movie music, etc., which are not listed one by one.

[0059] The completion of a project may take some time. During this period, users will close and restart the project many times. For example, when a student uses a laptop to complete a graduation thesis, he will close the laptop after studying every day, and open the laptop again the next day to continue to improve the thesis; when an engineer uses a laptop to complete a project plan, he will close the files involved in the project plan when he gets off work, and open the files again the next day to enrich the project plan; another example is that after a day's work / study, the user wants to continue watching a movie that he didn't finish watching a few days ago.

[0060] Every time a user continues to complete a previous project, they need to recall the previous progress of the project and reopen the required project files. For example, when a student opens a notebook to continue to improve his graduation thesis, he needs to recall the files he used the day before and open them one by one. Only after a series of preparations can he officially start to complete the project, making it difficult to enter the project state as quickly as possible.

[0061] In addition, users may work on multiple projects in parallel over a period of time. For example, a student may be preparing for an innovation competition project while completing a graduation thesis. When users work on multiple projects in parallel, they need to recall the progress status and required files of each project before completing each project, and open the required files one by one, which wastes the user's time and energy.

[0062] To reduce the user's workload of reopening files, in some embodiments, the notebook automatically opens specific files when it is turned on.

[0063] For example, in some embodiments, when a user closes or restarts a notebook, the notebook pops up Figure 2A Dialog box 11 shown or Figure 2B Dialog box 12 is shown. If the user checks the "Reopen window when logging in again" option in dialog box 11 / dialog box 12, the next time the notebook is turned on, it will automatically open the file that was open when it was shut down last time (for example, Figure 2A / Figure 2B In this embodiment, the user needs to manually check the option of "reopen window when logging in again" every time the computer is shut down / restarted, which is troublesome.

[0064] In other embodiments, reference Figure 3 , users can follow the path "Settings" → "Account Options" → "Login Options" to call out the following Figure 3 The restart application dialog box 13 is shown. In the dialog box 13, the user can turn on the restart application switch 14. In this way, the next time the notebook is turned on, the application that supports the startup function can be automatically started. For example, Figure 3 In the embodiment, when the file P1 belongs to an application that supports the startup function, if it is in the open state when the notebook is turned off, the notebook can automatically start the file P1 after the next startup. Among them, whether the application supports the startup function can be set in the attribute information of the application. In this embodiment, the notebook can automatically open a specific file after startup to simplify the user operation to a certain extent. However, in this embodiment, the entrance of the dialog box 13 is relatively hidden, and the operation path is long, which makes the user's operation more complicated and even difficult to find the operation entrance.

[0065] In addition, Figure 2A, 2B and Figure 3 In the method shown, a "one-size-fits-all" approach is used to set the file that automatically starts at startup. For example, Figure 2A , 2B and Figure 3 In the method shown, all files that were open when the computer was shut down last time are opened. However, the files that the user wants to open may be different each time the computer is turned on. For example, when the user is working on multiple projects in parallel, the project that the user is processing before shutting down may not be the project that the user wants to process first when the computer is turned on next time. If the files that were not closed when the computer was shut down last time are automatically opened when the laptop is turned on, the user may not want to open these files, which will cause trouble to the user.

[0066] To solve the above-mentioned technical problems, a method for opening a file is provided in an embodiment of the present application. In an embodiment of the present application, an electronic device (e.g., a notebook) can display a project control of a work project in a setting function bar (or "first function bar"). When a user needs to complete a work project in succession, the file (referred to as a "project file") involved in the work project can be opened by operating the project control (e.g., double-clicking the project control title bar). In this way, when the user completes the project in succession, the project file can be opened with "one click", which saves recalling the project progress and manually opening the project files one by one, which is conducive to the user quickly entering the project state.

[0067] In addition, in the implementation mode of the present application, different project controls can be created for different work projects. In this way, when the user needs to complete a project, he can open the project file of the project by operating the project control of the project. Therefore, when the user is completing multiple projects in parallel, he can flexibly open the current project. Figure 2A , Figure 2B and Figure 3 A "one-size-fits-all" approach facilitates operational flexibility.

[0068] In addition, in some embodiments, the window state (e.g., window size, window position) of the project file when it is opened is determined based on the window state of the project file when the project was last closed. In this way, the window state when the project file is opened can correspond to (e.g., be the same as) the window state when the project file was last closed, thereby facilitating the user to seamlessly connect the progress of the project and further helping the user to quickly enter the project state.

[0069] The specific embodiments of the present application are described below. For ease of understanding, an exemplary configuration method of the project control provided in the embodiments of the present application is first introduced.

[0070] Figure 4A graphical user interface (GUI) provided in an embodiment of the present application is shown. Figure 4 The notebook desktop includes a function bar 20 (or "first function bar"). The function bar includes a plurality of item controls, specifically item controls 100-500, wherein the item control 100 is in an expanded state and the other item controls are in a folded state.

[0071] Each project control corresponds to a different homework project. For example, project control 100 corresponds to the homework project "Graduation Project", project control 200 corresponds to the homework project "Photography Portfolio Production", ..., and so on. The user can open the project file of the corresponding homework project by double-clicking the title bar of the project control (as an example of the first operation). For example, when the user double-clicks the title bar of the project control 100, the project file of the "Graduation Project" project can be opened, such as "College Student Shorthand.doc", "Material Data.xls", "Defense Materials.ppt", "Stylus Rendering" and so on. Figure 1 .psd", "Stylus Rendering 2.psd", "Stylus Model .3dm". When the user double-clicks the title bar of the project control 200, the project file of the "Photography Portfolio Production" project can be opened. That is, through the method provided in this embodiment, the user can easily open the project file of the operation project.

[0072] Figure 4 In the embodiment, the function bar 20 is specifically a sidebar located in the right area of ​​the notebook screen (as an example of the first area). In other embodiments, the function bar 20 may also be a top sidebar located in the top area of ​​the notebook, a desktop toolbar located in the middle area of ​​the notebook, etc., which is not limited in this application. In the following, the sidebar is used as an example of the function bar 20 for introduction.

[0073] In addition, the operations such as "single-click", "double-click", and "right-click" described in this article can be achieved by clicking the mouse, or by operating a touch screen, touchpad, etc., and this application does not limit this.

[0074] The following describes how to create a project control, and then how to open a project file using the project control.

[0075] Figure 5 The method for creating a project control (or "project shortcut") provided in an embodiment of the present application is shown. Figure 5 , the method provided in this embodiment comprises the following steps:

[0076] S110: The notebook displays a sidebar 20 in the right area of ​​the screen.

[0077] Exemplarily, the notebook hides the sidebar 20 by default after it is turned on. Fig. 6A The laptop desktop includes a display control 21 of the sidebar 20. After the user clicks the display control 21, the sidebar 20 can be called up (refer to Figure 6B ). In addition, when the sidebar 20 is in the display state, if the user clicks the display control 21 again, the sidebar 20 can be hidden again.

[0078] That is, in this embodiment, by clicking the display control 21, the display / hide state of the sidebar 20 can be switched to avoid the sidebar 20 occupying the screen space for a long time. In other embodiments, the notebook can also display the sidebar 20 all the time.

[0079] S120: The notebook receives an item adding operation for the sidebar 20 (as a fourth operation).

[0080] For example, refer to Figure 6B , the sidebar 20 includes a project management window 23, and the project management window 23 includes a project creation control 24. After the user clicks the project creation control 24, the notebook receives a project adding operation. In other embodiments, the project adding operation can also be other set operations, such as a double-click operation on a set position of the sidebar 20 (e.g., a blank area of ​​the sidebar 20).

[0081] S130: In response to the project adding operation, the notebook adds a project control 100 (as the first control) in the sidebar 20, and the project control 100 corresponds to the homework project M1 (as the first homework project, specifically the "graduation project" project).

[0082] That is, after receiving the item adding operation, the notebook can add a new item control in the sidebar 20. For example, referring to Figure 6C , the notebook adds an item control 100 in the sidebar. For ease of observation, some interface diagrams in this article (e.g., Figure 6C to Figure 6F ) shows only the sidebar 20 area on the notebook screen.

[0083] Figure 6C The state of the project control 100 when it is just created is exemplarily shown. Figure 6C The project control 10 includes a title bar 100a, and the title bar 100a includes an editable text box 161. The user can enter the project name of the homework project M1 (or "the project identifier of the homework project M1", for example, "graduation project") in the text box 161, so that the user can identify the homework project corresponding to the project control 100 (refer to Fig.6D ).

[0084] Subsequently, if the user wishes to change the project name of the operation project M1, the project control 100 may also be subjected to a project renaming operation (as a ninth operation). The present application does not limit the specific manner of the project renaming operation. For example, in some embodiments, the project renaming operation may be a right-click operation on the title bar 100a; in other embodiments, the project renaming operation may be a single-click operation on a setting subcontrol (not shown). After the user performs the project renaming operation, the text box 161 of the project control 100 is restored to an editable state so that the user can rename the operation project M1.

[0085] S140: The notebook adds at least one option in the setting area of ​​the project control 100, and each option is associated with a file stored in the notebook.

[0086] Specifically, the options of the project control 100 are associated with the project file of the work project M1. In this way, by adding options to the project control 100, the project control 100 can be associated with the project file of the work project M1.

[0087] For example, reference Fig. 6E The item control 100 further includes a content bar 100 b , and options of the item control 100 may be added to the content bar 100 b (as an example of a setting area) of the item control 100 .

[0088] Several exemplary operations of adding options in the project control 100 are described below. First, the example of adding the first option (i.e., option 110) in the project control 100 is used for the description. For example, the file associated with option 110 is "College Student Shorthand.doc (referred to as file P1)", and the storage path of file P1 is "Computer\D Disk\Graduation Design Document".

[0089] In some examples, the user can add an option in the item control 100 by operating the item control 100 (as a seventh operation).

[0090] For example, refer to Fig. 6E , the project control 100 may include an option adding sub-control 162, and the user can add an option in the project control 100 by clicking the option adding sub-control 162. For example, referring to Fig. 6E After the user clicks the subcontrol 162, the notebook may display a file adding menu 163. The file adding menu 163 includes two options, "Opened Files" and "All Files", which correspond to different file adding methods, which are described below.

[0091] Fig. 6E Shows the state where the "Open File" option is selected. Fig. 6EWhen the "Opened File" option is selected, the file adding menu 163 can display the currently opened files in the notebook, such as "College Student Shorthand.doc", "Material Data.xls", etc. The user can select the project file of the homework project M1 in the file adding menu 163, such as "College Student Shorthand.doc". After the user completes the project file selection, the user clicks the "OK" button 164 to add the option 110 associated with "College Student Shorthand.doc (i.e., file P1)" in the content column 100b of the project control 100 (refer to Fig. 6F ). For example, for easy identification, the option may include a file identifier (e.g., file name, file icon, etc.) of the associated project file. For example, option 110 includes the file name "University Student Shorthand.doc" and the file icon of file P1.

[0092] In addition, it can be understood that in other embodiments, the user can select multiple files in the file adding menu 163, for example, select the file "College Student Shorthand.doc" and the file "Material Data.xls". In this embodiment, after the user clicks the "OK" button 164, two options can be added to the content column 100b of the project control 100, and the two options are respectively associated with the file "College Student Shorthand.doc" and the file "Material Data.xls".

[0093] Figure 6G The state where the "All Files" option of the file adding menu 163 is selected is shown. Figure 6G , when the "all files" option is selected, the notebook can pop up a file selection dialog box 165. Through the file selection dialog box 165, the user can select the project file "College Student Shorthand.doc" through the path "Computer\D Disk\Graduation Design Documents". After the user completes the file selection, the notebook adds an option 110 associated with "College Student Shorthand.doc (i.e., file P1)" in the content column 100b of the project control 100 (please refer to Fig. 6F ).

[0094] In some embodiments, it is considered that the user is more likely to add the file currently being edited to a certain project. Therefore, in this embodiment, the "opened file" option is the default selected option in the file adding menu 163, to facilitate the user to quickly add the option of the project control.

[0095] The above describes an example of adding options in the project control 100 by operating the project control 100. In other examples, the user can also add options in the project control 100 in other ways.

[0096] For example, in some examples, the user can add options associated with the project file in the project control 100 by operating the taskbar icon of the project file (as the sixth operation). Fig. 7A When the file P1 is opened, the taskbar icon 31 of the file P1 may be displayed on the taskbar. When the user right-clicks the taskbar icon 31 of the file P1, the notebook may display a right-click menu 32 of the file P1. Afterwards, the user may add an option (i.e., option 110) associated with the file P1 in the project control 100 by selecting "Add to Project Window Management" → "Graduation Project" in the right-click menu 32.

[0097] For example, in some other examples, the user can add an option associated with the project file in the project control 100 (as a fifth operation) by operating the file icon of the project file. The file icon of the project file can be a desktop icon of the project file or an icon of the project file in a folder. The following description takes the desktop icon as an example.

[0098] For example, reference Figure 7B , the desktop of the notebook includes a desktop icon 33 of the file P1. When the user right-clicks the desktop icon 33 of the file P1, the notebook can display a right-click menu 34 of the file P1. Afterwards, the user can add an option (i.e., option 110) associated with the file P1 in the project control 100 by selecting "Add to Project Window Management" → "Graduation Project" in the right-click menu 34. In other embodiments, the user can also drag the desktop icon 33 of the file P1 to the content bar 100b of the project control 100 to add an option (i.e., option 110) associated with the file P1 in the project control 100.

[0099] In addition, the user can also add an option 110 in the project control 100 by operating the icon of P1 in the folder (as an example of a file icon). The specific adding method is the same as Figure 7B The methods shown are essentially the same and will not be described in detail.

[0100] In other examples, the user may also drag the file window of the file P1 to the content bar 100 b of the project control 100 to add the option 110 to the project control 100 .

[0101] The above describes a plurality of exemplary methods for a user to add an option 110 to the project control 100. According to any of the above methods, the user can continue to add other options to the project control 100. For example, referring to Fig. 8A, the user can continue to add options 120 to 160 in the project control 100, and different options are associated with different files (all of which are project files of project M1). For example, option 120 is associated with the file "material data.xls (recorded as file P2)", option 130 is associated with "defense materials.ppt (recorded as file P3)", ..., and will not be repeated one by one. Fig. 8A In the example shown, the files associated with option 140 and option 150 have the same file type (both are Photoshop files), and the files associated with other options have different file types.

[0102] In some embodiments, the user can also delete the added options. Figure 8B , after the user right-clicks option 150, the right-click menu 151 of option 150 can be called up. After the user selects the "Remove this file" option in the right-click menu 151 (as an example of the tenth operation), option 150 can be deleted from the project control 100. It should be noted that when option 150 is deleted from the project control 100, the file associated with option 150 (i.e., "Stylus Rendering 2.psd") will not be deleted from the notebook's memory. In other embodiments, the user can also delete an option by dragging the option outside the content bar 110b. For example, when the user drags option 120 outside the content bar 110b, option 120 can be deleted.

[0103] In addition, in some embodiments, when the user clicks the “Open Folder” option in the right-click menu 151 , the folder where the “Stylus Rendering 2.psd” is located can also be opened.

[0104] In some embodiments, the user can also change the order of each option. For example, the user can drag option 120 to behind option 140 to change the order of option 120 in each option.

[0105] In some embodiments, the user can also open the file associated with the option by operating the added option. For example, when the user double-clicks option 110, the file P1 associated with option 110 can be opened.

[0106] Continue to refer Fig. 8A and Figure 8B In some embodiments, the area where the content bar 100b is located is a foldable area. That is, the content bar 100b can be expanded or collapsed based on a user operation (or "third operation"). Exemplarily, the title bar 100a of the project control 100 includes a content bar display switching control 166. By clicking the switching control 166, the user can switch the content bar 100b from an expanded state to a collapsed state, or switch the content bar 100b from a collapsed state to an expanded state.

[0107] Fig. 8A The content bar 100b is shown in a state where it is expanded. Fig. 8A When the content bar 100b is expanded, the item control 100 may display at least some of the options. Fig. 8A In the example shown, the content bar 100b has a maximum display height H, and the content bar 100b can display options within the maximum display height H. In addition, the content bar 100b can include a scroll bar 167, and the user can adjust the displayed options by dragging the scroll bar 167. In other embodiments, the height of the content bar 100b is determined according to the number of options. For example, when the number of options increases, the height of the content bar 100b can increase accordingly. In this way, when the content bar 100b is expanded, the project control 100 can display all options.

[0108] Figure 8C The content bar 100b is shown in a collapsed state. Figure 8C When the content bar 100b is collapsed, the options are hidden, and the content bar 100b may disappear completely or appear as a narrow strip. In some embodiments, when the content bar 100b is collapsed, when the user hovers the cursor over the title bar 100a of the project control 100, the notebook may display a prompt bar, which includes the file name of the file associated with the project control 100.

[0109] Continue to refer Fig. 8A In some embodiments, the project control 100 may also include progress information of its corresponding work project (ie, work project M1). Fig. 8A In the example shown, the project control 100 indicates progress information through a progress bar 168. In other embodiments, the project control 100 may also indicate progress information through a progress value (e.g., 65%), a pie chart, etc., which is not limited in this application. Exemplarily, the progress information displayed by the project control 100 may be determined based on user input. For example, after the user double-clicks the progress bar 168, the notebook may pop up a progress value dialog box. The user may enter the current progress value of the project M1 in the progress value dialog box.

[0110] S150: The notebook receives an item adding operation for the sidebar 20 again. Fig. 9A , when the user clicks the item creation control 24 again, the notebook can receive the item adding operation again.

[0111] S160: In response to the project adding operation received again, a project control 200 (as an example of a second control) is added to the notebook sidebar, and the project control 200 corresponds to the operation project M2 (specifically, the "Photography Portfolio Production" project).

[0112] For example, refer to Fig. 9B After receiving the project adding operation again, the notebook adds a new project control (i.e., project control 200) in the sidebar 20. After adding the project control 200, the user can add the project name of the work project (recorded as project M2) corresponding to the project control 200 in the title bar of the project control 200, specifically "Photographic Works Collection Production". In addition, the user can also set the project progress for project M2.

[0113] It will be appreciated that if the user continues to click on the project creation control 24, the notebook may continue to add project controls in the sidebar 20. For example, referring to Fig. 9C , the user can further create project controls 300-500 by clicking the project creation control 24. In this embodiment, multiple project controls are arranged in order from top to bottom. However, the present application is not limited thereto. In other embodiments, multiple project controls may also have other arrangements, such as stacked arrangement, matrix arrangement, etc.

[0114] It is understood that the user can add their own options in the project controls 200 to 500. The method for the user to add options in the project controls 200 to 500 is substantially the same as the method for adding options in the project control 100, so the description in step S140 above can be referred to and will not be repeated.

[0115] After establishing multiple project controls, the user can also adjust the order of each project control. For example, when the project that the user has recently focused on is the "practice modeling poster" project, it is desired to adjust the position of the project control 400 upward.

[0116] For example, reference Fig. 10A In the initial state, the project control 400 (as an example of the second control) is located below the project controls 100 to 300 (as the first order). After the user right-clicks the title bar of the project control 400, the right-click menu 401 of the project control 400 can be called up. After the user selects the "top item" option in the right-click menu 401 (as an example of the eighth operation), the project control 400 can be moved to the top of the project control 100 (as the second order) (as an example of the eighth operation). Fig. 10B ). In other embodiments, the user may also adjust the order of the project controls in other ways. For example, the project control includes an up sub-control (not shown) or a down sub-control (not shown), and the user may adjust the order of the project control in the project controls by clicking the up sub-control / down sub-control on the project control. In other embodiments, the user may also adjust the order of the project controls by dragging the project controls. For example, when the user drags the project control 200 to the top of the project control 100, the arrangement positions of the project controls 100 and 200 may be swapped.

[0117] In addition, the user can also delete the created project control. Still taking the project control 400 as an example. Fig. 10A , the right-click menu 401 of the project control also includes a "remove this project" option. After the user clicks the "remove this project" option, the project control 400 can be deleted. It should be noted that when the project control is deleted, the file associated with the project control will not be deleted from the notebook.

[0118] The above describes the method of creating a project control. After the project control is created, the file associated with the project control (i.e., the project file of the operation project corresponding to the project control) can be opened with one click by operating the project control. The following is a detailed introduction.

[0119] refer to Fig.11 The method for opening a file provided in this embodiment includes the following steps:

[0120] S210 : The notebook displays the sidebar 20 in the right area of ​​the screen (as the first area), and displays the created project controls (at least one project control) in the sidebar 20 .

[0121] refer to Fig. 12A The user can call out the sidebar 20 by clicking the sidebar display control 21. The sidebar 20 includes project controls that the user has created, for example, project controls 100-500.

[0122] Each project control corresponds to a different homework project. For example, project control 100 corresponds to homework project M1 (ie, the "graduation project" project), project control 200 corresponds to homework project M2 (ie, the "photography portfolio production" project), and so on. I will not elaborate on them one by one.

[0123] Each item control includes at least one option in its setting area (e.g., content bar), and the option is associated with a file stored in the notebook. Fig. 12B The content bar 100b of the project control 100 includes 6 options (options 110 to 160 respectively), each option is associated with a different file, for example, option 110 is associated with the file "graduation design.doc", option 120 is associated with the file "material data.xls", ..., which will not be repeated one by one.

[0124] In this application, for the convenience of description, the options added in a certain project control setting area (e.g., content bar) are referred to as the options of the project control. For example, options 110 to 160 are the options of the project control 100. The project control and its options correspond to the same operation project. For example, the project control 100 and options 110 to 160 both correspond to the operation project M1. In addition, the file associated with the option of the project control is the file associated with the project control, and is also the project file of the operation project corresponding to the project control.

[0125] This embodiment does not limit the number of options in each project control, for example, 1, 5, 10, etc., which can be determined according to the specific number of project files.

[0126] By operating each project control, the project file of the operation project corresponding to the project control can be opened. The following description takes the project control 100 as an example. However, it can be understood that the method provided in this embodiment can be applied to any project control.

[0127] S220: The notebook receives an item opening operation (or “first operation”) for the item control 100 (as the first control).

[0128] In this embodiment, the project opening operation is specifically a double-click operation on the project control title bar. That is, when the user double-clicks the title bar 100a of the project control 100, the notebook receives the project opening operation for the project control 100. However, the present application is not limited thereto. In other embodiments, the project opening operation can be a single-click operation on the project control title bar, a single-click operation on a project control setting sub-control, etc.

[0129] S230: In response to receiving a project opening operation for the project control 100, the notebook opens the associated files of at least some options of the project control 100, wherein the window state of the associated files after being opened is determined based on the window state of the associated files when the project M1 was last closed (for the sake of narrative consistency, the operation of closing the project M1 will be introduced in step S240 below).

[0130] refer to Fig. 12B , the project control 100 includes 6 options (options 110-160), and the options 110-160 are respectively associated with files P1-P6. When the project M1 was last closed, the files P1-P6 could be in different states, for example, the files P1-P2 were in an open state, and the files P3-P6 were in a closed state. Fig.13 , the windows of file P1 and file P2 are located at different positions, for example, the window of file P1 is located on the left side of the screen, and the window of file P2 is located on the right side of the screen.

[0131] When the user wants to continue to complete the project M1, the user can double-click the title bar 100a of the project control 100 to reopen the project file of the project M1.

[0132] In some embodiments, reference Fig.14A When the user double-clicks the title bar 100a of the project control 100, the notebook opens the project files that were in the open state when the project M1 was last closed, specifically the associated file P1 of option 110 (as an example of the first option) and the associated file P2 of option 120 (as an example of the first option). Optionally, the window states of the files P1 and P2 when they are opened are the same as the window states of the files P1 and P2 when the project M1 was last closed (i.e., the same as the window states of the files P1 and P2 when the project M1 was last closed). Fig.13 In this way, the state of project M1 when it is opened is the same as the state of project M1 when it was last closed, which is helpful for users to quickly enter the project state. In other embodiments, the windows of files P1 and P2 when they are opened can also have the same size as the windows of files P1 and P2 when project M1 was last opened, but in different positions (for example, both are located on the left side of the screen).

[0133] In some embodiments, reference Fig. 14B , when the user double-clicks the title bar of the project control 100, the notebook opens all the project files of the project M1. That is, in addition to opening files P1 and P2, the notebook also opens the project files that were closed when the project M1 was closed last time, specifically, the associated file P3 of option 130 (as an example of the second option), the associated file P4 of option 140 (as an example of the second option), the associated file P5 of option 150 (as an example of the second option), and the associated file P6 of option 160 (as an example of the second option).

[0134] The window status of files P1 and P2 (i.e., the files that were open when project M1 was closed last time) when they are opened is the same as Fig.13 The states shown are the same, and the window states of files P3 to P6 (i.e., files that were in an open state when project M1 was last closed) when they are opened are in a full-screen state (as an example of a default state). Among them, the windows of files P3 to P6 are located at the bottom of other file windows (for example, windows of files P1 and P2), and the windows of files P3 to P6 are stacked in the order of the options corresponding to files P3 to P6. For example, the options corresponding to files P3 to P6 are options 130 to 160, respectively, and their arrangement order in the project control 100 is option 130, option 140, option 150, and option 160, respectively. Therefore, the stacking order of files P3 to P6 is file P3, file P4, file P5, and file P6 from top to bottom. In other embodiments, the window state of files P3 to P6 when they are opened may also be a minimized state (as an example of a default state).

[0135] In some embodiments, after receiving a project opening operation for the project control 100, the notebook opens the associated files of at least two options of the project control 100. In this way, the user can open at least two project files each time after performing a project opening operation, so as to improve the file opening efficiency.

[0136] S240: The notebook receives an item closing operation (or “second operation”) for the item control 100 .

[0137] Exemplarily, the project closing operation may be the same operation as the project opening operation (the operation of double-clicking the title bar of the project control). That is, after the user opens the project M1 by double-clicking the title bar 100a of the project control 100, if the user double-clicks the title bar 100a of the project control 100 again, the project M1 may be closed. In other embodiments, the project closing operation may also be an operation different from the project opening operation.

[0138] S250 : In response to receiving the project closing operation for the project control 100 , the notebook closes the project M1 (ie, closes the associated files of all options of the project control 100 ).

[0139] When the notebook receives the project closing operation for the project control 100, all project files of the project M1 are closed. Exemplarily, the notebook can save the project files before closing the project files.

[0140] It should be noted that the above is an exemplary description of the technical solution of the present application, and those skilled in the art may make other modifications.

[0141] For example, in this embodiment, the notebook closes the project M1 in response to the user's project closing operation on the project control 100. In other embodiments, the notebook can also close the project M1 when shutting down. The situation where the notebook is shut down includes the situation where the user actively shuts down the notebook, for example, the user shuts down the notebook by clicking the shutdown button of the notebook; it also includes the situation where the notebook automatically shuts down, for example, the notebook automatically shuts down due to low power, automatically restarts due to system upgrade, or is forced to shut down due to an accident (for example, immersion in water).

[0142] In this embodiment, no matter the notebook is shut down actively or passively, when the notebook is turned on next time, the user can open the project file of the project M1 by double-clicking the title bar 100a of the project control 100. Moreover, the window state of the project file after opening corresponds to (e.g., is the same as) the window state of the project file when the notebook was shut down last time, so that the user can quickly enter the project state.

[0143] Fig.15AThe module structure diagram of the notebook provided by the embodiment of the present application is shown. Fig.15A , the notebook can include a control manager, a file window manager, and a file manager.

[0144] Among them, the control manager can be used to draw controls, save control attribute information, respond to user control operations, etc. The file window manager can be used to open file windows, move / zoom file windows, record file window status information, etc. The file manager can be used to manage the storage of files in the notebook.

[0145] Fig. 15B The exemplary structure of the project control is shown by taking the project control 100 as an example. The structures of other project controls can refer to the structure of the project control 100. Fig. 15B , the item control 100 includes attribute information M100 and 6 options, each of which may include respective attribute information.

[0146] The property information of the project control 100 may include the name and state of the project control 100. The name of the project control 100 may be the project name of the project M1, and the state of the project control 100 indicates whether the project control 100 is in an open state or a closed state. The project control 100 may determine its state according to a user operation. For example, when a user opens the project M1 by double-clicking the title bar 100a of the project control 100, the project control 100 is in an open state; when the user closes the project M1 by double-clicking the title bar 100a of the project control 100 again, the project control 100 is in a closed state. Exemplarily, when the project control 100 is just created, its state is a closed state.

[0147] The property information of an option may include the file path, file name and window status of its associated file. When a user adds an option in the project control 100, the project control 100 may add the file path and file name of the associated file in the property information of its option. The following is a detailed introduction.

[0148] As mentioned above, the control manager can be Fig. 6E , Figure 6G , Fig. 7A , Figure 7B The method shown receives an option adding operation for item 100. Figure 6G The method shown adds options via the Select File dialog box 165; Figure 7B In the illustrated manner, options are added via the associated file desktop icon 33. In both manners, since the file manager is responsible for maintaining the storage path and file name of the associated file, the file path and file name of the associated file of its option can be provided to the project control 100 via the file manager.

[0149] Fig. 7A The illustrated method adds options through the taskbar icon 31 of the associated file. In this method, the taskbar can provide the file path and file name of the associated file of its option to the project control 100.

[0150] Fig. 6E In the illustrated method, a target file is selected from the opened files, and an option associated with the target file is added in the project control 100. In this method, the project control 100 can be opened by Fig.16 The steps shown obtain the file path and file name of the associated file.

[0151] Specifically, refer to Fig.16 The process of the project control 100 obtaining the file path and file name of the associated file may include the following steps (taking the file name and file path of the associated file P1 of option 110 as an example):

[0152] S310: Obtain window information of the currently opened file window. The window information includes a window handle and a window name. The window handle is used to uniquely identify the window, and the window name is usually the file name of the file corresponding to the window.

[0153] The file window manager stores the window information of the currently opened file windows. Fig. 6E When the user clicks the option to add the sub-control 162 and selects the "Opened File" option, the project control 100 can read the window information of the currently opened file window from the file window manager.

[0154] S320: Display the window name of the currently opened file window. For example, Fig. 6E , the project control 100 displays the window name of the currently opened window in the option add sub-control 162, for example, "college student shorthand.doc", "material data.xls", etc.

[0155] S330: According to the user selection operation, determine the target window (i.e., the file window of file P1) from the currently opened file windows. For example, when the user selects "College Student Shorthand.doc" in the option add sub-control 162, the project control 100 determines the window of "College Student Shorthand.doc (i.e., file P1)" as the target window.

[0156] S340: Obtain the file path of the file P1 according to the window handle of the target window.

[0157] The project control 100 can obtain the process ID of the process where the target window is located based on the window handle of the target window, and obtain all the files opened under this process according to the process ID. Generally, when a notebook opens a user file (for example, file P1), multiple supporting files will be opened in the file process, such as the template file of file P1, the picture resource file of file P1, etc.

[0158] After the notebook obtains the process ID of the process where the target window is located, it filters the files under this process and can determine the target file. For example, the project control 100 filters the files under the process according to the suffix name ".doc", and can obtain the target file as "College Student's Quick Notes.doc", and can obtain the file handle of the target file (i.e., file P1). According to the file handle, the project control 100 can further obtain the storage path of file P1.

[0159] S350: Create option 110, and save the file name and file path of project file P1 in the attribute information of option 110.

[0160] Reference Fig. 6F , the project control 100 adds option 110 to the content column 100b, and stores the file name and file path of file P1 in the attribute information of option 110. In this way, option 110 can be associated with project file P1. In addition, the project control 100 can also store the window handle and file handle of project file P1 in the attribute information of option 110.

[0161] Reference Fig. 15B , in addition to the file path and file name of the associated file, the attribute information of the option also includes the window state of the associated file (for example, the closed / opened state of the window, the window position, the window size). The window state of the associated file can be obtained from the file window manager.

[0162] Exemplarily, the window size and window position of the associated file can be determined by the screen coordinate system of the notebook. Fig.17 An exemplary setting method of the screen coordinate system C of the notebook is given. Reference Fig.17 , the origin of the screen coordinate system C is located at the upper left corner of the screen, the x-axis direction is the long side direction of the notebook screen, and the y-axis direction is the short side direction of the notebook screen. In other embodiments, the screen coordinate system C can also be other setting methods. For example, the origin of the screen coordinate system C is located at the center of the notebook screen.

[0163] The window position of the file can be the coordinate value (x, y) of the window setting point (e.g., the upper left corner vertex) in the screen coordinate system C. The window size includes the width W and height H of the window. The window width is the difference between the x coordinate of the right side and the x coordinate of the left side, and the height is the difference between the y coordinate of the bottom side and the y coordinate of the top side. The above coordinates can be pixel coordinates or size coordinates.

[0164] The following combination Fig.15A The notebook module structure diagram shown in FIG. 1 introduces a file opening method provided by an embodiment of the present application. In the following method, the project control 100 is used as an example of the project control 100, but it can be understood that the following method can be used for any project control created by the user, for example, the project controls 200 to 500. In addition, before the following steps are started, the project M1 is in a closed state, and the property information of the project control 100 and its various options is as follows: Fig. 15B shown.

[0165] refer to Fig.18 , the file opening method provided in the embodiment of the present application may include:

[0166] S410: The project control 100 receives a project opening operation.

[0167] For example, after the user double-clicks the title bar of the project control 100, the project control 100 receives the project opening operation. Fig.19 After receiving the project opening operation, the project control 100 can change the state in the attribute information M100 from closed to open. In addition, other details of step S310 not described can refer to the description of step S220, and will not be repeated here.

[0168] S420: The project control 100 sends a file opening request to the file window manager. The file opening request includes the file path, file name and window status information of the associated files (ie, files P1 to P6) of the project control 100.

[0169] As mentioned above, reference Fig. 15B The property information of the option of the project control 100 includes the file path, file name and window status information of the files P1 to P6. When the project control 100 receives the project opening operation, the above information can be sent to the file window manager to send a file opening request to the file window manager.

[0170] S430: The file window manager determines the files to be opened (ie, at least some of the files P1 to P6) according to the file opening request.

[0171] In some embodiments, the file to be opened is a file that was in an open state when the operation project M1 was last closed. In this embodiment, the file window manager can determine the file that was in an open state when the operation project M1 was last closed based on the window state information in the file open request. For example, referring to Fig. 15B , the window states of the associated files of option 110 and option 120 (ie, files P1 and P2) are open, so the file window manager determines that files P1 and P2 are files to be opened.

[0172] In other embodiments, the files to be opened are all project files of the operation project M1. In this embodiment, the file window manager can determine that the associated files of the project control 100 are files P1 to P6 (i.e., all project files of the project M1) according to the window state information in the file opening request, and therefore, the file window manager determines that files P1 to P6 are the files to be opened.

[0173] S440: The file window manager sets the window state of the file to be opened.

[0174] The file window manager first allocates a window handle for the file to be opened, and then uses the handle to set the window state of the file to be opened.

[0175] For example, for the file P1 to be opened, the file window manager allocates a window handle Hwnd1 for it. Then, the file window manager sets the window state of the file P1 through the interface function SetWindowPos(Hwnd1, pos1, size1, ...). Among them, the parameter pos1 is the window position coordinate of the file P1, and size1 is the window size of the file P1. Exemplarily, the file window manager can set the values ​​of pos1 and size1 according to the window state information of the file P1 in the file open request. For example, pos1 is set to (x1, y1), and size1 is set to (W1, H1). In this way, the window state of the file P1 after opening can be consistent with the window state recorded in option 110 (that is, the window state of the file P1 when the project M1 was last closed).

[0176] For another example, for the file P3 to be opened, the file window manager allocates a window handle Hwnd3 to it. Then, the file window manager sets the window state of the file P3 through the interface function SetWindowPos(Hwnd3,,,flag). Among them, the parameter flag is used to set the window state when the file P3 is opened. For example, when flag is set to 1, the file P3 is opened in the maximized state; when flag is set to 0, the file P3 is opened in the minimized state.

[0177] S450: The file window manager opens the file to be opened.

[0178] Specifically, the file window manager opens the file corresponding to the window handle through the window handle, for example, opens the file P1 through the window handle Hwnd1. It can be understood that the state of the file P1 after being opened is the window state set in step S440, for example, the window position is (x1, y1), and the window size is (W1, H1), which is the same as the window state of the file P1 when the project M1 was last closed.

[0179] The above steps S410 to S450 are the file opening method provided by the embodiment of the present application. Through steps S410 to S450, the project file of project M1 can be opened. After the project file is opened, the project control 100 can also monitor the window status of the project file, which can specifically include the following steps:

[0180] S510: The file window manager detects window changes of files P1 to P6.

[0181] When the user operates the file windows of the project files P1 to P6, the file window manager can monitor the window changes. The window changes may include one or more of the following situations:

[0182] (1) The file window changes from a closed state to an open state, or from an open state to a closed state;

[0183] (2) The position and size of the file window change. For example, when the user drags the file window, the position of the file window changes; when the user scales the file window, the size of the file window changes; when the user maximizes / minimizes the file window, the position and size of the file window change.

[0184] When the file window manager detects the window change of the project file, it can record the state of the window after the change. For example, when the window of file P1 changes from position (x1, y1) to (x1', y1'), the file window manager can record the window position (x1', y1') of file P1 after the change. For another example, when file P3 changes from the closed state to the open state, the file window manager records the opening event of file P3, and records the window position (x3, y3) and window size (W3, H3) of file P3 after it is opened.

[0185] S520: The file window manager sends window status update information of files P1 to P6 to the project control 100.

[0186] When the file window manager detects a window change, it sends the updated information of the window status to the project control. For example, after the file window manager detects a change in the window position of file P1, it sends the changed window position coordinates (x1', y1') to the project control 100. For another example, after the file window manager detects a change from a closed state to an open state of file P3, it sends the open event of file P3, as well as the window position (x3, y3) and window size (W3, H3) of file P3 after it is opened to the project control 100.

[0187] S530: The item control 100 changes the property information of the option according to the window status update information.

[0188] After receiving the window status update information sent by the project control 100, the project control 100 changes the property information of its options. Fig.18 When the window status update information includes the location coordinates (x1', y1') of file P1, the project control 100 updates the window position in option 110 to (x1', y1'); when the window status update information includes the opening event of file P3, the window position (x3, y3) and window size (W3, H3) after file P3 is opened, the project control 100 updates the window status of option 130 to open, and increases the window position (x3, y3) and window size (W3, H3).

[0189] The above steps S510-S530 are the changes in the attribute information of the project control 100 and its options when the user completes the project M1. According to the description in steps S510-S530, whenever the window status of files P1-P6 changes, the latest window status of files P1-P6 can be recorded in the project control 100.

[0190] Continue to refer Fig.18 This embodiment also provides a method for closing project M1, which specifically includes the following steps:

[0191] S610: The project control 100 receives a project closing operation.

[0192] For example, after the user double-clicks the title bar of the project control 100 again, the project control 100 receives the project closing operation. After receiving the project closing operation, the project control 100 can change the state in the attribute information M100 from open to closed. In addition, other undescribed details of step S610 can refer to the description of step S240 and are not repeated here.

[0193] S620: The project control 100 sends a file closing request to the file window manager.

[0194] After receiving the project closing operation, the project control 100 sends a file closing request to the file window manager. The file closing request may include the file path and file name of the files P1 to P6.

[0195] S630: The file window manager closes the opened files among files P1 to P6.

[0196] For example, the file window manager closes the file corresponding to the window handle through the window handle, for example, closes the file P1 through the window handle Hwnd1. Exemplarily, when closing a file, the file window manager may also save the file.

[0197] In addition, it can be understood that, since the project control 100 stores the latest window status of the files P1 to P6 , the window status stored in the project control 100 is the window status of the files P1 to P6 when the project M1 is closed.

[0198] The above is an exemplary introduction to the technical solution of the present application, and those skilled in the art may make other variations. For example, in some embodiments, when a user opens project M1 by double-clicking the title bar 100a of the project control 100, the notebook may automatically close other opened projects (e.g., project M2).

[0199] Reference now Fig. 20 , shown is a block diagram of an electronic device 400 according to one embodiment of the present application. The electronic device 400 may include one or more processors 401 coupled to a controller hub 403. For at least one embodiment, the controller hub 403 communicates with the processor 401 via a multi-drop bus such as a front side bus (FSB), a point-to-point interface such as a QuickPath Interconnect (QPI), or a similar connection 406. The processor 401 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 403 includes, but is not limited to, a graphics & memory controller hub (GMCH) (not shown) and an input / output hub (IOH) (which can be on a separate chip) (not shown), wherein the GMCH includes a memory and a graphics controller and is coupled to the IOH.

[0200] The electronic device 400 may also include a coprocessor 402 and a memory 404 coupled to a controller hub 403. Alternatively, one or both of the memory and the GMCH may be integrated within the processor (as described in this application), with the memory 404 and the coprocessor 402 being directly coupled to the processor 401 and the controller hub 403, with the controller hub 403 being in a single chip with the IOH.

[0201] The memory 404 may be, for example, a dynamic random access memory (DRAM), a phase change memory (PCM), or a combination of the two. The memory 404 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. The computer-readable storage medium stores instructions, specifically, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one of the processors, causing the electronic device 400 to implement the following: Figure 5 , Fig.11 , Fig.16 , Fig.18 When the instructions are executed on a computer, the computer executes the method disclosed in the embodiment of the present application.

[0202] In one embodiment, the coprocessor 402 is a special-purpose processor, such as, for example, a high-throughput Many Integrated Core (MIC) processor, a network or communication processor, a compression engine, a graphics processor, a general-purpose computing on graphics processing units (GPGPU), or an embedded processor. The optional nature of the coprocessor 402 is indicated by a dashed line in FIG. Fig. 20 middle.

[0203] In one embodiment, the electronic device 400 may further include a network interface (Network Interface Controller, NIC) 406. The network interface 406 may include a transceiver for providing a radio interface for the electronic device 400, and then communicating with any other suitable device (such as a front-end module, an antenna, etc.). In various embodiments, the network interface 406 may be integrated with other components of the electronic device 400. The network interface 406 may implement the functions of the communication unit in the above-mentioned embodiments.

[0204] The electronic device 400 may further include an input / output (I / O) device 405. The I / O 405 may include: a user interface designed to enable a user to interact with the electronic device 400; a peripheral component interface designed to enable peripheral components to interact with the electronic device 400; and / or a sensor designed to determine environmental conditions and / or location information related to the electronic device 400.

[0205] It is worth noting that Fig. 20 This is for illustrative purposes only. Fig. 20 It is shown that the electronic device 400 includes multiple devices such as a processor 401, a controller hub 403, a memory 404, etc.; however, in actual applications, the device using the methods of the present application may include only a portion of the devices in the electronic device 400, for example, it may include only the processor 401 and the network interface 406. Fig. 20 The properties of optional devices are shown with dashed lines.

[0206] Reference now Fig.21 , which is a block diagram of a system on chip (SoC) 500 according to an embodiment of the present application. Fig.21 In the FIG, similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SoCs. Fig.21 In the embodiment, SoC 500 includes: an interconnect unit 550 coupled to a processor 510; a system agent unit 580; a bus controller unit 590; an integrated memory controller unit 540; a group or one or more coprocessors 520, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (SRAM) unit 530; and a direct memory access (DMA) unit 560. In one embodiment, the coprocessor 520 includes a special-purpose processor, such as, for example, a network or communication processor, a compression engine, a general-purpose computing on graphics processing units (GPGPU), a high-throughput MIC processor, or an embedded processor.

[0207] Static random access memory (SRAM) unit 530 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. The computer-readable storage medium stores instructions, and more specifically, stores temporary and permanent copies of the instructions. The instructions may include: when executed by at least one of the processors, causing the SoC to implement the following: Figure 5 , Fig.11 , Fig.16 , Fig.18 When the instructions are executed on a computer, the computer executes the method disclosed in the embodiments of the present application.

[0208] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0209] Each method implementation mode of the present application can be implemented in the form of software, magnetic components, firmware, etc.

[0210] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0211] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described herein is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0212] One or more aspects of at least one embodiment may be implemented by representative instructions stored on a computer-readable storage medium, which represent various logics in a processor, and when the instructions are read by a machine, the machine makes logic for performing the techniques described herein. These representations, known as "Intellectual Property (IP) cores," may be stored on tangible computer-readable storage media and provided to multiple customers or production facilities to be loaded into a manufacturing machine that actually manufactures the logic or processor.

[0213] In some cases, the instruction converter can be used to convert instructions from a source instruction set to a target instruction set. For example, the instruction converter can transform (e.g., using static binary transformation, dynamic binary transformation including dynamic compilation), deform, simulate, or otherwise convert instructions into one or more other instructions to be processed by the core. The instruction converter can be implemented in software, hardware, firmware, or a combination thereof. The instruction converter can be on the processor, outside the processor, or partially on the processor and partially outside the processor.

Claims

1. A method for opening a file, used in an electronic device, characterized in that: The method comprises: The first area of ​​the electronic device screen displays a first function bar, the first function bar displays a first control and a plurality of options, the first control and the plurality of options correspond to a first job item, each of the options is associated with a file stored in the electronic device, and the plurality of files associated with the plurality of options include at least two files of different file types; receiving a first operation on the first control; In response to the first operation, files associated with at least two options among the plurality of options are opened.

2. The method according to claim 1, characterized in that The window state of the associated file after being opened is a first window state, and the first window state is determined based on the window state of the associated file when the first job item was closed last time.

3. The method according to claim 1, characterized in that The first operational items to be closed include: The electronic device receives a second operation on the first control and closes the first operation item; or When the electronic device is shut down, the first operation item is closed.

4. The method according to claim 1, characterized in that The at least two options include a first option, an associated file of the first option was in an open state when the first operation item was last closed, and a window state of the associated file of the first option after being opened corresponds to a window state of the associated file when the first operation item was last closed.

5. The method according to claim 4, characterized in that The at least two options include a second option, a file associated with the second option was in a closed state when the first job item was closed last time, and a window state in which the file associated with the second option is opened is a default state.

6. The method according to claim 5, characterized in that The default state is a minimized state or a full-screen state located at the bottom of other file windows.

7. The method according to claim 6, characterized in that The default state is a full screen state located at the bottom of other file windows; There are multiple second options, and the windows of the opened files associated with the multiple second options are stacked in sequence according to the arrangement order of the second options.

8. The method according to any one of claims 5 to 7, characterized in that: The associated file of the first option and the associated file of the second option are files of different file types.

9. The method according to any one of claims 5 to 7, characterized in that: In response to the first operation, a first application opens a file associated with the first option, and a second application opens a file associated with the second option, wherein the first application and the second application are the same application or different applications.

10. The method according to any one of claims 1 to 7, characterized in that: The file type includes at least one of the following types: picture, document, table, presentation, and three-dimensional model.

11. The method according to any one of claims 1 to 7, characterized in that: The plurality of files include at least one of the following file formats: .doc, .xls, .ppt, .psd, and .3dm.

12. The method according to claim 2, characterized in that: The window status includes the window size or window position of the associated file.

13. The method according to claim 1, characterized in that The first control includes an expandable area, which can be expanded or collapsed based on a third operation on the first control; wherein the multiple options are located in the expandable area.

14. The method according to claim 1, characterized in that The first control includes progress information of the first operation item.

15. The method according to claim 1, characterized in that The first function bar is a sidebar.

16. A method for creating a project shortcut, for use in an electronic device, characterized in that: The method comprises: Displaying a first function bar in a first area of ​​the electronic device screen; receiving a fourth operation on the first function bar; In response to the fourth operation, adding a first control in the first function bar, wherein the first control corresponds to a first job item; Adding a plurality of options in the setting area of ​​the first control, each of the options being associated with a file stored in the electronic device, and the plurality of files associated with the plurality of options including at least two files of different file types; The first control is used to perform response processing on the received first operation, and the response processing includes opening associated files of at least two options among the multiple options.

17. The method according to claim 16, characterized in that The window state of the associated file after being opened is a first window state, and the first window state is determined based on the window state of the associated file when the first job item was closed last time.

18. The method according to claim 16, characterized in that The multiple options include a first option, and the first option is associated with a first file; wherein adding the first option in the setting area of ​​the first control includes: receiving a fifth operation on the file icon of the first file, adding the first option in the setting area; or, receiving a sixth operation on the taskbar icon of the first file, adding the first option to the setting area; or, A seventh operation for the first control is received, and the first option is added to the setting area.

19. The method according to claim 16, characterized in that The setting area in the first control for adding the option is an expandable area, and the expandable area can be expanded or collapsed based on a third operation on the first control.

20. The method according to claim 16, characterized in that The method further comprises: receiving a fourth operation on the first function bar again; In response to the fourth operation received again, adding a second control in the first function bar, the second control corresponds to a second job item, and the first control and the second control are arranged in a first order; An eighth operation for the second control is received, and the arrangement order of the first control and the second control is adjusted from the first order to a second order.

21. The method according to claim 16, characterized in that The first control includes a project identifier of the first operation project; the method further includes: Receiving a ninth operation on the first control; The item identification in the first control is changed according to the ninth operation.

22. The method according to claim 16, characterized in that The method further comprises: A tenth operation for one of the plurality of options is received, and the one of the options is deleted from the setting area.

23. The method according to any one of claims 16 to 22, characterized in that: The file type includes at least one of the following types: picture, document, table, presentation, and three-dimensional model.

24. The method according to any one of claims 16 to 22, characterized in that: The plurality of files include at least one of the following file formats: .doc, .xls, .ppt, .psd, and .3dm.

25. An electronic device, characterized in that: include: a memory for storing instructions executed by one or more processors of the electronic device; A processor, when the processor executes the instructions in the memory, can cause the electronic device to execute the method according to any one of claims 1 to 24.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 24.