CN111210493A - Method for realizing writing software flow chart - Google Patents

Method for realizing writing software flow chart Download PDF

Info

Publication number
CN111210493A
CN111210493A CN201811392188.3A CN201811392188A CN111210493A CN 111210493 A CN111210493 A CN 111210493A CN 201811392188 A CN201811392188 A CN 201811392188A CN 111210493 A CN111210493 A CN 111210493A
Authority
CN
China
Prior art keywords
flow chart
symbol
touch instruction
adjusting
frame selection
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
CN201811392188.3A
Other languages
Chinese (zh)
Other versions
CN111210493B (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.)
Hitevision Co Ltd
Original Assignee
Hitevision 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 Hitevision Co Ltd filed Critical Hitevision Co Ltd
Priority to CN201811392188.3A priority Critical patent/CN111210493B/en
Publication of CN111210493A publication Critical patent/CN111210493A/en
Application granted granted Critical
Publication of CN111210493B publication Critical patent/CN111210493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

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

Abstract

The invention discloses a method and a device for realizing a writing software flow chart, electronic equipment and a storage medium. The method for realizing the writing software flow chart comprises the following steps: creating a flow chart symbol object set; selecting a flowsheet symbolic object from the flowsheet symbolic object set; drawing corresponding flow chart symbols according to the flow chart symbol objects to form a flow chart; and adding annotation content to the flow chart. The device for realizing the writing software flow chart comprises: the device comprises a creating module, a selecting module, a drawing module and an annotating module. The electronic equipment comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and the processor realizes the writing software flow chart realization method when executing the program. The computer readable storage medium storing a computer program which, when executed by a processor, implements the written software flowchart implementing method.

Description

Method for realizing writing software flow chart
Technical Field
The invention relates to the technical field of touch control, in particular to a method for realizing a writing software flow chart.
Background
Writing software is necessary software in the current commercial large-scale display product, and users often encounter the scene that the writing software in the commercial large-scale display product needs to be used for drawing a flow chart. However, most of the existing writing software only can provide basic functions of writing, erasing, canceling, screen clearing and the like, and cannot meet the requirement of drawing a user flow chart. Some writing software has a function of drawing graphs but cannot provide complete flow chart symbol templates, so that a user is still limited when using the writing software to draw the flow chart, and the user experience is poor.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for implementing a flow chart of written software, an electronic device, and a storage medium.
Based on the above purpose, the invention provides a method for realizing a writing software flow chart, which comprises the following steps:
creating a flow chart symbol object set;
receiving a click touch instruction and selecting a flow chart symbol object from the flow chart symbol object set according to the click touch instruction;
receiving a drawing touch instruction and drawing a corresponding flow chart symbol according to the drawing touch instruction and the selected flow chart symbol object to form a flow chart;
and receiving an annotation touch instruction and adding annotation content to the flow chart according to the annotation touch instruction.
Optionally, the flowchart symbol object set includes a standard flowchart symbol object, a connection symbol object, and a table symbol object;
the standard flow chart symbol objects correspond to the standard flow chart symbols one by one;
the connection symbol object comprises a straight line connection symbol object and a broken line connection symbol object.
Optionally, the step of receiving a click touch instruction and selecting a flow chart symbol object from the flow chart symbol object set according to the click touch instruction further includes:
and displaying a flow chart symbol preview graph corresponding to the flow chart symbol object when the flow chart symbol object is selected according to the click touch instruction.
Optionally, the receiving a drawing touch instruction and drawing a corresponding flow chart symbol according to the drawing touch instruction in combination with the selected flow chart symbol object to form a flow chart, including:
when the flow chart symbol object is a standard flow chart symbol object, drawing a standard flow chart symbol by a standard flow chart symbol drawing method according to the drawing touch instruction;
when the flow chart symbol object is a connection symbol object, drawing a connection symbol by a connection symbol drawing method according to the drawing touch instruction;
and when the flow chart symbol object is a table symbol object, drawing a table symbol by a table symbol drawing method according to the drawing touch instruction.
Optionally, the standard flowchart symbol drawing method includes:
determining a starting point and a current moving point of the standard flow chart symbol according to the drawing touch instruction;
drawing areas of the standard flow chart symbols are defined according to the starting points and the current moving points of the standard flow chart symbols;
determining key points of the standard flow chart symbols in the drawing areas of the standard flow chart symbols according to the standard flow chart symbol objects;
and connecting the key points of the standard flow chart symbol to obtain the standard flow chart symbol.
Optionally, the connection symbol drawing method includes:
determining a starting point and a current moving point of the connection symbol according to the drawing touch instruction;
determining a key point of the connection symbol by combining the starting point of the connection symbol and the current moving point according to the connection symbol object;
and connecting the key points of the connection symbols to obtain the connection symbols.
Optionally, the table symbol drawing method includes:
determining a starting point and a current moving point of the form symbol according to the drawing touch instruction;
drawing areas of the form symbols are defined according to the starting points and the current moving points of the form symbols;
receiving a row and column setting touch instruction, and determining a table symbol key point in a drawing area of the table symbol according to the row and column setting touch instruction;
and connecting the key points of the table symbols to obtain the table symbols.
Optionally, the method for implementing the writing software flowchart further includes:
receiving an adjusting touch instruction which is divided into a light-press adjusting touch instruction and a heavy-press adjusting touch instruction according to the size of a pressure value;
according to the adjustment touch instruction, adjusting the flow chart symbol: when the adjusting touch instruction is a tap adjusting touch instruction, moving the flow chart symbol according to the tap adjusting touch instruction; and when the touch control adjusting instruction is a press touch control adjusting instruction, adjusting the size of the flow chart symbol according to the press touch control adjusting instruction.
Optionally, the method for implementing the writing software flowchart further includes:
receiving a frame selection touch instruction and intercepting a frame selection part from the flow chart according to the frame selection touch instruction, wherein the frame selection part is a part or the whole of the flow chart;
receiving a frame selection adjusting touch instruction, wherein the frame selection adjusting touch instruction is divided into a light-press frame selection adjusting touch instruction and a heavy-press frame selection adjusting touch instruction according to the size of a pressure value;
according to the frame selection adjusting touch instruction, adjusting the frame selection part: when the frame selection adjusting touch instruction is a light-press frame selection adjusting touch instruction, moving the frame selection part according to the light-press frame selection adjusting touch instruction; and when the frame selection adjusting touch instruction is a re-pressing frame selection adjusting touch instruction, adjusting the size of the frame selection part according to the re-pressing frame selection adjusting touch instruction.
Based on the above object, the present invention further provides a device for implementing a flow chart of writing software, comprising:
the creating module is used for creating a flow chart symbol object set;
the selection module is used for receiving a click touch instruction and selecting a flow chart symbol object from the flow chart symbol object set according to the click touch instruction;
the drawing module is used for receiving a drawing touch instruction and drawing a corresponding flow chart symbol by combining the selected flow chart symbol object according to the drawing touch instruction to form a flow chart;
and the annotation module is used for receiving an annotation touch instruction and adding annotation content to the flow chart according to the annotation touch instruction.
In view of the above object, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for implementing the written software flowchart when executing the program.
In view of the above object, the present invention further provides a computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the written software flowchart implementing method.
From the above, the method, the device, the electronic device and the storage medium for implementing the writing software flowchart provide a complete flowchart symbol template for a user, so that the user can simply and conveniently complete the drawing of the flowchart and the table through touch operation, and the requirement of the user for drawing the flowchart is met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a method for implementing a flow chart of writing software according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a method for drawing a corresponding flowchart symbol according to a drawing touch instruction in combination with a selected flowchart symbol object in the writing software flowchart implementation method provided by the embodiment of the present invention;
FIG. 3 is a diagram illustrating a standard flow chart symbol drawing method in a writing software flow chart implementation method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a method for drawing a connection symbol in a flowchart implementation method of writing software according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a method for drawing table symbols in a method for implementing a flow chart of writing software according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an apparatus for implementing a flow chart of writing software according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device implemented by a writing software flowchart according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In one aspect, the invention provides a method for implementing a written software flow chart.
As shown in fig. 1, a method for implementing a written software flowchart according to some alternative embodiments of the present invention includes:
s1: creating a flow chart symbol object set;
s2: receiving a click touch instruction and selecting a flow chart symbol object from the flow chart symbol object set according to the click touch instruction;
s3: receiving a drawing touch instruction and drawing a corresponding flow chart symbol according to the drawing touch instruction and the selected flow chart symbol object to form a flow chart;
s4: and receiving an annotation touch instruction and adding annotation content to the flow chart according to the annotation touch instruction.
In some alternative embodiments of the present invention, the flow chart symbol object set includes a standard flow chart symbol object, a connection symbol object and a table symbol object.
The standard symbol objects correspond to standard flow chart symbols one-to-one, and the standard flow chart symbols include flow symbols, decision symbols, document symbols, data symbols, start or end symbols, sub-flow symbols, predefined flow symbols, personnel symbols, database symbols, stored data symbols, internal memory symbols, sequential data symbols, direct data symbols, manual input symbols, card symbols, and the like.
The connection symbol object comprises a straight line connection symbol object and a broken line connection symbol object which respectively correspond to the straight line symbol and the broken line symbol.
The table symbol object corresponds to a table symbol.
The method for realizing the writing software flow chart provides a complete flow chart symbol template including the connection symbols and the form symbols, and can simply and conveniently realize the drawing of the flow chart by combining the touch instruction, and the elements in the drawn flow chart are complete and standard, thereby meeting the requirements of users for drawing the flow chart.
In some optional embodiments of the writing software flowchart implementing methods provided in the present invention, the step of receiving a click touch instruction and selecting a flowchart symbol object from the flowchart symbol object set according to the click touch instruction further includes:
and displaying a flow chart symbol preview graph corresponding to the flow chart symbol object when the flow chart symbol object is selected according to the click touch instruction.
According to the method for realizing the writing software flow chart, when the flow chart symbol object is selected, the graph of the corresponding flow chart symbol is visually displayed, convenience is provided for a user, and the problem of selection errors is avoided to a great extent.
As shown in fig. 2, in a method for implementing a flow chart of writing software according to some optional embodiments of the present invention, the receiving a drawing touch instruction and drawing a corresponding flow chart symbol according to the drawing touch instruction and in combination with the selected flow chart symbol object to form a flow chart, includes:
s31: when the flow chart symbol object is a standard flow chart symbol object, drawing a standard flow chart symbol by a standard flow chart symbol drawing method according to the drawing touch instruction;
s32: when the flow chart symbol object is a connection symbol object, drawing a connection symbol by a connection symbol drawing method according to the drawing touch instruction;
s33: and when the flow chart symbol object is a table symbol object, drawing a table symbol by a table symbol drawing method according to the drawing touch instruction.
As shown in fig. 3, in the method for implementing the flow chart of the writing software according to some alternative embodiments of the present invention, the standard flow chart symbol drawing method includes:
s311: determining a starting point and a current moving point of the standard flow chart symbol according to the drawing touch instruction;
s312: drawing areas of the standard flow chart symbols are defined according to the starting points and the current moving points of the standard flow chart symbols;
s313: determining key points of the standard flow chart symbols in the drawing areas of the standard flow chart symbols according to the standard flow chart symbol objects;
s314: and connecting the key points of the standard flow chart symbol to obtain the standard flow chart symbol.
And the step S311 determines, according to the drawing touch instruction, that the starting point and the current moving point of the standard flowchart symbol are:
the method comprises the steps of drawing a standard flow chart symbol, wherein a falling point of a touch instruction is a starting point of the standard flow chart symbol, recording horizontal and vertical coordinates of the starting point as startX and startY respectively, the touch point drawing the touch instruction keeps moving after falling, the touch point at the current moment is a current moving point of the standard flow chart symbol, and recording the horizontal and vertical coordinates of the current moving point as endX and endY respectively. And the coordinate of the current moving point is continuously changed in the moving process of the touch point drawing the touch instruction.
The step S312 of defining the drawing area of the standard flowchart symbol according to the starting point and the current moving point of the standard flowchart symbol is as follows:
and according to the horizontal and vertical coordinates startX and startY of the starting point and the horizontal and vertical coordinates endX and endY of the current moving point, a rectangular area for drawing the standard flow chart symbol is defined, the starting point and the current moving point are opposite-angle vertexes of the rectangular area, and according to the coordinates of the starting point and the current moving point, the coordinates of the other two vertexes of the rectangular area can be determined, wherein the rectangular area is the drawing area of the standard flow chart symbol.
And the 313 determines that the key points of the standard flow chart symbol in the drawing area of the standard flow chart symbol are as follows according to the standard flow chart symbol object:
and determining key points of the standard flow chart symbols in the rectangular area with the starting point and the current moving point as diagonal vertexes. Taking a document symbol as an example, the document symbol graph is a wavy rectangle, the wavy rectangle comprises three straight sides and a wavy line positioned below, the wavy rectangle is drawn in the rectangular area, the three straight sides are overlapped with the boundary of the rectangular area, and a key point on the wavy line is determined by a Bezier curve function.
And respectively recording four vertexes of the rectangular area as point [0], point [1], point [2] and point [3] according to the sequence of left-down, left-up, right-up and right-down, and respectively recording the width and the height of the rectangular area as width and height. The key points of the wavy rectangle comprise four vertex key points and wavy line key points, the key points of the upper left vertex and the upper right vertex of the wavy rectangle are respectively coincided with the upper left vertex and the upper right vertex of the rectangular area, and the coordinates of the key points of the lower left vertex and the lower right vertex of the wavy rectangle are respectively as follows:
(point[0].x,point[0].y+height/k),(point[3].x,point[3].y+height/k),
wherein point [0] x and point [0] y respectively represent the horizontal and vertical coordinates of the lower left vertex of the rectangular area, point [3] x and point [3] y respectively represent the horizontal and vertical coordinates of the lower right vertex of the rectangular area, k is the wave line height coefficient, and the wave line height coefficient is calculated by the following expression:
Figure BDA0001874325960000071
wherein h represents the height difference between the wave crest and the wave trough in the wavy line.
The height coefficient of the wavy line is adjustable, and the shape of the wavy line of the wavy rectangle can be changed by adjusting the height coefficient of the wavy line.
And determining a plurality of key points of the wave line by taking the key points of the left lower vertex and the key points of the right lower vertex as end points and combining a Bezier curve function.
The S314 connects the key points of the standard flowchart symbol to obtain the standard flowchart symbol as follows:
and sequentially connecting the four vertexes of the wave rectangle with a plurality of key points of the wave line to obtain the document symbol.
As shown in fig. 4, in the method for implementing the flow chart of the writing software according to some alternative embodiments of the present invention, the method for drawing the join symbol includes:
s321: determining a starting point and a current moving point of the connection symbol according to the drawing touch instruction;
s322: determining a key point of the connection symbol by combining the starting point of the connection symbol and the current moving point according to the connection symbol object;
s323: and connecting the key points of the connection symbols to obtain the connection symbols.
And in the S321, according to the drawing touch instruction, determining that the starting point and the current moving point of the connection symbol are:
the method comprises the steps of drawing a connection symbol, wherein a falling point of a touch instruction is a starting point of the connection symbol, recording horizontal and vertical coordinates of the starting point as startX and startY respectively, the touch point drawing the touch instruction keeps moving after falling, the touch point at the current moment is a current moving point of the connection symbol, and recording the horizontal and vertical coordinates of the current moving point as endX and endY respectively. And the coordinate of the current moving point is continuously changed in the moving process of the touch point drawing the touch instruction.
The determining, by the S322, a key point of the connection symbol according to the connection symbol object by combining the starting point of the connection symbol and the current moving point includes:
when the connection symbol object is a straight line connection symbol object, the starting point of the connection symbol is the starting point key point of the straight line connection symbol, and the coordinates of the starting point key point are (startX, startY), when the straight line connection symbol is horizontal, the ending point key point coordinates of the straight line connection symbol are (endX, startY), and when the straight line connection symbol is vertical, the ending point key point coordinates of the straight line connection symbol are (startX, endY);
when the connection symbol object is a broken line connection symbol object, the starting point of the connection symbol is the starting point key point of the broken line connection symbol, the coordinates of the starting point key point are (startX, startY), the current moving point of the connection symbol is the ending point key point of the broken line connection symbol, the coordinates of the ending point key point of the broken line connection symbol are (endX, endY), and the inflection point key point coordinates of the broken line connection symbol are (startX, endY)
The S323 connects the connection symbol key points to obtain the connection symbol:
and when the connection symbol object is a straight line connection symbol object, connecting a starting point key point and an end point key point of the straight line connection symbol, and adding an arrow pointing to the end point key point from the starting point key at the end point key point to obtain the straight line connection symbol.
And when the connection symbol object is a broken line connection symbol object, sequentially connecting a starting point key point, an inflection point key point and an end point key point of the broken line connection symbol, and adding an arrow pointing to the end point key point from the inflection point key point at the end point key point to obtain the broken line connection symbol.
As shown in fig. 5, in the method for implementing the writing software flowchart according to some alternative embodiments of the present invention, the table symbol drawing method includes:
s331: determining a starting point and a current moving point of the form symbol according to the drawing touch instruction;
s332: drawing areas of the form symbols are defined according to the starting points and the current moving points of the form symbols;
s333: receiving a row and column setting touch instruction, and determining a table symbol key point in a drawing area of the table symbol according to the row and column setting touch instruction;
s334: and connecting the key points of the table symbols to obtain the table symbols.
And the step S331, according to the drawing touch instruction, determines that the starting point and the current moving point of the table symbol are as follows:
the method comprises the steps of setting a table symbol, drawing a touch instruction, and recording the horizontal and vertical coordinates of the starting point as startX and startY respectively, wherein the touch instruction is drawn, the touch instruction is drawn and kept moving after falling, the touch point at the current moment is the current moving point of the table symbol, and the horizontal and vertical coordinates of the current moving point are recorded as endX and endY respectively. And the coordinate of the current moving point is continuously changed in the moving process of the touch point drawing the touch instruction.
The step S332 of defining the drawing area of the form symbol according to the starting point and the current moving point of the form symbol is as follows:
and according to the horizontal and vertical coordinates startX and startY of the starting point and the horizontal and vertical coordinates endX and endY of the current moving point, a rectangular area for drawing the table symbol is defined, the starting point and the current moving point are opposite-angle vertexes of the rectangular area, and according to the coordinates of the starting point and the current moving point, the coordinates of the other two vertexes of the rectangular area can be determined, wherein the rectangular area is the drawing area of the table symbol.
The step S333 of receiving the row and column touch instruction, and determining the key point of the form symbol in the drawing area of the form symbol according to the row and column setting touch instruction includes:
receiving a row and column setting touch instruction, setting row and column values of the table symbols according to the row and column setting touch instruction, recording the number of rows as m, and recording the number of columns as n;
and determining key points on four edges of the rectangular area according to the row and column values m and n. And respectively determining n +1 row key points on two parallel transverse edges of the rectangular area, and respectively determining m +1 row key points on two parallel vertical edges of the rectangular area. The spacing between the keypoints can be adjusted, and by default, the keypoints on each side of the rectangular region are uniformly distributed.
The S334 connects the table symbol key points to obtain the table symbol:
and respectively connecting corresponding row key points on two parallel transverse edges in the rectangular area, and connecting corresponding row key points on two parallel vertical edges in the rectangular area to obtain the table symbols.
The method for realizing the writing software flow chart provides a complete flow chart symbol template, correspondingly provides drawing methods of different types of flow chart symbols, and the drawing methods comprise targeted operation corresponding to specific flow chart symbol characteristics, so that the drawn flow chart symbols are standard and attractive.
The method for implementing the written software flow chart provided by some optional embodiments of the invention further comprises:
receiving an adjusting touch instruction which is divided into a light-press adjusting touch instruction and a heavy-press adjusting touch instruction according to the size of a pressure value;
according to the adjustment touch instruction, adjusting the flow chart symbol:
when the adjusting touch instruction is a tap adjusting touch instruction, moving the flow chart symbol according to the tap adjusting touch instruction;
and when the touch control adjusting instruction is a press touch control adjusting instruction, adjusting the size of the flow chart symbol according to the press touch control adjusting instruction.
The method for implementing the written software flow chart provided by some optional embodiments of the invention further comprises:
receiving a frame selection touch instruction and intercepting a frame selection part from the flow chart according to the frame selection touch instruction, wherein the frame selection part is a part or the whole of the flow chart;
receiving a frame selection adjusting touch instruction, wherein the frame selection adjusting touch instruction is divided into a light-press frame selection adjusting touch instruction and a heavy-press frame selection adjusting touch instruction according to the size of a pressure value;
according to the frame selection adjusting touch instruction, adjusting the frame selection part:
when the frame selection adjusting touch instruction is a light-press frame selection adjusting touch instruction, moving the frame selection part according to the light-press frame selection adjusting touch instruction;
and when the frame selection adjusting touch instruction is a re-pressing frame selection adjusting touch instruction, adjusting the size of the frame selection part according to the re-pressing frame selection adjusting touch instruction.
The method for realizing the writing software flowchart fully considers the problem that a user needs to modify the flowchart frequently encountered when drawing the flowchart, and also comprises a method for adjusting the flow chart symbols and the flow chart part or the whole in the flowchart, so that the flow chart drawing process is more flexible and convenient.
On the other hand, the invention also provides a device for realizing the writing software flow chart.
As shown in fig. 6, some alternative embodiments of the present invention provide a device for implementing a flow chart of writing software, including:
a creating module 1, configured to create a flow chart symbol object set;
the selection module 2 is used for receiving a click touch instruction and selecting a flow chart symbol object from the flow chart symbol object set according to the click touch instruction;
the drawing module 3 is used for receiving a drawing touch instruction and drawing a corresponding flow chart symbol by combining the selected flow chart symbol object according to the drawing touch instruction to form a flow chart;
and the annotation module 4 is used for receiving an annotation touch instruction and adding annotation content to the flowchart according to the annotation touch instruction.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
On the other hand, the invention also provides electronic equipment for realizing the writing software flow chart.
As shown in fig. 7, the writing software flowchart provided by some alternative embodiments of the present invention implements an electronic device, which is configured to execute the writing software flowchart implementing method. The electronic device includes one or more processors 501 and a memory 502, and one processor 501 is taken as an example in fig. 7.
The electronic device executing the written software flowchart implementation method may further include: an input device 503 and an output device 504.
The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 7 illustrates the connection by a bus as an example.
The memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the data recommendation method in the embodiment of the present application (for example, the creating module 1, the selecting module 2, the drawing module 3, and the annotating module 4 shown in fig. 6). The processor 501 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions and modules stored in the memory 502, that is, the written software flowchart implementing the method of the above-described method embodiment.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the stored data area may store data created according to the use of the writing software flowchart implementing apparatus, and the like. Further, the memory 502 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 non-volatile solid state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, which may be connected to member user behavior monitoring devices via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 503 can receive input numeric or character information and generate touch command input related to user setting and function control of the writing software flowchart implementation device. The output device 504 may include a display device such as a display screen.
The one or more modules are stored in the memory 502 and, when executed by the one or more processors 501, perform the written software flowchart implementation method of any of the method embodiments described above. The technical effect of the embodiment of the electronic device executing the method for implementing the written software flowchart is the same as or similar to that of any embodiment of the method.
In another aspect, the present invention also provides a computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the written software flowchart implementing method.
Some alternative embodiments of the present invention provide a computer storage medium having stored thereon computer-executable instructions for performing the method of implementing the written software flowchart of any of the above-described method embodiments. The technical effect of the embodiment of the computer storage medium is the same as or similar to that of any of the method embodiments described above. Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by a computer program that can be stored in a computer-readable storage medium and that, when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The technical effect of the embodiment of the computer program is the same as or similar to that of any of the method embodiments described above.
In addition, the apparatuses, devices and the like disclosed in the present disclosure may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television and the like, or may be a large terminal device, such as a server and the like, and therefore the scope of protection of the present disclosure should not be limited to a specific type of apparatus, device. The client disclosed by the invention can be applied to any one of the electronic terminal devices in the form of electronic hardware, computer software or a combination of the electronic hardware and the computer software.
Furthermore, the method disclosed according to the present invention may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the present invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions described herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Disclosed exemplary embodiments should be noted, however, that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosure may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (12)

1. A method for implementing a written software flow chart is characterized by comprising the following steps:
creating a flow chart symbol object set;
receiving a click touch instruction and selecting a flow chart symbol object from the flow chart symbol object set according to the click touch instruction;
receiving a drawing touch instruction and drawing a corresponding flow chart symbol according to the drawing touch instruction and the selected flow chart symbol object to form a flow chart;
and receiving an annotation touch instruction and adding annotation content to the flow chart according to the annotation touch instruction.
2. The method of claim 1, wherein the set of flowsheet symbol objects comprises a standard flowsheet symbol object, a join symbol object, and a table symbol object;
the standard flow chart symbol objects correspond to the standard flow chart symbols one by one;
the connection symbol object comprises a straight line connection symbol object and a broken line connection symbol object.
3. The method of claim 1, wherein the step of receiving a click touch instruction and selecting a flow chart symbol object from the set of flow chart symbol objects according to the click touch instruction further comprises:
and displaying a flow chart symbol preview graph corresponding to the flow chart symbol object when the flow chart symbol object is selected according to the click touch instruction.
4. The method according to claim 1, wherein the receiving a drawing touch instruction and drawing a corresponding flow chart symbol according to the drawing touch instruction in combination with the selected flow chart symbol object to form a flow chart comprises:
when the flow chart symbol object is a standard flow chart symbol object, drawing a standard flow chart symbol by a standard flow chart symbol drawing method according to the drawing touch instruction;
when the flow chart symbol object is a connection symbol object, drawing a connection symbol by a connection symbol drawing method according to the drawing touch instruction;
and when the flow chart symbol object is a table symbol object, drawing a table symbol by a table symbol drawing method according to the drawing touch instruction.
5. The method of claim 4, wherein the standard flow chart notation drawing method comprises:
determining a starting point and a current moving point of the standard flow chart symbol according to the drawing touch instruction;
drawing areas of the standard flow chart symbols are defined according to the starting points and the current moving points of the standard flow chart symbols;
determining key points of the standard flow chart symbols in the drawing areas of the standard flow chart symbols according to the standard flow chart symbol objects;
and connecting the key points of the standard flow chart symbol to obtain the standard flow chart symbol.
6. The method according to claim 4, wherein the connection symbol drawing method comprises:
determining a starting point and a current moving point of the connection symbol according to the drawing touch instruction;
determining a key point of the connection symbol by combining the starting point of the connection symbol and the current moving point according to the connection symbol object;
and connecting the key points of the connection symbols to obtain the connection symbols.
7. The method of claim 4, wherein the tabular symbol drawing method comprises:
determining a starting point and a current moving point of the form symbol according to the drawing touch instruction;
drawing areas of the form symbols are defined according to the starting points and the current moving points of the form symbols;
receiving a row and column setting touch instruction, and determining a table symbol key point in a drawing area of the table symbol according to the row and column setting touch instruction;
and connecting the key points of the table symbols to obtain the table symbols.
8. The method of claim 1, further comprising:
receiving an adjusting touch instruction which is divided into a light-press adjusting touch instruction and a heavy-press adjusting touch instruction according to the size of a pressure value;
according to the adjustment touch instruction, adjusting the flow chart symbol: when the adjusting touch instruction is a tap adjusting touch instruction, moving the flow chart symbol according to the tap adjusting touch instruction; and when the touch control adjusting instruction is a press touch control adjusting instruction, adjusting the size of the flow chart symbol according to the press touch control adjusting instruction.
9. The method of claim 1, further comprising:
receiving a frame selection touch instruction and intercepting a frame selection part from the flow chart according to the frame selection touch instruction, wherein the frame selection part is a part or the whole of the flow chart;
receiving a frame selection adjusting touch instruction, wherein the frame selection adjusting touch instruction is divided into a light-press frame selection adjusting touch instruction and a heavy-press frame selection adjusting touch instruction according to the size of a pressure value;
according to the frame selection adjusting touch instruction, adjusting the frame selection part: when the frame selection adjusting touch instruction is a light-press frame selection adjusting touch instruction, moving the frame selection part according to the light-press frame selection adjusting touch instruction; and when the frame selection adjusting touch instruction is a re-pressing frame selection adjusting touch instruction, adjusting the size of the frame selection part according to the re-pressing frame selection adjusting touch instruction.
10. A device for implementing a flow chart of writing software, comprising:
the creating module is used for creating a flow chart symbol object set;
the selection module is used for receiving a click touch instruction and selecting a flow chart symbol object from the flow chart symbol object set according to the click touch instruction;
the drawing module is used for receiving a drawing touch instruction and drawing a corresponding flow chart symbol by combining the selected flow chart symbol object according to the drawing touch instruction to form a flow chart;
and the annotation module is used for receiving an annotation touch instruction and adding annotation content to the flow chart according to the annotation touch instruction.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 9 when executing the program.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN201811392188.3A 2018-11-21 2018-11-21 Method for realizing writing software flow chart Active CN111210493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811392188.3A CN111210493B (en) 2018-11-21 2018-11-21 Method for realizing writing software flow chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811392188.3A CN111210493B (en) 2018-11-21 2018-11-21 Method for realizing writing software flow chart

Publications (2)

Publication Number Publication Date
CN111210493A true CN111210493A (en) 2020-05-29
CN111210493B CN111210493B (en) 2024-05-03

Family

ID=70789186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811392188.3A Active CN111210493B (en) 2018-11-21 2018-11-21 Method for realizing writing software flow chart

Country Status (1)

Country Link
CN (1) CN111210493B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515220A (en) * 2021-07-23 2021-10-19 上海商汤科技开发有限公司 Task processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1135617A (en) * 1994-10-11 1996-11-13 阿列夫逻辑有限公司 Supporting system for algorithmic language education
CN1932757A (en) * 2006-06-28 2007-03-21 钟明华 Core 1 DRAW software teaching technological plan
CN101587438A (en) * 2009-06-18 2009-11-25 南京联创科技股份有限公司 Graphic process template method for drafting under the ARP framework
CN103207730A (en) * 2013-04-03 2013-07-17 珠海飞企软件有限公司 Generation method and generator for localizable dragging type flow chart
CN107679276A (en) * 2017-08-31 2018-02-09 电力规划总院有限公司 Generation method, device and the electronic equipment of electric power system tide wiring diagram
US20180189388A1 (en) * 2017-01-05 2018-07-05 International Business Machines Corporation Representation of a data analysis using a flow graph

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1135617A (en) * 1994-10-11 1996-11-13 阿列夫逻辑有限公司 Supporting system for algorithmic language education
CN1932757A (en) * 2006-06-28 2007-03-21 钟明华 Core 1 DRAW software teaching technological plan
CN101587438A (en) * 2009-06-18 2009-11-25 南京联创科技股份有限公司 Graphic process template method for drafting under the ARP framework
CN103207730A (en) * 2013-04-03 2013-07-17 珠海飞企软件有限公司 Generation method and generator for localizable dragging type flow chart
US20180189388A1 (en) * 2017-01-05 2018-07-05 International Business Machines Corporation Representation of a data analysis using a flow graph
CN107679276A (en) * 2017-08-31 2018-02-09 电力规划总院有限公司 Generation method, device and the electronic equipment of electric power system tide wiring diagram

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515220A (en) * 2021-07-23 2021-10-19 上海商汤科技开发有限公司 Task processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111210493B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
US10656811B2 (en) Animation of user interface elements
WO2020052523A1 (en) Method and apparatus for cropping image
CN110069204B (en) Graph processing method, device and equipment based on writing track and storage medium
TWI609317B (en) Smart whiteboard interactions
US8284167B2 (en) Electronic device capable of showing page flip effect and method thereof
CN107463302B (en) A kind of icon layout method of adjustment and its device
CN110045909B (en) Ellipse processing method, device and equipment based on writing track and storage medium
US8832591B2 (en) Grid display device and grid display method in mobile terminal
KR102121905B1 (en) Method and apparatus for setting background of ui control, and terminal
WO2017128893A1 (en) Keyframe animation creation device and method
CN108932141B (en) Method and device for realizing copy drawing, electronic equipment and storage medium
US20130086461A1 (en) Techniques for selection and manipulation of table boarders
CN104765528A (en) Display method and device of virtual keyboard
CN104350455B (en) It is shown element
US20170060820A1 (en) Authoring tool including style selector bars for selecting styles for media components
CN110443772B (en) Picture processing method and device, computer equipment and storage medium
CN111210493B (en) Method for realizing writing software flow chart
CN113538623A (en) Method and device for determining target image, electronic equipment and storage medium
CN111368496B (en) Method and device for changing straight line into broken line with any angle in PCB design
CN110781639A (en) Method and device for automatic marking in PCB design
JP6924544B2 (en) Cartoon data display system, method and program
CN104516860A (en) Methods and systems for selecting text within a displayed document
JP5501915B2 (en) Layout selection device, layout selection method, layout selection program, computer-readable recording medium, content display device, and content creation method
CN108491139B (en) Object fixing method and device, terminal equipment and storage medium
CN109085974B (en) Screen control method, system and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant