Computer icon arrangement management method and device and computerTechnical Field
The invention relates to the technical field of computer icon management, in particular to a computer icon arrangement management method, a device and a computer.
Background
Under existing computer operating systems, a folder or desktop usually has many icons representing folders, documents, applications, or shortcuts, etc. so that a user can quickly launch some applications, open some documents, or quickly locate a folder.
Meanwhile, for any processing object, a user can form a new icon (such as a folder, a shortcut and the like) by dragging, creating and the like, and the position of the icon can be at any position.
With the continuous extension of the use time, a large number of icons which are arranged disorderly and overlapped with each other can appear under the desktop or the folder, and the operation of a user is very inconvenient.
However, in the process of implementing the embodiment of the present invention, the inventor finds that the prior art has at least a problem of cumbersome operation:
for example, in the Windows system, a user may use an input device (such as a mouse, a Touchpad of a notebook, etc.), and the user operation process is as follows:
calling a first menu by using a right mouse button;
positioning a mouse pointer to an arrangement icon option to obtain a second menu;
positioning the mouse pointer to one of 'arranging by group', 'automatically arranging' or 'aligning to a grid' by controlling the movement of the mouse pointer;
and clicking the selected option by using a left mouse button to realize the arrangement of the icons.
From the above description, it can be found that the user needs 4 operations to complete the arrangement of the icons, and the operation is complicated, which is described above by taking the Windows operating system as an example, but other operating systems also have the problem of complicated operation of icon arrangement management.
Disclosure of Invention
The embodiment of the invention aims to provide a computer icon arrangement management method, a computer icon arrangement management device and a computer, so that a user can realize computer icon management through simple and convenient operation.
In order to achieve the above object, an embodiment of the present invention provides a computer icon arrangement management method, including:
monitoring a first input operation of a user through an input device;
comparing the first input operation with a preset second input operation to obtain a comparison result;
and when the comparison result indicates that the current input operation is matched with a preset input operation, controlling the icons of the current window or the desktop to be rearranged according to a preset rule.
In the method, when the comparison result indicates that the current input operation is matched with a preset input operation, the controlling the icons of the current window or the desktop to be rearranged according to a preset rule specifically includes:
when the comparison result indicates that the first input operation is matched with the second input operation, calculating respective target positions of each icon of the current window or desktop according to the preset rule;
and controlling each icon of the current window or desktop to move from the respective current position to the respective target position according to a preset motion mode.
In the above method, the predetermined movement mode is a constant-speed linear movement or a variable-speed linear movement.
The method above, wherein the second input operation is:
double-clicking on a blank area of the current window or a blank area of the desktop; or
Double-click operation on the rearranged icon arranged in the current window or the desktop; or
Clicking on a blank area of the current window or a blank area of the desktop; or
And moving a mouse pointer on a blank area of the current window or the desktop by a preset track.
The method described above, wherein the preset rule is: each icon is automatically arranged according to a grid, and any two icons are not overlapped; or each icon is arranged to the grid closest to the current position, and any two icons are not overlapped.
In the above method, the input device is a mouse, a touch pad or a touch screen.
In order to achieve the above object, an embodiment of the present invention further provides a computer icon arrangement management apparatus, including:
the monitoring module is used for monitoring a first input operation of a user through the input device;
the comparison module is used for comparing the first input operation with a preset second input operation to obtain a comparison result;
and the execution module is used for controlling the icons of the current window or the desktop to be rearranged according to a preset rule when the comparison result indicates that the current input operation is matched with the preset input operation.
In the foregoing apparatus, the execution module specifically includes:
the target position calculation module is used for calculating the respective target position of each icon of the current window or desktop according to the preset rule when the comparison result indicates that the first input operation is matched with the second input operation;
and the motion control module is used for controlling each icon of the current window or the desktop to move from the respective current position to the respective target position according to a preset motion mode.
In the above device, the predetermined movement mode is a constant linear movement or a variable linear movement.
The above apparatus, wherein the second input operation is:
double-clicking on a blank area of the current window or a blank area of the desktop; or
Double-click operation on the rearranged icon arranged in the current window or the desktop; or
Clicking on a blank area of the current window or a blank area of the desktop; or
And moving a mouse pointer on a blank area of the current window or the desktop by a preset track.
In the foregoing apparatus, the preset rule is: each icon is automatically arranged according to a grid, and any two icons are not overlapped; or each icon is arranged to the grid closest to the current position, and any two icons are not overlapped.
In the above apparatus, the input device is a mouse, a touch pad or a touch screen.
In order to achieve the above object, an embodiment of the present invention further provides a computer, including:
a main board;
the central processing unit is arranged on the mainboard;
the input equipment is connected with the mainboard;
the chipset is arranged on the mainboard and connected with the central processing unit;
the central processing unit is used for comparing a first input operation performed once by a user through the input device with a preset second input operation, and controlling the icons of the current window or the desktop to be rearranged according to a preset rule when the comparison result indicates that the first input operation is matched with the second input operation.
The above computer, wherein the central processor is specifically configured to, when the comparison result indicates that the first input operation matches the second input operation, calculate a target position of each icon of the current window or desktop according to the preset rule, and control each icon of the current window or desktop to move from its respective current position to its respective target position in a predetermined motion manner.
The embodiment of the invention has the following beneficial effects:
1. compared with the prior art, the user only needs to input one operation matched with the preset input operation, so that the operation of the user for computer icon management is greatly simplified;
2. for the input mode of touchpad, because the options under the existing menu are smaller, the positioning is difficult, but in the embodiment of the invention, the operation is carried out aiming at a larger area (such as a blank area or an icon), the requirement of positioning precision is reduced, and the user can carry out the operation of computer icon management more conveniently;
3. in the process of rearranging the icons, the icons move to the target position from the current position in a certain track, so that the user can quickly position the moved icons after the icons are rearranged.
Drawings
FIG. 1 is a schematic diagram of a computer icon arrangement management apparatus according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a computer icon arrangement management method according to an embodiment of the present invention.
Detailed Description
In the method, the device and the computer for managing the icon arrangement, provided by the embodiment of the invention, the user only needs to input the operation meeting the requirements once through the input equipment, the operation system is informed after the operation is detected, the icons are controlled by the operation system to be arranged according to the icon arrangement mode corresponding to the operation, and the operation of managing the icon arrangement by the user is simplified.
Fig. 1 is a schematic structural diagram of a computer icon arrangement management apparatus according to an embodiment of the present invention, which includes:
the monitoring module is used for monitoring a first input operation of a user through the input device;
the comparison module is used for comparing the first input operation with a preset second input operation to obtain a comparison result;
and the execution module is used for controlling the icons of the current window or desktop to be rearranged according to a preset rule when the comparison result indicates that the first input operation is matched with the second input operation.
In an embodiment of the present invention, the input device may be a mouse, a touch pad (Touchpad) of a notebook, a touch screen on a computer, or the like.
Here, the preset second input operation may be an operation of:
double-clicking the blank area of the current window or the blank area of the desktop can be input through a mouse, a touch pad or a touch screen;
the double-click operation on the rearranged icon arranged in the current window or the rearranged icon arranged on the desktop can be input through a mouse, a touch pad or a touch screen;
the single click operation on the rearranged icon arranged in the current window or the rearranged icon arranged on the desktop can be input through a mouse, a touch pad or a touch screen;
certainly, the judgment can also be performed by judging the preset movement track of the mouse pointer in the blank area of the current window or the desktop, for example, the movement track of the mouse pointer in the current window or the desktop is controlled to be a line segment, an arc line or a circle;
of course, it may also be determined that the mouse pointer further performs a double-click or single-click operation on a blank area after moving the preset trajectory in the blank area of the current window or desktop.
For the first 3 ways, the aforementioned matching is the same, while for the trajectory way, the matching is that the similarity satisfies the requirement.
The monitoring module monitors each input operation of the user through the input equipment, compares the input operation with a preset second input operation, and controls the icon of the current window or the desktop to be rearranged according to a preset rule by the execution module when the input operation is matched with the preset second input operation.
Wherein, the preset rule may be the following rule:
the method comprises the steps that firstly, the icons are automatically arranged according to grids, and any two icons are not overlapped;
rule two, arranging the icons to the grid closest to the current position, wherein any two icons are not overlapped;
rule three, the nearest position not mutually overlapped with other icons.
After the processing is performed according to the method, the icon may be moved from the current position to another position, the position is changed, when there are many icons, a user may need to spend much time to find one icon, and in order to facilitate the user to locate the moved icon as soon as possible, the execution module of the embodiment of the present invention specifically includes:
the target position calculation module is used for calculating the target position of each icon of the current window or desktop according to the preset rule when the comparison result indicates that the first input operation is matched with the second input operation;
and the motion control module is used for controlling each icon of the current window or the desktop to move from the respective current position to the respective target position according to a preset motion mode.
The predetermined motion mode includes factors such as speed, time, motion trajectory, etc., and may be various modes such as uniform linear motion from the current position to the target position, acceleration linear motion from the current position to the target position, deceleration linear motion from the current position to the target position, etc., of course, various modes such as circular motion, polygonal motion, etc., as long as the user can see the motion process, that is, the motion time should be longer than the persistence time of vision of human eyes.
Through the processing, the user can see the motion track of each icon in the icon rearrangement process, and the moved icon can be quickly positioned.
The computer icon arrangement management device of the embodiment of the invention has the following beneficial effects:
1. the user only needs to input one operation matched with the preset input operation, so that the operation of the user for computer icon management is greatly simplified;
2. for the input mode of touchpad, because the options under the existing menu are smaller, the positioning is difficult, but in the embodiment of the invention, the input is carried out in a larger area (such as a blank area or an icon), the requirement of positioning precision is reduced, and the user can more conveniently carry out the operation of computer icon management;
3. in the process of rearranging the icons, the icons move to the target position from the current position in a certain track, so that the user can quickly position the moved icons after the icons are rearranged.
As shown in fig. 2, the method for managing arrangement of computer icons according to the embodiment of the present invention includes:
step 21, monitoring a first input operation of a user through an input device;
step 22, comparing the first input operation with a preset second input operation to obtain a comparison result;
and step 23, when the comparison result indicates that the current input operation is matched with a preset input operation, controlling the icons of the current window or the desktop to be rearranged according to a preset rule.
Wherein, thestep 23 specifically comprises:
231, when the comparison result indicates that the first input operation is matched with the second input operation, calculating a target position of each icon of the current window or desktop according to the preset rule;
and step 232, controlling each icon of the current window or the desktop to move from the respective current position to the respective target position according to a preset motion mode.
The computer of the embodiment of the invention comprises:
a main board;
the central processing unit is arranged on the mainboard;
the input equipment is connected with the mainboard;
the chipset is arranged on the mainboard and connected with the central processing unit;
wherein,
the central processing unit is used for comparing a first input operation performed once by a user through input equipment with a preset second input operation, and controlling the icons of the current window or desktop to be rearranged according to a preset rule when the comparison result indicates that the first input operation is matched with the second input operation.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.