CN113504861A - Desktop management method and device and computing equipment - Google Patents

Desktop management method and device and computing equipment Download PDF

Info

Publication number
CN113504861A
CN113504861A CN202110863479.1A CN202110863479A CN113504861A CN 113504861 A CN113504861 A CN 113504861A CN 202110863479 A CN202110863479 A CN 202110863479A CN 113504861 A CN113504861 A CN 113504861A
Authority
CN
China
Prior art keywords
desktop
screen
grid
file
window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110863479.1A
Other languages
Chinese (zh)
Inventor
张宇
王春林
李强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202110863479.1A priority Critical patent/CN113504861A/en
Publication of CN113504861A publication Critical patent/CN113504861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Landscapes

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

Abstract

The invention discloses a desktop management method, which is executed in computing equipment, wherein the computing equipment comprises a plurality of screens and is suitable for managing desktop windows on the plurality of screens to display desktop files, and the method comprises the following steps: acquiring screen information of each screen, wherein the screen information comprises the resolution and the coordinates of the screen; creating a corresponding desktop window on each screen based on the corresponding screen information; for each screen, determining the size of a grid according to the size of the desktop file icon, and drawing a plurality of grids in a desktop window on the screen based on the resolution and the grid size of the screen, wherein each grid is suitable for displaying one desktop file icon; acquiring a plurality of desktop files in the computing equipment, and distributing a plurality of corresponding desktop file icons to a plurality of desktop windows; and drawing the assigned one or more desktop file icons in the one or more grids of each desktop window. The invention also discloses a corresponding desktop management device and a corresponding computing device.

Description

Desktop management method and device and computing equipment
Technical Field
The invention relates to the technical field of computers, in particular to a desktop management method, a desktop management device and computing equipment.
Background
Desktop Environment (Desktop Environment) refers to a display Environment that displays elements on a computer screen, including a Desktop, a taskbar, and the like. Background pictures and file icons are typically displayed on the desktop, where the background picture is displayed full screen and the file icon is displayed in the screen usable area (screen area minus taskbar area).
The expansion screen is that a host computer is connected with a plurality of displays, and the expansion screen is favorable for improving the working efficiency and the satisfaction of users. When multiple displays are connected to a host, the desktop program generates multiple desktop windows to match the multiple displays.
In the existing desktop management mode of the Linux operating system, in the multi-screen extension mode, only the desktop window on the main screen is generally supported to display and operate the desktop files, while the desktop windows on other screens except the main screen only draw desktop wallpaper and do not have the functions of displaying the desktop files and operating and managing the files. Or, in the multi-screen expansion mode, a large desktop window is created according to the resolution of the maximum screen and extends to other screens, and actually a desktop window is displayed on a plurality of screens together.
Therefore, a desktop management method is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides a desktop management method and a desktop management apparatus in an attempt to solve or at least alleviate the above-existing problems.
According to an aspect of the present invention, there is provided a desktop management method, executed in a computing device including a plurality of screens, adapted to manage desktop windows on the plurality of screens to display desktop files, the method comprising the steps of: acquiring screen information of each screen, wherein the screen information comprises resolution and coordinates of the screen; creating a corresponding desktop window on each screen based on the corresponding screen information; for each screen, determining the size of a grid according to the size of the desktop file icon, and drawing a plurality of grids in a desktop window on the screen based on the resolution and the grid size of the screen, wherein each grid is suitable for displaying one desktop file icon; acquiring a plurality of desktop files in the computing equipment, and distributing a plurality of corresponding desktop file icons to a plurality of desktop windows; and drawing the assigned one or more desktop file icons in the one or more grids of each desktop window.
Alternatively, in the desktop management method according to the present invention, the step of drawing a plurality of grids in the desktop window on the screen includes: determining the size of a desktop window on a screen according to the resolution of the screen, and calculating the number of grids according to the size of the desktop window on the screen and the size of the grids; and drawing a plurality of grids in corresponding quantity on the desktop window, wherein the grids are arranged on the desktop window in multiple rows and multiple columns.
Optionally, in the desktop management method according to the present invention, the step of assigning a plurality of desktop file icons to a plurality of desktop windows includes: acquiring a configuration file, and determining position information of one or more desktop file icons based on the configuration file, wherein the position information comprises desktop window information and grid coordinates; and allocating the desktop file icons to grids of corresponding desktop windows based on the position information of the desktop file icons.
Optionally, in the desktop management method according to the present invention, the method further includes: and if the configuration file does not have the position information corresponding to the one or more desktop file icons, traversing the grid information corresponding to each desktop window in the configuration file so as to search one or more vacant grids based on the grid information, and sequentially allocating the one or more desktop file icons to the searched vacant grids.
Optionally, in the desktop management method according to the present invention, after assigning one or more desktop file icons to the found vacancy grids in sequence, the method further includes the steps of: and updating the use state of each vacant grid into an occupied state in the configuration file, and recording the file name corresponding to the desktop file icon occupying the grid.
Optionally, in the desktop management method according to the present invention, the method further includes: acquiring the grid information of each desktop window, and generating a configuration file based on the grid information of each desktop window; the grid information comprises the number of grids on a desktop window, grid coordinates and a use state of each grid; the using state comprises an occupation state or a vacant state, and the occupation state comprises a file name corresponding to a desktop file icon occupying the grid.
Optionally, in the desktop management method according to the present invention, after assigning a plurality of desktop file icons to a plurality of desktop windows, the method includes the steps of: and respectively sending corresponding grid information to each desktop window, so that the desktop window determines one or more desktop file icons distributed to the desktop window and grid coordinates corresponding to each desktop file icon based on the grid information, and drawing each desktop file icon distributed to the desktop window into a corresponding grid based on the grid coordinates corresponding to each desktop file icon.
Optionally, in the desktop management method according to the present invention, the method further includes: receiving a desktop file adding instruction, acquiring grid information corresponding to a desktop window of a first screen in a configuration file, and searching a vacancy grid on the desktop window of the first screen based on the grid information; if no vacancy grids exist on the desktop window of the first screen, obtaining grid information corresponding to the desktop window of the next screen in the configuration file, and searching vacancy grids on the desktop window of the next screen based on the grid information; and after the vacancy grids are found, drawing desktop file icons corresponding to the desktop files in the vacancy grids through desktop windows where the vacancy grids are located.
Optionally, in the desktop management method according to the present invention, the method further includes: receiving an instruction of deleting a desktop file, and determining grids and grid coordinates in a desktop window corresponding to the desktop file icon; deleting the desktop file icon, and changing the use state of the grid into a vacant state, so that the desktop window draws the grid into a vacant state based on the grid coordinates.
Optionally, in the desktop management method according to the present invention, the step of creating a corresponding desktop window on each screen based on the corresponding screen information includes: the method comprises the steps of determining the size of a desktop window based on the resolution of a screen, determining the origin coordinates of the desktop window based on the origin coordinates of the screen, and creating a corresponding desktop window on the screen based on the size and the origin coordinates of the desktop window.
Optionally, in the desktop management method according to the present invention, the desktop file icon includes an icon body and a file name.
According to an aspect of the present invention, there is provided a desktop management apparatus adapted to manage desktop windows on a plurality of screens of a computing device to display desktop files, the apparatus comprising: the management module is suitable for acquiring screen information of each screen, and the screen information comprises the resolution and the coordinates of the screen; creating a corresponding desktop window on each screen based on the corresponding screen information; for each screen, determining the size of a grid according to the size of the desktop file icon, and drawing a plurality of grids in a desktop window on the screen based on the resolution and the grid size of the screen, wherein each grid is suitable for displaying one desktop file icon; acquiring a plurality of desktop files in the computing equipment, and distributing a plurality of corresponding desktop file icons to a plurality of desktop windows; and the desktop windows are connected with the management module, are respectively arranged on corresponding screens, are suitable for receiving one or more desktop file icons distributed by the management module and are suitable for drawing the distributed one or more desktop file icons in one or more grids of the desktop windows.
According to an aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the desktop management method as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method as described above.
According to the technical scheme, the invention provides the desktop management method and the device, desktop windows on a plurality of screens can be managed under an extended screen to display desktop files, the plurality of screens can be arranged in a user-defined mode, and the resolution ratios of the plurality of screens can be different. By drawing a plurality of rows and columns of grids on each desktop according to the resolution and the icon size of each screen, a plurality of desktop file icons can be neatly arranged on a desktop window, and the problem that a user cannot operate due to the fact that the desktop file icons exceed the area of the desktop window is avoided.
Further, according to the technical scheme of the invention, the desktop window of each screen under the extended screen can be used for displaying and operating the desktop file. Moreover, the desktop files can be reasonably distributed to the desktop windows of all screens to display corresponding desktop file icons, so that the desktop files can be clearly and clearly displayed by the plurality of desktop windows, and the use experience of a user can be improved.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a desktop management method 200 according to one embodiment of the invention;
FIG. 3 shows a schematic diagram of a desktop management apparatus 300 according to one embodiment of the invention;
FIGS. 4 a-4 e illustrate how multiple screens are combined according to one embodiment of the present invention; and
FIG. 5 illustrates a grid schematic drawing of a desktop window rendered in two screens of different resolution sizes in accordance with one embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic block diagram of an example computing device 100.
As shown in FIG. 1, in a basic configuration 102, a computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
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 level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The 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. The 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.
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, the application 122 can be arranged to execute instructions on an operating system with program data 124 by one or more processors 104.
Computing device 100 also includes a storage device 132, storage device 132 including removable storage 136 and non-removable storage 138.
Computing device 100 may also include a storage interface bus 134. The storage interface bus 134 enables communication from the 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, applications 122, and data 124 may be stored on removable storage 136 and/or non-removable storage 138, and loaded into system memory 106 via storage interface bus 134 and executed by the one or more processors 104 when the computing device 100 is powered on or the applications 122 are to be executed.
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. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may 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., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in a manner that encodes information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a personal computer including both desktop and notebook computer configurations. Of course, computing device 100 may also be implemented as part of a small-form factor portable (or mobile) electronic device such as a cellular telephone, a digital camera, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-watch device, a personal headset, an application specific device, or a hybrid device that include any of the above functions. And may even be implemented as a server, such as a file server, a database server, an application server, a WEB server, and so forth. The embodiments of the present invention are not limited thereto.
In an embodiment in accordance with the invention, computing device 100 is configured to perform a desktop management method 200 in accordance with the invention. Wherein the operating system of the computing device 100 comprises a plurality of program instructions for executing the desktop management method 200 of the present invention, such that the desktop management method 200 of the present invention can be executed in the computing device 100.
According to an embodiment of the present invention, desktop management apparatus 300 is included on an operating system of computing device 100, and a plurality of program instructions for executing desktop management method 200 of the present invention are included in desktop management apparatus 300, so that desktop management method 200 of the present invention can be executed in desktop management apparatus 300.
FIG. 2 illustrates a flow diagram of a desktop management method 200 according to one embodiment of the invention. Desktop management method 200 may be performed in desktop management apparatus 300 of a computing device (e.g., computing device 100 described above). It should be noted that the method 200 of the present invention can be used to extend the management of multiple desktop windows under a screen across multiple screens.
According to embodiments of the present invention, the computing device 100 includes multiple screens that are connected to a computing device host. According to the desktop management method 200 of the present invention, desktop windows on multiple screens of the computing device 100, each of which is adapted to create a corresponding desktop window, may be managed to display desktop files, and each desktop window may draw and display multiple desktop files, for example, drawing desktop files in the form of icons.
It should be noted that the desktop file is a file in a desktop directory, and the desktop directory may include one or more desktop files, and each desktop file may include a corresponding desktop file icon. The desktop window can draw the desktop files in the desktop window in the form of corresponding desktop file icons and present the desktop files to the user through the desktop window, so that the user can manage or operate the desktop files by operating the corresponding desktop file icons in the desktop window.
As shown in fig. 2, the method 200 begins at step S210.
In step S210, screen information of each screen is acquired, the screen information including a resolution and coordinates of the screen.
It should be noted that the resolution and the coordinates of each screen under the extended screen are not limited in the present invention, and the resolution of the plurality of screens may be the same or different. And, a plurality of screens can be arranged in a customized manner, and the plurality of screens can be arranged in a rectangular area or a non-rectangular area.
In the embodiment of the present invention, the desktop management method 200 supports various screen combination modes under the extended screen, which is described in fig. 4a to 4e, and includes: a combination of rectangular arrangements with the same resolution (see fig. 4a and 4b), a combination of different resolutions (see fig. 4c), a diagonal combination (see fig. 4d), and an irregular combination (see fig. 4 e).
Subsequently, in step S220, a corresponding desktop window is created on each screen based on the corresponding screen information.
In one embodiment, for each screen, a size of the desktop window is determined based on a resolution of the screen, origin coordinates of the desktop window are determined based on the origin coordinates of the screen, and a corresponding desktop window is created on the screen based on the size of the desktop window and the origin coordinates. Here, the size of the desktop window on the screen is the same as the resolution of the screen, and the origin coordinates of the desktop window are the origin coordinates of the screen. Therefore, a desktop window matched with the size of the screen is displayed on each screen, and the desktop window just covers the whole screen.
Subsequently, in step S230, for each screen, a mesh size is determined according to the desktop file icon size, and a plurality of meshes for displaying the desktop file icons are drawn in the desktop window on the screen based on the resolution of the screen and the mesh size.
Here, each grid drawn may display one desktop file icon, and the size of each grid is greater than or equal to the size of the desktop file icon. And the width and the height of each drawn grid are the same, and each desktop window can be covered by a plurality of drawn grids.
FIG. 5 illustrates a grid schematic drawing of a desktop window rendered in two screens of different resolution sizes in accordance with one embodiment of the present invention. Wherein the dashed lines in figure 5 represent the desktop window area.
It should be noted that the size of the desktop file icon corresponding to each desktop file in the computing device 100 may be a preset fixed size, and at this time, the grid size may be determined based on the preset fixed size. The size of the desktop file icon may also be a preset range interval, the width and height of each desktop file icon must not exceed the preset range interval, and at this time, the size of the grid may be determined based on the maximum value of the preset range interval for the desktop file icon, so that each desktop file icon may be placed in the grid.
In one embodiment, when multiple grids for displaying desktop file icons are drawn in a desktop window on a screen, the size of the desktop window on the screen can be determined according to the resolution of the screen, the number of grids suitable for drawing on the screen can be calculated according to the size of the desktop window on the screen and the size of the grids, and then a corresponding number of grids can be drawn on the desktop window on the screen. As shown in fig. 5, the multiple grids finally drawn are arranged on the desktop window in multiple rows and multiple columns. Therefore, the desktop file icons can be arranged on the desktop window in order, and the problem that the desktop file icons exceed the area of the desktop window to cause that a user cannot operate is avoided.
It should be appreciated that the number of columns of the grid may be calculated by dividing the width of the desktop window by the grid width, and the number of rows of the grid may be calculated by dividing the height of the desktop window by the height of the grid. The value obtained by multiplying the number of rows by the number of columns is the number of grids suitable for drawing on the desktop window of the screen, i.e., the total number of desktop file icons that the desktop window can accommodate.
Subsequently, in step S240, a plurality of desktop files in the computing device, here, a plurality of desktop files under a desktop directory in the computing device, are acquired. Then, a plurality of desktop file icons corresponding to the plurality of desktop files are allocated to the plurality of desktop windows.
Finally, in step S250, the assigned one or more desktop file icons are drawn in the one or more grids of each desktop window. Here, each desktop window may draw a desktop file icon assigned to its own desktop window, respectively.
In one embodiment, the rendered desktop file icon may include an icon ontology and a file name of the desktop file.
According to one embodiment, after drawing a plurality of meshes in a desktop window on each screen, the desktop management apparatus may acquire mesh information of each desktop window and generate a configuration file based on the acquired mesh information of each desktop window. The grid information of the desktop window comprises: the number of grids on the desktop window, and the grid coordinates and usage status of each grid on the desktop window. The usage state includes an occupied state and a vacant state, and the occupied state of the grid includes a file name corresponding to a desktop file icon occupying the grid. Specifically, if a grid is determined to be occupied according to grid information, it is indicated that the grid is occupied by a desktop file icon, and the desktop file icon is suitable for being displayed in the grid, in other words, the desktop file icon is suitable for being allocated to the grid for display. In this case, the grid information includes a file name corresponding to the desktop file icon occupying the grid. And if the grid is determined to be in the vacant state according to the grid information, the grid is not occupied by any desktop file icon and is in the vacant state of the desktop file icon to be allocated.
It should be noted that a grid of empty states (simply "empty grid") is a grid that can be selected to assign desktop file icons when there is a need to assign desktop file icons.
It should be appreciated that the generated configuration file includes grid information corresponding to each desktop window. Therefore, the grid information corresponding to each desktop window is obtained from the configuration file, so that the information such as the coordinate of each grid on the desktop window, the occupied use state, the file name corresponding to the occupied desktop file icon and the like can be determined. Also, location information corresponding to one or more desktop file icons (i.e., desktop file icons occupying a grid on a desktop window) may also be determined from the configuration file, where the location information includes desktop window information corresponding to the desktop file icons, and grid coordinates on the desktop window. In addition, one or more desktop file icons allocated to the desktop window and grid coordinates corresponding to each desktop file icon can be determined according to grid information corresponding to the desktop window.
According to one embodiment, when a plurality of desktop file icons are allocated to a plurality of desktop windows, a configuration file may be acquired, and location information of one or more desktop file icons may be determined based on the configuration file. The position information comprises desktop window information of the desktop file icon and grid coordinates on the desktop window. In this way, the corresponding desktop file icon may be assigned to the grid of the corresponding desktop window according to the determined location information of the desktop file icon.
It should be noted that, when a plurality of desktop file icons are allocated to a plurality of desktop windows, if one or more desktop file icons are in an unallocated state, no position information corresponding to one or more desktop file icons exists in a configuration file, and the desktop window and grid coordinates to which one or more desktop file icons are to be allocated cannot be determined according to the configuration file; alternatively, when all desktop file icons need to be rearranged, the desktop window and grid coordinates to which each desktop file icon will be assigned cannot be determined according to the configuration file. Based on the above-described scenario, the grid information corresponding to each desktop window in the configuration file may be traversed in screen order to find one or more null grids based on the grid information. In other words, the mesh information corresponding to the desktop window of each screen is sequentially obtained from the configuration file according to the screen sequence, and each time the mesh information corresponding to one desktop window is obtained, one or more meshes in the vacancy state in the mesh information are searched until a sufficient number of vacancy meshes are searched. Specifically, the vacancy grids on the first desktop window are searched based on the grid information corresponding to the first desktop window, if the vacancy grids on the first desktop window are not enough, the vacancy grids on the next desktop window are searched based on the grid information corresponding to the next desktop window, and the like until a sufficient number of vacancy grids are found. Here, the number of empty grids found for supply and demand corresponds to the number of desktop file icons.
It should be noted that in the process of traversing the mesh information and searching the vacancy mesh, one or more desktop file icons are sequentially assigned to the searched vacancy mesh in sequence. Here, each time a vacancy grid is found, one desktop file icon to be allocated is allocated to the vacancy grid based on the order of the desktop file icons. In this way, one or more desktop file icons may ultimately be assigned to one or more null grids.
It should also be noted that after one or more desktop file icons are sequentially assigned to the found one or more vacancy grids, the usage status of each vacancy grid to which a desktop file icon has been assigned may be updated in the configuration file, i.e., the usage status of the vacancy grid is updated to the occupied status, and the file name corresponding to the desktop file icon occupying the grid is recorded. In this way, the location information of the desktop file icons may be subsequently determined based on the configuration file, and the desktop file icons may be directly assigned to the grid on the corresponding desktop window based on the corresponding location information.
According to one embodiment, after assigning a plurality of desktop file icons to a plurality of desktop windows, the desktop management device 300 transmits mesh information corresponding to the desktop windows to each of the desktop windows, respectively. Specifically, the desktop window on each screen may acquire mesh information corresponding to the desktop window from a configuration file of the desktop management apparatus 300 by communicating with the desktop management apparatus 300, and each desktop window may draw a desktop file icon allocated on a mesh of its own desktop window based on the mesh information. In this way, each desktop window may determine one or more desktop file icons to assign based on the corresponding grid information and grid coordinates corresponding to each desktop file icon, and draw each desktop file icon assigned to into a corresponding grid based on the grid coordinates corresponding to each desktop file icon. While the grid to which no desktop file icon is assigned (i.e., in an unoccupied slot state) is set to null.
In an implementation manner, the desktop window may calculate, based on grid coordinates corresponding to the desktop file icon, an area where the grid draws the desktop file icon in the desktop window, specifically, a middle abscissa value of the desktop file icon in the desktop window may be obtained by multiplying a grid abscissa value by a grid width, a middle ordinate value of the desktop file icon in the desktop window may be obtained by multiplying a grid ordinate value by a grid height, and then, each allocated desktop file icon may be drawn into a corresponding grid based on the middle abscissa value and the middle ordinate value.
According to one embodiment, when a user requests to add a desktop file on the desktop, the desktop management apparatus 125 receives an instruction from the user to add a desktop file on the desktop, and then draws a desktop file icon corresponding to the desktop file. Specifically, starting from the first screen, obtaining grid information corresponding to the desktop window of the first screen in the configuration file, and searching for a vacancy grid currently in a vacancy state on the desktop window of the first screen based on the grid information. If no vacancy grids exist on the desktop window of the first screen, grid information corresponding to the desktop window of the next screen is obtained, and the vacancy grids in the vacancy state currently on the desktop window of the next screen are searched based on the grid information until the vacancy grids are searched. And after the vacancy grids are found, drawing the desktop file icons in the vacancy grids through the desktop windows where the vacancy grids are located.
According to one embodiment, when a user requests to delete a desktop file in a desktop window, the desktop management device 125 receives an instruction to delete the desktop file, and determines a grid and grid coordinates in the desktop window where a desktop file icon corresponding to the desktop file is located. And then deleting the desktop file icon, changing the use state of the grid corresponding to the desktop file icon in the configuration file, and changing the original occupation state into a vacant state. In turn, the desktop window may be positioned to the grid based on the corresponding grid coordinates and the grid rendered empty.
FIG. 3 shows a schematic diagram of a desktop management apparatus 300 according to an embodiment of the invention. Desktop management apparatus 300 resides in a computing device, such as computing device 100 described above. The computing device may include multiple screens. Desktop management apparatus 300 manages desktop windows displaying desktop files on multiple screens of a computing device by performing desktop management method 200 of the present invention.
As shown in fig. 3, the desktop management apparatus 300 includes a management module 310, and a plurality of desktop windows 320, wherein each of the desktop windows is disposed on a corresponding one of the screens. Each of the desktop windows 320 is coupled to the management module 310 to communicate with the management module 310 to enable the management module 310 to manage the plurality of desktop windows 320 to display desktop files.
The management module 310 may acquire screen information of each screen, the screen information including a resolution and coordinates of the screen. Subsequently, a corresponding desktop window is created on each screen based on the corresponding screen information. For each screen, the management module 310 determines a grid size from the desktop file icon size and draws multiple grids in the desktop window on the screen based on the resolution of the screen and the grid size, where each grid is adapted to display one desktop file icon. Subsequently, the management module 310 obtains a plurality of desktop files in the computing device and assigns a corresponding plurality of desktop file icons to a plurality of desktop windows.
It should be noted that the management module 310 is configured to execute the foregoing steps S210 to S240, and specific processing logic of the management module 310 is as described in the foregoing steps S210 to S240 in the method 200, and is not described herein again.
Each desktop window 320 may receive one or more desktop file icons assigned by the management module and draw the assigned one or more desktop file icons in one or more grids of the desktop window. It should be noted that each desktop window 320 is used to execute the foregoing step S250, and the specific processing logic of the desktop window 320 refers to the foregoing description of the step S250 in the method 200, which is not described herein again.
According to the desktop management scheme, desktop windows on a plurality of screens can be managed under the extended screen to display desktop files, the plurality of screens can be arranged in a user-defined mode, and the resolution ratios of the plurality of screens can be different. By drawing a plurality of rows and columns of grids on each desktop according to the resolution and the icon size of each screen, a plurality of desktop file icons can be neatly arranged on a desktop window, and the problem that a user cannot operate due to the fact that the desktop file icons exceed the area of the desktop window is avoided.
In addition, according to the desktop management scheme of the present invention, the desktop window of each screen under the extended screen can be used to display and manipulate the desktop files. Moreover, the desktop files can be reasonably distributed to the desktop windows of all screens to display corresponding desktop file icons, so that the desktop files can be clearly and clearly displayed by the plurality of desktop windows, and the use experience of a user can be improved.
A8, the method according to any one of A1-A7, further comprising the steps of: receiving a desktop file adding instruction, acquiring grid information corresponding to a desktop window of a first screen in a configuration file, and searching a vacancy grid on the desktop window of the first screen based on the grid information; if no vacancy grids exist on the desktop window of the first screen, obtaining grid information corresponding to the desktop window of the next screen in the configuration file, and searching vacancy grids on the desktop window of the next screen based on the grid information; and after the vacancy grids are found, drawing desktop file icons corresponding to the desktop files in the vacancy grids through desktop windows where the vacancy grids are located.
A9, the method according to any one of A1-A8, further comprising the steps of: receiving an instruction of deleting a desktop file, and determining grids and grid coordinates in a desktop window corresponding to the desktop file icon; deleting the desktop file icon, and changing the use state of the grid into a vacant state, so that the desktop window draws the grid into a vacant state based on the grid coordinates.
A10, the method of any one of A1-A9, wherein the step of creating a respective desktop window on each screen based on respective screen information comprises: the method comprises the steps of determining the size of a desktop window based on the resolution of a screen, determining the origin coordinates of the desktop window based on the origin coordinates of the screen, and creating a corresponding desktop window on the screen based on the size and the origin coordinates of the desktop window.
A11, the method according to any one of claims 1-10, wherein the desktop file icon includes an icon ontology and a file name.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include 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. Wherein the memory is configured to store program code; the processor is configured to execute the multilingual spam-text recognition method of the present invention according to instructions in said program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
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 a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (10)

