CN110737383B - Element adding method and device and electronic equipment - Google Patents

Element adding method and device and electronic equipment Download PDF

Info

Publication number
CN110737383B
CN110737383B CN201910943327.5A CN201910943327A CN110737383B CN 110737383 B CN110737383 B CN 110737383B CN 201910943327 A CN201910943327 A CN 201910943327A CN 110737383 B CN110737383 B CN 110737383B
Authority
CN
China
Prior art keywords
window
region
area
target element
instruction
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
CN201910943327.5A
Other languages
Chinese (zh)
Other versions
CN110737383A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910943327.5A priority Critical patent/CN110737383B/en
Priority to PCT/CN2019/125534 priority patent/WO2021062948A1/en
Publication of CN110737383A publication Critical patent/CN110737383A/en
Application granted granted Critical
Publication of CN110737383B publication Critical patent/CN110737383B/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/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/04842Selection of displayed objects or displayed text elements
    • 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

Landscapes

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

Abstract

The invention provides an element adding method, an element adding device and electronic equipment, wherein a popup window is output in a first area of a first window in response to an adding instruction aiming at a target element displayed in a second area in a second window, and the popup window is used for displaying the target element. Receiving an operation instruction aiming at the target element in the popup window, and adding the element in the second area of the second window into the first window based on the operation instruction. Therefore, when the elements in the second window are added into the first window, the operation only needs to be carried out through the popup window in the first window, and the related operation does not need to be carried out on the second window. Therefore, the invention is convenient for the user to use the terminal and improves the operation efficiency of the user.

Description

Element adding method and device and electronic equipment
Technical Field
The invention relates to the technical field of terminals, in particular to an element adding method and device and electronic equipment.
Background
Users often need to operate on multiple screens or multiple windows simultaneously. The multiple screens operated simultaneously may be from different terminal devices or from the same terminal device. Multiple windows operating simultaneously may originate from the same screen or from different screens. Multiple windows may exist on the same screen at the same time, and different screens or windows are likely to correspond to different applications and to display different contents. If the user wants to add the content on one screen or window to the other screen or window, the user needs to operate the two screens or windows separately, which causes inconvenience to the user.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide an element adding method, device and socket.
In a first aspect, an embodiment of the present invention provides an element addition method, including the following steps:
responding to an adding instruction aiming at a target element displayed in a second area in a second window, and outputting a popup window in a first area of a first window, wherein the popup window is used for displaying the target element;
receiving an operation instruction aiming at the target element in the popup window;
adding elements in a second region of the second window to the first window based on the operation instruction.
Optionally, the receiving an operation instruction for a popup window includes:
receiving a copy instruction aiming at the target element in the popup window, and marking the target element in a first mode;
receiving a drag instruction for the marked target element;
the adding, based on the operation instruction, an element in a second area of the second window to the first window includes:
copying the target element into the first window based on the drag instruction.
Optionally, the copying the target element into the first window based on the drag instruction includes:
acquiring a dragging ending position of the dragging instruction;
and if the drag ending position is located outside the first area, copying the target element to the drag ending position in the first window, and deleting the target element in the popup window.
Optionally, the receiving an operation instruction for a popup; the method comprises the following steps:
receiving a moving instruction aiming at the target element in the popup window, and marking the target element by adopting a second mode;
receiving a drag instruction for the marked target element;
the adding, based on the operation instruction, an element in a second area of the second window to the first window includes:
based on the dragging instruction, moving the target element into the first window, and deleting the target element in the second window and the target element in the pop-up window.
Optionally, the moving the target element into the first window and deleting the target element in the second window and the target element in the pop-up window based on the drag instruction includes:
acquiring a dragging ending position of the dragging instruction;
and if the dragging ending position is located outside the first area, moving the target element to the first window, and deleting the target element in the second window and the target element in the pop-up window.
Optionally, the method further comprises:
and if the dragging ending position is located in the first area, not responding to the dragging instruction.
Optionally, the adding instruction of the target element is triggered by inputting a long-press operation in the first area.
Optionally, an area ratio of the first region to the second region is a preset area ratio, and the popup displays the target element in the preset area ratio.
Optionally, the shape of the first region and the shape of the second region are both rectangles, the ratio of the length of the first region to the length of the second region is a preset length ratio, the ratio of the width of the first region to the width of the second region is the preset length ratio, and the popup window displays elements on the second region according to the preset length ratio.
Optionally, after the popup is output in the first region of the first window, the method further includes:
and responding to a closing instruction aiming at the popup window, and closing the popup window.
In a second aspect, an embodiment of the present invention provides an element adding apparatus, including:
the output unit is used for responding to an adding instruction of a target element displayed in a second area in a second window, and outputting a popup window in a first area of a first window, wherein the popup window is used for displaying the target element;
a receiving unit, configured to receive an operation instruction for the target element in the popup;
an adding unit, configured to add an element in a second region of the second window to the first window based on the operation instruction.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the above methods.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the program.
According to the element adding method, device and electronic equipment provided by the invention, the popup window is output in the first area of the first window in response to the adding instruction of the target element displayed in the second area in the second window, and the popup window is used for displaying the target element. Receiving an operation instruction aiming at the target element in the popup window, and adding the element in the second area of the second window into the first window based on the operation instruction. Therefore, when the elements in the second window are added to the first window, the scheme provided by the embodiment of the invention only needs to operate through the popup window in the first window, and does not need to perform related operations on the second window. Therefore, the scheme provided by the embodiment of the invention is convenient for the user to use the terminal and improves the operation efficiency of the user.
Drawings
Fig. 1 is a schematic view of an application scenario in which an element adding method or an element adding apparatus according to an embodiment of the present application may be applied;
fig. 2 is a schematic flow chart of an element adding method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another element adding method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of another element adding method according to an embodiment of the present invention;
fig. 5 is a schematic view of an application scenario of an element addition method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a call element addition function according to an embodiment of the present invention;
fig. 7 is a schematic view showing the contents of the popup in the right screen when the setting range area of the left screen is small;
fig. 8 is a schematic diagram of the content display of the popup in the right screen when the setting range area of the left screen is large;
fig. 9 is an initial state diagram of a left screen and a right screen according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a copy element dragging process according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a copy element result provided by an embodiment of the present invention;
FIG. 12 is a diagram illustrating a process of dragging a mobile element according to an embodiment of the present invention;
FIG. 13 is a diagram illustrating a result of moving elements according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present application is further described with reference to the following figures and examples.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the invention, which may be combined or substituted for various embodiments, and this application is therefore intended to cover all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Fig. 1 is a schematic view of an application scenario in which an element adding method or an element adding apparatus according to an embodiment of the present application may be applied. As shown in fig. 1, a user may need to operate on a first window and a second window at the same time. The first window and the second window may be screens or program windows. The first window and the second window may be different screens from the same terminal device, or may be screens from different terminal devices. The first window and the second window may be different program windows from the same screen, or may be program windows from different screens.
When the user wants to add an element of the second area of the second window to the first area of the first window, a popup window in which elements corresponding to the second area, such as target element 1, target element 2, and target element 3 in fig. 1, are displayed is generated in the first area of the first window by a predetermined addition instruction. The elements in the second window may be added to the first window by operating on the target elements in the second region.
It should be noted that the numbers of elements in the first region and the second region are illustrative, and the numbers of elements in the two regions may vary according to different application scenarios.
The first window and the second window may be windows having different shapes and sizes. The first region and the second region may be regions having different shapes and sizes. It is within the scope of the present invention to add elements in the second region of the second window to the first window through the pop-up of the first region of the first window.
Referring to fig. 2, fig. 2 is a schematic flow chart of an element addition method according to an embodiment of the present invention, where the method includes:
s201, responding to an adding instruction of a target element displayed in a second area in a second window, and outputting a popup window in a first area of a first window, wherein the popup window is used for displaying the target element.
The first window and the second window may be screens or program windows. The first window and the second window may be different screens from the same terminal device, or may be screens from different terminal devices. The first window and the second window may be different program windows from the same screen, or may be program windows from different screens.
The target element is a component of the screen or program window display content. The target elements may be: numbers, letters, Chinese characters, words, formulas, images, animations, any combination of the above, etc.
The first area is used for displaying the elements in the second area. The first region may be a region having a regular shape, such as: circular, rectangular, triangular, etc., or may have an irregular shape, such as a shape set by the user as desired.
The second area is an area to be copied. The second region may be a region having a regular shape, such as: circular, rectangular, triangular, etc., or may have an irregular shape, such as a shape set by the user as desired.
Further, the first area and the second area are similar figures. For example, circles of different radii, rectangles of the same length and width, and the like. Therefore, a user can more intuitively determine the corresponding relation of the elements contained in the two areas, and the element needing to be copied is determined in the first area to be copied.
The first region and the second region described above correspond. The specific location and shape of the first and second regions may be determined in the following manner.
When a user inputs and inputs a long-press operation in a certain area of the first window, the long-press operation is used for triggering the adding instruction. The system acquires the coordinates of the long press position as the center point P (x, y). The system sets a first area with coordinates P (x, y) as a center point, and displays a popup window in the first area. The size of the pop-up window is not limited, and can be designed according to needs.
And the second area of the second window is an area to be copied. The position of the second area may be obtained by:
the following relationship may exist between the first region in the first window and the second region in the second window:
1) if the shapes and sizes of the first region and the second region are the same, the upper left corners of the first window and the second window are respectively used as starting points (0, 0), and if the copy point of the first region is P1(x1, y1), the copy center point of the second region is P2 (x1, y 1).
2) And when the size of the first area is the same as that of the second area and is different from that of the second area, carrying out proportion conversion on the first area and the second area to obtain the relative position of the center point of the second area. With the upper left corners of the first window and the second window as starting points (0, 0), respectively, assuming that the copy point of the first region is P1(x1, y1), the copy center point of the second region is P2 (x 2, y 2).
There may be x1: x2= width of the first region: a width of the second region; y1: y2= height of the first region: the height of the second region.
And under the condition that the first area and the second area are similar graphs, determining the position coordinate of the second area according to the position coordinate of the first area through the area ratio, the perimeter ratio and the like of the first area and the second area.
Optionally, an area ratio of the first region to the second region is a preset area ratio, and the popup displays the target element in the preset area ratio.
Optionally, the shape of the first region and the shape of the second region are both rectangles, the ratio of the length of the first region to the length of the second region is a preset length ratio, the ratio of the width of the first region to the width of the second region is the preset length ratio, and the popup window displays elements on the second region according to the preset length ratio.
Optionally, after step S201, the method further includes:
and responding to a closing instruction aiming at the popup window, and closing the popup window.
The user can set the closing instruction of the pop-up window according to the requirement, such as: clicking the outer part of the pop-up window to disappear, double clicking the outer part of the pop-up window to disappear, pressing the pop-up window for a long time to disappear, adding a closing button on the pop-up window, clicking the closing button to disappear, and the like.
S202, receiving an operation instruction aiming at the target element in the popup.
S203, adding the elements in the second area of the second window into the first window based on the operation instruction.
The operating instructions are for adding elements of the second window to the first window. The system can set an operation instruction as required, for example, double-clicking or single-clicking a certain element appearing in the pop-up window, and then the element is added to a preset position of the first window. Or, double-clicking a certain element in the popup window, the element is the selected element, dragging the element to a certain position of the first window, and adding the element to the dragging ending position.
Optionally, the method further comprises:
and if the dragging ending position is located in the first area, not responding to the dragging instruction. The drag instruction will not be executed.
According to the element adding method provided by the invention, the popup is output in the first area of the first window, and the popup is used for displaying the target element. The operation on the target element in the popup window can add the element in the second area of the second window into the first window without performing related operation on the second window. Therefore, the technical problem that in the prior art, the operation of adding elements between different windows is complicated is solved by the scheme provided by the embodiment of the invention.
Referring to fig. 3, fig. 3 is a schematic flow chart of another element adding method provided in an embodiment of the present invention, where the method includes:
s301, responding to an adding instruction of a target element displayed in a second area in a second window, and outputting a popup window in a first area of a first window, wherein the popup window is used for displaying the target element.
S302, receiving a copy instruction aiming at the target element in the popup window, and marking the target element in a first mode.
There may be multiple operating instructions in the system, such as: a select instruction, a delete instruction, a copy instruction, or a move instruction. The first way described above indicates that the operation instruction for the target element is a copy instruction. The copy instruction is used for copying the target element in the first window into the second window, and the target element is still reserved in the first window.
The system can set copy instructions according to needs and actual conditions, such as: clicking, double clicking or long pressing the target element indicates that the target element is the element to be copied.
S303, receiving a dragging instruction aiming at the marked target element.
S304, copying the target element to the first window based on the dragging instruction.
Optionally, the step S304 includes:
s3041, obtaining a dragging ending position of the dragging instruction.
S3042, if the drag ending position is located outside the first area, copying the target element to the drag ending position in the first window, and deleting the target element in the pop-up window.
According to the element adding method provided by the invention, the copy operation is carried out on the target element in the popup window of the first window, namely, the element in the second area of the second window can be copied into the first window, and the related operation on the second window is not needed. Therefore, the method provided by the embodiment of the invention can improve the operation efficiency of elements needing to be copied between two different windows and improve the user experience of a user.
Referring to fig. 4, fig. 4 is a schematic flow chart of another element adding method provided in an embodiment of the present invention, where the method includes:
s401, responding to an adding instruction aiming at a target element displayed in a second area in a second window, and outputting a popup window in a first area of a first window, wherein the popup window is used for displaying the target element.
S402, receiving a moving instruction aiming at the target element in the popup window, and marking the target element by adopting a second mode.
There may be multiple operating instructions in the system, such as: a select instruction, a delete instruction, a copy instruction, or a move instruction. The second way described above indicates that the operation instruction for the target element is a move instruction. The move instruction is used for moving a target element in a first window to a second window, and the target element needs to be deleted by the first window.
The system can set the moving instruction according to the needs and the actual conditions, such as: clicking, double clicking or long pressing the target element indicates that the target element is the element to be moved.
S403, receiving a dragging instruction for the marked target element.
S404, moving the target element to the first window based on the dragging instruction, and deleting the target element in the second window and the target element in the pop-up window.
Optionally, the step S404 may include:
s4041, obtaining the drag ending position of the drag instruction.
S4042, if the drag ending position is located outside the first area, moving the target element to the first window, and deleting the target element in the second window and the target element in the pop-up window.
According to the element adding method provided by the invention, the element in the second area of the second window can be moved to the first window without performing related operation on the second window by performing moving operation on the target element in the popup window of the first window. Therefore, the method provided by the embodiment of the invention can improve the operation efficiency of the elements needing to be moved between two different windows and improve the user experience of a user.
The process of the present invention for implementing the addition of the different screen elements is specifically described below by a specific embodiment. Fig. 5 is a schematic view of an application scenario of a method for adding an extra-screen element according to an embodiment of the present invention. In the dual screen case, when the user operates in front of the right screen, and wishes to copy/move the content of a certain portion of the left screen to a certain area of the right screen. The user can invoke the copy/move function through gestures such as long pressing at the relative position of the right screen, or invoke the copy/move function through a menu form, and the scheme does not limit how the copy/move function is invoked.
Fig. 6 is a schematic diagram of a function for evoking addition of an extra-screen element according to an embodiment of the present invention. When a user calls a copying/moving function at a certain position of the right screen, a content box is generated at the position, the content in the content box displays the content in the relative position of the left screen, and the user realizes the copying/moving function through dragging the element. In the following description, a long press is used as a trigger source for evoking the copy/move function for explanation.
The popup window in the right screen provided by the embodiment of the invention is used for displaying elements in a corresponding area of the left screen, one popup window is displayed in the right screen by taking a red dot as a center, and the size of the popup window can be defined by self according to a use scene. At this time, the content of the popup in the right screen is the copy/movable element content of the corresponding area of the left screen.
If the user presses the first area for a long time at the position P (x, y), the copy range on the second area is a partial range with P as the center point, the range can be set arbitrarily, and the copy/move elements in the range can be displayed in the popup window of the first area in an equal ratio.
Fig. 7 is a schematic diagram illustrating the display of the content of the popup in the right screen when the display area of the left screen is small. Fig. 8 is a schematic diagram of the content display of the popup in the right screen when the display area of the left screen is large. As shown in fig. 7 and 8, when the display area of the left screen is small, the content of the pop-up window in the right screen is also small; when the display area of the left screen is larger, the content of the popup window in the right screen is more.
The content displayed in the popup is a copy/move-able element in the set copy range area. The size of the copy/mobile popup on the right screen and the setting range on the left screen may be different in size, but the aspect ratio satisfies the geometric relationship. If the setting range is larger than the size of the pop-up window, the content of the setting range is displayed in the pop-up window in an equal-ratio reduction mode. If a portion of the elements within the setting range is outside the setting range, the portion is not displayed within the pop-up window.
The user can close the pop-up window that the right screen appears as required, such as: clicking the outer part of the pop-up window to disappear, double clicking the outer part of the pop-up window to disappear, pressing the pop-up window for a long time to disappear, adding a closing button on the pop-up window, clicking the closing button to disappear, and the like. The scheme does not limit the scheme used when the pop-up window is closed.
At this time, the user can close the pop-up window appearing on the right screen as required, such as: clicking the outer part of the pop-up window to disappear, double clicking the outer part of the pop-up window to disappear, pressing the pop-up window for a long time to disappear, adding a closing button on the pop-up window, clicking the closing button to disappear, and the like. The scheme does not limit the scheme used when the pop-up window is closed.
When a user clicks one of the elements displayed in the pop-up window, a selection prompt is displayed on the element, for example, a circular element is selected in fig. 7, and a circle is displayed around the circular element to represent that the circular element is selected. The user can select to move or copy an element, and when the user clicks on the element, the element selection status aperture appears in a color indicating copy mode, such as identified by a green aperture. When the user double-clicks on an element, the element appears in another color to represent the movement pattern, such as identified by a red aperture. The user can copy/move the elements in the pop-up window to the right screen by dragging the elements.
When a user drags an element out of a popup window in a copy mode, a new element is created (copied) to the position of the drag end; and if the element is not dragged out of the popup window, replying the state before dragging without copying.
When the user drags an element out of the pop-up window in the move mode, a new element is created (copied) to the position where the dragging ends, while the elements of the area a are deleted, and the copy/move-able elements in the pop-up window are deleted. And if the element is not dragged out of the popup window, replying the state before dragging without copying.
Note: and in the copying/moving process, judging whether the copying/moving operation is effective or not by judging the dragging ending position of the user. If the copy/move is invalid, the element cannot be copied/moved, and the element state is the state immediately before the drag is performed. The judgment mechanism is as follows: if the release hand is positioned inside the pop-up window, the operation is not effective.
Fig. 9 is an initial state diagram of a left screen and a right screen according to an embodiment of the present invention. Fig. 10 is a schematic diagram of a copy element dragging process according to an embodiment of the present invention. Fig. 11 is a schematic diagram of a copy element result according to an embodiment of the present invention. As shown in fig. 9-11, in the copy mode, the user drags the circular element, copying it into the right screen.
Fig. 12 is a schematic diagram of a mobile element dragging process according to an embodiment of the present invention. Fig. 13 is a diagram illustrating a result of moving an element according to an embodiment of the present invention. As shown in fig. 9-13, the user drags the circular element, copying it into the right screen. In the move mode, the user drags the circle element, copying it into the right screen. It should be noted that in the move mode, once an element has moved and the movement is valid: the elements of the left screen and the elements in the pop-up window are cleared.
Fig. 2 to 13 describe the element adding method in detail in the embodiment of the present application.
Referring to fig. 14, fig. 14 is a schematic structural diagram of an element adding apparatus according to an embodiment of the present invention, and as shown in fig. 14, the element adding apparatus includes:
an output unit 1401, configured to output a popup in a first area of a first window in response to an add instruction for a target element displayed in a second area of a second window, where the popup is used to display the target element;
a receiving unit 1402, configured to receive an operation instruction for the target element in the popup;
an adding unit 1403, configured to add, based on the operation instruction, an element in the second area of the second window to the first window.
Optionally, the receiving unit 1402 is specifically configured to:
receiving a copy instruction aiming at the target element in the popup window, and marking the target element in a first mode;
receiving a drag instruction for the marked target element;
the adding unit 1403 is specifically used for:
copying the target element into the first window based on the drag instruction.
Optionally, the adding unit 1403 is specifically configured to:
acquiring a dragging ending position of the dragging instruction;
and if the drag ending position is located outside the first area, copying the target element to the drag ending position in the first window, and deleting the target element in the popup window.
Optionally, the receiving unit 1402 is specifically configured to:
receiving a moving instruction aiming at the target element in the popup window, and marking the target element by adopting a second mode;
receiving a drag instruction for the marked target element;
the adding unit 1403 is specifically used for:
based on the dragging instruction, moving the target element into the first window, and deleting the target element in the second window and the target element in the pop-up window.
Optionally, the adding unit 1403 is specifically configured to:
acquiring a dragging ending position of the dragging instruction;
and if the dragging ending position is located outside the first area, moving the target element to the first window, and deleting the target element in the second window and the target element in the pop-up window.
Optionally, the adding unit 1403 is further configured to:
and if the dragging ending position is located in the first area, not responding to the dragging instruction.
Optionally, the adding instruction of the target element is triggered by inputting a long-press operation in the first area.
Optionally, an area ratio of the first region to the second region is a preset area ratio, and the popup displays the target element in the preset area ratio.
Optionally, the shape of the first region and the shape of the second region are both rectangles, the ratio of the length of the first region to the length of the second region is a preset length ratio, the ratio of the width of the first region to the width of the second region is the preset length ratio, and the popup window displays elements on the second region according to the preset length ratio.
Optionally, the apparatus further comprises a closing unit. And the closing unit is used for responding to a closing instruction aiming at the pop-up window and closing the pop-up window.
It is clear to a person skilled in the art that the solution according to the embodiments of the invention can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), or the like.
Each processing unit and/or module according to the embodiments of the present invention may be implemented by an analog circuit that implements the functions described in the embodiments of the present invention, or may be implemented by software that executes the functions described in the embodiments of the present invention.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described element adding method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Referring to fig. 15, a schematic structural diagram of an electronic device according to an embodiment of the present invention is shown, where the electronic device may be used to implement the element adding method provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the memory 1520 may be used to store software programs and modules, and the processor 1580 performs various functional applications and data processing by operating the software programs and modules stored in the memory 1520. The memory 1520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 1520 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1520 may also include a memory controller to provide access to the memory 1520 by the processor 1580 and the input unit 1530.
The input unit 1530 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1530 may include a touch-sensitive surface 1531 (e.g., a touch screen, a touch pad, or a touch frame). The touch-sensitive surface 1531, also referred to as a touch display screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 1531 (e.g., operations by a user on or near the touch-sensitive surface 1531 using a finger, stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch-sensitive surface 1531 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1580, and can receive and execute commands sent by the processor 1580. In addition, the touch-sensitive surface 1531 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave.
The display unit 1540 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal device, which may be composed of graphics, text, icons, video, and any combination thereof. The Display unit 1540 may include a Display panel 1541, and optionally, the Display panel 1541 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 1531 may cover display panel 1541 and, when touch-sensitive surface 1531 detects a touch operation thereon or thereabout, communicate to processor 1580 for determining a type of touch event, and processor 1580 then provides a corresponding visual output on display panel 1541 based on the type of touch event. Although in FIG. 15, touch-sensitive surface 1531 and display panel 1541 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 1531 may be integrated with display panel 1541 for input and output functions.
The processor 1580 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 1520 and calling data stored in the memory 1520, thereby integrally monitoring the terminal device. Optionally, the processor 1580 may include one or more processing cores; the processor 1580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It is to be appreciated that the modem processor may not be integrated into the processor 1580.
Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors, and include steps for implementing the element adding method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
All functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. An element addition method, characterized in that the method comprises:
responding to an adding instruction of a target element displayed in a second area in a second window, outputting a popup window in a first area of a first window, wherein the popup window is used for displaying the target element, the second area is an area to be copied, and the adding instruction of the target element is triggered by inputting a long-press operation in the first area;
receiving an operation instruction aiming at the target element in the popup window;
adding elements in a second region of the second window to the first window based on the operation instruction;
wherein the first area and the second area respectively take the upper left corners of the first window and the second window as starting points (0, 0), and the first area is set by taking the coordinate P1(x1, y1) of the long press position of the long press operation as a central point;
when the first region and the second region are both the same in shape and size, the copy center point of the second region is P2 (x1, y 1);
when the first region is the same shape but different in size from the second region, the copy center point of the second region is P2 (x 2, y 2), x1: x2= width of the first region: width of second region, y1: y2= height of the first area: the height of the second region;
when the first region and the second region are similar graphs, the position coordinate of the second region is determined in the second region according to the position coordinate of the first region through the area proportion and the perimeter proportion of the first region and the second region.
2. The method of claim 1, wherein receiving the operation instruction for popup comprises:
receiving a copy instruction aiming at the target element in the popup window, and marking the target element in a first mode;
receiving a drag instruction for the marked target element;
the adding, based on the operation instruction, an element in a second area of the second window to the first window includes:
copying the target element into the first window based on the drag instruction.
3. The method of claim 2, wherein the copying the target element into the first window based on the drag instruction comprises:
acquiring a dragging ending position of the dragging instruction;
and if the drag ending position is located outside the first area, copying the target element to the drag ending position in the first window, and deleting the target element in the popup window.
4. The method of claim 1, wherein receiving an operation instruction for a popup; the method comprises the following steps:
receiving a moving instruction aiming at the target element in the popup window, and marking the target element by adopting a second mode;
receiving a drag instruction for the marked target element;
the adding, based on the operation instruction, an element in a second area of the second window to the first window includes:
based on the dragging instruction, moving the target element into the first window, and deleting the target element in the second window and the target element in the pop-up window.
5. The method of claim 4, wherein the moving the target element into the first window and deleting the target element in the second window and the target element in the popup window based on the drag instruction comprises:
acquiring a dragging ending position of the dragging instruction;
and if the dragging ending position is located outside the first area, moving the target element to the first window, and deleting the target element in the second window and the target element in the pop-up window.
6. The method of claim 3 or 5, further comprising:
and if the dragging ending position is located in the first area, not responding to the dragging instruction.
7. The method of claim 1, wherein an area ratio of the first region to the second region is a preset area ratio, and the popup displays the target element at the preset area ratio.
8. The method of claim 1, wherein the first region and the second region are both rectangular in shape, a ratio of a length of the first region to a length of the second region is a preset length ratio, a ratio of a width of the first region to a width of the second region is the preset length ratio, and the popup displays elements on the second region at the preset length ratio.
9. The method of claim 1, wherein after outputting the popup in the first region of the first window, the method further comprises:
and responding to a closing instruction aiming at the popup window, and closing the popup window.
10. An element adding apparatus, characterized in that the apparatus comprises:
the system comprises an output unit, a first display unit and a second display unit, wherein the output unit is used for responding to an adding instruction of a target element displayed in a second area in a second window, outputting a popup window in a first area of the first window, the popup window is used for displaying the target element, the second area is an area to be copied, and the adding instruction of the target element is triggered by inputting a long-press operation in the first area;
a receiving unit, configured to receive an operation instruction for the target element in the popup;
an adding unit, configured to add an element in a second region of the second window to the first window based on the operation instruction;
wherein the first area and the second area respectively take the upper left corners of the first window and the second window as starting points (0, 0), and the first area is set by taking the coordinate P1(x1, y1) of the long press position of the long press operation as a central point;
when the first region and the second region are both the same in shape and size, the copy center point of the second region is P2 (x1, y 1);
when the first region is the same shape but different in size from the second region, the copy center point of the second region is P2 (x 2, y 2), x1: x2= width of the first region: width of second region, y1: y2= height of the first area: the height of the second region;
when the first region and the second region are similar graphs, the position coordinate of the second region is determined in the second region according to the position coordinate of the first region through the area proportion and the perimeter proportion of the first region and the second region.
11. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 9.
12. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 9.
CN201910943327.5A 2019-09-30 2019-09-30 Element adding method and device and electronic equipment Active CN110737383B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910943327.5A CN110737383B (en) 2019-09-30 2019-09-30 Element adding method and device and electronic equipment
PCT/CN2019/125534 WO2021062948A1 (en) 2019-09-30 2019-12-16 Element adding method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910943327.5A CN110737383B (en) 2019-09-30 2019-09-30 Element adding method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110737383A CN110737383A (en) 2020-01-31
CN110737383B true CN110737383B (en) 2021-06-18

Family

ID=69269879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910943327.5A Active CN110737383B (en) 2019-09-30 2019-09-30 Element adding method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN110737383B (en)
WO (1) WO2021062948A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102754353A (en) * 2010-02-10 2012-10-24 三星电子株式会社 Mobile device with dual display units and method for providing a clipboard function using the dual display units
CN104462033A (en) * 2013-09-16 2015-03-25 北京三星通信技术研究有限公司 Method and device for realizing editing operation among devices
CN104866182A (en) * 2015-02-16 2015-08-26 锤子软件(北京)有限公司 Movement method of picture data and mobile terminal
CN104932814A (en) * 2015-04-29 2015-09-23 萌宝信息技术(上海)有限公司 Data transmission method and system and electronic terminal
CN110007835A (en) * 2019-03-27 2019-07-12 维沃移动通信有限公司 A kind of method for managing object and mobile terminal
CN110134306A (en) * 2019-04-08 2019-08-16 努比亚技术有限公司 A kind of data sharing method, device and computer readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855079B (en) * 2011-05-24 2016-06-08 Lg电子株式会社 Mobile terminal
JP2015043123A (en) * 2013-08-26 2015-03-05 シャープ株式会社 Image display device, data transfer method, and program
CN104123078B (en) * 2014-08-12 2017-05-31 广州三星通信技术研究有限公司 The method and apparatus of input information
KR102427833B1 (en) * 2015-11-30 2022-08-02 삼성전자주식회사 User terminal device and method for display thereof
CN106951220B (en) * 2016-01-06 2020-04-07 腾讯科技(深圳)有限公司 Data processing method and device
US10895954B2 (en) * 2017-06-02 2021-01-19 Apple Inc. Providing a graphical canvas for handwritten input
CN109375890B (en) * 2018-09-17 2022-12-09 维沃移动通信有限公司 Screen display method and multi-screen electronic equipment
CN109857289B (en) * 2018-12-24 2021-01-08 维沃移动通信有限公司 Display control method and terminal equipment
CN109857291A (en) * 2018-12-26 2019-06-07 维沃移动通信有限公司 A kind of icon display method and terminal device
CN110221799A (en) * 2019-05-30 2019-09-10 维沃移动通信有限公司 A kind of control method, terminal and computer readable storage medium
CN110286991B (en) * 2019-06-30 2021-08-17 联想(北京)有限公司 Information processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102754353A (en) * 2010-02-10 2012-10-24 三星电子株式会社 Mobile device with dual display units and method for providing a clipboard function using the dual display units
CN104462033A (en) * 2013-09-16 2015-03-25 北京三星通信技术研究有限公司 Method and device for realizing editing operation among devices
CN104866182A (en) * 2015-02-16 2015-08-26 锤子软件(北京)有限公司 Movement method of picture data and mobile terminal
CN104932814A (en) * 2015-04-29 2015-09-23 萌宝信息技术(上海)有限公司 Data transmission method and system and electronic terminal
CN110007835A (en) * 2019-03-27 2019-07-12 维沃移动通信有限公司 A kind of method for managing object and mobile terminal
CN110134306A (en) * 2019-04-08 2019-08-16 努比亚技术有限公司 A kind of data sharing method, device and computer readable storage medium

Also Published As

Publication number Publication date
WO2021062948A1 (en) 2021-04-08
CN110737383A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
JP6264293B2 (en) Display control apparatus, display control method, and program
US9405463B2 (en) Device and method for gesturally changing object attributes
KR101701492B1 (en) Terminal and method for displaying data thereof
US9292161B2 (en) Pointer tool with touch-enabled precise placement
CN111142730B (en) Split-screen display method and electronic equipment
CN105302784B (en) Method and system for copying/cutting and pasting data
JP3475235B2 (en) Display device control method
US20130169570A1 (en) Electronic equipment, storage medium and deletion controlling method
JP2015519671A (en) Touch screen misoperation prevention method, touch screen, mobile terminal, program, and recording medium
EP2701054A2 (en) Method and apparatus for constructing a home screen in a terminal having a touch screen
EP2772844A1 (en) Terminal device and method for quickly starting program
CN108694012B (en) Method and system for displaying objects on screen
CN111443863A (en) Page control method and device, storage medium and terminal
KR20130080179A (en) Method and apparatus for managing icon in portable terminal
WO2019047147A1 (en) Icon moving method and device
KR20130011437A (en) Method and apparatus for managing icon in portable terminal
US11435870B2 (en) Input/output controller and input/output control program
CN106020698A (en) Mobile terminal and realization method of single-hand mode
JP2014071724A (en) Electronic apparatus, control method, and control program
EP2741203A2 (en) Object operation apparatus and non-transitory computer-readable storage medium
JP5864319B2 (en) Electronic device, method for controlling electronic device, and program for controlling electronic device
TWI442262B (en) Electronic apparatus and method for controlling the same
CN113885749A (en) Icon display method and device and electronic equipment
CN113721808A (en) Control method and device
US20140165011A1 (en) Information processing apparatus

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