CN113031939B - Building block adjusting method and related device in graphical programming tool - Google Patents

Building block adjusting method and related device in graphical programming tool Download PDF

Info

Publication number
CN113031939B
CN113031939B CN202110468781.7A CN202110468781A CN113031939B CN 113031939 B CN113031939 B CN 113031939B CN 202110468781 A CN202110468781 A CN 202110468781A CN 113031939 B CN113031939 B CN 113031939B
Authority
CN
China
Prior art keywords
building block
target
adjusting
block
combination
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
CN202110468781.7A
Other languages
Chinese (zh)
Other versions
CN113031939A (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.)
Shenzhen Tencent Domain Computer Network Co Ltd
Original Assignee
Shenzhen Tencent Domain Computer Network 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 Shenzhen Tencent Domain Computer Network Co Ltd filed Critical Shenzhen Tencent Domain Computer Network Co Ltd
Priority to CN202110468781.7A priority Critical patent/CN113031939B/en
Publication of CN113031939A publication Critical patent/CN113031939A/en
Application granted granted Critical
Publication of CN113031939B publication Critical patent/CN113031939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The embodiment of the application discloses a building block adjusting method and a related device in a graphical programming tool, wherein the method comprises the following steps: when detecting that the building block adjusting element triggers the building block pre-adjusting operation at the target building block, starting a timer to count time, and recording the current position of the building block adjusting element as a first position; when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position; if the second position is matched with the first position, determining that the current trigger is aimed at the adjustment operation of the target building block; and adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block. The method can adjust the single building blocks in the building block combination, thereby improving the use experience of the user of the graphical programming tool.

Description

Building block adjusting method and related device in graphical programming tool
Technical Field
The application relates to the technical field of computers, in particular to a building block adjusting method in a graphical programming tool and a related device.
Background
In recent years, with rapid development of computer technology, attention is paid to programming education, and graphical programming tools for programming beginners are increasingly used by users. The graphical programming tool packages programming language in graphical building blocks, and a user can complete programming by building the building blocks; such graphical programming tools generally have the advantages of simple operating environment, high standardization level, easy sharing and propagation, and the like.
In the existing graphical programming tools, after a user writes a set of programs by building blocks, the user cannot directly adjust individual blocks with other blocks connected to the rear end, for example, the user cannot directly select an individual block and separate the individual block from the associated block. This is a poor use experience for the user of the graphical programming tool and has an impact on the user's programming efficiency.
Disclosure of Invention
The embodiment of the application provides a building block adjusting method and a related device in a graphical programming tool, which can adjust single building blocks in a building block combination, thereby improving the use experience of a user of the graphical programming tool.
In view of this, a first aspect of the present application provides a method of building block adjustment in a graphical programming tool, the method comprising:
when detecting that a building block adjusting element triggers building block pre-adjusting operation at a target building block, starting a timer to count time, and recording the current position of the building block adjusting element as a first position;
when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position; if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently;
and adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
In a second aspect, the present application provides a block adjustment device in a graphical programming tool, the device comprising:
the information recording module is used for starting a timer to count when detecting that the building block adjusting element triggers building block pre-adjustment operation at the target building block, and recording the current position of the building block adjusting element as a first position;
The operation judging module is used for recording the current position of the building block adjusting element as a second position when the timing time of the timer reaches a preset time threshold; if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently;
and the information adjustment module is used for adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
A third aspect of the application provides an apparatus comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute the steps of the building block adjustment method in the graphical programming tool according to the first aspect described above according to the computer program.
A fourth aspect of the present application provides a computer readable storage medium storing a computer program for executing the steps of the building block adjustment method in the graphical programming tool described in the first aspect.
A fifth aspect of the application provides a computer program product or computer program comprising computer instructions stored on a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the steps of the building block adjustment method in the graphical programming tool described in the first aspect.
From the above technical solutions, the embodiment of the present application has the following advantages:
in the building block adjusting method in the graphical programming tool provided by the embodiment of the application, when the building block adjusting element is detected to trigger the building block pre-adjusting operation at the target building block, a timer is started to count time, and the current position of the building block adjusting element is recorded as a first position; when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position, and if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameters of the target building block can be adjusted according to the dragging track of the target building block. The building block adjusting method creatively provides an adjusting mode aiming at a single building block in the building block combination, namely, the adjusting operation aiming at the target building block is triggered by controlling the building block adjusting element to be positioned at the target building block for a long time (for example, the adjusting operation can be realized by pressing a mouse at the position of the target building block), and then the target building block can be adjusted by dragging the target building block; therefore, the operation efficiency of the imaging programming tool on the building blocks can be effectively improved, the misoperation rate is reduced, the operation mode is more in line with the operation habit and the cognition instinct of a user, the learning threshold of a programming beginner can be reduced, and the user experience is improved.
Drawings
FIG. 1 is a schematic view of an application scenario of a method for adjusting building blocks in a graphical programming tool according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for adjusting building blocks in a graphical programming tool according to an embodiment of the present application;
FIG. 3 is an interface schematic diagram of a web-side graphical programming tool according to an embodiment of the present application;
FIG. 4 is an interface schematic diagram of a web-side graphical programming tool according to an embodiment of the present application;
FIG. 5 is an interface schematic diagram of a web-side graphical programming tool provided by an embodiment of the present application;
FIG. 6 is an interface schematic diagram of a web-side graphical programming tool provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a block adjustment device in a graphical programming tool according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the present application better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the existing graphical programming tools, after building block combinations (namely, programming a set of programs) are built by building blocks, a user cannot directly adjust a single building block with other building blocks connected to the rear end; for example, a user cannot directly select an individual building block and separate it from the associated building block combination. For a user using a graphical programming tool, the use experience is poor, misoperation is easy to cause, and the programming efficiency of the user is also influenced.
Aiming at the problems of the related art, the embodiment of the application provides a building block adjusting method in a graphical programming tool, which can adjust single building blocks in a building block combination, thereby improving the use experience of a user of the graphical programming tool.
Specifically, in the building block adjusting method in the graphical programming tool provided by the embodiment of the application, when the building block adjusting element is detected to trigger the building block pre-adjusting operation at the target building block, a timer is started to count time, and the current position of the building block adjusting element is recorded as the first position; when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position, and if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameters of the target building block can be adjusted according to the dragging track of the target building block.
The building block adjusting method creatively provides an adjusting mode aiming at a single building block in the building block combination, namely, the adjusting operation aiming at the target building block is triggered by controlling the building block adjusting element to be positioned at the target building block for a long time (for example, the adjusting operation can be realized by pressing a mouse at the position of the target building block), and then the target building block can be adjusted by dragging the target building block; therefore, the operation efficiency of the imaging programming tool on the building blocks can be effectively improved, the misoperation rate is reduced, the operation mode is more in line with the operation habit and the cognition instinct of a user, the learning threshold of a programming beginner can be reduced, and the user experience is improved.
It should be understood that the method for adjusting the building blocks in the graphical programming tool provided by the embodiment of the application can be applied to terminal equipment supporting the operation of the graphical programming tool or a server of the graphical programming tool; the terminal equipment can be a smart phone, a computer, a tablet personal computer, a personal digital assistant (Personal Digital Assitant, PDA) and the like; the server can be an application server or a Web server, and can be an independent server or a cluster server or a cloud server in actual deployment.
In order to facilitate understanding of the block adjustment method in the graphical programming tool provided by the embodiment of the present application, an application scenario of the block adjustment method is described below by taking an execution body of the block adjustment method as an example of a server.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a building block adjustment method in a graphical programming tool according to an embodiment of the present application. As shown in fig. 1, the application scenario includes a terminal device 110 and a server 120, where the terminal device 110 and the server 120 may communicate through a network. Wherein, the terminal device 110 can access the web-side graphical programming tool through the network; the server 120 is a background server of the web-side graphical programming tool, and can respond to programming operation triggered by a user through the terminal device 110 to construct a corresponding program, where the server 120 is used for executing the building block adjustment method in the graphical programming tool provided by the embodiment of the application.
In practical applications, a user may access the web-side graphical programming tool through the terminal device 110, and select, from among the selectable building blocks provided by the web-side graphical programming tool, a building block set through the terminal device 110, thereby obtaining a set of programming programs. Illustratively, the user may select a desired building block within a building block area in the graphical programming tool interface using the mouse of the terminal device 110 and drag the selected building block to a script area in the graphical programming tool interface; the user can select a plurality of building blocks from the building block area to drag to the script area through a plurality of operations, and the server 120 constructs the association relationship between the plurality of building blocks according to the respective corresponding drag sequences or respective corresponding drag positions of the plurality of building blocks dragged to the script area, so as to obtain the building block combination corresponding to a set of programming program.
In the technical scheme provided by the embodiment of the application, after the building block combination is obtained in the mode, a user can trigger adjustment operation for a single building block in the building block combination.
Specifically, the user may trigger the building block pre-adjustment operation through the mouse of the terminal device 110 for the target building block to be adjusted in the building block combination; for example, the user may move the mouse cursor to a target building block of the building block combination and press the left mouse button at the target building block, thus triggering a building block pre-adjustment operation. Accordingly, after the server 120 detects that the building block pre-adjustment operation is triggered at the target building block, the building block adjustment element (i.e., the mouse cursor) may be considered to trigger the building block pre-adjustment operation at the target building block; at this time, the server 120 also starts a timer to count and records the current position of the block adjustment element in the graphical programming tool interface as the first position.
When the timing duration of the timer reaches a preset duration threshold (e.g., 750 ms), the server 120 records the current position of the building block adjustment element in the graphical programming tool interface as a second position; and judging whether the second position is matched with the first position recorded before, and if so, determining that the adjustment operation for the target building block is triggered currently. It should be appreciated that if the server 120 detects that the user stops triggering the building block pre-adjustment operation before the timing duration of the timer does not reach the preset duration threshold, for example, detects that the user releases the left mouse button, the timer may be stopped accordingly and the user is deemed not to trigger the adjustment operation for the target building block.
After determining that the adjustment operation for the target building block is currently triggered, the server 120 may adjust the display position of the target building block in the graphical programming tool interface according to the drag track for the target building block, and adjust the interface parameters of the target building block accordingly. For example, after determining that the adjustment operation for the target building block is currently triggered, the server 120 may highlight the target building block, and further adjust the display position of the target building block and the interface parameter of the target building block accordingly in response to the drag operation for the target building block triggered by the mouse.
It should be understood that the application scenario shown in fig. 1 is only an example, and in practical application, the building block adjustment method provided by the embodiment of the present application may be applicable to not only a web-side graphical programming tool, but also a graphical programming tool client, and accordingly, the building block adjustment method provided by the embodiment of the present application may be executed by a background server of the graphical programming tool client. In addition, the building block adjusting method provided by the embodiment of the application can also be independently executed by the terminal equipment supporting the operation of the client of the graphical programming tool, and the application scene of the building block adjusting method in the graphical programming tool provided by the embodiment of the application is not limited at all.
The following describes the method for adjusting the building blocks in the graphical programming tool according to the embodiment of the method.
Referring to fig. 2, fig. 2 is a flow chart illustrating a method for adjusting building blocks in a graphical programming tool according to an embodiment of the present application. For convenience of description, the following embodiments will be described by taking an execution subject of the method as a server. As shown in fig. 2, the building block adjusting method includes the following steps:
step 201: when the building block adjusting element is detected to trigger the building block pre-adjusting operation at the target building block, a timer is started to count time, and the current position of the building block adjusting element is recorded as a first position.
In practical application, a user can access a web-side graphical programming tool through terminal equipment, and write a program in the web-side graphical programming tool in a building block combination mode; alternatively, the user may install a graphical programming tool client on the terminal device, and write a program in the graphical programming tool client by building a building block combination.
In the technical scheme provided by the embodiment of the application, after building block combinations are built in the web side graphical programming tool or the graphical programming tool client side, a user can also adjust single building blocks according to own requirements. That is, the user may trigger a building block pre-adjustment operation for a target building block to be adjusted in the building block combination, so that the web-side graphical programming tool or the background server of the graphical programming tool client may trigger an operation of individually adjusting the target building block in response to the building block pre-adjustment operation.
After detecting that a user triggers building block pre-adjustment operation for a target building block in a building block combination through a building block adjustment element, the server can correspondingly start a timer to count, and records the position of the building block adjustment element in a web-end graphical programming tool or a display interface of a graphical programming tool client as a first position.
To facilitate an understanding of the above process, an exemplary description of the implementation is provided below in connection with an interface schematic of the web-side graphical programming tool shown in FIG. 3.
As shown in fig. 3, the user-built building block combination is displayed in a script area in the web-side graphical programming tool; the user can move the mouse cursor to the target building block to be adjusted in the building block combination, and press the left mouse button at the target building block, so that the building block pre-adjustment operation for the target building block is triggered. For the server, after detecting that the user moves the mouse cursor to the target building block and presses the left button of the mouse at the target building block, the server can consider that the building block adjusting element (namely the mouse cursor corresponds to the circular aperture in fig. 3) triggers the building block pre-adjusting operation at the target building block, at this time, the server correspondingly starts a timer to count time, and records the current position coordinate of the building block adjusting element in the script area as the first position.
It should be understood that the expression form of the building block adjusting element and the form of triggering the building block pre-adjustment operation are only examples, and in practical application, the expression form of the building block adjusting element and the form of triggering the building block pre-adjustment operation may also be set according to practical requirements, and the application is not limited in any way herein.
Step 202: when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position; if the second position matches the first position, then determining that an adjustment operation for the target building block is currently triggered.
When the timing duration of the timer started in step 201 reaches a preset duration threshold (e.g., 750 ms), the server may record the position where the building block adjustment element is located at this time as the second position. Further, it is determined whether the second position matches the first position recorded in step 201, and if the second position matches the first position, it is considered that the adjustment operation for the target building block is currently triggered.
It should be noted that, if it is detected that the user cancels the previously triggered building block preset operation before the timing duration of the timer reaches the preset duration threshold, the server may control the timer to stop timing, and step 202 is not required to be executed. For example, assuming that the user previously triggered the block preconditioning operation for the target block by pressing the left mouse button when the mouse cursor is located at the target block, the user releases the left mouse button before the timing duration does not reach the preset duration threshold, and may be considered to cancel the triggered block preconditioning operation, and accordingly, the server may control the timer to stop timing and consider that the user does not trigger the adjustment operation for the target block.
It should be noted that the second position is matched with the first position, which may mean that the second position is identical to the first position, or that the distance between the second position and the first position is smaller than a preset distance threshold, or that both the second position and the first position belong to the positions to which the target building block belongs.
It should be understood that the above-mentioned preset duration threshold value and preset distance threshold value may be set according to actual requirements, and the present application is not limited to any specific preset duration threshold value and preset distance threshold value.
To facilitate an understanding of the implementation, an exemplary description of the implementation is provided below in connection with an interface schematic of the web-side graphical programming tool shown in FIG. 3.
The server detects that a user moves the mouse cursor to a target building block, after the left button of the mouse is pressed at the target building block, the mouse cursor is considered to trigger the building block pre-adjustment operation at the target building block, and then a timer is correspondingly started to count time, and the position coordinate of the mouse cursor in a script area at present is recorded as a first position. When the time length of the left button of the mouse pressed by the user reaches the preset time length threshold, namely when the time length of the timer reaches the preset time length threshold, the server can acquire the position coordinate of the mouse cursor in the script area at the moment as the second position. Further, comparing whether the second position is consistent with the first position recorded before, and if so, determining that the user successfully triggers the adjustment operation for the target building block; at this point, the server may control the target building block to be highlighted, thereby prompting the user that he has successfully triggered an adjustment operation for that target building block.
Step 203: and adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
After determining that the user triggers the adjustment operation for the target building block, the server can correspondingly adjust the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
For example, assuming that the server detects that the duration of the user pressing the left mouse button exceeds the preset duration threshold, and that the position of the mouse cursor is the same as the position of the mouse cursor after the preset duration threshold is elapsed when the left mouse button is pressed, the server may respond to the operation that the user presses the left mouse button to drag the mouse cursor to move, and correspondingly change the display position of the target building block, so that the moving track of the target building block is the same as the moving track of the mouse cursor, that is, the effect that the mouse cursor drags the target building block is shown, and meanwhile, the server also needs to adjust the interface parameters of the target building block.
Of course, in practical application, the operation of dragging the target building block may be achieved by other manners besides pressing the left button of the mouse to drag, for example, the server determines that the adjustment operation for the target building block is currently triggered, after highlighting the target building block, the user may release the left button of the mouse, drag the target building block by pressing the right button of the mouse, or the user may release the left button of the mouse, drag the target building block by directly dragging the mouse, which is not limited in this application.
To facilitate an understanding of the implementation, an exemplary description of the implementation is provided below through an interface diagram of the web-side graphical programming tool shown in FIG. 4.
As shown in fig. 4, after the server determines that the adjustment operation on the target building block is triggered currently and the target building block is highlighted, the user can press the left button of the mouse, move the mouse cursor from the second position to the third position by moving the mouse, accordingly, the server can control the target building block to move the position vector from the second position to the third position in the script area, and adjust the interface parameters of the target building block accordingly.
The manner in which the interface parameters of the target building block are adjusted will be described in detail below.
In one possible implementation, the server may adjust the interface parameters of the building blocks in the original building block combination adjacent to the target building block, as well as the interface parameters of the target building block itself, when the drag trajectory for the target building block is used to separate the target building block from the original building block combination to which it belongs, e.g., to separate the target building block from the original building block combination.
It should be noted that each block in the graphical programming tool has its own corresponding identifier (i.e., ID). Two types of building blocks are usually included in the graphical programming tool, one type is used for representing functions, and the other type is used for representing parameters; the building blocks used for representing functions typically record the identification of the building blocks connected at their front ends by front building block connection parameters (also known as parent), and record the representation of the building blocks connected at their rear ends by rear building block connection parameters (also known as next); the building blocks used to represent the parameters typically have only front building block connection parameters and no rear building block connection parameters.
When a target building block is dragged to separate from the original building block combination, the server needs to correspondingly connect parameters of front building blocks and/or rear building blocks of building blocks adjacent to the target building block in the original building block combination, and connect parameters of front building blocks and/or rear building blocks of the target building block.
Specifically, when the building block adjacent to the target building block includes a front building block and a rear building block, the server needs to adjust the rear building block connection parameter of the front building block to be the identifier of the rear building block, adjust the front building block connection parameter of the rear building block to be the identifier of the front building block, and empty the front building block connection parameter and the rear building block connection parameter of the target building block. That is, when the user separates the target building block from the original building block combination, the server may interface the front building block and the rear building block of the original building block combination adjacent to the target building block, and may allow the target building block to be independent from the original building block combination.
When a block adjacent to a target block includes only a front block, the rear block connection parameter of the front block is emptied, and the front block connection parameter of the target block is emptied. That is, when the user separates the target building block located at the rearmost end of the original building block combination from the original building block combination, the server needs to correspondingly remove the rear building block connection parameter of the front building block originally connected with the target building block and remove the front building block connection parameter of the target building block, so that the target building block is independent from the original building block combination.
When a block adjacent to a target block includes only a rear block, the front block connection parameters of the rear block are emptied and the rear block connection parameters of the target block are emptied. That is, when the user separates the target building block located at the forefront end of the original building block combination from the original building block combination, the server needs to correspondingly clear the front building block connection parameters of the rear building block originally connected with the target building block, and clear the front building block connection parameters of the target building block, so that the target building block is independent from the original building block combination.
In another possible implementation, the server may adjust the interface parameters of the building block adjacent to the target building block in the original building block combination to which the target building block belongs, the interface parameters of the building block adjacent to the target location in the target building block combination, and the interface parameters of the target building block itself when the drag trajectory for the target building block is used to move the target building block to the target location in the target building block combination, e.g., to place the target building block at another location in the original building block combination to which it belongs, and, e.g., to place the target building block at another location in another building block combination other than the original building block combination to which it belongs.
That is, when a target building block is dragged to be located at a target position in a target building block combination, the server needs to adjust the front building block connection parameter and/or the rear building block connection parameter of the building block adjacent to the target building block in the original building block combination to which the target building block belongs, the front building block connection parameter and/or the rear building block connection parameter of the building block adjacent to the target position in the target building block combination, and the front building block connection parameter and/or the rear building block connection parameter of the target building block itself accordingly.
It should be noted that the above-mentioned target building block combination may be an original building block combination to which the target building block belongs, or may be other building block combinations different from the original building block combination, and the present application is not limited in any way. Accordingly, the target position may be any position in the original building block combination to which the target building block belongs, which is different from the original position to which the target building block originally belongs, or any position in the building block combination different from the original building block combination, and the present application does not limit the target position.
Specifically, when the building blocks adjacent to the target building block in the original building block combination comprise an original front building block and an original rear building block, the server needs to adjust the rear building block connection parameter of the original front building block to be the identifier of the original rear building block, and adjust the front building block connection parameter of the original rear building block to be the identifier of the original front building block; when the building blocks adjacent to the target position in the target building block combination comprise a target front building block and a target rear building block, the rear building block connection parameter of the target front building block is adjusted to be the mark of the target building block, the front building block connection parameter of the target rear building block is adjusted to be the mark of the target building block, the front building block connection parameter of the target building block is adjusted to be the mark of the target front building block, and the rear building block connection parameter of the target building block is adjusted to be the mark of the target rear building block. That is, the server needs to adjust the connection parameters of the rear building blocks of the original front building blocks and the connection parameters of the front building blocks of the original rear building blocks to connect the original front building blocks and the original rear building blocks in the original building block combination, and insert the target building blocks between the target front building blocks and the target rear building blocks in the target building block combination by adjusting the connection parameters of the rear building blocks of the target front building blocks, the connection parameters of the front building blocks of the target rear building blocks, and the connection parameters of the front building blocks and the rear building blocks of the target building blocks.
When the building blocks adjacent to the target building block in the original building block combination only comprise the original front building block, the server can empty the rear building block connection parameters of the original front building block; when the building blocks adjacent to the target building block in the original building block combination only include the original rear building block, the server may empty the front building block connection parameters of the original rear building block.
When the building blocks adjacent to the target position in the target building block combination only comprise target front building blocks, the server can adjust the rear building block connection parameters of the target front building blocks to be the marks of the target building blocks, adjust the front building block connection parameters of the target building blocks to be the marks of the target front building blocks, and empty the rear building block connection parameters of the target building blocks. When the building blocks adjacent to the target position in the target building block combination only comprise target rear building blocks, the server can adjust the front building block connection parameters of the target rear building blocks to be the marks of the target building blocks, adjust the rear building block connection parameters of the target building blocks to be the marks of the target rear building blocks, and empty the front building block connection parameters of the target building blocks.
Of course, in practical applications, the server may also adjust the interface parameters of the target building block, the interface parameters of the building block adjacent to the target building block in the original building block combination, and the interface parameters of the building block adjacent to the target location in the target building block combination in other manners, and the present application does not limit the adjustment manners of the interface parameters.
Optionally, as mentioned above, if it is detected that the user controls the building block adjustment element to end the building block pre-adjustment operation when the timing duration of the timer does not reach the preset duration threshold, the server may control the timer to stop timing, without executing step 202 and step 203. In one possible implementation, in the above case, the server may determine that an adjustment operation for a back-end block combination located at the back end of the target block is currently triggered, and will adjust the display position of the back-end block combination and the interface parameters of the target block according to the drag trajectory for the back-end block combination.
That is, if the server detects that the user controls the block adjustment element to end the block pre-adjustment operation before the timing duration of the timer reaches the preset duration threshold, for example, before the timing duration of the timer reaches the preset duration threshold, the server detects that the user releases the left mouse button pressed before the user releases the left mouse button; the server may determine that an adjustment operation is currently triggered for a rear-end block combination located at the rear end of the target block, where the rear-end block combination includes the target block and each block connected to the rear end of the target block; and then, according to the dragging track of the rear-end building block combination, namely according to the movement track of the mouse cursor, adjusting the display position of the rear-end building block combination and the interface parameters of the target building block.
To facilitate an understanding of the implementation, an exemplary description of the implementation is provided below in connection with the interface diagrams of the web-side graphical programming tool shown in fig. 5 and 6.
As shown in fig. 5, after the server detects that the user moves the mouse cursor to the target building block and presses the left mouse button at the target building block, the server considers that the mouse cursor triggers the pre-adjustment operation of the building block at the target building block, and then correspondingly starts the timer for timing; if the server detects that the user releases the left button of the pressed mouse before the timing duration of the timer reaches the preset duration threshold, it can determine that the adjustment operation for the rear-end building block combination positioned at the rear end of the target building block is currently triggered, and the rear-end building block combination can be highlighted at this time, so that the user is prompted that the user has successfully triggered the adjustment operation for the rear-end building block combination.
As shown in fig. 6, after determining that the adjustment operation for the back-end building block combination is currently triggered and highlighting the back-end building block combination, the user may press the left mouse button again and control the movement of the mouse cursor by moving the mouse, so that the back-end building block combination correspondingly follows the movement of the mouse cursor. Or, the user can press the right button of the mouse, and the movement of the mouse cursor is controlled by moving the mouse, so that the rear-end building block combination correspondingly moves along with the mouse cursor. Or, the user can directly move the mouse to control the movement of the mouse cursor, so that the back-end building block combination correspondingly follows the movement of the mouse cursor. The application is not limited in any way to the way the trailing end blocks are combined.
When specifically adjusting the interface parameters of the target building block, the server may empty the rear building block connection parameters of the front building block adjacent to the target building block and empty the front building block connection parameters of the target building block under the condition that the drag track of the rear building block combination is used to separate the rear building block combination from the original building block combination to which the target building block belongs. When the rear-end building block combination is dragged to be independent of the original building block combination to which the rear-end building block combination belongs, the server can separate the rear-end building block combination from the original building block combination by clearing the rear building block connection parameters of the front building blocks adjacent to the target building blocks in the original building block combination and the front building block connection parameters of the target building blocks.
In addition, when the drag trajectory is used to insert the rear-end block assembly into the target position in the target block assembly, the server may empty the rear-block connection parameters of the front blocks in the original block assembly that are adjacent to the target block assembly, and adjust the rear-block connection parameters of the target front blocks in the target block assembly to be the identification of the target block, adjust the front-block connection parameters of the target blocks to be the identification of the target front blocks, adjust the front-block connection parameters of the target rear blocks in the target block assembly to be the identification of the last block in the rear-end block assembly, and adjust the rear-block connection parameters of the last block in the rear-end block assembly to be the identification of the target rear block.
It should be understood that, in practical application, if the server detects that the user controls the block adjustment element to end the block pre-adjustment operation before the timing duration of the timer reaches the preset duration threshold, it may also determine that the adjustment operation for the whole original block combination to which the target block belongs is currently triggered, and further, adjust the display position of the original block combination according to the drag track for the original block combination.
In the building block adjusting method in the graphical programming tool provided by the embodiment of the application, when the building block adjusting element is detected to trigger the building block pre-adjusting operation at the target building block, a timer is started to count time, and the current position of the building block adjusting element is recorded as a first position; when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position, and if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameters of the target building block can be adjusted according to the dragging track of the target building block. The building block adjusting method creatively provides an adjusting mode aiming at a single building block in the building block combination, namely, the adjusting operation aiming at the target building block is triggered by controlling the building block adjusting element to be positioned at the target building block for a long time (for example, the adjusting operation can be realized by pressing a mouse at the position of the target building block), and then the target building block can be adjusted by dragging the target building block; therefore, the operation efficiency of the imaging programming tool on the building blocks can be effectively improved, the misoperation rate is reduced, the operation mode is more in line with the operation habit and the cognition instinct of a user, the learning threshold of a programming beginner can be reduced, and the user experience is improved.
The application also provides a corresponding building block adjusting device in the graphical programming tool aiming at the building block adjusting method in the graphical programming tool, so that the building block adjusting method in the graphical programming tool can be practically applied and realized.
Referring to fig. 7, fig. 7 is a schematic structural view of a block adjustment device 700 in the graphical programming tool corresponding to the block adjustment method in the graphical programming tool shown in fig. 2 above. As shown in fig. 7, the block adjusting apparatus 700 includes:
the information recording module 701 is configured to start a timer to count when detecting that a building block adjustment element triggers a building block pre-adjustment operation at a target building block, and record a current position of the building block adjustment element as a first position;
an operation determining module 702, configured to record, when the timing duration of the timer reaches a preset duration threshold, a current position of the building block adjustment element as a second position; if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently;
the information adjustment module 703 is configured to adjust a display position of the target building block and an interface parameter of the target building block according to a drag track of the target building block.
Optionally, the information adjustment module 703 is specifically configured to:
and when the dragging track is used for separating the target building block from the original building block combination to which the target building block belongs, adjusting the interface parameters of the building blocks adjacent to the target building block in the original building block combination and the interface parameters of the target building block.
Optionally, the information adjustment module 703 is specifically configured to:
when the building blocks adjacent to the target building block comprise a front building block and a rear building block, adjusting the rear building block connection parameter of the front building block to be the mark of the rear building block, adjusting the front building block connection parameter of the rear building block to be the mark of the front building block, and emptying the front building block connection parameter and the rear building block connection parameter of the target building block;
when the building blocks adjacent to the target building block only comprise front building blocks, emptying the rear building block connection parameters of the front building blocks, and emptying the front building block connection parameters of the target building blocks;
and when the building blocks adjacent to the target building block only comprise rear building blocks, emptying the front building block connection parameters of the rear building blocks, and emptying the rear building block connection parameters of the target building blocks.
Optionally, the information adjustment module 703 is specifically configured to:
when the dragging track is used for enabling the target building block to move to a target position in a target building block combination, adjusting interface parameters of building blocks adjacent to the target building block in an original building block combination to which the target building block belongs, interface parameters of building blocks adjacent to the target position in the target building block combination and interface parameters of the target building block.
Optionally, the information adjustment module 703 is specifically configured to:
when the building blocks adjacent to the target building block in the original building block combination comprise an original front building block and an original rear building block, adjusting the rear building block connection parameter of the original front building block to be the mark of the original rear building block, and adjusting the front building block connection parameter of the original rear building block to be the mark of the original front building block;
when the building blocks adjacent to the target position in the target building block combination comprise a target front building block and a target rear building block, the rear building block connection parameters of the target front building block are adjusted to be the marks of the target building blocks, the front building block connection parameters of the target rear building block are adjusted to be the marks of the target building blocks, the front building block connection parameters of the target building block are adjusted to be the marks of the target front building block, and the rear building block connection parameters of the target building block are adjusted to be the marks of the target rear building block.
Optionally, the operation determination module 702 is further configured to:
if the timing time of the timer does not reach the preset time threshold, detecting that the building block adjusting element is controlled to finish the building block pre-adjusting operation, determining that the adjusting operation of the rear-end building block combination positioned at the rear end of the target building block is triggered currently;
the information adjustment module 703 is further configured to:
and adjusting the display position of the rear-end building block combination and the interface parameters of the target building block according to the dragging track of the rear-end building block combination.
Optionally, the information adjustment module 703 is specifically configured to:
and when the dragging track is used for separating the rear end building block combination from the original building block combination to which the target building block belongs, clearing the rear building block connection parameters of the front building blocks adjacent to the target building block, and clearing the front building block connection parameters of the target building block.
In the building block adjusting device in the graphical programming tool provided by the embodiment of the application, when the building block adjusting element is detected to trigger the building block pre-adjusting operation at the target building block, a timer is started to count time, and the current position of the building block adjusting element is recorded as a first position; when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position, and if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameters of the target building block can be adjusted according to the dragging track of the target building block. The above building block adjusting device innovatively proposes an adjusting mode for a single building block in a building block combination, namely, the adjusting operation for the target building block is triggered by controlling the building block adjusting element to be located at the target building block for a long time (for example, the adjusting element can be realized by pressing a mouse at the target building block for a long time), and then the target building block can be adjusted by dragging the target building block; therefore, the operation efficiency of the imaging programming tool on the building blocks can be effectively improved, the misoperation rate is reduced, the operation mode is more in line with the operation habit and the cognition instinct of a user, the learning threshold of a programming beginner can be reduced, and the user experience is improved.
The embodiment of the application also provides equipment for adjusting the building blocks in the graphical programming tool, which can be specifically a terminal equipment or a server, and the terminal equipment and the server provided by the embodiment of the application are described from the aspect of hardware materialization.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 8, for convenience of explanation, only the portions related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present application. The terminal can be any terminal equipment including a mobile phone, a tablet personal computer, a personal digital assistant (English full name: personal Digital Assistant, english abbreviation: PDA), a Sales terminal (English full name: point of Sales, english abbreviation: POS), a vehicle-mounted computer and the like, taking the terminal as an example of the computer:
fig. 8 is a block diagram showing a part of the structure of a computer related to a terminal provided by an embodiment of the present application. Referring to fig. 8, a computer includes: radio Frequency (RF) circuit 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuit 860, wireless fidelity (wireless fidelity, wiFi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the computer architecture shown in fig. 8 is not limiting and that more or fewer components than shown may be included, or that certain components may be combined, or that different arrangements of components may be utilized.
The memory 820 may be used to store software programs and modules, and the processor 880 performs various functional applications and data processing of the computer by executing the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data created according to the use of the computer (such as audio data, phonebooks, etc.), and the like. In addition, memory 820 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.
The processor 880 is a control center of the computer, connects various parts of the entire computer using various interfaces and lines, and performs various functions of the computer and processes data by running or executing software programs and/or modules stored in the memory 820, and calling data stored in the memory 820, thereby performing overall monitoring of the computer. In the alternative, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 880.
In the embodiment of the present application, the processor 880 included in the terminal further has the following functions:
when detecting that a building block adjusting element triggers building block pre-adjusting operation at a target building block, starting a timer to count time, and recording the current position of the building block adjusting element as a first position;
when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position; if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently;
and adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
Optionally, the processor 880 is further configured to execute the steps of any implementation of the building block adjustment method in the graphical programming tool provided in the embodiment of the present application.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a server 900 according to an embodiment of the present application. The server 900 may vary considerably in configuration or performance and may include one or more central processing units (central processing units, CPU) 922 (e.g., one or more processors) and memory 932, one or more storage media 930 (e.g., one or more mass storage devices) storing applications 942 or data 944. Wherein the memory 932 and the storage medium 930 may be transitory or persistent. The program stored in the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 922 may be arranged to communicate with a storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server 900.
The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input/output interfaces 958, and/or one or more operating systems, such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 9.
Wherein, CPU 922 is configured to perform the steps of:
when detecting that a building block adjusting element triggers building block pre-adjusting operation at a target building block, starting a timer to count time, and recording the current position of the building block adjusting element as a first position;
when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position; if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently;
and adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
Optionally, CPU 922 may also be used to perform the steps of any implementation of the building block adjustment method in the graphical programming tool provided by embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium for storing a computer program for executing any one of the implementation methods of the building block adjustment method in the graphical programming tool described in the foregoing embodiments.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the computer device to perform any one of the implementations of the method of building block adjustment in a graphical programming tool described in the various embodiments above.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc. various media for storing computer program.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of building block adjustment in a graphical programming tool, the method comprising:
when detecting that a building block adjusting element triggers building block pre-adjusting operation at a target building block, starting a timer to count time, and recording the current position of the building block adjusting element as a first position;
when the timing time of the timer reaches a preset time threshold, recording the current position of the building block adjusting element as a second position; if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently;
and adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
2. The method of claim 1, wherein adjusting the display position of the target building block and the interface parameters of the target building block according to the drag trajectory for the target building block comprises:
and when the dragging track is used for separating the target building block from the original building block combination to which the target building block belongs, adjusting the interface parameters of the building blocks adjacent to the target building block in the original building block combination and the interface parameters of the target building block.
3. The method of claim 2, wherein said adjusting interface parameters of blocks in said original block combination that are adjacent to said target block and interface parameters of said target block comprises:
when the building blocks adjacent to the target building block comprise a front building block and a rear building block, adjusting the rear building block connection parameter of the front building block to be the mark of the rear building block, adjusting the front building block connection parameter of the rear building block to be the mark of the front building block, and emptying the front building block connection parameter and the rear building block connection parameter of the target building block;
when the building blocks adjacent to the target building block only comprise front building blocks, emptying the rear building block connection parameters of the front building blocks, and emptying the front building block connection parameters of the target building blocks;
and when the building blocks adjacent to the target building block only comprise rear building blocks, emptying the front building block connection parameters of the rear building blocks, and emptying the rear building block connection parameters of the target building blocks.
4. The method of claim 1, wherein adjusting the display position of the target building block and the interface parameters of the target building block according to the drag trajectory for the target building block comprises:
When the dragging track is used for enabling the target building block to move to a target position in a target building block combination, adjusting interface parameters of building blocks adjacent to the target building block in an original building block combination to which the target building block belongs, interface parameters of building blocks adjacent to the target position in the target building block combination and interface parameters of the target building block.
5. The method of claim 4, wherein said adjusting interface parameters of blocks adjacent to said target block in an original block combination to which said target block belongs, interface parameters of blocks adjacent to said target location in said target block combination, and interface parameters of said target block comprises:
when the building blocks adjacent to the target building block in the original building block combination comprise an original front building block and an original rear building block, adjusting the rear building block connection parameter of the original front building block to be the mark of the original rear building block, and adjusting the front building block connection parameter of the original rear building block to be the mark of the original front building block;
when the building blocks adjacent to the target position in the target building block combination comprise a target front building block and a target rear building block, the rear building block connection parameters of the target front building block are adjusted to be the marks of the target building blocks, the front building block connection parameters of the target rear building block are adjusted to be the marks of the target building blocks, the front building block connection parameters of the target building block are adjusted to be the marks of the target front building block, and the rear building block connection parameters of the target building block are adjusted to be the marks of the target rear building block.
6. The method according to claim 1, wherein the method further comprises:
if the timing time of the timer does not reach the preset time threshold, detecting that the building block adjusting element is controlled to finish the building block pre-adjusting operation, determining that the adjusting operation of the rear-end building block combination positioned at the rear end of the target building block is triggered currently;
and adjusting the display position of the rear-end building block combination and the interface parameters of the target building block according to the dragging track of the rear-end building block combination.
7. The method of claim 6, wherein adjusting the interface parameters of the target building block based on the drag trajectory for the back-end building block combination comprises:
and when the dragging track is used for separating the rear end building block combination from the original building block combination to which the target building block belongs, clearing the rear building block connection parameters of the front building blocks adjacent to the target building block, and clearing the front building block connection parameters of the target building block.
8. A block adjustment device in a graphical programming tool, the device comprising:
The information recording module is used for starting a timer to count when detecting that the building block adjusting element triggers building block pre-adjustment operation at the target building block, and recording the current position of the building block adjusting element as a first position;
the operation judging module is used for recording the current position of the building block adjusting element as a second position when the timing time of the timer reaches a preset time threshold; if the second position is matched with the first position, determining that the adjustment operation for the target building block is triggered currently;
and the information adjustment module is used for adjusting the display position of the target building block and the interface parameters of the target building block according to the dragging track of the target building block.
9. An apparatus comprising a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to perform the building block adjustment method in the graphical programming tool of any one of claims 1-7 in accordance with the computer program.
10. A computer readable storage medium for storing a computer program for executing the building block adjustment method in the graphical programming tool of any one of claims 1 to 7.
CN202110468781.7A 2021-04-28 2021-04-28 Building block adjusting method and related device in graphical programming tool Active CN113031939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110468781.7A CN113031939B (en) 2021-04-28 2021-04-28 Building block adjusting method and related device in graphical programming tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110468781.7A CN113031939B (en) 2021-04-28 2021-04-28 Building block adjusting method and related device in graphical programming tool

Publications (2)

Publication Number Publication Date
CN113031939A CN113031939A (en) 2021-06-25
CN113031939B true CN113031939B (en) 2023-10-24

Family

ID=76454938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110468781.7A Active CN113031939B (en) 2021-04-28 2021-04-28 Building block adjusting method and related device in graphical programming tool

Country Status (1)

Country Link
CN (1) CN113031939B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201164A (en) * 2022-02-21 2022-03-18 北京布局未来教育科技有限公司 Magnetic attraction method and device for graphical programming module, electronic equipment and medium
CN114840198B (en) * 2022-04-18 2023-04-28 北京聪明核桃教育科技有限公司 Function execution method, building block function rewriting method and related equipment
CN115686314A (en) * 2022-10-12 2023-02-03 广州中望龙腾软件股份有限公司 Cursor-based object highlighting method, intelligent terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960504A (en) * 2019-04-05 2019-07-02 腾讯科技(深圳)有限公司 Object switching method, method for showing interface and device based on visual programming
CN110780877A (en) * 2019-09-17 2020-02-11 秦皇岛米格教育科技有限公司 Programming system based on program building blocks and configuration device thereof
KR20200086834A (en) * 2019-01-10 2020-07-20 주식회사 럭스로보 A Programable Module Assembly And Executable Code Producing System Therefore
CN111782206A (en) * 2020-09-04 2020-10-16 苏州精易会信息技术有限公司 Building block programming-based method and device for adjusting building block input interface and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200086834A (en) * 2019-01-10 2020-07-20 주식회사 럭스로보 A Programable Module Assembly And Executable Code Producing System Therefore
CN109960504A (en) * 2019-04-05 2019-07-02 腾讯科技(深圳)有限公司 Object switching method, method for showing interface and device based on visual programming
CN110780877A (en) * 2019-09-17 2020-02-11 秦皇岛米格教育科技有限公司 Programming system based on program building blocks and configuration device thereof
CN111782206A (en) * 2020-09-04 2020-10-16 苏州精易会信息技术有限公司 Building block programming-based method and device for adjusting building block input interface and electronic equipment

Also Published As

Publication number Publication date
CN113031939A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113031939B (en) Building block adjusting method and related device in graphical programming tool
US11865451B2 (en) Object control method and apparatus, storage medium, and electronic device
US9261995B2 (en) Apparatus, method, and computer readable recording medium for selecting object by using multi-touch with related reference point
CN111773696A (en) Virtual object display method, related device and storage medium
CN108156407A (en) A kind of video clipping method and terminal
WO2017140273A1 (en) Method and apparatus for controlling application, and computer storage medium
CN107592437A (en) Electronic equipment including double camera and the method for controlling double camera
EP2990949B1 (en) Methods and devices for backing up file
WO2015027905A1 (en) Management system and management method for mobile terminal application
EP3299999B1 (en) Method and device for updating sequence of fingerprint templates for matching
CN110772789B (en) Method, device, storage medium and terminal equipment for skill control in game
CN111050203A (en) Video processing method and device, video processing equipment and storage medium
CN110955584B (en) Block device access tracking method and device, storage medium and terminal
CN106055256A (en) Control method and device for game skill upgrading
CN111659107A (en) Game skill release method and device and electronic equipment
WO2022156669A1 (en) Text processing method and apparatus, electronic device, and readable storage medium
CN105741106A (en) Selection method and device of NFC (Near Field Communication) payment way
CN104903961A (en) Progress bar precision adjusting device and method, and playing system and terminal
CN104598067A (en) Information processing method and electronic equipment
CN105573587A (en) Icon management method and device
CN103347093B (en) User data update method and relevant device and communication system
US7403792B2 (en) Cellular phone and automatic program update method used therefor
CN112839163A (en) Shot image sharing method and device, mobile terminal and readable storage medium
EP3553650B1 (en) Multimedia data playback method and terminal device
CN106482724A (en) Navigation feature processing method and processing device

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40046394

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant