CN112099699B - Icon moving method and device, computing equipment and readable storage medium - Google Patents

Icon moving method and device, computing equipment and readable storage medium Download PDF

Info

Publication number
CN112099699B
CN112099699B CN202011286584.5A CN202011286584A CN112099699B CN 112099699 B CN112099699 B CN 112099699B CN 202011286584 A CN202011286584 A CN 202011286584A CN 112099699 B CN112099699 B CN 112099699B
Authority
CN
China
Prior art keywords
icon
icons
moving
desktop
target
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.)
Active
Application number
CN202011286584.5A
Other languages
Chinese (zh)
Other versions
CN112099699A (en
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 CN202011286584.5A priority Critical patent/CN112099699B/en
Publication of CN112099699A publication Critical patent/CN112099699A/en
Application granted granted Critical
Publication of CN112099699B publication Critical patent/CN112099699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Abstract

The invention discloses an icon moving method which is suitable for being executed in computing equipment and comprises the following steps: acquiring a first position and a second position of a target icon in the moving process; acquiring a yield icon according to the first position and the second position of the target icon; moving the yield icons according to the arrangement sequence of the icons on the desktop, and refreshing the moving process of the yield icons at regular time; and inserting the target icon into the final second position according to the first preset operation to finish the movement of the target icon. The invention also discloses a corresponding device, a computing device and a readable storage medium.

Description

Icon moving method and device, computing equipment and readable storage medium
Technical Field
The invention relates to the field of computers, in particular to an icon moving method, an icon moving device, a computing device and a readable storage medium.
Background
When a user logs in a computer terminal device, a desktop environment of a computer system provides an interactive graphical interface for the user, wherein the interactive graphical interface comprises graphical user interface elements such as desktop icons, toolbars and wallpaper, and the user can manage the graphical user interface elements on the desktop, including adjusting the position of the toolbar, adjusting the width and the height of the toolbar and setting the wallpaper. The most important application of the desktop environment is management of desktop icons, for example, operations such as creation and deletion of the icons on the desktop can be performed, and a user can select the icons on the desktop to drag the icons and place the icons at a designated position to realize user-defined arrangement of the desktop icons, so that the icons on the desktop can be arranged according to own use habits.
When the icon is moved on the desktop of the windows system, if the target position is a vacant position, the moved icon is directly inserted into the target position after release, the icon at the original position is deleted, and other icons are not processed, so that a new vacant position is generated in the original position of the moved icon. In addition, if the target position is not a vacancy, the icon moving operation of this time fails, and no processing is performed, and even if there is a sufficient vacancy behind or before the target position, the dragging operation of this time also fails. If the target position is between two icons, a black dotted line for inserting a mark is displayed at the position of the mouse, and after the mouse is released, the dragged icon is inserted to the position below the black dotted line, and simultaneously the existing icons below are drawn to the next position bit by bit.
For a Linux system, no desktop environment is available at the earliest, all operations are completed through a command line, as people are accustomed to an imaging interface of Windows, a graphical user interface of the Linux system is gradually developed, common desktop environments comprise GNOME, KDE, mate and the like, dragging operations of icons in various desktop environments only achieve that when a target position is vacant, the icons can be moved, alignment processing is not performed on the vacant positions where the icons are moved, and the moving process of the icons cannot enable users to see the moving effect of the icons.
Disclosure of Invention
To this end, the present invention provides an icon moving method, apparatus, computing device and readable storage medium in an effort to solve, or at least alleviate, the above-identified problems.
According to an aspect of the present invention, there is provided an icon moving method adapted to be executed in a computing device, wherein the method comprises: acquiring a first position and a second position of a target icon in the moving process; acquiring a yield icon according to the first position and the second position of the target icon; moving the yield icons according to the arrangement sequence of the icons on the desktop, and refreshing the moving process of the yield icons at regular time; and inserting the target icon into the final second position according to the first preset operation to finish the movement of the target icon.
Optionally, in the icon moving method according to the present invention, the first position is a position before the target icon moves, and the second position is a position where the target icon stays for the first time in the moving process; acquiring a first position and a second position of the target icon in the moving process comprises the following steps: acquiring an icon corresponding to second preset operation according to the detected second preset operation on the icon on the computing equipment, and taking the icon as a target icon; acquiring the current position of a target icon, and taking the current position as a first position; moving the target icon according to the detected third preset operation, and deleting the target icon from the first position; and acquiring a second position according to the detected fourth preset operation.
Optionally, in the icon moving method according to the present invention, the obtaining the first position and the second position in the moving process of the target icon includes: the current staying position of the target icon is a first position; moving the target icon according to the detected third preset operation, and deleting the target icon from the first position; and acquiring a second position of the target icon according to the detected fourth preset operation.
Optionally, in the icon moving method according to the present invention, obtaining the yield icon according to the first position and the second position of the target icon includes: and when the first position and the second position both belong to the current desktop, acquiring the icons between the first position and the second position according to the arrangement sequence of the icons on the desktop, and taking the icons as yielding icons.
Optionally, in the icon moving method according to the present invention, obtaining the yield icon according to the first position and the second position of the target icon includes: and when the first position does not belong to the current desktop and the second position belongs to the current desktop, acquiring the icons behind the second position according to the arrangement sequence of the icons on the desktop, and taking the icons as yielding icons.
Optionally, in the icon moving method according to the present invention, obtaining the yield icon according to the first position and the second position of the target icon further includes: and when the first position belongs to the current desktop and the second position does not belong to the current desktop, acquiring the icons behind the first position according to the arrangement sequence of the icons on the desktop, and taking the icons as yielding icons.
Optionally, in the icon moving method according to the present invention, when the first position and the second position both belong to a current desktop, and the moving direction of the target icon is forward movement according to the arrangement order of the icons, moving the yield icon according to the arrangement order of the icons on the desktop includes: acquiring the number of target icons and recording the number as a first number; the icon between the first position and the second position is moved back a first number of positions.
Optionally, in the icon moving method according to the present invention, when the first position and the second position both belong to a current desktop, and the moving direction of the target icon is moving backward according to the arrangement order of the icons, moving the yield icon according to the arrangement order of the icons on the desktop includes: acquiring the number of the target icons and recording the number as a second number; the icon between the first position and the second position is moved forward a second number of positions.
Optionally, in the icon moving method according to the present invention, when the first position does not belong to the current desktop, and the second position belongs to the current desktop, moving the yielding icon according to the arrangement order of the icons on the desktop includes: acquiring the number of the target icons and recording as a third number; acquiring the vacancy number of the current desktop icon; and when the number of the empty bits is not less than the third number, moving the icons behind the second position backwards by the third number of positions.
Optionally, in the icon moving method according to the present invention, when the first position belongs to a current desktop and the second position does not belong to the current desktop, moving the yielding icon according to the arrangement order of the icons on the desktop includes: if the desktop icons start the automatic sorting function, acquiring the number of the target icons and recording as a fourth number; when the icon after the first position of the target icon moves forward a fourth number of positions.
Optionally, in the icon moving method according to the present invention, when the first position belongs to the current desktop and the second position does not belong to the current desktop, if the automatic sorting function is not started for the desktop icon, the yield icon is not processed.
Optionally, in the icon moving method according to the present invention, moving the yielding icon according to the arrangement order of the icons on the desktop further includes: when the target icons are not icons in the current desktop, acquiring the number of the target icons, and recording as a third number; acquiring the vacancy number of the current desktop icon; when the number of empty bits is less than the third number, no processing is performed.
Optionally, in the icon moving method according to the present invention, the moving result of the timed refresh yield icon includes: in the process of moving the yield icon, the moving result of the icon is refreshed at preset time intervals, so that the moving process of the icon is in an animation effect.
Optionally, in the icon moving method according to the present invention, a Linux operating system is installed in the computing device, and the method further includes: and recording the icon movement result information into a desktop configuration file of the current login user so as to present the desktop after the icon is moved when the user logs in the system next time.
Optionally, in the icon moving method according to the present invention, the method further includes: creating a new application icon on the desktop; when no room remains on the desktop, the newly created icon is stacked on the desktop for display as the last icon.
According to another aspect of the present invention there is provided an icon moving apparatus adapted to reside in a computing device, the apparatus comprising: the target icon processing unit is suitable for acquiring a first position and a second position in the moving process of the target icon and inserting the target icon into the final second position according to a first preset operation to finish the movement of the target icon; and the yielding icon processing unit is suitable for acquiring the yielding icons according to the first position and the second position of the target icon, moving the yielding icons according to the arrangement sequence of the icons on the desktop, and refreshing the moving process of the yielding icons at regular time.
According to another aspect of the 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 icon moving method according to the present invention.
According to another aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform an icon moving method according to the present invention.
According to the icon moving method, the yield icon is obtained according to the first position and the second position of the target icon, yield and completion of the icon are achieved by moving the yield icon, and the moving effect of the yield icon is refreshed at regular time in the icon yield process, so that the specific moving process of the icon is dynamically displayed for a user, and meanwhile, the moving mode avoids the situation that the movement fails when the target position is provided with the icon.
According to the icon moving method, before the icon is released, the user can continue to drag the icon to adjust according to the moving result of the yield icon until the user is satisfied with the adjusting result to release the icon, so that the display of the moving result of the target icon is displayed in real time, and the user can conveniently make adjustment.
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 block diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of an icon moving method 200 according to one embodiment of the invention;
FIG. 3 shows a block diagram of an icon moving device 300 according to one embodiment of the invention;
FIG. 4 shows a schematic diagram of a desktop icon in accordance with one embodiment of the invention;
FIG. 5 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 6 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 7 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 8 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 9 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 10 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 11 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 12 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 13 shows a schematic diagram of moving an icon, according to one embodiment of the invention;
FIG. 14 shows a schematic diagram of moving an icon, according to one embodiment of the 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 shows a schematic diagram of a computing device 100, according to one embodiment of the invention. It should be noted that the computing device 100 shown in fig. 1 is only an example, and in practice, the computing device for implementing the icon moving method of the present invention may be any type of device, and the hardware configuration thereof may be the same as the computing device 100 shown in fig. 1 or different from the computing device 100 shown in fig. 1. In practice, the computing device implementing the icon moving method of the present invention may add or delete hardware components of the computing device 100 shown in fig. 1, and the present invention does not limit the specific hardware configuration of the computing device.
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 (μ P), a microcontroller (μ C), 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. The physical memory in the computing device is usually referred to as a volatile memory RAM, and data in the disk needs to be loaded into the physical memory to be read by the processor 104. 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. Operating system 120 may be, for example, Linux, Windows, etc., which includes program instructions for handling basic system services and performing hardware dependent tasks. The application 122 includes program instructions for implementing various user-desired functions, and the application 122 may be, for example, but not limited to, a browser, instant messenger, a software development tool (e.g., an integrated development environment IDE, a compiler, etc.), and the like. When the application 122 is installed into the computing device 100, a driver module may be added to the operating system 120.
When the computing device 100 is started, the processor 104 reads program instructions of the operating system 120 from the system memory 106 and executes them. The application 122 runs on top of the operating system 120, utilizing the operating system 120 and interfaces provided by the underlying hardware to implement various user-desired functions. When the user launches the application 122, the application 122 is loaded into the system memory 106, and the processor 104 reads and executes the program instructions of the application 122 from the system memory 106.
The computing device 100 also includes a storage device 132, the storage device 132 including removable storage 136 and non-removable storage 138, the removable storage 136 and the non-removable storage 138 each connected to the storage interface bus 134.
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 such a manner as to encode 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.
In a computing device 100 according to the present invention, the application 122 includes instructions for performing the icon moving method 200 of the present invention, which may instruct the processor 104 to perform the icon moving method 200 of the present invention.
FIG. 2 illustrates a flow diagram of a method 200 for icon movement according to one embodiment of the present invention, the method 200 being suitable for execution in a computing device (e.g., the computing device of FIG. 1), the desktop view of a display of the computing device being shown in FIG. 4 and including a plurality of icons such as a taskbar and an icon A, B, C, D … …, the icons being ordered in columns, each column being arranged in top-to-bottom order, the columns being arranged in left-to-right order, the movement of the icons on the desktop including forward and backward movement in the order of the arrangement.
As shown in fig. 2, the method 200 begins with step S210, and in step S210, an icon to be moved (i.e., a target icon) is acquired.
According to an embodiment of the invention, when a second preset operation of the user on the icon is detected, the icon corresponding to the second preset operation is acquired, and the icon acted by the second preset operation is the target icon. The second preset operation is: when the mouse pointer is above the icon, the left button is pressed, and the icon at the position of the mouse pointer is the target icon, and only one target icon can be selected by the operation, as shown in fig. 5, the icon a in the desktop (as shown in fig. 4) is selected.
According to another embodiment of the present invention, the second preset operation may be a continuous action, for example, the position of the mouse pointer is not provided with an icon, the left button of the mouse is pressed, a plurality of icons are selected from the mouse pointer frame, after the icons are selected, the left button is released, the mouse pointer is moved to a position above any one of the icons selected from the frame, the left button is pressed again, the icon moving program is entered, the icon selected from the frame is the target icon to be moved, the desktop shown in fig. 4 is taken as an example, the icon a and the icon B are selected, as shown in fig. 6, the dashed frame in fig. 6 may not be displayed after the target icon is selected from the frame, and the present invention is not limited thereto.
The process then proceeds to step S220, where the current position of the target icon is obtained as the first position.
The process then proceeds to step S230, where the target icon is moved according to a third preset operation. According to one embodiment of the present invention, the third preset operation is to drag the mouse, so that the target icon moves along with the movement of the mouse pointer, move the target icon to a desired position according to the user's requirement, delete the target icon from the starting position when the target icon moves, that is, the original position becomes a vacant position, as shown in fig. 7, the position of the icon a becomes a vacant position during the movement of the icon a.
Then, the process proceeds to step S240, a fourth preset operation is detected, and a target position (i.e., a second position) is obtained according to the fourth preset operation. According to one embodiment of the invention, when the mouse is detected to stop, the staying time of the mouse is recorded, and when the staying time of the mouse exceeds a predetermined length, the position of the current mouse pointer is obtained and recorded as the second position. The specific dwell time may be set by the application program, for example, when it is detected that the duration of the mouse dwell at one position exceeds 500 milliseconds, the current position of the mouse pointer is obtained as the target position, the icon a is dragged to the position of the icon H, and when the mouse dwell time is 500 milliseconds, the current position of the mouse pointer, that is, the position of the icon H is obtained as the second position.
According to an embodiment of the present invention, the icon drop area is fixed on the desktop according to the set resolution and the icon display format, and if the position of the current mouse pointer is not located in the icon drop area, the icon drop area closest to the current mouse pointer is obtained as the second position, for example, in the process of dragging the mouse a, if the mouse a stays at the edge of the icon H for 500 milliseconds, the icon drop area closest to the current mouse pointer (i.e., the position of the icon H) is obtained as the second position.
Then, the process proceeds to step S250, and an icon requiring a move yield is acquired. Since the first position of the target icon generates a vacancy when the target icon is moved, and sufficient space needs to be made in the second position, some related icons need to be moved to ensure the tidiness of the desktop icons, in the process, the icons needing to be moved are called yield icons, and the yield icons are obtained in the step.
Continuing with the example of moving icon a, the second position is the position of icon H, when icon a moves, a vacancy is generated at a, in order to fill up the vacancy and make up the vacancy at icon H, icon B, icon C, icon D, icon E, icon F, icon G, and icon H need to be moved forward for vacancy filling, and then icon B, icon C, icon D, icon E, icon F, icon G, and icon H are yield icons, in other words, when icons move on the desktop, icons from the first position to the second position of the target icon are yield icons according to the arrangement order of the icons on the desktop.
And step S260 is then carried out, the yield icon acquired in step S250 is moved, the position to which the yield icon needs to be moved needs to be calculated, the movement is carried out according to the calculation result, and in the icon movement process, the movement result is refreshed at regular time, so that the icon movement process is displayed to the user in an animation mode.
Continuing with the example of moving icon a to icon H, the location to which yield icon B, C, D, E, F, G, H needs to be moved is first calculated, in this embodiment, icon B needs to be moved to the original location of icon a, icon C needs to be moved to the original location of icon B, and so on, that is, icons B, C, D, E, F, G, H are all moved forward by one location according to the order of the icons, as shown in fig. 8. In the moving process of the icon B, C, D, E, F, G, H, the timer is started, and the moving process of the icon on the desktop is refreshed at regular intervals, so that the moving process of the icon is displayed in an animation effect, and the refreshing interval can be set to 200 milliseconds according to the recognition rate of human eyes, which is not limited by the invention.
According to another embodiment of the present invention, when icon a and icon B are moved to the positions of icon H at the same time, icon C, D, E, F, G, H needs to be moved forward two positions in this step, as shown in fig. 9, the effect after the icon is moved is shown, and also during the moving process, the desktop is updated periodically, so that the moving process of the icon is animated.
According to an embodiment of the present invention, if after step S260, the user finds that the result after the icon is moved is not satisfactory, the user can continue to drag the mouse to move the icon, while the current position becomes the new first position, and the staying position of the next mouse pointer is the second position, and repeat steps S220, S230, S240, S250, and S260 until the user is satisfied with the result of the icon movement.
Then, the process proceeds to step S270, where the left mouse button is released (i.e., the first preset operation), and the target icon is inserted into the second position. To illustrate the embodiment of fig. 8 and 9, after the left mouse button is released in fig. 8, the icon a will be inserted into the position of the original icon H, as shown in fig. 10. After releasing the left mouse button in fig. 9, the icon a and the icon B are inserted into the positions of the original icon G and the icon H in order, as shown in fig. 11.
According to an embodiment of the present invention, the target icon is not an icon on the desktop, but comes from a folder, that is, the target icon moves from a folder to a position on the desktop, as shown in fig. 12, when the left button is pressed in the folder icon a1 by the mouse pointer, the target icon is determined to be icon a1, the icon a1 is moved to the position of the desktop icon J, the second position is the position of the icon J, because the icons on the desktop increase, it is first necessary to determine whether there is enough room on the desktop to place the target icon, in this embodiment, there are 5 remaining rooms on the desktop, the number of target icons is 1, there is enough room to place the target icon, and then the move of the icon of the way is started, in this embodiment, the icon J and all the icons behind it need to be moved of way, a position is moved backwards, when the left button of the mouse is released, the icon a1 is inserted into the original position of the icon J, as shown in fig. 13.
According to one embodiment of the invention, if a folder is moved to the desktop multiple icons at a time, for example, 10 icons in a file are moved to the desktop, where there is not enough room for the desktop, then this movement fails.
According to another embodiment of the present invention, the desktop icon starts the automatic sorting function, moves the icon J into the folder, and when the icon J is removed, a vacancy is created in the position of the icon J, all icons behind the icon J need to be automatically filled with vacancies, i.e. moved forward by one position, and the movement result is shown in fig. 14.
According to one embodiment of the invention, the desktop icon starts the automatic sorting function, if the desktop icon has a stack icon, because a new vacancy appears on the desktop after the target icon is deleted from the desktop when the icon is moved from the desktop to the folder, the stack icon pops up an icon whose number is consistent with the number of the newly generated vacancies, and of course, if the number of the stack icon is smaller than the number of the newly generated vacancies, the stack icon pops up all the stack icons to the desktop.
According to one embodiment of the invention, the desktop icons do not start the automatic sorting function, and when the icons are moved from the desktop to the folder, the icons are only deleted from the desktop, and other icons are not processed.
According to one embodiment of the invention, a new application icon is created on the desktop, and when there is no room on the desktop, the newly created icon is stacked on top of the last icon and is presented in the uppermost layer.
FIG. 3 illustrates a block diagram of an icon moving apparatus 300, suitable for residing in a computing device (such as the computing device shown in FIG. 1), suitable for performing the method 200, in accordance with one embodiment of the present invention.
As shown in fig. 3, the icon moving apparatus includes a target icon processing unit 310, a yield icon processing unit 320.
The target icon processing unit 310 is adapted to acquire the target icon, and acquire a first position and a second position of the target icon, move the target icon from the first position to the second position, and insert the target icon into the last second position when the user releases the dragged target icon. In the process, before releasing the target icon, if the moving result is not satisfactory, the user can continue to drag the target icon to move, obtain a new second position until the moving result is satisfactory, and insert the target icon into the corresponding position.
And the yielding icon processing unit 320 is adapted to obtain a yielding icon according to the first position and the second position of the target icon, move the yielding icon according to the arrangement sequence of the icons on the desktop, and refresh the moving process so that the yielding icon is presented with an animation effect.
According to the icon moving method, the yield icon is obtained according to the first position and the second position of the target icon, yield and completion of the icon are achieved by moving the yield icon, and the moving effect of the yield icon is refreshed at regular time in the icon yield process, so that the specific moving process of the icon is dynamically displayed for a user, and meanwhile, the moving mode avoids the situation that the movement fails when the target position is provided with the icon.
According to the icon moving method, before the icon is released, the user can continue to drag the icon to adjust according to the moving result of the yield icon until the user is satisfied with the adjusting result to release the icon, so that the display of the moving result of the target icon is displayed in real time, and the user can conveniently make adjustment.
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 icon moving method of the present invention according to instructions in the 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.
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.
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 (9)

1. An icon moving method adapted to be executed in a computing device having a Linux system installed therein, wherein the method comprises:
acquiring a first position and a second position of a target icon in the moving process;
acquiring a yield icon according to the first position and the second position of the target icon;
moving the yield icons according to the arrangement sequence of the icons on the desktop, and refreshing the moving results of the icons at preset intervals in the process of moving the yield icons so that the moving process of the icons is in an animation effect;
inserting the target icon into a final second position according to a first preset operation to finish the movement of the target icon;
when the first position belongs to the current desktop and the second position belongs to the folder, acquiring icons behind the first position according to the arrangement sequence of the icons on the desktop, and taking the icons as yielding icons; the moving the yield icon according to the arrangement sequence of the icons on the desktop comprises the following steps: if the desktop icons start the automatic sorting function, acquiring the number of the target icons and recording as a fourth number; moving the yield icon forward the fourth number of positions; and if the desktop icon does not start the automatic sequencing function, the yield icon is not processed.
2. The method of claim 1, wherein the first position is a position before the target icon moves, and the second position is a position where the target icon first stays in the moving process; the acquiring the first position and the second position in the moving process of the target icon comprises:
according to the detected second preset operation of the user on the icon, acquiring an icon corresponding to the second preset operation, and taking the icon as a target icon;
acquiring the current position of the target icon, and taking the current position as a first position;
moving the target icon according to the detected third preset operation, and deleting the target icon from the first position;
and acquiring a second position according to the detected fourth preset operation.
3. The method of claim 1, wherein the first position is a staying position in the moving process of the target icon, the second position is a next staying position of the target icon, and the obtaining the first position and the second position in the moving process of the target icon comprises:
the current stopping position of the target icon is a first position;
moving the target icon according to the detected third preset operation, and deleting the target icon from the first position;
and acquiring a second position of the target icon according to the detected fourth preset operation.
4. The method of claim 1 or 2, wherein the obtaining a yield icon according to the first and second locations of the target icon comprises:
and when the first position and the second position both belong to the current desktop, acquiring the icons between the first position and the second position according to the arrangement sequence of the icons on the desktop, and taking the icons as yielding icons.
5. The method of claim 1 or 2, wherein the obtaining a yield icon according to the first and second locations of the target icon comprises:
and when the first position does not belong to the current desktop and the second position belongs to the current desktop, acquiring the icons behind the second position according to the arrangement sequence of the icons on the desktop, and taking the icons as yielding icons.
6. The method of claim 1 or 2, wherein when the first position and the second position both belong to a current desktop, and the moving direction of the target icon is forward movement according to the arrangement order of the icons, the moving the yield icon according to the arrangement order of the icons on the desktop comprises:
acquiring the number of the target icons and recording the number as a first number;
moving the icon between the first position and the second position backwards by a first number of positions.
7. An icon moving apparatus adapted to reside in a computing device having a Linux system installed thereon, the apparatus comprising:
the target icon processing unit is suitable for acquiring a first position and a second position in the moving process of the target icon and inserting the target icon into the final second position according to a first preset operation to finish the movement of the target icon;
the yielding icon processing unit is suitable for acquiring yielding icons according to the first position and the second position of the target icon, and is also suitable for moving the yielding icons according to the arrangement sequence of the icons on the desktop, in the process of moving the yielding icons, the moving result of the icons is refreshed at intervals of preset time, so that the moving process of the icons is in an animation effect, wherein when the first position belongs to the current desktop and the second position belongs to the folder, the icons behind the first position are acquired according to the arrangement sequence of the icons on the desktop, and the icons are used as the yielding icons; the moving the yield icon according to the arrangement sequence of the icons on the desktop comprises the following steps: if the desktop icons start the automatic sorting function, acquiring the number of the target icons and recording as a fourth number; moving the yield icon forward the fourth number of positions; and if the desktop icon does not start the automatic sequencing function, the yield icon is not processed.
8. 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 method of any of claims 1-6.
9. 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-6.
CN202011286584.5A 2020-11-17 2020-11-17 Icon moving method and device, computing equipment and readable storage medium Active CN112099699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011286584.5A CN112099699B (en) 2020-11-17 2020-11-17 Icon moving method and device, computing equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011286584.5A CN112099699B (en) 2020-11-17 2020-11-17 Icon moving method and device, computing equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112099699A CN112099699A (en) 2020-12-18
CN112099699B true CN112099699B (en) 2021-05-28

Family

ID=73786054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011286584.5A Active CN112099699B (en) 2020-11-17 2020-11-17 Icon moving method and device, computing equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112099699B (en)

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536643A (en) * 2014-12-10 2015-04-22 广东欧珀移动通信有限公司 Icon dragging method and terminal
CN105843480A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Desktop icon adjustment method and apparatus
CN109164961A (en) * 2018-08-10 2019-01-08 珠海格力电器股份有限公司 A kind of method and device of mobile application icon
CN109683763A (en) * 2018-12-24 2019-04-26 维沃移动通信有限公司 A kind of icon moving method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076976A (en) * 2013-01-07 2013-05-01 华为终端有限公司 Method for adding application icon and method and device for removing application icon
CN109101157B (en) * 2018-08-22 2020-09-22 Oppo广东移动通信有限公司 Sidebar icon setting method and device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536643A (en) * 2014-12-10 2015-04-22 广东欧珀移动通信有限公司 Icon dragging method and terminal
CN105843480A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Desktop icon adjustment method and apparatus
CN109164961A (en) * 2018-08-10 2019-01-08 珠海格力电器股份有限公司 A kind of method and device of mobile application icon
CN109683763A (en) * 2018-12-24 2019-04-26 维沃移动通信有限公司 A kind of icon moving method and mobile terminal

Also Published As

Publication number Publication date
CN112099699A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
US8151206B2 (en) Modifying an order of processing of a task performed on a plurality of objects
US8839142B2 (en) Desktop system object removal
JP6029767B2 (en) Icon arrangement method, apparatus, device, program, and recording medium
CN105144058B (en) Prompt is placed in delay
US20170109917A1 (en) Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
JP2018511132A (en) Application loading method and apparatus
CN109145272B (en) Text rendering and layout method, device, equipment and storage medium
US10255711B2 (en) System and method for providing contents by merging layers of page to which motion effect is set
US20180232242A1 (en) Gallery control with dynamically determined control template replica sizes
US20100158379A1 (en) Image background removal
CN112099699B (en) Icon moving method and device, computing equipment and readable storage medium
WO2017206248A1 (en) Method and device for inputting information
CN113849096B (en) Desktop display method and device and computing equipment
CN109857561B (en) Memory management method and computing device
CN112783346A (en) Handwriting data processing method and system, computer equipment and storage medium
WO2023071101A1 (en) Io task processing method and apparatus, and computer device and storage medium
US20150286401A1 (en) Photo/video timeline display
JP2014085814A (en) Information processing device, control method therefor, and program
WO2015135404A1 (en) Method and apparatus for downloading data
CN113625930B (en) Data display method, computing device and readable storage medium
US20150026552A1 (en) Electronic device and image data displaying method
CN110113389A (en) A kind of video broadcasting method, device, electronic equipment and storage medium
CN112114786A (en) Editor implementation method, computing device and readable storage medium
CN110647263B (en) Mobile terminal desktop icon moving method, device, medium and equipment
KR102076550B1 (en) Spreadsheet editing apparatus and method

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
GR01 Patent grant
GR01 Patent grant