CN112416268B - Laser printing strategy code display method and related device - Google Patents

Laser printing strategy code display method and related device Download PDF

Info

Publication number
CN112416268B
CN112416268B CN202011331513.2A CN202011331513A CN112416268B CN 112416268 B CN112416268 B CN 112416268B CN 202011331513 A CN202011331513 A CN 202011331513A CN 112416268 B CN112416268 B CN 112416268B
Authority
CN
China
Prior art keywords
laser printing
codes
printing strategy
code
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011331513.2A
Other languages
Chinese (zh)
Other versions
CN112416268A (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.)
Xinjinghe Laser Technology Co ltd
Original Assignee
Xinjinghe Laser Technology Development Beijing 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 Xinjinghe Laser Technology Development Beijing Co ltd filed Critical Xinjinghe Laser Technology Development Beijing Co ltd
Priority to CN202011331513.2A priority Critical patent/CN112416268B/en
Publication of CN112416268A publication Critical patent/CN112416268A/en
Application granted granted Critical
Publication of CN112416268B publication Critical patent/CN112416268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • G06F3/122Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to computing resources, e.g. memory, CPU
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41MPRINTING, DUPLICATING, MARKING, OR COPYING PROCESSES; COLOUR PRINTING
    • B41M5/00Duplicating or marking methods; Sheet materials for use therein
    • 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
    • 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance

Abstract

The invention discloses a laser printing strategy code display method and a related device, and relates to the technical field of laser printing, so as to improve the laser printing strategy code display rate and reduce the memory consumption of the related device. The laser printing strategy code display method comprises the following steps: reading a line laser printing strategy code which is an integer greater than or equal to 1 and smaller than the integer, and displaying the maximum line number of the laser printing strategy code in a full screen manner; adding an identity mark on the line laser printing strategy code according to the accumulated reading times of the line laser printing strategy code; displaying a line laser printing strategy code carrying an identity mark on a display interface; and marking the line laser printing strategy code carrying the identity mark according to the marking strategy. The related device provided by the invention is used for storing or executing the method.

Description

Laser printing strategy code display method and related device
Technical Field
The invention relates to the technical field of laser printing, in particular to a method and a related device for displaying a laser printing strategy code.
Background
A laser printing apparatus is a print output apparatus that combines a laser scanning technique and an electrophotographic technique. Before the laser printing apparatus starts printing, an NC code file needs to be imported into the laser printing apparatus and an NC code is displayed. In the printing process, the NC statement needs to be highlighted according to the actual laser path, so as to show the laser path position to the operator.
The QT TextFdit component is an editable and formatted text box that can display plain text and rich text. However, the functions of reading according to the rows and highlighting are not enough, and related improvement is carried out on the basis of the functions, so that the difficulty and the workload are high. When the QT textFdit component displays the laser printing strategy code, the laser printing strategy code is generally loaded on a full screen, so that the memory of a related device is easily insufficient, and the display efficiency of the laser printing strategy code is reduced.
Disclosure of Invention
The invention aims to provide a laser printing strategy code display method and a related device, which are used for improving the display rate of laser printing strategy codes and reducing the memory consumption of the related device.
In order to achieve the above object, the present invention provides a laser printing policy code display method, comprising:
reading m rows of laser printing strategy codes, wherein m is an integer which is more than or equal to 1 and less than k, and k is the maximum row number of the laser printing strategy codes displayed in a full screen manner;
adding an identity mark x on the m-line laser printing strategy codes according to the accumulated reading times of the m-line laser printing strategy codes;
displaying m rows of laser printing strategy codes carrying an identity mark x on a display interface;
And marking the m rows of laser printing strategy codes carrying the identity mark x according to the marking strategy.
Compared with the prior art, in the method for displaying the laser printing strategy codes, only m rows of laser printing strategy codes are read each time, the identity mark x is added to the m rows of laser printing strategy codes read each time according to the accumulated reading times of the m rows of laser printing strategy codes, and the m rows of laser printing strategy codes carrying the identity mark x are displayed on a display interface.
From the above, the method for displaying the laser printing strategy code provided by the invention only displays the laser printing strategy code with limited lines in the process of displaying the laser printing strategy code. Based on that only m rows of laser printing strategy codes are read each time and displayed on a display interface, the memory consumption of a device related to the display of the laser printing strategy codes can be reduced, and the text display rate can be improved.
Meanwhile, the identification mark x is added to the m-line laser printing strategy codes read each time, and the m-line laser printing strategy codes on the display interface can be accurately marked according to the marking strategy. By the marking strategy, an operator can know the operation state of the laser printing equipment at any time.
The present invention also provides a data display device, including:
the data reading module is used for reading m rows of laser printing strategy codes;
the data processing module is used for adding an identity mark x on the m-line laser printing strategy codes according to the accumulated reading times of the m-line laser printing strategy codes;
and the data display module is used for displaying m rows of laser printing strategy codes carrying the identity mark x.
Compared with the prior art, the display device provided by the invention has the same beneficial effects as the laser printing strategy code display method described in the technical scheme, and the description is omitted here.
The present invention also provides a computer device comprising:
a memory for storing a plurality of computer-executable instructions;
and a processor for loading computer-executable instructions from the memory to perform the laser printing policy code display method described above.
Compared with the prior art, the beneficial effects of the computer equipment provided by the invention are the same as those of the laser printing strategy code display method described in the technical scheme, and the description is omitted here.
The invention also provides a computer storage medium. The computer storage medium stores instructions. The instructions, when executed by the processor, implement the laser printing policy code display method described above.
Compared with the prior art, the beneficial effects of the computer storage medium provided by the invention are the same as those of the laser printing strategy code display method described in the technical scheme, and the description is omitted here.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a block diagram of a laser printing strategy code display system provided by an embodiment of the present invention;
FIG. 2 is a flowchart of a method for displaying a laser printing strategy code according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data display device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a chip according to an embodiment of the present invention;
Detailed Description
In order to clearly describe the technical solution of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first threshold and the second threshold are merely for distinguishing between different thresholds, and are not limited in order. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In the present invention, the words "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the present invention, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b, c can be single or multiple.
Before describing the embodiments of the present invention, the following definitions are first given for the relative terms involved in the embodiments of the present invention:
NC code: the digital information controls a code that can be identified by the machine controller. For example: the NC cutting equipment is provided with a G code, an ESSI code, an EIA code and the like, and the NC codes are different according to the structures formed by different brands of controllers.
Signal processing function: a soft interrupt signal (signal) is used to notify a process that an asynchronous event has occurred. The processes can send soft interrupt signals through system call kill. The kernel may also signal the process that an event has occurred because of an internal event.
Main page root component: the control system operates the main page, which organizes buttons, input boxes, display lists, etc., to finally complete the user interface display.
Global variable: is one of the programming terms, derived from the score of the variable. The global variable may be created by an object function or may be created anywhere in the program. The global variable may be referenced by all objects or functions of the program.
Qml: is a descriptive scripting language, the file format ends in qml, describing a user interface for a program. In qml, one user interface is designated as an object tree with attributes.
H, file: is an extension of a header written in the c++/C language. The h-file is generally used to define variables, methods, etc. For example, the FileRead.h file is a read header file.
Cpp file: is an extension of a source code file written in the c++ language. For example, the FileRead.cpp file may be an entity file, similar to a word file. The content described in the fileread.
QObject class: is the base class of most of the classes defined by the Qt framework. In the Qt, the QObject class integrates a Qt element object system, and implements functions not provided by the standard c++ object model, thereby implementing a series of functions that are convenient for users to develop and use, and among them, the most important is a signal-slot function. In addition, the QObject also realizes the functions of child node memory management, event filtering, text translation and the like.
And (3) packaging: in object-oriented editing, encapsulation is the encapsulation of resources required for the execution of an object in a program object. An object is "publish its interface". Other objects attached to these interfaces can use this object without concern for the method in which the object is implemented.
Delegate attribute value: in QtQuick, data is separated by model-view. For each view, the visualization of each data element is assigned to one agent (delete). The component style may be designed by setting the delete attribute value, such as setting the list background to a gray rectangular box.
Application component: QT encapsulated window component. The window assembly includes: catalog column, toolbar, zoom-in button, zoom-out button, close button, etc.
The embodiment of the invention provides a laser printing strategy code display method, which is suitable for reading a laser printing strategy code and displaying the read laser printing strategy code on a display interface in the operation process of laser printing equipment 300, and is used for improving the display rate of the laser printing strategy code and reducing the memory consumption of related devices.
The laser printing strategy code display method provided by the embodiment of the invention can be applied to the laser printing strategy code display system shown in fig. 1. As shown in fig. 1, the laser printing policy code display system may include: computer device 100, server 200, and laser printing device 300. The server 200 is communicatively connected to the computer device 100 and the laser printing device 300, respectively.
Aiming at the problems that the traditional display method is deficient in row reading and highlighting functions, the laser printing strategy codes are fully loaded on a screen in the display process, so that the memory of a related device is deficient and the display efficiency is slow to drag. The following examples describe the method of embodiments of the present invention using interactive writing. Fig. 2 illustrates a flowchart of a method for displaying a laser printing policy code according to an embodiment of the present invention. The method may be executed by the computer device 100, as shown in fig. 2, and the method for displaying a laser printing policy code according to the embodiment of the present invention includes:
Step 101: the computer device 100 reads the m-line laser printing policy code. m is an integer greater than or equal to 1 and less than k, and k is the maximum line number of the full screen display of the laser printing strategy code.
The m-line laser printing policy code described above may be stored in an external storage device, for example: USB flash disk (simply referred to as "USB disk"), hard disk, or optical disk. The laser printing policy code may be an NC code, and may record a travel path of the laser printing apparatus 300 in printing a document.
In the actual application process, the computer device 100 may read the m-line laser printing policy codes by using a file reading function. In particular, the file read function may be created in a C++ file read module. The C++ file reading module is adopted to read the laser printing strategy codes, so that the reading efficiency of the laser printing strategy codes can be accelerated. The specific process of reading the laser printing policy code by the c++ file reading module may include:
step 1011: the computer device 100 creates a fileread.h file and a fileread.cpp file in the c++ file read module.
Step 1012: the computer device 100 creates a FileRead class in the FileRead.cpp file. The FileRead class may inherit from the QObject class.
Step 1013: the computer device 100 creates a file read function in the FileRead class and reads the m-line laser printing policy code using the file read function. The file read function may be readNCCode (QString filename).
In order for the m lines of laser printing policy codes read by the above-described file reading function each time to be transmitted to the main page root component, the laser printing policy code display method may further include step 1014.
Step 1014: the computer device 100 creates a first signal processing function in the FileRead class. The first signal processing function may be signalOfNCCode (QString ncData).
The first signal processing function may send the m-line laser printing policy codes read by the file reading function each time to a master page root component.
To facilitate access to the FileRead class by the Main Page root component, the laser printing policy code display method may further include step 1015.
Step 1015: the computer device 100 encapsulates the FileRead class into qml attributes and names the FileRead class encapsulated into qml attributes as fileRead so that the FileRead class encapsulated into qml attributes can be accessed directly in the qml file or qml component.
The laser printing policy code display method may further include steps 102 to 107 in order to process the laser printing policy code read by the c++ file reading module.
Step 102: the computer apparatus 100 transmits the m-line laser printing policy code to the main page root component using the first signal processing function.
The main page root component may be a global root component. The main page root component mainly supports the core tasks of software main page display, global variable creation, global function execution and the like. The main page root component is essentially a qml file. For example, the main page root component may be named main. Qml.
The computer apparatus 100 may transmit the m-line laser printing policy codes read at a time by the file reading function to the main page root component using the first signal processing function so as to process the m-line laser printing policy codes in the main page root component.
Step 103: computer device 100 saves m lines of laser printing policy code in the main page root component using global variables.
The specific process of the computer device 100 using the global variable to save the m-line laser printing policy codes sent by the first signal processing function to the global variable may include the steps of:
Step 1031: computer device 100 creates a main. Qml file in the main page root component.
Step 1032: the computer device 100 imports an Application component in a main. Qml file and names the id of the Application component as app.
Step 1033: computer device 100 creates a global variable under the app component.
The global variable may be named: gcodeshowModel. Computer device 100 may save the m lines of laser printing policy codes transferred into the master page root component using the first signal processing function using the global variable. The content stored in the global variable may include: the m-line laser printing strategy codes are transmitted to the global variable through the first signal processing function, and the accumulated transmission times of the m-line laser printing strategy codes are transmitted through the first signal processing function. It should be understood that the first signal processing function described above transmits the cumulative number of transmissions of the m-line laser printing strategy codes, that is, the cumulative number of readings of the m-line laser printing strategy codes by the document reading function.
The content formats of the global variable save may include: the first signal transmits the accumulated transmission times of the m-line laser printing strategy codes and the content of the m-line laser printing strategy codes. For example, the content format held in the global variable may be: "id":1"value": "N3M 57 (gas on)". The content format description is shown in table 1:
TABLE 1 Contents Format Specification stored in Global variables
Keyword(s) Value of 1 Identification mark x carried on m-line laser printing strategy code
Keyword(s) Value of N3 M57(gas on) Content of m-line laser printing policy code
Step 104: the computer device 100 adds the identification mark x to the m-line laser printing policy code according to the accumulated number of readings of the m-line laser printing policy code.
The identity mark x is the accumulated reading times of the corresponding m-line laser printing strategy codes. The computer device 100 adds the identity mark x to the m-line laser printing policy code using the master page root component, so as to mark the m-line laser printing policy code carrying the identity mark x according to the marking policy. The specific process may include the steps of:
step 1041: the computer device 100 binds and listens to the first signal processing function under the app component. When the app component listens to the first signal processing function, it indicates that m lines of laser printing policy codes are transferred into the master page root component.
Step 1042: the computer device 100 can calculate the accumulated number of times of receiving m rows of laser printing policy codes in the global variable according to the accumulated number of times of monitoring the first signal processing function by using the app component, thereby obtaining the identity mark x of the m rows of laser printing policy codes received each time, and then adding the identity mark x to the global variable. It should be understood that the accumulated number of times of receiving is the accumulated number of times of reading m rows of laser printing strategy codes by the file reading function. That is, when each m-line laser printing policy code is confirmed, the contents held in the global variable are updated. The updated content in the global variable is m rows of laser printing strategy codes carrying the identity mark x.
Step 101 to step 104 can be seen that, after the file reading function reads all the laser printing policy codes, all the laser printing policy codes carrying the identity mark x are stored in the global variable.
Step 105: the server 200 acquires the current code line number n of the laser printing policy code transmitted by the laser printing apparatus 300.
In the actual application process, the server 200 can perform real-time information interaction with the laser printing device 300 through TCP/IP. The step of the server 200 acquiring the current code line number n of the laser printing policy code transmitted by the laser printing apparatus 300 may include:
step 1051: the computer device 100 creates a second signal processing function. The second signal processing function may be signalLineNum (int curLineNum).
Step 1052: when the laser printing apparatus 300 starts printing a file, the server 200 may access the laser printing apparatus 300 once at intervals to acquire the current code line number n of the current laser printing apparatus 300 performing the laser printing policy code. For example: the server 200 may access the laser printing device 300 once every 50 microseconds.
Step 1053: the server 200 sends the current code line number n to the second signal processing function.
Step 106: the m rows of laser printing policy codes carrying the identity mark x are displayed on the display interface of the computer device 100.
The display interface may be a text display. For example: the display interface may employ a ListView packaged text display. The text display is mainly used for displaying m rows of laser printing strategy codes carrying the identity mark x. And simultaneously, marking the m rows of laser printing strategy codes under the condition that the identity marks carried by the m rows of laser printing strategy codes are matched with the current code row number n of the laser printing strategy codes.
In the practical application process, the text display mainly comprises a text display component and a text line display component. Wherein the step of creating a text display component may comprise:
step 1061: library files required to create the text display component are imported in the computer device 100. The library files can be Qtquick.Controls2.12 and Qtquick.Layouts 1.12, and after the two files are imported, the components such as rectangles and lists of the Qt can be directly referenced.
Step 1062: the text display component references the basic graphic component as a background. The base graphical component may also be referred to as a first parent component. The basic graphic component may be a substantially rectangular component.
Step 1063: computer device 100 sets the basic properties of the first parent component and listens for the second signal processing function. The following is illustrative:
(1) The computer device 100 sets the id name of the first parent component to root.
(2) Computer device 100 sets the rights of the first parent component to visibility.
(3) When the first parent component is a substantially rectangular component, the computer device 100 may set the width of the rectangle to 400, the height of the rectangle to 200, and the fill background color of the rectangle to a transparent color. The boundary width of each rectangle may be set to 1, and the boundary color of each rectangle may be set to black.
Step 1064: the computer device 100 adds a first sub-component ListView in the first parent component and sets the properties of the first sub-component. The following is illustrative:
(1) The computer device 100 sets the id name of the first sub-component to listview.
(2) The computer device 100 sets the rights of the first sub-component to visibility.
(3) When the first parent component is a substantially rectangular component, the anchor component is configured such that the first child component is centrally located within the first parent component. At this time, the width of the first sub-assembly may be equal to the width of the first parent assembly, and the height of the first sub-assembly may be equal to the height of the first parent assembly.
(4) The computer device 100 sets the first sub-component as a tailorable attribute.
(5) The computer device 100 sets the style of the scroll bar in the first sub-assembly.
(6) The computer device 100 sets the pattern of the row display in the first sub-assembly.
(7) The first sub-component listens to the currentIndexChanged signal, which may be used primarily to fix the marked laser printing policy code in the middle of the display interface. Where currentindidexchanged=currentindex+changed, currentIndex is an attribute of the first subcomponent listview, and when the value of the attribute of currentIndex changes, the currentindidexchanged signal will be triggered automatically.
Step 1065: the computer device 100 creates an attribute variable in the first parent component.
(1) The computer device 100 proposes the data attribute listview.model in the first sub-component and renames the style attribute listview.model in the first sub-component to listvodel.
(2) The computer device 100 proposes the count attribute listview.count in the first sub-component and renames the count attribute listview.count in the first sub-component to listCount.
(3) Computer device 100 brings up the listview.currentindex attribute in the first sub-component and renames the listview.currentindex in the first sub-component to listdindex. The listview.currentindex attribute is used to compare the identity x with the current code line number n.
In actual practice, the global variable gcodeShowModel created in the main page root component may be assigned to the first sub-component. When the number of lines of the laser printing strategy code stored in the global variable gcodeshawwmodel is greater than m, a text line display component is automatically added.
In practice, the text line display Component may be encapsulated within the Qt Component. The Qt Component may be reused to provide a graphical presentation to the above sub-Component listview. In the embodiment of the present invention, the Qt Component may be used as a delete attribute value of the subcomponent listview, i.e., every m lines of the text line display Component may be presented according to such an appearance. The step of creating a text line display component may include:
step 1066: library files required to create the text line display component are imported in the computer device 100.
Step 1067: the text line display Component references the Component as the second parent Component and names the Component as listdeleg. The Component is a substantially rectangular Component.
Step 1068: computer device 100 adds a base graphical component in a second parent component and sets the attributes of the second parent component. The base graph component can be a second sub-component of a second parent component. The following is illustrative:
(1) Computer device 100 sets the id name of the second parent component to listaitem.
(2) When the second parent component is a basic rectangular component, the computer device 100 sets the width of the rectangle to be equal to the width of the first parent component, and the height of the rectangle may be set according to practical situations, for example: the height of the rectangle may be set to 30 pixels; rectangular filling background colors are set. For example, when the identity mark carried by the m rows of laser printing strategy codes is matched with the current code row number n of the laser printing strategy codes, the filling background color of the rectangle is blue; when the identity mark carried by the m rows of laser printing strategy codes is not matched with the current code row number n of the laser printing strategy codes, the filling background color of the rectangle is transparent.
Step 1069: the computer device 100 continues to add the third sub-component Text in the second parent component listmaltem and sets the properties of the third sub-component Text. The following is illustrative:
(1) The computer device 100 sets the id of the third sub-component Text to label;
(2) The computer device 100 sets the font type in the third sub-component Text to Microsoft YaHei and sets the font size in the third sub-component Text to 12.
(3) The computer device 100 sets the data to be displayed in the third subcomponent Text to the value in the subcomponent listview.
As can be seen from the above step 106, the laser printing strategy code read by the file reading function is finally displayed in the third sub-component Text.
In the practical application process, after m rows of laser printing strategy codes read by the file reading function each time are displayed on the display interface, the file reading function determines the reading starting row of the m rows of laser printing strategy codes according to the reading content of the m rows of laser printing strategy codes. And updating the m rows of laser printing strategy codes according to the reading starting row by the file reading function. The following is exemplified with m=1:
when the file reading function reads "/n", it is indicated that the file reading function has read a line of laser printing strategy codes at this time. That is, when the file reading function finishes reading one line of laser printing strategy codes, the reading starting line of the file reading function for reading the next line of laser printing strategy codes can be determined according to "/n".
Step 107: the computer device 100 marks the m rows of laser printing policy codes carrying the identity mark x according to a marking policy.
The marking policy refers to a policy for marking a laser printing policy code displayed on a display interface. The marking strategy is related to m. The following is illustrative:
When m=1, that is, the file reading function reads the laser printing policy code row by row. And marking the nth line of laser printing strategy codes in the text line display component under the condition that the current code line number n is equal to the identity mark x. For example: according to the marking rule of the Chinese line display component in step 106, under the condition that the current code line number n is equal to the identity mark x, the current nth line laser printing strategy code can be marked in blue, so that an operator can intuitively know the running progress of the laser printing device 300.
When m > 1, for example: m=2, that is, the document reading function reads two lines of laser printing policy codes at a time. In the case that the current code line number n is equal to the identity mark x, the text line display component marks the nth line laser printing strategy code, and marks the nth+1 to nth+xm line laser printing strategy codes in sequence. Until the text line display module marks the n+x×m line laser printing policy code, step 105 is performed.
According to the steps, the laser printing strategy code display method provided by the invention is used for displaying the laser printing strategy codes in a limited line. Based on that only m rows of laser printing strategy codes are read each time and displayed on a display interface, the memory consumption of a device related to the display of the laser printing strategy codes can be reduced, and the text display rate can be improved.
Meanwhile, the identification mark x is added to the m-line laser printing strategy codes read each time, and the m-line laser printing strategy codes on the display interface can be accurately marked according to the marking strategy. By this marking strategy, the operator can be made aware of the operating state of the laser printing apparatus 300 at any time.
Those of skill in the art will readily appreciate that the present invention may be implemented in hardware or a combination of hardware and computer software, as the method steps of the examples described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. 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 invention.
The embodiment of the invention can divide the functional modules of the terminal equipment according to the method example, for example: each functional module may be divided corresponding to each function, or two or more functions may be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present invention, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 3 illustrates a schematic structure of a data display apparatus 400 according to an embodiment of the present invention in a case where respective functional modules are divided corresponding to respective functions. As shown in fig. 3, the data display apparatus 400 may include:
the data reading module 401: the method is used for reading m rows of laser printing strategy codes, and the steps 101 and 102 are executed.
The data processing module 402: the method is used for adding the identity mark x to the m rows of laser printing strategy codes according to the accumulated reading times of the m rows of laser printing strategy codes, and executing the steps 103, 104, 105 and 107.
Data display module 403: the step 106 is executed to display the m-line laser printing policy code carrying the identity mark x.
In some possible implementations, the data display apparatus 400 may further include a data storage module for storing the laser printing policy code.
In one possible implementation, the data reading module 401 may be considered to be implemented by a c++ file reading module, so that the data reading module 401 may read the laser printing policy code stored in the storage module.
In one possible implementation, the functionality of data processing module 402 described above may be implemented by a master page root component. The main page root component may be configured to add the identification mark x to the m lines of laser printing policy codes read each time according to the accumulated number of times of reading the m lines of laser printing policy codes by the data reading module 401. And meanwhile, the main page root component is also used for marking m rows of laser printing strategy codes carrying the identity mark x according to a marking strategy.
In one possible implementation, the functionality of the data display module 403 described above may be implemented by a ListView file display. The ListView file display is used for displaying m rows of laser printing strategy codes carrying the identity mark x. Meanwhile, the ListView file display can also be used for displaying laser printing strategy codes marked according to marking strategies.
The data processing module 402 may be a processor or controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an Application-specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The data reading module 401 may be a transceiver, a transceiver circuit, a communication interface, or the like. The data storage module may be a memory.
When the data processing module 402 is a processor, the data reading module 401 is a transceiver, and the data storage module is a memory, the display device according to the embodiment of the present invention may be the computer device 100 shown in fig. 3.
Fig. 4 shows a schematic hardware structure of a computer device 100 according to an embodiment of the present invention. As shown in fig. 4, the computer device 100 includes a processor and a communication interface.
As shown in FIG. 4, the processor may be a general purpose central processing unit (central processing unit, CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention. The communication interface 130 may be one or more. The communication interface 130 may use any transceiver-like device for communicating with other devices or communication networks.
As shown in fig. 4, the above-described computer device 100 may further include a communication line. Communication line 140 may include a pathway to transfer information between the aforementioned components.
Optionally, as shown in FIG. 4, the computer device 100 may also include a memory 120. The memory 120 is used to store computer-executable instructions for performing aspects of the present invention and is controlled by a processor for execution. The processor is configured to load computer-executable instructions from the memory 120 to perform the laser printing policy code display method described above.
As shown in fig. 4, the memory 120 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory, CD-ROM) or other optical storage, optical storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media 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 computer. The memory 120 may be stand alone and be coupled to the processor via a communication line 140. Memory 120 may also be integrated with the processor.
Alternatively, the computer-executable instructions in the embodiments of the present invention may be referred to as application program codes, which are not particularly limited in the embodiments of the present invention.
In a specific implementation, as one embodiment, as shown in FIG. 3, the processor may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4.
In a specific implementation, as one embodiment, as shown in FIG. 3, computer device 100 may include multiple processors, such as processor 110 and processor 150 in FIG. 4. Each of these processors may be a single-core processor or a multi-core processor.
Fig. 5 is a schematic structural diagram of a chip 500 according to an embodiment of the present invention. As shown in fig. 4, the chip 500 includes one or more (including two) processors 510 and a communication interface 540.
Optionally, as shown in fig. 5, the chip 500 further includes a memory 530, where the memory 530 may include read only memory and random access memory, and provides operating instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (non-volatile random access memory, NVRAM).
In some embodiments, as shown in FIG. 5, memory 530 stores elements, execution modules or data structures, or a subset thereof, or an extended set thereof.
In the embodiment of the present invention, as shown in fig. 5, by calling the operation instruction stored in the memory (the operation instruction may be stored in the operating system), the corresponding operation is performed.
As shown in fig. 5, the processor 510 controls the processing operations of any of the computer devices 100, and the processor 510 may also be referred to as a central processing unit (central processing unit, CPU).
As shown in fig. 5, memory 530 may include read only memory and random access memory, and provides instructions and data to processor 510. A portion of the memory 530 may also include NVRAM. Such as a memory, a communication interface, and a memory coupled together by a bus system that may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. But for clarity of illustration, the various buses are labeled as bus system 550 in fig. 5.
As shown in fig. 5, the method disclosed in the above embodiment of the present invention may be applied to the processor 510, or implemented by the processor 510. The processor 510 may be an integrated circuit chip 500 having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
In one possible implementation, as shown in fig. 5, the communication interface 540 is used to perform the receiving steps of the computer device 100 in the embodiment shown in fig. 3. The processor 510 is configured to perform the steps of the processing of the computer device 100 in the embodiment shown in fig. 3.
In one aspect, a computer readable storage medium is provided in which instructions are stored which, when executed, implement the functions performed by the computer device 100 in the above-described embodiments.
In one aspect, a chip 500 is provided, the chip 500 being used in a computer device 100, the chip 500 comprising at least one processor and a communication interface, the communication interface and the at least one processor being coupled, the processor being configured to execute instructions to implement the functions performed by the computer device 100 in the embodiments described above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a terminal, a user equipment, or other programmable apparatus. The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website site, computer, server 200, or data center to another website site, computer, server 200, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as server 200, a data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, e.g., floppy disk, hard disk, tape; optical media, such as digital video discs (digital video disc, DVD); but also semiconductor media such as solid state disks (solid state drive, SSD).
Although the invention is described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the invention has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the invention. Accordingly, the specification and drawings are merely exemplary illustrations of the present invention as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. A laser printing strategy code display method, comprising:
reading m rows of laser printing strategy codes, wherein m is an integer which is more than or equal to 1 and less than k, and k is the maximum row number of the laser printing strategy codes displayed in a full screen manner;
adding an identity mark x on the m-line laser printing strategy codes according to the accumulated reading times of the m-line laser printing strategy codes;
displaying the m rows of laser printing strategy codes carrying the identity mark x on a display interface;
and marking the m rows of laser printing strategy codes carrying the identity mark x according to a marking strategy.
2. The laser printing strategy code display method according to claim 1, wherein the reading of m lines of laser printing strategy codes comprises:
and reading the m rows of laser printing strategy codes by using a file reading function.
3. The method for displaying a laser printing strategy code according to claim 1, wherein after the m rows of laser printing strategy codes are read, the method for displaying a laser printing strategy code further comprises, before the identity mark x is added to the m rows of laser printing strategy codes according to the accumulated number of times of reading the m rows of laser printing strategy codes:
Transmitting the m-line laser printing strategy codes to a main page root component by using a first signal processing function;
and saving the m rows of laser printing strategy codes in the main page root component by using a global variable.
4. A method for displaying a laser printing policy code according to any one of claims 1 to 3, wherein the identity mark x carried by the m-line laser printing policy code is the accumulated number of readings of the corresponding m-line laser printing policy code.
5. A method of displaying a laser printing policy code according to any one of claims 1 to 3, wherein marking the m rows of laser printing policy codes carrying the identity mark x according to a marking policy comprises:
acquiring a current code line number n of a laser printing strategy code sent by laser printing equipment;
and marking the m rows of laser printing strategy codes under the condition that the identity marks carried by the m rows of laser printing strategy codes are matched with the current code row number n of the laser printing strategy codes.
6. The laser printing strategy code display method of claim 5 wherein the marking strategy is:
When m=1, marking the nth row of laser printing strategy codes under the condition that the current code row number n is equal to the identity mark x;
when m is more than 1, marking the nth row of laser printing strategy codes under the condition that the current code row number n is equal to the identity mark x, and marking the nth+1 to nth+xMth row of laser printing strategy codes in sequence.
7. A method for displaying a laser printing policy code according to any one of claims 1-3, wherein after displaying the m rows of laser printing policy codes carrying the identity on a display interface, the method for displaying a laser printing policy code further comprises:
determining a reading starting line of the m-line laser printing strategy codes according to the reading content of the m-line laser printing strategy codes;
and updating the m rows of laser printing strategy codes according to the reading starting row.
8. A computer device, comprising:
a memory for storing a plurality of computer-executable instructions;
and a processor for loading the computer-executable instructions from the memory to perform the laser printing strategy code display method of any one of claims 1-7.
9. A computer storage medium storing instructions which, when executed by a processor, implement the laser printing policy code display method of any one of claims 1 to 7.
CN202011331513.2A 2020-11-24 2020-11-24 Laser printing strategy code display method and related device Active CN112416268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011331513.2A CN112416268B (en) 2020-11-24 2020-11-24 Laser printing strategy code display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011331513.2A CN112416268B (en) 2020-11-24 2020-11-24 Laser printing strategy code display method and related device

Publications (2)

Publication Number Publication Date
CN112416268A CN112416268A (en) 2021-02-26
CN112416268B true CN112416268B (en) 2023-06-06

Family

ID=74778651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011331513.2A Active CN112416268B (en) 2020-11-24 2020-11-24 Laser printing strategy code display method and related device

Country Status (1)

Country Link
CN (1) CN112416268B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3554177B2 (en) * 1997-04-23 2004-08-18 キヤノン株式会社 Output control device, output control method, storage medium
US7038797B1 (en) * 1999-05-25 2006-05-02 Silverbrook Research Pty Ltd Method and system for delivery of mail
US9052983B2 (en) * 2012-01-16 2015-06-09 International Business Machines Corporation Source code patches
US10786865B2 (en) * 2014-12-15 2020-09-29 Arcam Ab Method for additive manufacturing
CN204904462U (en) * 2015-05-08 2015-12-23 郑宇� Self -service terminating machine of commercial affairs registration
CN110709812A (en) * 2017-04-07 2020-01-17 多佛欧洲有限责任公司 Method and apparatus for managing different screens having different sizes of a printer
CN107672183A (en) * 2017-10-20 2018-02-09 东华大学 A kind of 3D printer control system based on ARM
CN111124321B (en) * 2019-11-04 2020-09-08 深圳市金城保密技术有限公司 Debugging method and system of laser printer

Also Published As

Publication number Publication date
CN112416268A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN110489116B (en) Page rendering method and device and computer storage medium
TWI700638B (en) Display method and device of mixed view
CN102073502B (en) Method for rendering page frame by WEB primary layout and device thereof
US20170235473A1 (en) Method and Apparatus for Loading Application Program View, and Electronic Terminal
CN113609820A (en) Method, device and equipment for generating word file based on extensible markup language file
CN112668290A (en) Dynamic form generation method and system based on gridding design
CN111736884A (en) Componentization method and system
CN114020256A (en) Front-end page generation method, device and equipment and readable storage medium
CN112068911A (en) Method, device, system, equipment and medium for generating electronic form
CN114416056A (en) Page generation method, system, computer equipment and readable storage medium
CN109857964B (en) Thermodynamic diagram drawing method and device for page operation, storage medium and processor
CN112486490B (en) Front-end code packaging method and device, electronic equipment and storage medium
CN112052000A (en) Component multiplexing and rendering method and device
CN107621951B (en) View level optimization method and device
CN112416268B (en) Laser printing strategy code display method and related device
CN112256377A (en) Popup window data processing method and device
CN107832088A (en) Control application method and device, computing device, computer-readable storage medium
US11789747B2 (en) Simulated visual hierarchy while facilitating cross-extension communication
CN114077430A (en) Interface generation method and device, electronic equipment and storage medium
CN110399580B (en) Method and device for displaying target style in browser
CN114461214A (en) Page display method and device, electronic equipment and storage medium
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
CN112068828A (en) Title control generation method, device, system, equipment and medium
CN112732252A (en) Method and device for dynamically generating UI (user interface) and electronic equipment
CN111273913A (en) Method and device for outputting application program interface data represented by specifications

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
CP03 Change of name, title or address

Address after: Room 201, 2nd Floor, No. 5999 Wuxing Avenue, Zhili Town, Wuxing District, Huzhou City, Zhejiang Province, 313008 (self declared)

Patentee after: Xinjinghe Laser Technology Co.,Ltd.

Country or region after: China

Address before: 102206 unit 1106 and 1107, unit 1, 11th floor, building 1, yard 1, Neng Dong Road, Shahe Town, Changping District, Beijing

Patentee before: XINJINGHE LASER TECHNOLOGY DEVELOPMENT (BEIJING) Co.,Ltd.

Country or region before: China