1. A desktop management method, executed in a computing device comprising a plurality of screens, adapted to manage desktop windows on the plurality of screens to display desktop files, the method comprising the steps of:
acquiring screen information of each screen, wherein the screen information comprises resolution and coordinates of the screen;
creating a corresponding desktop window on each screen based on the corresponding screen information;
for each screen, determining the size of a grid according to the size of the desktop file icon, and drawing a plurality of grids in a desktop window on the screen based on the resolution and the grid size of the screen, wherein each grid is suitable for displaying one desktop file icon;
acquiring a plurality of desktop files in the computing equipment, and distributing a plurality of corresponding desktop file icons to a plurality of desktop windows; and
the assigned one or more desktop file icons are drawn in one or more grids of each desktop window.
2. The method of claim 1, wherein drawing a plurality of grids in an on-screen desktop window comprises:
determining the size of a desktop window on a screen according to the resolution of the screen, and calculating the number of grids according to the size of the desktop window on the screen and the size of the grids;
and drawing a plurality of grids in corresponding quantity on the desktop window, wherein the grids are arranged on the desktop window in multiple rows and multiple columns.
3. The method of any of claims 1-2, wherein assigning a plurality of desktop file icons to a plurality of desktop windows comprises:
acquiring a configuration file, and determining position information of one or more desktop file icons based on the configuration file, wherein the position information comprises desktop window information and grid coordinates;
and allocating the desktop file icons to grids of corresponding desktop windows based on the position information of the desktop file icons.
4. The method of claim 3, further comprising the steps of:
and if the configuration file does not have the position information corresponding to the one or more desktop file icons, traversing the grid information corresponding to each desktop window in the configuration file so as to search one or more vacant grids based on the grid information, and sequentially allocating the one or more desktop file icons to the searched vacant grids.
5. The method of claim 4, wherein after assigning one or more desktop file icons to the located slot grid in sequence, further comprising the steps of:
and updating the use state of each vacant grid into an occupied state in the configuration file, and recording the file name corresponding to the desktop file icon occupying the grid.
6. The method according to any one of claims 1-5, further comprising the step of:
acquiring the grid information of each desktop window, and generating a configuration file based on the grid information of each desktop window;
the grid information comprises the number of grids on a desktop window, grid coordinates and a use state of each grid; the using state comprises an occupation state or a vacant state, and the occupation state comprises a file name corresponding to a desktop file icon occupying the grid.
7. The method of any of claims 1-6, wherein after assigning the plurality of desktop file icons to the plurality of desktop windows, comprising the steps of:
and respectively sending corresponding grid information to each desktop window, so that the desktop window determines one or more desktop file icons distributed to the desktop window and grid coordinates corresponding to each desktop file icon based on the grid information, and drawing each desktop file icon distributed to the desktop window into a corresponding grid based on the grid coordinates corresponding to each desktop file icon.
8. A desktop management apparatus adapted to manage desktop windows displaying desktop files on multiple screens of a computing device, the apparatus comprising:
the management module is suitable for acquiring screen information of each screen, and the screen information comprises the resolution and the coordinates of the screen; creating a corresponding desktop window on each screen based on the corresponding screen information; for each screen, determining the size of a grid according to the size of the desktop file icon, and drawing a plurality of grids in a desktop window on the screen based on the resolution and the grid size of the screen, wherein each grid is suitable for displaying one desktop file icon; acquiring a plurality of desktop files in the computing equipment, and distributing a plurality of corresponding desktop file icons to a plurality of desktop windows; and
and the desktop windows are connected with the management module, are respectively arranged on corresponding screens, are suitable for receiving one or more desktop file icons distributed by the management module and are suitable for drawing the distributed one or more desktop file icons in one or more grids of the desktop windows.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-7.
10. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-7.
CN202110863479.1A 2021-07-29 2021-07-29 Desktop management method and device and computing equipment Pending CN113504861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110863479.1A CN113504861A (en) 2021-07-29 2021-07-29 Desktop management method and device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110863479.1A CN113504861A (en) 2021-07-29 2021-07-29 Desktop management method and device and computing equipment

Publications (1)

Publication Number Publication Date
CN113504861A true CN113504861A (en) 2021-10-15

Family

ID=78014515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110863479.1A Pending CN113504861A (en) 2021-07-29 2021-07-29 Desktop management method and device and computing equipment

Country Status (1)

Country Link
CN (1) CN113504861A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237449A (en) * 2021-12-16 2022-03-25 统信软件技术有限公司 Icon processing method, computing device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030189529A1 (en) * 2002-04-04 2003-10-09 International Business Machines Corporation Modular display device
CN104407779A (en) * 2014-12-15 2015-03-11 北京国双科技有限公司 Arrangement display method and device for graphical interface
CN106681674A (en) * 2015-11-05 2017-05-17 丰唐物联技术(深圳)有限公司 Display control method and system of virtual reality display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030189529A1 (en) * 2002-04-04 2003-10-09 International Business Machines Corporation Modular display device
CN104407779A (en) * 2014-12-15 2015-03-11 北京国双科技有限公司 Arrangement display method and device for graphical interface
CN106681674A (en) * 2015-11-05 2017-05-17 丰唐物联技术(深圳)有限公司 Display control method and system of virtual reality display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237449A (en) * 2021-12-16 2022-03-25 统信软件技术有限公司 Icon processing method, computing device and readable storage medium
CN114237449B (en) * 2021-12-16 2024-03-01 统信软件技术有限公司 Icon processing method, computing device and readable storage medium

Similar Documents

Publication Publication Date Title
JP2018518733A (en) File operation method and apparatus
CN112214329A (en) Memory management method, device, equipment and computer readable storage medium
JP4537771B2 (en) Method, computer readable medium and system for changing the size of a database
CN110928803B (en) Memory management method and device
CN112988103B (en) Data display method and computing device
CN114416252A (en) Window display method and device, computing equipment and storage medium
CN113504861A (en) Desktop management method and device and computing equipment
CN114880072A (en) Application window display method of virtual machine, computing equipment and storage medium
CN111930392B (en) Application service deployment method, computing device and readable storage medium
CN113885758B (en) Virtual screen generation method, computing device and storage medium
CN113344768B (en) Method for realizing image matrix convolution, computing equipment and storage medium
CN114265539B (en) Data display method, computing device and readable storage medium
CN114422502A (en) Resource downloading method, computing device and storage medium
CN113110846A (en) Method and device for acquiring environment variable
CN113031908B (en) Ordered data processing method and computing device
CN113254888B (en) Method for acquiring hardware information, authorization control system and computing equipment
CN110543351A (en) Data processing method and computer device
JP7086772B2 (en) Image forming device, control method of image forming device, and program
CN113742140B (en) File backup method and device and computing equipment
CN113138820B (en) Video data processing method, device, computing equipment and readable storage medium
CN114020701A (en) Shortcut creating method, computing device and storage medium
CN113254142B (en) System desktop area dividing method and computing device
CN114237449A (en) Icon processing method, computing device and readable storage medium
CN113656347A (en) File directory export method, file directory import method and computing device
CN114281457A (en) Application window display method, computing device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination