CN113031939A - Method for adjusting building blocks in graphical programming tool and related device - Google Patents

Method for adjusting building blocks in graphical programming tool and related device Download PDF

Info

Publication number
CN113031939A
CN113031939A CN202110468781.7A CN202110468781A CN113031939A CN 113031939 A CN113031939 A CN 113031939A CN 202110468781 A CN202110468781 A CN 202110468781A CN 113031939 A CN113031939 A CN 113031939A
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.)
Granted
Application number
CN202110468781.7A
Other languages
Chinese (zh)
Other versions
CN113031939B (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

Images

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

Description

Method for adjusting building blocks in graphical programming tool and related device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting building blocks in a graphical programming tool.
Background
In recent years, along with the rapid development of computer technology, people pay more and more attention to programming education, and a graphical programming tool for programming beginners is used by more and more users. The graphical programming tool encapsulates the programming language in the 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, easy sharing and propagation, and the like.
In the existing graphical programming tool, after a user writes a set of program by building a building block, the user cannot directly adjust a single building block with the rear end connected with other building blocks, for example, the user cannot directly select the single building block and combine and separate the single building block from the affiliated building block. This is a poor experience for the user of the graphical programming tool, and also affects the programming efficiency of the user.
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 a single building block in a building block combination, thereby improving the use experience of a user of the graphical programming tool.
In view of the above, a first aspect of the present application provides a method for adjusting building blocks 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 time, and recording the current position of the building block adjusting element as a first position;
when the timing duration of the timer reaches a preset duration 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 aims at the adjustment operation of the target building block;
and adjusting the display position of the target building block and the interface parameter of the target building block according to the dragging track of the target building block.
A second aspect of the present application provides a building block adjustment apparatus in a graphical programming tool, the apparatus comprising:
the information recording module is used for starting a timer to time when detecting that a building block adjusting element triggers a building block pre-adjusting operation at a 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 duration of the timer reaches a preset duration threshold; if the second position is matched with the first position, determining that the current trigger aims at the adjustment operation of the target building block;
and the information adjusting module is used for adjusting the display position of the target building block and the interface parameter 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.
A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program for executing the steps of the building block adjustment method in the graphical programming tool of the first aspect.
A fifth aspect of the present application provides 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 the processor executes the computer instructions to make the computer device execute the steps of the building block adjusting method in the graphical programming tool according to the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
in the building block adjusting method in the graphical programming tool provided by the embodiment of the application, when detecting that a building block adjusting element triggers a building block pre-adjusting operation at a target building block, starting a timer to time, and recording the current position of the building block adjusting element as a first position; when the timing duration of the timer reaches a preset duration 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 adjusting operation aiming at the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameter of the target building block can be adjusted according to the dragging track of the target building block. The building block adjusting method innovatively provides an adjusting mode aiming at a single building block in a building block combination, namely, adjusting operation aiming at a target building block is triggered by controlling a building block adjusting element to be located at the target building block for a long time (for example, the method can be realized by pressing a mouse at the target building block), and then the target building block can be adjusted by dragging the target building block; therefore, the operating efficiency of the building blocks in the graphical programming tool can be effectively improved, the misoperation rate is reduced, the operating mode is more in line with the operating habits and cognitive instincts of users, the learning threshold of programming beginners can be reduced, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of an application scenario of a building block adjustment method in a graphical programming tool according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a method for adjusting building blocks in a graphical programming tool according to an embodiment of the present disclosure;
fig. 3 is a schematic interface diagram of a web-side graphical programming tool according to an embodiment of the present disclosure;
fig. 4 is a schematic interface diagram of a web-side graphical programming tool according to an embodiment of the present disclosure;
fig. 5 is a schematic interface diagram of a web-side graphical programming tool according to an embodiment of the present disclosure;
fig. 6 is a schematic interface diagram of a web-side graphical programming tool according to an embodiment of the present disclosure;
FIG. 7 is a block diagram of a building block adjustment device in a graphical programming tool according to an embodiment of the present disclosure;
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 technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or 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 tool, after a user builds a building block combination (i.e. writes a set of program) by building a building block, the user can not directly adjust a single building block with the rear end connected with other building blocks; for example, a user cannot directly select a single building block and separate it from an affiliated building block combination. For a user using the graphical programming tool, the use experience is poor, misoperation is easily caused, and the programming efficiency of the user is also affected.
Aiming at the problems in the related art, the embodiment of the application provides a building block adjusting method in a graphical programming tool, and the method can adjust a single building block in a building block combination, so that the use experience of a user of the graphical programming tool is improved.
Specifically, in the building block adjusting method in the graphical programming tool provided by the embodiment of the application, when detecting that a building block adjusting element triggers a building block pre-adjusting operation at a target building block, a timer is started to time, and the current position of the building block adjusting element is recorded as a first position; when the timing duration of the timer reaches a preset duration 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 adjusting operation aiming at the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameter of the target building block can be adjusted according to the dragging track of the target building block.
The building block adjusting method innovatively provides an adjusting mode aiming at a single building block in a building block combination, namely, adjusting operation aiming at a target building block is triggered by controlling a building block adjusting element to be located at the target building block for a long time (for example, the method can be realized by pressing a mouse at the target building block), and then the target building block can be adjusted by dragging the target building block; therefore, the operating efficiency of the building blocks in the graphical programming tool can be effectively improved, the misoperation rate is reduced, the operating mode is more in line with the operating habits and cognitive instincts of users, the learning threshold of programming beginners can be reduced, and the user experience is improved.
It should be understood that the building block adjusting method in the graphical programming tool provided by the embodiment of the present application may be applied to a terminal device supporting the operation of the graphical programming tool, or a server of the graphical programming tool; the terminal device may be a smart phone, a computer, a tablet computer, a Personal Digital Assistant (PDA), or the like; the server may specifically be an application server or a Web server, and in actual deployment, the server may be an independent server, or may also be a cluster server or a cloud server.
In order to facilitate understanding of the building block adjusting method in the graphical programming tool provided in the embodiment of the present application, an application scenario of the building block adjusting method is exemplarily described below by taking an execution subject of the building block adjusting method as a server as an example.
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 disclosure. As shown in fig. 1, the application scenario includes a terminal device 110 and a server 120, and the terminal device 110 and the server 120 may communicate with each other 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, which can construct a corresponding program in response to a programming operation triggered by a user through the terminal device 110, and the server 120 is configured to execute the building block adjusting method in the graphical programming tool provided in the embodiment of the present application.
In practical application, a user can access the web-side graphical programming tool through the terminal device 110, and select building block combination from the selectable building blocks provided by the web-side graphical programming tool through the terminal device 110, so as to obtain a set of programming program. For example, the user may select a desired building block within a building block area in the graphical programming tool interface using a 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 the building blocks to the script area through a plurality of operations, and the server 120 constructs the association relationship among the building blocks according to the respective corresponding dragging sequence or the respective corresponding dragging positions of the building blocks dragged to the script area, so as to obtain a building block combination corresponding to a set of programming programs.
In the technical scheme provided by the embodiment of the application, after the building block combination is obtained in the above mode, a user can further trigger the adjustment operation for a single building block in the building block combination.
Specifically, the user may trigger a building block pre-adjustment operation for a target building block to be adjusted in the building block combination through the mouse of the terminal device 110; for example, a user may move a mouse cursor to a target building block in a combination of building blocks 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 a building block pre-adjustment operation is triggered at a target building block, it may be considered that a building block adjustment element (i.e., a mouse cursor) triggers a building block pre-adjustment operation at the target building block; at this point, the server 120 also starts a timer and records the current position of the building 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. 750ms), 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 the second position is matched with the first position recorded before, determining that the adjustment operation aiming at the target building block is triggered currently. It should be understood that if the server 120 detects that the user stops triggering the building block pre-adjustment operation before the timing length of the timer does not reach the preset length threshold, for example, detects that the user releases the left mouse button, the timer timing can be stopped accordingly, and the user is considered not to trigger the adjustment operation for the target building block.
After the server 120 determines that the adjustment operation for the target building block is currently triggered, the display position of the target building block in the graphical programming tool interface can be adjusted according to the dragging track of the target building block, and the interface parameters of the target building block are adjusted 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 in response to the drag operation for the target building block triggered by the mouse, adjust the display position of the target building block and the interface parameter of the target building block accordingly.
It should be understood that the application scenario shown in fig. 1 is only an example, and in practical applications, the building block adjusting method provided in the embodiment of the present application may be applied to not only a web-side graphical programming tool, but also a graphical programming tool client, and accordingly, the building block adjusting method provided in 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 in the embodiment of the present application may also be independently executed by a terminal device supporting the graphical programming tool client to run, and no limitation is made to an application scenario of the building block adjusting method in the graphical programming tool provided in the embodiment of the present application.
The method for adjusting building blocks in the graphical programming tool provided by the present application is described in detail below by way of an embodiment of the method.
Referring to FIG. 2, FIG. 2 is a flowchart illustrating a method for adjusting building blocks in a graphical programming tool according to an embodiment of the present disclosure. For convenience of description, the following embodiments are still introduced by taking the execution subject of the method as an example of the server. As shown in FIG. 2, the building block adjusting method comprises the following steps:
step 201: when the building block adjusting element is detected to trigger building block pre-adjusting operation at a target building block, a timer is started to 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-end graphical programming tool through terminal equipment, and a program is compiled in the web-end graphical programming tool in a building block combination mode; or, the user can 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.
According to the technical scheme, after a user builds a building block combination in a web-side graphical programming tool or a graphical programming tool client, a single building block in the building block combination can be adjusted according to the requirement of the user. Namely, a user can trigger a building block pre-adjustment operation aiming at a target building block which needs to be adjusted in a building block combination, so that a background server of a web-side graphical programming tool or a graphical programming tool client side can respond to the building block pre-adjustment operation to trigger an operation of independently adjusting the target building block.
The server detects that a user passes through a building block adjusting element, after a building block pre-adjusting operation is triggered aiming at a target building block in a building block combination, a timer can be started to time correspondingly, and the position of the building block adjusting element in a display interface of a web-end graphical programming tool or a graphical programming tool client side is recorded as a first position.
To facilitate understanding of the above process, the above implementation process is exemplarily described below with reference to the interface schematic diagram of the web-side graphical programming tool shown in fig. 3.
As shown in FIG. 3, the building block combination built by the user 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 presses a left mouse button at the target building block, so that the building block pre-adjustment operation aiming at 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 mouse button at the target building block, the server may regard the building block adjustment element (i.e. the mouse cursor, corresponding to the circular aperture in fig. 3) as triggering the building block pre-adjustment operation at the target building block, at this time, the server will start the timer to time accordingly, and record the current position coordinate of the building block adjustment element in the script area as the first position.
It should be understood that the form of the building block adjusting element and the form of triggering the building block pre-adjusting operation are only examples, and in practical applications, the form of the building block adjusting element and the form of triggering the building block pre-adjusting operation may also be set according to actual requirements.
Step 202: when the timing duration of the timer reaches a preset duration 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 current trigger aims at the adjustment operation of the target building block.
When the timing duration of the timer started in step 201 reaches a preset duration threshold (e.g., 750ms), the server may record the position of the building block adjustment element at that 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 may be determined that an adjustment operation for the target block is currently triggered.
It should be noted that, if it is detected that the user cancels the building block pre-adjustment operation triggered before the counted time length of the timer reaches the preset time length threshold, the server may control the timer to stop counting, and step 202 does not need to be executed. For example, assuming that the user previously triggers a building block pre-adjustment operation for a target building block by pressing a left mouse button when a mouse cursor is located at the target building block, the user may release the left mouse button before the timing duration reaches a preset duration threshold, which may be regarded as canceling the triggered building block pre-adjustment operation, and accordingly, the server may control the timer to stop timing and consider that the user does not trigger an adjustment operation for the target building block.
It should be noted that, the matching of the second position and the first position may refer to that the second position is completely the same as the first position, that a distance between the second position and the first position is smaller than a preset distance threshold, and that both the second position and the first position belong to positions to which the target building block belongs.
It should be understood that the preset time length threshold and the preset distance threshold mentioned above may be set according to actual requirements, and the preset time length threshold and the preset distance threshold are not limited in any way herein.
In order to facilitate understanding of the implementation process, the implementation process is still described in the following with reference to the interface schematic diagram of the web-side graphical programming tool shown in fig. 3.
The server detects that a user moves a mouse cursor to a target building block, and presses a left mouse button at the target building block, the server considers that the mouse cursor triggers a building block pre-adjustment operation at the target building block, and accordingly starts a timer to time, and records the current position coordinate of the mouse cursor in a script area as a first position. When the time length for pressing the left mouse button by the user reaches the preset time length threshold value, namely when the timing time length of the timer reaches the preset time length threshold value, the server can acquire the position coordinate of the mouse cursor in the script area at the moment as a second position. Further, whether the second position is consistent with the first position recorded before is compared, and if the second position is consistent with the first position recorded before, it is determined 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 the target building block.
Step 203: and adjusting the display position of the target building block and the interface parameter of the target building block according to the dragging track of the target building block.
After the server determines that the user triggers the adjustment operation for the target building block, the display position of the target building block and the interface parameter of the target building block can be correspondingly adjusted according to the dragging track of the target building block.
For example, assuming that the server detects that the duration of pressing the left mouse button by the user exceeds a preset duration threshold, and the position of the mouse cursor when the left mouse button is pressed is the same as the position of the mouse cursor after the preset duration threshold, the server may change the display position of the target building block correspondingly in response to the operation of pressing the left mouse button by the user to drag the mouse cursor to move, 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 of dragging the target building block by the mouse cursor is shown, and meanwhile, the server needs to adjust the interface parameters of the target building block.
Certainly, in practical application, the operation of dragging the target building block can be realized in other ways besides the way of dragging by pressing the left mouse button, for example, the server determines that the adjustment operation for the target building block is currently triggered, after the target building block is highlighted, the user can release the left mouse button, drag the target building block by pressing the right mouse button, or release the left mouse button, and drag the target building block by directly dragging the mouse, and the application does not limit the way of dragging the target building block.
In order to facilitate understanding of the implementation process, the implementation process is exemplarily described below through an interface schematic diagram of a web-side graphical programming tool shown in fig. 4.
As shown in FIG. 4, the server determines that the adjustment operation for the target building block is currently triggered, after the target building block is highlighted, the user can press the left mouse button, and move the mouse cursor from the second position to the third position by moving the mouse, and 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 adjustment of the interface parameters of the target building block will be described in detail below.
In one possible implementation, when the drag trajectory for a target block is used to separate the target block from its original block combination, e.g., to make the target block stand alone from the original block combination, the server may adjust the interface parameters of blocks adjacent to the target block in the original block combination, as well as the interface parameters of the target block itself.
It should be noted that each building block in the graphical programming tool has its own corresponding identification (i.e., ID). The graphical programming tool generally comprises two types of building blocks, wherein one type is used for representing functions, and the other type is used for representing parameters; the building blocks used for representing functions usually record the identifications of the building blocks connected at the front ends thereof through a front building block connection parameter (also called parent), and record the representations of the building blocks connected at the rear ends thereof through a rear building block connection parameter (also called next); the building blocks used to represent parameters typically have only front building block connection parameters and no back building block connection parameters.
When a target building block is dragged to be separated from an original building block combination, a server needs to correspondingly connect parameters of a front building block and/or a back building block of a building block adjacent to the target building block in the original building block combination and parameters of the front building block and/or the back building block of the target building block.
Specifically, when the building blocks adjacent to the target building block comprise 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 mark of the rear building block, adjust the front building block connection parameter of the rear building block to be the mark 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 a target block from the original block set, the server may butt the front and back blocks of the original block set adjacent to the target block and make the target block independent from the original block set.
When a block adjacent to a target block includes only a front building block, a rear building block connection parameter of the front building block is cleared, and a front building block connection parameter of the target block is cleared. That is, when the user separates the target block located at the rearmost end in the original block combination from the original block combination, the server needs to accordingly remove the rear block connection parameter of the front building block originally connected to the target block and remove the front building block connection parameter of the target block itself, so that the target block is separated from the original block combination.
When the building blocks adjacent to the target building block include only the rear building block, emptying the front building block connection parameter of the rear building block, and emptying the rear building block connection parameter of the target building block. That is, when the user separates the target building block located at the forefront in the original building block combination from the original building block combination, the server needs to correspondingly remove the front building block connection parameter of the back 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 separated from the original building block combination.
In another possible implementation, when the drag trajectory for a target block is used to move the target block to a target position in a target block combination, e.g., to locate the target block at another position in an original block combination to which the target block belongs, or to locate the target block at a target position in another block combination other than the original block combination to which the target block belongs, the server may adjust interface parameters of blocks adjacent to the target block in the original block combination to which the target block belongs, interface parameters of blocks adjacent to the target position in the target block combination, and interface parameters of the target block itself.
That is, when a target block is dragged to a target position in a target block combination, the server needs to adjust the pre-building block connection parameter and/or the post-building block connection parameter of a block adjacent to the target block in the original block combination to which the target block belongs, the pre-building block connection parameter and/or the post-building block connection parameter of a block adjacent to the target position in the target block combination, and the pre-building block connection parameter and/or the post-building block connection parameter of the target block itself, accordingly.
It should be noted that the 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 application does not limit the target building block combination. 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 belongs, or any position in the building block combination different from the original building block combination, and the target position is not limited in this application.
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 connecting parameter of the original front building block to be the identifier of the original rear building block, and adjust the front building block connecting 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, adjusting the rear building block connecting parameter of the target front building block to be the identification of the target building block, adjusting the front building block connecting parameter of the target rear building block to be the identification of the target building block, adjusting the front building block connecting parameter of the target building block to be the identification of the target front building block, and adjusting the rear building block connecting parameter of the target building block to be the identification of the target rear building block. Namely, the server needs to make the original front building block and the original back building block in the original building block combination connected by adjusting the back building block connection parameter of the original front building block and the front building block connection parameter of the original back building block, and realize that the target building block is inserted between the target front building block and the target back building block in the target building block combination by adjusting the back building block connection parameter of the target front building block, the front building block connection parameter of the target back building block, and the front building block connection parameter and the back building block connection parameter of the target building block.
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 back 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 comprise the original back building block, the server can empty the front building block connection parameters of the original back building block.
When the building blocks adjacent to the target position in the target building block combination only comprise the target front building block, the server can adjust the rear building block connection parameter of the target front building block to be the mark of the target building block, adjust the front building block connection parameter of the target building block to be the mark of the target front building block, and empty the rear building block connection parameter of the target building block. When the building blocks adjacent to the target position in the target building block combination only comprise the target back building block, the server can adjust the front building block connecting parameter of the target back building block to be the mark of the target building block, adjust the back building block connecting parameter of the target building block to be the mark of the target back building block, and empty the front building block connecting parameter of the target building block.
Of course, in practical application, the server may also adjust the interface parameters of the target building block, 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 building blocks adjacent to the target position in the target building block combination in other manners, which is not limited in any way herein.
Optionally, as mentioned above, if it is detected that the user controls the building block adjusting element to end the pre-adjusting operation of the building block 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 building block combination located at the back end of the target building block is currently triggered, and adjust the display position of the back-end building block combination and the interface parameter of the target building block according to the dragging track for the back-end building block combination.
That is, if the server detects that the user controls the building block adjusting element to end the building block pre-adjusting 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, it detects that the user releases a mouse left key pressed before; the server can determine that an adjustment operation for a rear end building block combination located at the rear end of the target building block is currently triggered, wherein the rear end building block combination comprises the target building block and each building block connected with the rear end of the target building block; and then, according to the dragging track of the rear-end building block combination, namely according to the moving track of a mouse cursor, adjusting the display position of the rear-end building block combination and the interface parameters of the target building block.
In order to facilitate understanding of the implementation process, the implementation process is exemplarily described below with reference to the interface schematic 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 starts the timer to time correspondingly; if the server detects that the user releases the pressed left mouse button before the timing duration of the timer reaches the preset duration threshold, the server can determine that the adjustment operation for the rear-end building block combination at the rear end of the target building block is triggered currently, and at the moment, the rear-end building block combination can be highlighted, so that the user is prompted that the adjustment operation for the rear-end building block combination is triggered successfully.
As shown in fig. 6, the server determines that the adjustment operation for the rear-end building block combination is currently triggered, and after the rear-end building block combination is highlighted, the user can press the left mouse button again and control the movement of the mouse cursor in a mouse moving manner, so that the rear-end building block combination correspondingly moves along with the mouse cursor. Or, the user can press a right mouse button to control the movement of the mouse cursor in a mouse moving mode, so that the rear-end building block combination correspondingly moves along with the mouse cursor correspondingly. Or, the user can directly move the mouse to control the movement of the mouse cursor, so that the combination of the back-end building blocks correspondingly moves along with the mouse cursor. The application does not limit the way of dragging the combination of the back-end building blocks.
When the interface parameters of the target building block are specifically adjusted, the server can 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 dragging track of the rear-end building block combination is used for separating the rear-end building block combination from the original building block combination to which the target building block belongs. Namely, when the rear-end building block combination is dragged to be independently opened from the original building block combination to which the rear-end building block combination belongs, the server can realize the separation of the rear-end building block combination and the original building block combination by emptying the rear building block connecting parameters of the front building block adjacent to the target building block in the original building block combination and the front building block connecting parameters of the target building block.
In addition, when the dragging track is used for inserting the rear-end building block combination into the target position in the target building block combination, the server can empty the rear building block connection parameter of the front building block adjacent to the target building block in the original building block combination, adjust the rear building block connection parameter of the target front building block adjacent to the target position in the target building block combination to be the mark of the target building block, adjust the front building block connection parameter of the target building block to be the mark of the target front building block, adjust the front building block connection parameter of the target rear building block adjacent to the target position in the target building block combination to be the mark of the last building block in the rear-end building block set, and adjust the rear building block connection parameter of the last building block in the rear-end building block set to be the mark of the target rear building block.
It should be understood that, in practical applications, if the server detects that the user controls the building block adjustment element to end the building block pre-adjustment operation before the timing duration of the timer reaches the preset duration threshold, it may also be determined that the adjustment operation for the whole original building block combination to which the target building block belongs is currently triggered, and then, the display position of the original building block combination is adjusted according to the dragging track of the original building block combination.
In the building block adjusting method in the graphical programming tool provided by the embodiment of the application, when detecting that a building block adjusting element triggers a building block pre-adjusting operation at a target building block, starting a timer to time, and recording the current position of the building block adjusting element as a first position; when the timing duration of the timer reaches a preset duration 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 adjusting operation aiming at the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameter of the target building block can be adjusted according to the dragging track of the target building block. The building block adjusting method innovatively provides an adjusting mode aiming at a single building block in a building block combination, namely, adjusting operation aiming at a target building block is triggered by controlling a building block adjusting element to be located at the target building block for a long time (for example, the method can be realized by pressing a mouse at the target building block), and then the target building block can be adjusted by dragging the target building block; therefore, the operating efficiency of the building blocks in the graphical programming tool can be effectively improved, the misoperation rate is reduced, the operating mode is more in line with the operating habits and cognitive instincts of users, the learning threshold of programming beginners can be reduced, and the user experience is improved.
Aiming at the building block adjusting method in the graphical programming tool, the application also provides a corresponding building block adjusting device in the graphical programming tool, so that the building block adjusting method in the graphical programming tool is applied and realized in practice.
Referring to FIG. 7, FIG. 7 is a block adjusting device 700 of the graphical programming tool corresponding to the block adjusting method of the graphical programming tool shown in FIG. 2. As shown in FIG. 7, the block adjustment apparatus 700 includes:
the information recording module 701 is used for starting a timer to time when detecting that a building block adjusting element triggers a building block pre-adjusting operation at a target building block, and recording the current position of the building block adjusting element as a first position;
an operation determination module 702, configured to record, when a 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 current trigger aims at the adjustment operation of the target building block;
and the information adjusting 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 the dragging track of the target building block.
Optionally, the information adjusting module 703 is specifically configured to:
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 adjusting 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 a front building block, emptying the rear building block connection parameters of the front building block, and emptying the front building block connection parameters of the target building block;
when the building blocks adjacent to the target building block only comprise the rear building block, emptying the front building block connection parameters of the rear building block, and emptying the rear building block connection parameters of the target building block.
Optionally, the information adjusting module 703 is specifically configured to:
when the dragging track is used for enabling the target building block to move to the target position in the target building block combination, adjusting the interface parameters of the building blocks 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 blocks adjacent to the target position in the target building block combination and the interface parameters of the target building block.
Optionally, the information adjusting 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 connecting parameter of the original front building block to be the mark of the original rear building block, and adjusting the front building block connecting 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, adjusting the rear building block connecting parameter of the target front building block to be the mark of the target building block, adjusting the front building block connecting parameter of the target rear building block to be the mark of the target building block, adjusting the front building block connecting parameter of the target building block to be the mark of the target front building block, and adjusting the rear building block connecting parameter of the target building block to be the mark of the target rear building block.
Optionally, the operation determination module 702 is further configured to:
if the situation that the building block adjusting element is controlled to finish the building block pre-adjusting operation is detected when the timing duration of the timer does not reach the preset duration threshold, determining that the adjusting operation aiming at the rear-end building block combination at the rear end of the target building block is triggered currently;
the information adjusting module 703 is further configured to:
and adjusting the display position of the rear-end building block combination and the interface parameter of the target building block according to the dragging track of the rear-end building block combination.
Optionally, the information adjusting module 703 is specifically configured to:
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, emptying rear building block connection parameters of a front building block adjacent to the target building block, and emptying 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 detecting that a building block adjusting element triggers building block pre-adjusting operation at a target building block, starting a timer to time, and recording the current position of the building block adjusting element as a first position; when the timing duration of the timer reaches a preset duration 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 adjusting operation aiming at the target building block is triggered currently; furthermore, the display position of the target building block and the interface parameter of the target building block can be adjusted according to the dragging track of the target building block. The building block adjusting device innovatively provides an adjusting mode aiming at a single building block in a building block combination, namely, adjusting operation aiming at a target building block is triggered by controlling a building block adjusting element to be located at the target building block for a long time (for example, the adjusting mode can be realized by pressing a mouse at the target building block), and then the target building block can be adjusted by dragging the target building block; therefore, the operating efficiency of the building blocks in the graphical programming tool can be effectively improved, the misoperation rate is reduced, the operating mode is more in line with the operating habits and cognitive instincts of users, the learning threshold of programming beginners can be reduced, and the user experience is improved.
The embodiment of the present application further provides a device for adjusting building blocks in a graphical programming tool, where the device may specifically be a terminal device or a server, and the terminal device and the server provided in the embodiment of the present application will be described in terms of hardware implementation.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in fig. 8, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA, abbreviated as "Personal Digital Assistant"), a Sales terminal (POS, abbreviated as "Point of Sales"), a vehicle-mounted computer, and the like, taking the terminal as a computer as an example:
fig. 8 is a block diagram showing a partial structure of a computer related to a terminal provided in an embodiment of the present application. Referring to fig. 8, the computer includes: radio Frequency (RF) circuit 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuit 860, 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 intended to be limiting of computers, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications of the computer and data processing by operating the software programs and modules stored in the memory 820. The memory 820 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 by 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 computer, etc. Further, the 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, performs various functions of the computer and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby monitoring the entire computer. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into 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 time, and recording the current position of the building block adjusting element as a first position;
when the timing duration of the timer reaches a preset duration 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 aims at the adjustment operation of the target building block;
and adjusting the display position of the target building block and the interface parameter 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 manner 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 disclosure. The server 900 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 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. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 922 may be provided in communication with the 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 Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 9.
The CPU 922 is configured to execute the following steps:
when detecting that a building block adjusting element triggers building block pre-adjusting operation at a target building block, starting a timer to time, and recording the current position of the building block adjusting element as a first position;
when the timing duration of the timer reaches a preset duration 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 aims at the adjustment operation of the target building block;
and adjusting the display position of the target building block and the interface parameter of the target building block according to the dragging track of the target building block.
Optionally, the CPU 922 may also be used to execute steps of any implementation manner of a building block adjustment method in the graphical programming tool provided in the embodiment of the present application.
The embodiment of the present application further provides a computer-readable storage medium for storing a computer program for executing any implementation manner of the building block adjusting 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 the processor executes the computer instructions to enable the computer device to execute any one implementation of the building block adjusting method in the graphical programming tool described in the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing computer programs.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. 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 used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for 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 time, and recording the current position of the building block adjusting element as a first position;
when the timing duration of the timer reaches a preset duration 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 aims at the adjustment operation of the target building block;
and adjusting the display position of the target building block and the interface parameter 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 block and the interface parameters of the target block according to the drag trajectory for the target block comprises:
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 the adjusting the interface parameters of the blocks of the original block combination adjacent to the target block and the interface parameters of the 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 a front building block, emptying the rear building block connection parameters of the front building block, and emptying the front building block connection parameters of the target building block;
when the building blocks adjacent to the target building block only comprise the rear building block, emptying the front building block connection parameters of the rear building block, and emptying the rear building block connection parameters of the target building block.
4. The method of claim 1, wherein adjusting the display position of the target block and the interface parameters of the target block according to the drag trajectory for the target block comprises:
when the dragging track is used for enabling the target building block to move to the target position in the target building block combination, adjusting the interface parameters of the building blocks 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 blocks adjacent to the target position in the target building block combination and the interface parameters of the target building block.
5. The method of claim 4, wherein the adjusting the interface parameters of the blocks adjacent to the target block in the original block set to which the target block belongs, the interface parameters of the blocks adjacent to the target position in the target block set, and the interface parameters of the 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 connecting parameter of the original front building block to be the mark of the original rear building block, and adjusting the front building block connecting 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, adjusting the rear building block connecting parameter of the target front building block to be the mark of the target building block, adjusting the front building block connecting parameter of the target rear building block to be the mark of the target building block, adjusting the front building block connecting parameter of the target building block to be the mark of the target front building block, and adjusting the rear building block connecting parameter of the target building block to be the mark of the target rear building block.
6. The method of claim 1, further comprising:
if the situation that the building block adjusting element is controlled to finish the building block pre-adjusting operation is detected when the timing duration of the timer does not reach the preset duration threshold, determining that the adjusting operation aiming at the rear-end building block combination 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 parameter 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 according to the drag trajectory for the back-end building block combination comprises:
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, emptying rear building block connection parameters of a front building block adjacent to the target building block, and emptying front building block connection parameters of the target building block.
8. A building block adjustment apparatus in a graphical programming tool, the apparatus comprising:
the information recording module is used for starting a timer to time when detecting that a building block adjusting element triggers a building block pre-adjusting operation at a 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 duration of the timer reaches a preset duration threshold; if the second position is matched with the first position, determining that the current trigger aims at the adjustment operation of the target building block;
and the information adjusting module is used for adjusting the display position of the target building block and the interface parameter 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 used for executing the building block adjusting method in the graphical programming tool of any one of claims 1 to 7 according to 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 true CN113031939A (en) 2021-06-25
CN113031939B 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)

Cited By (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
CN114840198A (en) * 2022-04-18 2022-08-02 北京聪明核桃教育科技有限公司 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

Cited By (4)

* 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
CN114840198A (en) * 2022-04-18 2022-08-02 北京聪明核桃教育科技有限公司 Function execution method, building block function rewriting method and related equipment
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

Also Published As

Publication number Publication date
CN113031939B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US10141025B2 (en) Method, device and computer-readable medium for adjusting video playing progress
US11865451B2 (en) Object control method and apparatus, storage medium, and electronic device
CN111767108B (en) Application program label generation method, application interface display method and device
CN113031939A (en) Method for adjusting building blocks in graphical programming tool and related device
EP3299999B1 (en) Method and device for updating sequence of fingerprint templates for matching
EP3846025B1 (en) Window switching method and apparatus, and terminal and computer-readable storage medium
CN111371988B (en) Content operation method, device, terminal and storage medium
CN107370772A (en) Account login method, device and computer-readable recording medium
CN109766054B (en) Touch screen device and control method and medium thereof
CN105246068B (en) SIM card selection method and device
CN112839163B (en) Shot image sharing method and device, mobile terminal and readable storage medium
CN105843681A (en) Mobile terminal and operating system switching method thereof
CN108965599A (en) Recall method for processing video frequency and Related product
WO2020048243A1 (en) Window adjustment method, window adjustment device and mobile terminal
CN108446063B (en) Object processing method and device, storage medium and electronic device
CN112559044A (en) Play switching method and device and computer readable storage medium
US11756586B2 (en) Method for splicing audio file and computer device
CN112004220A (en) Bluetooth connection method and system, Bluetooth device and readable storage medium
CN105468281A (en) Setup interface display method and device
EP3282680B1 (en) Blowing action-based method for operating mobile terminal and mobile terminal
WO2019080738A1 (en) Game application program control method and device
US20160295368A1 (en) Operating method of user-specific device providing customized service to multiple adjacent mobile terminals, user-specific device, and mobile terminal
CN112083843B (en) Control method and device of application icons
CN106603625A (en) Data protection method and device
CN110825713B (en) Information processing method and related product

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