[go: up one dir, main page]

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

A 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
lines
codes
printing strategy
code
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 Group 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

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

一种激光打印策略代码显示方法及相关装置A 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 laser printing strategy code display method and a related device.

背景技术Background technique

激光打印设备是一种将激光扫描技术和电子照相技术相结合的打印输出设备。激光打印设备在开始打印之前,需将NC代码文件导入激光打印设备,并使NC代码显示。在打印过程中,需使NC语句按照实际激光路径进行高亮显示,以向操作人员展示激光路径位置。Laser printing equipment is a printing output equipment that combines laser scanning technology and electrophotography technology. Before the laser printing device starts printing, it is necessary to import the NC code file into the laser printing device and display the NC code. During the printing process, the NC statement needs to be highlighted according to the actual laser path to show the laser path position to the operator.

QT TextFdit组件是一个可编辑且有格式的文本框,它可以显示明文和富文本。但其按行读取与行高亮显示功能欠缺,在其基础上进行相关改进,难度与工作量较大。QTTextFdit组件在显示激光打印策略代码时,一般会使激光打印策略代码满屏加载,这样很容易导致相关装置内存不足,并且会降低激光打印策略代码的显示效率。The QT TextFdit component is an editable and formatted text box that can display plain text and rich text. However, its functions of reading by line and highlighting by line are lacking, and it is difficult and a lot of work to make related improvements on the basis of it. When the QTTextFdit component displays the laser printing strategy code, it will generally load the laser printing strategy code on the full screen, which will easily lead to insufficient memory of the relevant device and reduce the display efficiency of the laser printing strategy code.

发明内容Contents of the invention

本发明的目的在于提供一种激光打印策略代码显示方法及相关装置,用于提高激光打印策略代码的显示速率,并减少相关装置的内存消耗。The purpose of the present invention is to provide a method for displaying laser printing strategy codes and related devices, which are used to increase the display rate of laser printing strategy codes and reduce memory consumption of related devices.

为了实现上述目的,本发明提供一种激光打印策略代码显示方法,包括:In order to achieve the above object, the present invention provides a laser printing strategy code display method, comprising:

读取m行激光打印策略代码,m为大于或等于1且小于k的整数,k为激光打印策略代码满屏显示的最大行号;Read m lines of laser printing strategy codes, m is an integer greater than or equal to 1 and less than k, and k is the maximum line number of laser printing strategy codes displayed on the full screen;

根据m行激光打印策略代码的累计读取次数,在m行激光打印策略代码上添加身份标识x;According to the accumulative reading times of m lines of laser printing policy codes, add an identity mark x to the m lines of laser printing policy codes;

在显示界面显示携带身份标识x的m行激光打印策略代码;Displaying m lines of laser printing strategy codes carrying the identity mark x on the display interface;

根据标记策略对携带身份标识x的m行激光打印策略代码进行标记。According to the marking policy, the m lines of laser printing policy codes carrying the identification mark x are marked.

与现有技术相比,本发明提供的激光打印策略代码显示方法中,每次只读取m行激光打印策略代码,根据m行激光打印策略代码的累计读取次数,在每次读取的m行激光打印策略代码上均添加身份标识x,并使该携带身份标识x的m行激光打印策略代码在显示界面上显示。Compared with the prior art, in the laser printing strategy code display method provided by the present invention, only m lines of laser printing strategy codes are read each time, and according to the accumulated reading times of the m lines of laser printing strategy codes, in each read The identity mark x is added to the m lines of laser printing policy codes, and the m lines of laser printing policy codes carrying the identity mark x are displayed on the display interface.

由上可见,使用本发明提供的激光打印策略代码显示方法,显示激光打印策略代码的过程中,只显示有限行的激光打印策略代码。基于每次只读取m行激光打印策略代码,并将该m行激光打印策略代码在显示界面上显示,可以减少与激光打印策略代码显示的相关装置的内存消耗,并可以提高文本显示速率。It can be seen from the above that by using the laser printing strategy code display method provided by the present invention, only limited lines of laser printing strategy codes are displayed during the process of displaying the laser printing strategy codes. Based on reading only m lines of laser printing strategy codes each time and displaying the m lines of laser printing strategy codes on the display interface, the memory consumption of devices related to laser printing strategy code display can be reduced, and the text display rate can be improved.

同时,基于在每次读取到的m行激光打印策略代码上添加身份标识x,并根据标记策略,便可以准确的对显示界面上的m行激光打印策略代码进行标记。通过该标记策略,可以使操作人员随时了解激光打印设备的运行状态。At the same time, based on adding the identity mark x to the m lines of laser printing strategy codes read each time, and according to the marking strategy, the m lines of laser printing strategy codes on the display interface can be accurately marked. Through this marking strategy, the operator can keep abreast of the operating status of the laser printing equipment.

本发明还提供一种数据显示装置,包括:The present invention also provides a data display device, comprising:

数据读取模块,用于读取m行激光打印策略代码;The data reading module is used to read m lines of laser printing strategy codes;

数据处理模块,用于根据m行激光打印策略代码的累计读取次数,在m行激光打印策略代码上添加身份标识x;The data processing module is used to add an identity mark x on the m-row laser printing strategy code according to the cumulative reading times of the m-row laser printing strategy code;

数据显示模块,用于显示携带身份标识x的m行激光打印策略代码。The data display module is used to display the m lines of laser printing policy codes carrying the identity mark x.

与现有技术相比,本发明提供的显示装置的有益效果与上述技术方案所述的激光打印策略代码显示方法的有益效果相同,此处不做赘述。Compared with the prior art, the beneficial effect of the display device provided by the present invention is the same as that of the laser printing strategy code display method described in the above technical solution, and will not be repeated 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 execute the above laser printing strategy code display method.

与现有技术相比,本发明提供的计算机设备的有益效果与上述技术方案所述的激光打印策略代码显示方法的有益效果相同,此处不做赘述。Compared with the prior art, the beneficial effect of the computer equipment provided by the present invention is the same as that of the laser printing strategy code display method described in the above technical solution, and will not be repeated here.

本发明还提供一种计算机存储介质。该计算机存储介质存储有指令。该指令被处理器执行时实现上述激光打印策略代码显示方法。The invention also provides a computer storage medium. The computer storage medium stores instructions. When the instruction is executed by the processor, the above laser printing strategy code display method is realized.

与现有技术相比,本发明提供的计算机存储介质的有益效果与上述技术方案所述的激光打印策略代码显示方法的有益效果相同,此处不做赘述。Compared with the prior art, the beneficial effect of the computer storage medium provided by the present invention is the same as that of the laser printing strategy code display method described in the above technical solution, and will not be repeated here.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute improper limitations to the present invention. In the attached picture:

图1为本发明实施例提供的激光打印策略代码显示系统的结构图;FIG. 1 is a structural diagram of a laser printing strategy code display system provided by an embodiment of the present invention;

图2为本发明实施例提供的激光打印策略代码显示方法的流程图;FIG. 2 is a flow chart of a laser printing strategy code display method provided by an embodiment of the present invention;

图3为本发明实施例提供的数据显示装置的结构示意图;FIG. 3 is a schematic structural diagram of a data display device provided by an embodiment of the present invention;

图4为本发明实施例提供的计算机设备的结构示意图;FIG. 4 is a schematic structural diagram of a computer device provided by an embodiment of the present invention;

图5为本发明实施例提供的芯片的结构示意图;FIG. 5 is a schematic structural diagram of a chip provided by an embodiment of the present invention;

具体实施方式Detailed ways

为了便于清楚描述本发明实施例的技术方案,在本发明的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一阈值和第二阈值仅仅是为了区分不同的阈值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and their sequence is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

需要说明的是,本发明中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the present invention, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as being 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 manner.

本发明中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a和b的结合,a和c的结合,b和c的结合,或a、b和c的结合,其中a,b,c可以是单个,也可以是多个。In the present invention, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (one) of a, b or c may represent: a, b, c, a combination of a and b, a combination of a and c, a combination of b and c, or a, b and c Combination, where a, b, c can be single or multiple.

在介绍本发明实施例之前首先对本发明实施例中涉及到的相关名词作如下释义:Before introducing the embodiments of the present invention, the relevant terms involved in the embodiments of the present invention are first explained as follows:

NC代码:数字信息控制机械控制器能识别的代码。例如:数控切割设备上就有G代码、ESSI码、EIA码等,NC代码根据不同品牌的控制器所构成的结构也不相同。NC code: A code that can be recognized by the digital information control machine controller. For example, there are G codes, ESSI codes, EIA codes, etc. on the CNC cutting equipment, and the structure of the NC codes is different according to different brands of controllers.

Signal信号处理函数:软中断信号(signal,又简称为信号)用来通知进程发生了异步事件。进程之间可以互相通过系统调用kill发送软中断信号。内核也可以因为内部事件而给进程发送信号,通知进程发生了某个事件。Signal signal processing function: soft interrupt signal (signal, also referred to as signal) is used to notify the process that an asynchronous event has occurred. Processes can send soft interrupt signals to each other through the system call kill. The kernel can also send signals to the process because of internal events, notifying the process that an event has occurred.

主页面根组件:控制系统运行时的主页面,其将“按钮、输入框、显示列表”等组织在一起,最终完成用户界面显示。Main page root component: the main page when the control system is running, which organizes "buttons, input boxes, display lists" and so on, and finally completes the user interface display.

全局变量:是编程术语中的一种,源自于变量之分。全局变量可以是某对象函数创建,也可以是在本程序任何地方那个创建。全局变量可以被本程序所有对象或函数引用。Global variable: It is a kind of programming term, derived from the distinction of variables. A global variable can be created by an object function, or it can be created anywhere in this program. Global variables can be referenced by all objects or functions of this program.

Qml:是一种描述性的脚本语言,文件格式以.qml结尾,用来描述一个程序的用户界面。在qml中,一个用户界面被指定为具有属性的对象树。Qml: It is a descriptive scripting language whose file format ends with .qml and is used to describe the user interface of a program. In qml, a user interface is specified as a tree of objects with properties.

.h文件:是一种用C++/C语言编写的头文件的扩展名。.h文件一般用来进行变量、方法等的定义。例如,FileRead.h文件为读取头文件。.h file: It is an extension of a header file written in C++/C language. .h files are generally used to define variables, methods, etc. For example, the FileRead.h file is the header file for reading.

.cpp文件:是一种C++语言编写的源代码文件的扩展名。例如,FileRead.cpp文件可以是一个实体文件,类似于word文件。FileRead.cpp文件中记载的内容需要符合C++的相关标准。.cpp file: It is an extension of a source code file written in C++ language. For example, the FileRead.cpp file can be an entity file, similar to a word file. The content recorded in the FileRead.cpp file must comply with the relevant standards of C++.

QObject类:是Qt框架定义的类中大多数类的基类的基类。在Qt中,QObject类集成了Qt元对象系统,实现了标准C++对象模型没有提供的功能,从而实现了一系列便于用户开发使用的功能,其中最重要的就是信号-槽功能。除此之外,QObject还实现了子节点的内存管理、事件过滤及文本翻译等功能。QObject class: It is the base class of the base class of most classes in the classes defined by the Qt framework. In Qt, the QObject class integrates the Qt meta-object system and implements functions not provided by the standard C++ object model, thereby realizing a series of functions that are convenient for users to develop and use, the most important of which is the signal-slot function. In addition, QObject also implements functions such as memory management of child nodes, event filtering and text translation.

封装:在面向对象编辑中,封装是将对象运行所需的资源封装在程序对象中。对象是“公布其接口”。其他附加到这些接口上的对象不需要关心对象实现的方法即可使用这个对象。Encapsulation: In object-oriented editing, encapsulation is the encapsulation of the resources required for the object to run in the program object. An object is "publishing its interface". Other objects attached to these interfaces can use this object without caring about the methods implemented by the object.

Delegate属性值:在QtQuick中,数据通过model-view(模型-视图)分离。对于每个view(视图),每个数据元素的可视化都分给一个代理(delegate)。即可通过设置Delegate属性值,来设计组件样式,如设置列表背景为灰色矩形框。Delegate attribute value: In QtQuick, data is separated by model-view (model-view). For each view (view), the visualization of each data element is assigned to a delegate (delegate). You can design the component style by setting the value of the Delegate property, such as setting the background of the list as a gray rectangle.

Application组件:QT封装的窗口组件。该窗口组件包括:目录栏、工具栏、放大按钮、缩小按钮及关闭按钮等。Application component: a window component encapsulated by QT. The window components include: directory bar, tool bar, zoom in button, zoom out button and close button, etc.

本发明实施例提供一种激光打印策略代码显示方法,适用于激光打印设备300运行过程中,在读取激光打印策略代码读取的同时,在显示界面上显示所读取的激光打印策略代码,提高激光打印策略代码的显示速率,并减少相关装置的内存消耗。An embodiment of the present invention provides a laser printing strategy code display method, which is suitable for displaying the read laser printing strategy code on a display interface while the laser printing strategy code is being read during the operation of the laser printing device 300, Increased display rate of laser-printed strategy codes and reduced memory consumption of related devices.

本发明实施例提供的激光打印策略代码显示方法可以应用于图1所示的激光打印策略代码显示系统。如图1所示,该激光打印策略代码显示系统可以包括:计算机设备100、服务器200及激光打印设备300。服务器200分别与计算机设备100及激光打印设备300通信连接。The laser printing strategy code display method provided by the embodiment of the present invention can be applied to the laser printing strategy code display system shown in FIG. 1 . As shown in FIG. 1 , the laser printing strategy code display system may include: a computer device 100 , a server 200 and a laser printing device 300 . The server 200 communicates with the computer device 100 and the laser printing device 300 respectively.

针对传统的显示方法按行读取与行高亮显示功能欠缺,使激光打印策略代码在显示的过程中,满激光打印策略代码满屏加载,导致相关装置的内存不足,且拖慢显示效率的问题。下面实施例采用交互式写法对本发明实施例方法进行描述。图2示例出本发明实施例提供的一种激光打印策略代码显示方法的流程图。该方法可以由计算机设备100执行,如图2所示,本发明实施例提供的激光打印策略代码显示方法包括:In view of the lack of functions of reading by line and line highlighting in the traditional display method, the laser printing strategy code is loaded on the screen during the display process, resulting in insufficient memory of related devices and slowing down the display efficiency. question. The following embodiments use an interactive writing method to describe the methods of the embodiments of the present invention. Fig. 2 illustrates a flow chart of a laser printing strategy code display method provided by an embodiment of the present invention. The method can be executed by the computer device 100. As shown in FIG. 2, the laser printing strategy code display method provided by the embodiment of the present invention includes:

步骤101:计算机设备100读取m行激光打印策略代码。m为大于或等于1且小于k的整数,k为激光打印策略代码满屏显示的最大行号。Step 101: The computer device 100 reads m lines of laser printing strategy codes. m is an integer greater than or equal to 1 and less than k, and k is the maximum line number of the laser printing strategy code displayed on the screen.

上述m行激光打印策略代码可以存储在外部存储设备内,例如:USB闪存盘(简称:U盘)、硬盘或光盘中。该激光打印策略代码可以为NC代码,可以记载激光打印设备300在打印文件的过程中的运行路径。The above m lines of laser printing strategy codes can be stored in an external storage device, such as a USB flash drive (referred to as: U disk), a hard disk or an optical disc. The laser printing strategy code may be an NC code, which may record the running path of the laser printing device 300 during the process of printing a file.

在实际应用过程中,计算机设备100可以利用文件读取函数读取上述m行激光打印策略代码。具体来说,该文件读取函数可以在C++文件读取模块中创建。采用C++文件读取模块读取激光打印策略代码,可以加快激光打印策略代码的读取效率。通过C++文件读取模块读取激光打印策略代码的具体过程可以包括:During practical application, the computer device 100 can use the file reading function to read the above m lines of laser printing strategy codes. Specifically, the file reading function can be created in a C++ file reading module. Using the C++ file reading module to read the laser printing strategy code can speed up the reading efficiency of the laser printing strategy code. The specific process of reading the laser printing strategy code through the C++ file reading module may include:

步骤1011:计算机设备100在C++文件读取模块中创建FileRead.h文件及FileRead.cpp文件。Step 1011: The computer device 100 creates a FileRead.h file and a FileRead.cpp file in the C++ file reading module.

步骤1012:计算机设备100在FileRead.cpp文件中创建FileRead类。该FileRead类可以继承自QObject类。Step 1012: The computer device 100 creates a FileRead class in the FileRead.cpp file. The FileRead class can inherit from the QObject class.

步骤1013:计算机设备100在FileRead类中创建文件读取函数,并利用该文件读取函数读取m行激光打印策略代码。该文件读取函数可以为readNCCode(QString filename)。Step 1013: The computer device 100 creates a file reading function in the FileRead class, and uses the file reading function to read m lines of laser printing strategy codes. The file reading function can be readNCCode(QString filename).

为了使上述文件读取函数每次读取到的m行激光打印策略代码发送至主页面根组件,该激光打印策略代码显示方法还可以包括步骤1014。In order to send the m lines of laser printing strategy codes read by the file reading function to the root component of the main page, the method for displaying laser printing strategy codes may further include step 1014 .

步骤1014:计算机设备100在FileRead类中创建第一signal信号处理函数。该第一signal信号处理函数可以为signalOfNCCode(QString ncData)。Step 1014: The computer device 100 creates a first signal processing function in the FileRead class. The first signal signal processing function may be signalOfNCCode(QString ncData).

上述第一signal信号处理函数可以将上述文件读取函数每次读取到的m行激光打印策略代码发送至主页面根组件。The above-mentioned first signal signal processing function may send the m lines of laser printing strategy codes read by the above-mentioned file reading function each time to the root component of the main page.

为了便于主页面根组件访问FileRead类,该激光打印策略代码显示方法还可以包括步骤1015。In order to make it easier for the root component of the main page to access the FileRead class, the method for displaying laser printing policy codes may further include step 1015 .

步骤1015:计算机设备100将FileRead类封装成qml属性,并将封装成qml属性后的FileRead类命名为fileRead,以便于在qml文件或qml组件中可以直接访问封装成qml属性后的FileRead类。Step 1015: The computer device 100 encapsulates the FileRead class into a qml attribute, and names the FileRead class encapsulated into a qml attribute as fileRead, so that the FileRead class encapsulated into a qml attribute can be directly accessed in a qml file or a qml component.

为了对通过C++文件读取模块读取到的激光打印策略代码进行处理,该激光打印策略代码显示方法还可以包括步骤102至步骤107。In order to process the laser printing strategy code read by the C++ file reading module, the method for displaying the laser printing strategy code may further include steps 102 to 107.

步骤102:计算机设备100利用第一signal信号处理函数将m行激光打印策略代码发送至主页面根组件。Step 102: The computer device 100 uses the first signal signal processing function to send m lines of laser printing policy codes to the root component of the main page.

上述主页面根组件可以为全局根组件。主页面根组件主要承托软件主页面显示、创建全局变量及全局函数执行等核心任务。该主页面根组件本质是一个qml文件。例如,该主页面根组件可以命名为Main.qml。The above main page root component may be a global root component. The root component of the main page mainly supports core tasks such as displaying the main page of the software, creating global variables, and executing global functions. The main page root component is essentially a qml file. For example, the main page root component could be named Main.qml.

计算机设备100利用第一signal信号处理函数,可以将文件读取函数每次读取到的m行激光打印策略代码发送至上述主页面根组件,以便于在主页面根组件中对m行激光打印策略代码进行处理。Using the first signal signal processing function, the computer device 100 can send the m lines of laser printing strategy codes read by the file reading function to the root component of the main page, so as to print the m lines of laser printing in the root component of the main page Policy codes are processed.

步骤103:计算机设备100在主页面根组件中利用全局变量保存m行激光打印策略代码。Step 103: The computer device 100 saves m lines of laser printing strategy codes in the root component of the main page using global variables.

计算机设备100利用全局变量保存第一signal信号处理函数发送至全局变量中的m行激光打印策略代码的具体过程可以包括以下步骤:The specific process that the computer device 100 uses the global variable to save the m lines of laser printing strategy code sent by the first signal signal processing function to the global variable may include the following steps:

步骤1031:计算机设备100在主页面根组件中创建Main.qml文件。Step 1031: The computer device 100 creates a Main.qml file in the root component of the main page.

步骤1032:计算机设备100在Main.qml文件中导入Application组件,并将该Application组件的id命名为app。Step 1032: The computer device 100 imports the Application component into the Main.qml file, and names the id of the Application component as app.

步骤1033:计算机设备100在app组件下创建全局变量。Step 1033: The computer device 100 creates a global variable under the app component.

该全局变量可以命名为:gcodeShowModel。计算机设备100利用该全局变量可以保存利用第一signal信号处理函数传送至主页面根组件中的m行激光打印策略代码。该全局变量中保存的内容可以包括:通过第一signal信号处理函数传送至全局变量中的m行激光打印策略代码,及第一signal信号处理函数传送m行激光打印策略代码的累计传送次数。应理解,上述第一signal信号处理函数传送m行激光打印策略代码的累计传送次数,即文件读取函数读取m行激光打印策略代码的累计读取次数。The global variable can be named: gcodeShowModel. The computer device 100 can use the global variable to save the m lines of laser printing strategy code transmitted to the root component of the main page by using the first signal signal processing function. The content stored in the global variable may include: the m lines of laser printing strategy codes transmitted to the global variable by the first signal signal processing function, and the cumulative transmission times of the m lines of laser printing strategy codes transmitted by the first signal signal processing function. It should be understood that the above-mentioned first signal signal processing function transmits the accumulative transmission times of m lines of laser printing strategy codes, that is, the accumulative reading times of m lines of laser printing strategy codes read by the file reading function.

全局变量保存的内容格式可以包括:第一signal信号传送m行激光打印策略代码的累计传送次数,及该m行激光打印策略代码的内容。例如,全局变量中保存的内容格式可以为:“id”:1“value”:“N3 M57(gas on)”。内容格式说明如表1所示:The format of the content stored in the global variable may include: the cumulative transmission times of m lines of laser printing strategy codes transmitted by the first signal signal, and the content of the m lines of laser printing strategy codes. For example, the format of the content stored in the global variable can be: "id": 1 "value": "N3 M57(gas on)". The content format description is shown in Table 1:

表1.全局变量中保存的内容格式说明Table 1. Description of the content format saved in the global variable

关键字keywords value 11 m行激光打印策略代码上携带的身份标识xThe identity mark x carried on the m-line laser printing policy code 关键字keywords value N3 M57(gas on)N3 M57(gas on) m行激光打印策略代码的内容m lines of laser printing policy code content

步骤104:计算机设备100根据m行激光打印策略代码的累计读取次数,在m行激光打印策略代码上添加身份标识x。Step 104: The computer device 100 adds an identity mark x to the m lines of laser printing policy codes according to the accumulative reading times of the m lines of laser printing policy codes.

上述身份标识x为相应所述m行激光打印策略代码的累计读取次数。计算机设备100利用主页面根组件在m行激光打印策略代码上添加身份标识x,以便于根据标记策略对携带身份标识x的m行激光打印策略代码进行标记。具体过程可以包括以下步骤:The above-mentioned identity mark x is the accumulative number of read times corresponding to the m lines of laser printing strategy codes. The computer device 100 uses the root component of the main page to add an identity x to the m lines of laser printing policy codes, so as to mark the m lines of laser printing policy codes carrying the identity x according to the marking policy. The specific process may include the following steps:

步骤1041:计算机设备100在app组件下绑定并监听第一signal信号处理函数。当app组件监听到第一signal信号处理函数时,便表示有m行激光打印策略代码传送至主页面根组件中。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 means that m lines of laser printing strategy codes are sent to the root component of the main page.

步骤1042:计算机设备100利用app组件根据监听到第一signal信号处理函数的累计次数,便可以计算出全局变量中接收到m行激光打印策略代码的累计接收次数,从而得到每次接收到的m行激光打印策略代码的身份标识x,然后将该身份标识x追加到全局变量中。应理解,该累计接收次数即为文件读取函数读取m行激光打印策略代码的累计读取次数。也就是说,当确认出每一个m行激光打印策略代码后,便更新全局变量中保存的内容。全局变量中更新后的内容为携带有身份标识x的m行激光打印策略代码。Step 1042: The computer device 100 can use the app component to calculate the cumulative number of received m lines of laser printing strategy codes received in the global variable according to the accumulated times of the first signal signal processing function, so as to obtain the m received each time Line laser prints the ID x of the policy code, and then appends the ID x to the global variable. It should be understood that the accumulative number of receiving times is the accumulative number of reading times for m lines of laser printing strategy codes read by the file reading function. That is to say, after each m lines of laser printing strategy codes are confirmed, the content stored in the global variable is updated. The updated content in the global variable is the m-line laser printing policy code carrying the identity mark x.

由步骤101至步骤104可知,当文件读取函数读取完所有的激光打印策略代码后,全局变量中便保存了所有携带有身份标识x的激光打印策略代码。It can be seen from step 101 to step 104 that after the file reading function reads all the laser printing policy codes, all the laser printing policy codes carrying the ID x are stored in the global variable.

步骤105:服务器200获取激光打印设备300发送的激光打印策略代码的当前代码行号n。Step 105: The server 200 acquires the current code line number n of the laser printing policy code sent by the laser printing device 300 .

在实际应用过程中,服务器200可以通过TCP/IP与激光打印设备300进行实时信息交互。服务器200获取激光打印设备300发送的激光打印策略代码的当前代码行号n的步骤可以包括:During practical application, the server 200 can perform real-time information exchange with the laser printing device 300 through TCP/IP. The step for the server 200 to obtain the current code line number n of the laser printing policy code sent by the laser printing device 300 may include:

步骤1051:计算机设备100创建第二signal信号处理函数。该第二signal信号处理函数可以为signalLineNum(int curLineNum)。Step 1051: The computer device 100 creates a second signal processing function. The second signal signal processing function may be signalLineNum(int curLineNum).

步骤1052:当激光打印设备300开始打印文件时,服务器200可以间隔一定时间访问一次激光打印设备300,以获取当前激光打印设备300执行激光打印策略代码的当前代码行号n。例如:服务器200可以每间隔50微秒访问一次激光打印设备300。Step 1052: When the laser printing device 300 starts to print the file, the server 200 may access the laser printing device 300 at intervals to obtain the current code line number n of the current laser printing strategy code executed by the laser printing device 300. For example: the server 200 can access the laser printing device 300 every 50 microseconds.

步骤1053:服务器200将当前代码行号n发送至第二signal信号处理函数。Step 1053: the server 200 sends the current code line number n to the second signal processing function.

步骤106:在计算机设备100的显示界面显示携带身份标识x的m行激光打印策略代码。Step 106 : Display m lines of laser printing policy codes carrying the ID x on the display interface of the computer device 100 .

上述显示界面可以采用文本显示器。例如:上述显示界面可以采用ListView封装的文本显示器。文本显示器主要用于将携带身份标识x的m行激光打印策略代码进行显示。同时,在所述m行激光打印策略代码携带的所述身份标记与所述激光打印策略代码的所述当前代码行号n匹配的情况下,对所述m行激光打印策略代码进行标记。The above display interface may adopt a text display. For example, the above display interface may adopt a text display packaged in ListView. The text display is mainly used to display the m lines of laser printing policy codes carrying the identity mark x. At the same time, when the identity mark carried by the m lines of laser printing policy code matches the current code line number n of the laser printing policy code, mark the m lines of laser printing policy code.

在实际应用过程中,上述文本显示器主要可以包括文本显示器组件及文本行显示组件。其中,创建文本显示器组件的步骤可以包括:In practical application, the above-mentioned text display may mainly include a text display component and a text line display component. Among them, the steps of creating a text display component may include:

步骤1061:在计算机设备100中导入创建文本显示器组件所需要的库文件。该库文件可以为QtQuick.Controls2.12及QtQuick.Layouts 1.12,导入上述两个文件后,可以直接引用Qt自带的矩形及列表等组件。Step 1061: Import the library files needed to create the text display component into the computer device 100. The library files can be QtQuick.Controls2.12 and QtQuick.Layouts 1.12. After importing the above two files, you can directly refer to Qt's own components such as rectangles and lists.

步骤1062:文本显示器组件引用基本图形组件作为背景。该基本图形组件也可以称为第一父组件。该基本图形组件可以为基本矩形组件。Step 1062: The text display component references the basic graphics component as a background. The basic graphic component can also be referred to as the first parent component. The basic graphic component may be a basic rectangular component.

步骤1063:计算机设备100设置第一父组件的基本属性,并监听第二signal信号处理函数。下面举例说明:Step 1063: The computer device 100 sets the basic properties of the first parent component, and monitors the second signal processing function. The following example illustrates:

(1)计算机设备100设置第一父组件的id名称为root。(1) The computer device 100 sets the id name of the first parent component as root.

(2)计算机设备100设置第一父组件的权限为可见性。(2) The computer device 100 sets the permission of the first parent component to visibility.

(3)当第一父组件为基本矩形组件时,计算机设备100可以将矩形的宽度设置为400,矩形的高度可以设置为200,矩形的填充背景颜色可以设置为透明色。每个矩形的边界宽度可以设置为1,每个矩形的边界颜色可以设置为黑色。(3) When the first parent component is a basic rectangle component, the computer device 100 can 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 border width of each rectangle can be set to 1, and the border color of each rectangle can be set to black.

步骤1064:计算机设备100在第一父组件中添加第一子组件ListView,并设置第一子组件的属性。下面举例说明:Step 1064: The computer device 100 adds the first subcomponent ListView to the first parent component, and sets the properties of the first subcomponent. The following example illustrates:

(1)计算机设备100设置第一子组件的id名称为listview。(1) The computer device 100 sets the id name of the first subcomponent to listview.

(2)计算机设备100设置第一子组件的权限为可见性。(2) The computer device 100 sets the permission of the first subcomponent to visibility.

(3)当第一父组件为基本矩形组件时,设置锚组件,使第一子组件位于第一父组件的中心位置。此时,第一子组件的宽度可以与第一父组件的宽度相等,第一子组件的高度可以与第一父组件的高度相等。(3) When the first parent component is a basic rectangular component, set the anchor component so that the first child component is located at the center of the first parent component. At this time, the width of the first child component may be equal to the width of the first parent component, and the height of the first child component may be equal to the height of the first parent component.

(4)计算机设备100设置第一子组件为可裁剪属性。(4) The computer device 100 sets the first subcomponent as a clippable property.

(5)计算机设备100设置第一子组件中的滚动条的样式。(5) The computer device 100 sets the style of the scroll bar in the first subcomponent.

(6)计算机设备100设置第一子组件中的行显示器的样式。(6) The computer device 100 sets the style of the line display in the first subassembly.

(7)第一子组件监听currentIndexChanged信号,该currentIndexChanged信号主要可以用于将标记好的激光打印策略代码固定在显示界面中间。其中,currentIndexChanged=currentIndex+Changed,currentIndex是第一子组件listview的一个属性,当currentIndex的属性值发生变化时,将自动触发该currentIndexChanged信号。(7) The first subcomponent monitors the currentIndexChanged signal, which can be mainly used to fix the marked laser printing strategy code in the middle of the display interface. Wherein, currentIndexChanged=currentIndex+Changed, currentIndex is an attribute of the first subcomponent listview, when the attribute value of currentIndex changes, the currentIndexChanged signal will be triggered automatically.

步骤1065:计算机设备100在第一父组件中创建属性变量。Step 1065: The computer device 100 creates attribute variables in the first parent component.

(1)计算机设备100将第一子组件中的数据属性listview.model提出,并将该第一子组件中的样式属性listview.model重新命名为listModel。(1) The computer device 100 proposes the data attribute listview.model in the first subcomponent, and renames the style attribute listview.model in the first subcomponent to listModel.

(2)计算机设备100将第一子组件中的计数属性listview.count提出,并将该第一子组件中的计数属性listview.count重新命名为listCount。(2) The computer device 100 extracts the counting property listview.count in the first subcomponent, and renames the counting property listview.count in the first subcomponent as listCount.

(3)计算机设备100将第一子组件中的listview.currentIndex属性提出,并将该第一子组件中的listview.currentIndex重新命名为listIndex。该listview.currentIndex属性用于将上述身份标识x与当前代码行号n做对比。(3) The computer device 100 extracts the listview.currentIndex attribute in the first subcomponent, and renames the listview.currentIndex in the first subcomponent to listIndex. The listview.currentIndex property is used to compare the above identity x with the current code line number n.

在实际应用过程中,可以将在主页面根组件中创建的全局变量gcodeShowModel赋值给第一子组件。当保存在全局变量gcodeShowModel中的激光打印策略代码的行数大于m时,自动添加文本行显示组件。In the actual application process, the global variable gcodeShowModel created in the root component of the main page can be assigned to the first subcomponent. When the number of lines of the laser printing strategy code stored in the global variable gcodeShowModel is greater than m, a text line display component is automatically added.

在实际应用过程中,文本行显示组件可以被封装在Qt Component组件之中。该QtComponent组件可以重复使用,用于给上述子组件listview提供图形化展示。在本发明实施例中,该Qt Component组件可以作为子组件listview的delegate属性值,即该文本行显示组件的每m行均可以按照此种外观展现。创建文本行显示组件的步骤可以包括:In the actual application process, the text line display component can be encapsulated in the Qt Component component. The QtComponent component can be reused to provide a graphical display for the above-mentioned subcomponent listview. In the embodiment of the present invention, the Qt Component component can be used as the delegate attribute value of the subcomponent listview, that is, every m lines of the text line display component can be displayed according to this appearance. The steps to create a text line display component can include:

步骤1066:在计算机设备100中导入创建文本行显示组件所需要的库文件。Step 1066: Import into the computer device 100 the library files needed to create the text line display component.

步骤1067:文本行显示组件引用Component组件作为第二父组件,并将该Component组件命名为listDelegate。该Component组件为基本矩形组件。Step 1067: The text line display component references the Component component as the second parent component, and names the Component component listDelegate. The Component is a basic rectangular component.

步骤1068:计算机设备100在第二父组件中添加基本图形组件,并设置该第二父组件的属性。该基本图形组件可以作为第二父组件的第二子组件。下面举例说明:Step 1068: The computer device 100 adds a basic graphics component to the second parent component, and sets the property of the second parent component. The basic graphic component can be used as the second child component of the second parent component. The following example illustrates:

(1)计算机设备100设置第二父组件的id名称为listItem。(1) The computer device 100 sets the id name of the second parent component to listItem.

(2)当第二父组件为基本矩形组件时,计算机设备100设置矩形的宽度与第一父组件的宽度相等,矩形的高度可以根据实际情况进行设置,例如:矩形的高度可以设置为30像素;设置矩形的填充背景颜色。例如,当m行激光打印策略代码携带的身份标记与激光打印策略代码的当前代码行号n匹配的情况下,矩形的填充背景颜色为蓝色;当m行激光打印策略代码携带的身份标记与激光打印策略代码的当前代码行号n不匹配的情况下,矩形的填充背景颜色为透明色。(2) When the second parent component is a basic rectangular component, the computer device 100 sets the width of the rectangle equal to the width of the first parent component, and the height of the rectangle can be set according to the actual situation, for example: the height of the rectangle can be set to 30 pixels ; Set the fill background color of the rectangle. For example, when the identity mark carried by the m lines of laser printing policy code matches the current code line number n of the laser printing policy code, the filled background color of the rectangle is blue; when the identity mark carried by the m lines of laser printing policy code matches with If the current code line number n of the laser printing strategy code does not match, the filled background color of the rectangle is a transparent color.

步骤1069:计算机设备100在第二父组件listItem中继续添加第三子组件Text,并设置第三子组件Text的属性。下面举例说明:Step 1069: The computer device 100 continues to add the third subcomponent Text in the second parent component listItem, and sets the property of the third subcomponent Text. The following example illustrates:

(1)计算机设备100设置第三子组件Text的id为label;(1) The computer device 100 sets the id of the third subcomponent Text as label;

(2)计算机设备100设置第三子组件Text中的字体类型为Microsoft YaHei,并设置第三子组件Text中的字体大小为12。(2) The computer device 100 sets the font type in the third subcomponent Text to Microsoft YaHei, and sets the font size in the third subcomponent Text to 12.

(3)计算机设备100设置第三子组件Text中待显示的数据为子组件listview中的value值。(3) The computer device 100 sets the data to be displayed in the third subcomponent Text as the value in the subcomponent listview.

由上述步骤106可知,文件读取函数读取到的激光打印策略代码最终在第三子组件Text中进行显示。It can be known from the above step 106 that the laser printing strategy code read by the file reading function is finally displayed in the third subcomponent Text.

在实际应用过程中,当文件读取函数每次读取到的m行激光打印策略代码在显示界面显示后,文件读取函数根据m行激光打印策略代码的读取内容,确定m行激光打印策略代码的读取起始行。文件读取函数根据上述读取起始行更新m行激光打印策略代码。下面以m=1进行举例说明:In the actual application process, when the m lines of laser printing strategy codes read by the file reading function are displayed on the display interface, the file reading function determines the m lines of laser printing strategy codes according to the read content of the m lines of laser printing strategy codes. The line from which to read the policy code. The file reading function updates m lines of laser printing strategy codes according to the above reading start line. Let's take m=1 as an example to illustrate:

当文件读取函数读到“/n”时,则说明此时文件读取函数读取完了一行激光打印策略代码。也就是说,当文件读取函数读取完一行激光打印策略代码后,根据“/n”便可以确定文件读取函数读取下一行激光打印策略代码的读取起始行。When the file reading function reads "/n", it means that the file reading function has read a line of laser printing strategy code at this time. That is to say, after the file reading function reads a line of laser printing strategy code, the reading start line of the next line of laser printing strategy code read by the file reading function can be determined according to "/n".

步骤107:计算机设备100根据标记策略对携带身份标识x的m行激光打印策略代码进行标记。Step 107: The computer device 100 marks the m lines of laser printing policy codes carrying the identity mark x according to the marking policy.

上述标记策略是指对显示界面上显示的激光打印策略代码进行标记的策略。该标记策略与m有关。下面举例说明:The above marking strategy refers to the strategy of marking the laser printing strategy code displayed on the display interface. The marking strategy is related to m. The following example illustrates:

当m=1时,也就是说,文件读取函数对激光打印策略代码进行逐行读取。在当前代码行号n与身份标记x相等的情况下,在文本行显示组件中对第n行激光打印策略代码进行标记。例如:根据步骤106中文本行显示组件的标记规则,在当前代码行号n与身份标记x相等的情况下,可以将当前的第n行激光打印策略代码标记成蓝色,以便于操作人员直观的了解到激光打印设备300的运行进度。When m=1, that is to say, the file reading function reads the laser printing strategy code line by line. When the current code line number n is equal to the identity mark x, mark the nth line of laser printing strategy code in the text line display component. For example: according to the marking rule of the text line display component in step 106, when the current code line number n is equal to the identity mark x, the current nth line of laser printing strategy code can be marked blue, so that the operator can see it intuitively Learn about the operation progress of the laser printing device 300 .

当m>1时,例如:m=2,也就是说,文件读取函数每次读取两行激光打印策略代码。在当前代码行号n与身份标记x相等的情况下,文本行显示组件对第n行激光打印策略代码进行标记,且依次对第n+1至第n+x×m行激光打印策略代码进行标记。直至文本行显示组件将第n+x×m行激光打印策略代码标记完之后,再执行步骤105。When m>1, for example: m=2, that is to say, the file reading function reads two lines of laser printing strategy codes each time. When the current code line number n is equal to the identity mark x, the text line display component marks the nth line of laser printing strategy code, and sequentially performs mark. Step 105 is executed until the text line display component marks the n+x×mth line of laser printing strategy codes.

由上述步骤可知,使用本发明提供的激光打印策略代码显示方法,显示激光打印策略代码的过程中,只显示有限行的激光打印策略代码。基于每次只读取m行激光打印策略代码,并将该m行激光打印策略代码在显示界面上显示,可以减少与激光打印策略代码显示的相关装置的内存消耗,并可以提高文本显示速率。It can be seen from the above steps that, using the method for displaying laser printing strategy codes provided by the present invention, only limited lines of laser printing strategy codes are displayed during the process of displaying laser printing strategy codes. Based on reading only m lines of laser printing strategy codes each time and displaying the m lines of laser printing strategy codes on the display interface, the memory consumption of devices related to laser printing strategy code display can be reduced, and the text display rate can be improved.

同时,基于在每次读取到的m行激光打印策略代码上添加身份标识x,并根据标记策略,便可以准确的对显示界面上的m行激光打印策略代码进行标记。通过该标记策略,可以使操作人员随时了解激光打印设备300的运行状态。At the same time, based on adding the identity mark x to the m lines of laser printing strategy codes read each time, and according to the marking strategy, the m lines of laser printing strategy codes on the display interface can be accurately marked. Through this marking strategy, the operator can know the operating status of the laser printing device 300 at any time.

本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的方法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art should easily realize that, in combination with the method steps of the examples described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

本发明实施例可以根据上述方法示例对终端设备进行功能模块的划分,例如:可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present invention, the functional modules of the terminal device can be divided according to the above method example, for example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

在采用对应各个功能划分各个功能模块的情况下,图3示例出本发明实施例提供的一种数据显示装置400的结构示意图。如图3所示,该数据显示装置400可以包括:In the case of dividing each functional module corresponding to each function, FIG. 3 illustrates a schematic structural diagram of a data display device 400 provided by an embodiment of the present invention. As shown in Figure 3, the data display device 400 may include:

数据读取模块401:用于读取m行激光打印策略代码,执行上述步骤101、步骤102。Data reading module 401: used to read m lines of laser printing strategy codes, and execute the above steps 101 and 102.

数据处理模块402:用于根据m行激光打印策略代码的累计读取次数,在该m行激光打印策略代码上添加身份标识x,执行上述步骤103、步骤104、步骤105及步骤107。Data processing module 402: used to add the identity mark x to the m lines of laser printing policy codes according to the accumulative reading times of the m lines of laser printing policy codes, and execute the above steps 103, 104, 105 and 107.

数据显示模块403:用于显示携带身份标识x的m行激光打印策略代码,执行上述步骤106。Data display module 403: for displaying the m lines of laser printing strategy codes carrying the identification x, and performing the above step 106.

在一些可能的实现方式中,上述数据显示装置400还可以包括数据存储模块,用于存储激光打印策略代码。In some possible implementation manners, the data display device 400 may further include a data storage module for storing laser printing strategy codes.

在一种可能的实现方式中,上述数据读取模块401可以认为由C++文件读取模块实现,使得数据读取模块401可以读取存储模块中存储的激光打印策略代码。In a possible implementation manner, the above data reading module 401 can be considered to be implemented by a C++ file reading module, so that the data reading module 401 can read the laser printing strategy code stored in the storage module.

在一种可能的实现方式中,上述数据处理模块402的功能可以由主页面根组件实现。该主页面根组件可以用于根据上述数据读取模块401读取m行激光打印策略代码的累计读取次数,在每次读取到的m行激光打印策略代码上添加身份标识x。同时,主页面根组件还用于根据标记策略对携带身份标识x的m行激光打印策略代码进行标记。In a possible implementation manner, the functions of the above data processing module 402 may be implemented by the main page root component. The root component of the main page can be used to add the identity x to the m lines of laser printing policy codes read each time according to the accumulative reading times of m lines of laser printing policy codes read by the data reading module 401 . At the same time, the root component of the main page is also used to mark the m lines of laser printing policy codes carrying the ID x according to the marking policy.

在一种可能的实现方式中,上述数据显示模块403的功能可以由ListView文件显示器实现。该ListView文件显示器用于显示携带身份标识x的m行激光打印策略代码。同时,该ListView文件显示器还可以用于显示根据标记策略标记后的激光打印策略代码。In a possible implementation manner, the functions of the above data display module 403 may be implemented by a ListView file display. The ListView file displayer is used to display m lines of laser printing policy codes carrying the identity identifier x. At the same time, the ListView file display can also be used to display the laser printing policy codes marked according to the marking policy.

其中,数据处理模块402可以是处理器或控制器,例如可以是中央处理器(CentralProcessing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。数据读取模块401可以是收发器、收发电路或通信接口等。数据存储模块可以是存储器。Wherein, the data processing module 402 may be a processor or a controller, such as a central processing unit (Central Processing Unit, CPU), a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and so on. The data reading module 401 may be a transceiver, a transceiver circuit, or a communication interface. The data storage module can be a memory.

当数据处理模块402为处理器,数据读取模块401为收发器,数据存储模块为存储器时,本发明实施例所涉及的显示装置可以为图3所示的计算机设备100。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 involved in this embodiment of the present invention may be the computer device 100 shown in FIG. 3 .

图4示出了本发明实施例提供的一种计算机设备100的硬件结构示意图。如图4所示,该计算机设备100包括处理器和通信接口。FIG. 4 shows a schematic diagram of a hardware structure of a computer device 100 provided by an embodiment of the present invention. As shown in FIG. 4, the computer device 100 includes a processor and a communication interface.

如图4所示,上述处理器可以是一个通用中央处理器(central processing unit,CPU),微处理器,专用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本发明方案程序执行的集成电路。上述通信接口130可以为一个或多个。通信接口130可使用任何收发器一类的装置,用于与其他设备或通信网络通信。As shown in Figure 4, the above-mentioned processor can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application-specific integrated circuit (application-specific integrated circuit, ASIC), or one or more An integrated circuit for program execution of the invention scheme. There may be one or more communication interfaces 130 mentioned above. Communication interface 130 may use any transceiver-like device for communicating with other devices or a communication network.

如图4所示,上述计算机设备100还可以包括通信线路。通信线路140可以包括一通路,在上述组件之间传送信息。As shown in FIG. 4 , the above-mentioned computer device 100 may further include a communication line. Communication line 140 may comprise a pathway for communicating information between the above-described components.

可选的,如图4所示,该计算机设备100还可以包括存储器120。存储器120用于存储执行本发明方案的计算机执行指令,并由处理器来控制执行。处理器用于从存储器120中加载计算机执行指令,以执行上述激光打印策略代码显示方法。Optionally, as shown in FIG. 4 , the computer device 100 may further include a memory 120 . The memory 120 is used to store computer-executed instructions for implementing the solutions of the present invention, and the execution is controlled by the processor. The processor is used to load computer-executable instructions from the memory 120 to execute the above laser printing strategy code display method.

如图4所示,存储器120可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compactdisc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器120可以是独立存在,通过通信线路140与处理器相连接。存储器120也可以和处理器集成在一起。As shown in FIG. 4, the memory 120 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or can store Other types of dynamic storage devices for information and instructions, which may also be electrically erasable programmable read-only memory (EEPROM), compactdisc read-only memory (CD-ROM), or other Optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disc storage media or other magnetic storage devices, or capable of carrying or storing desired programs in the form of instructions or data structures code and any other medium that can be accessed by a computer, without limitation. The memory 120 may exist independently and be connected to the processor through the communication line 140 . The memory 120 can also be integrated with the processor.

可选的,本发明实施例中的计算机执行指令也可以称之为应用程序代码,本发明实施例对此不作具体限定。Optionally, the computer-executed instructions in this embodiment of the present invention may also be referred to as application code, which is not specifically limited in this embodiment of the present invention.

在具体实现中,作为一种实施例,如图3所示,处理器可以包括一个或多个CPU,如图4中的CPU0和CPU1。In a specific implementation, as an example, as shown in FIG. 3 , the processor may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4 .

在具体实现中,作为一种实施例,如图3所示,计算机设备100可以包括多个处理器,如图4中的处理器110和处理器150。这些处理器中的每一个可以是一个单核处理器,也可以是一个多核处理器。In a specific implementation, as an example, as shown in FIG. 3 , the computer device 100 may include multiple processors, such as the processor 110 and the processor 150 in FIG. 4 . Each of these processors can be a single-core processor or a multi-core processor.

图5是本发明实施例提供的芯片500的结构示意图。如图4所示,该芯片500包括一个或两个以上(包括两个)处理器510和通信接口540。FIG. 5 is a schematic structural diagram of a chip 500 provided by an embodiment of the present invention. As shown in FIG. 4 , the chip 500 includes one or more than two (including two) processors 510 and a communication interface 540 .

可选的,如图5所示,该芯片500还包括存储器530,存储器530可以包括只读存储器和随机存取存储器,并向处理器提供操作指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。Optionally, as shown in FIG. 5 , the chip 500 further includes a memory 530. The memory 530 may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. Part of the memory may also include non-volatile random access memory (non-volatile random access memory, NVRAM).

在一些实施方式中,如图5所示,存储器530存储了如下的元素,执行模块或者数据结构,或者他们的子集,或者他们的扩展集。In some implementations, as shown in FIG. 5 , the memory 530 stores the following elements, execution modules or data structures, or their subsets, or their extended sets.

在本发明实施例中,如图5所示,通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。In the embodiment of the present invention, as shown in FIG. 5 , the corresponding operation is executed by calling the operation instruction stored in the memory (the operation instruction may be stored in the operating system).

如图5所示,处理器510控制计算机设备100中任一个的处理操作,处理器510还可以称为中央处理单元(central processing unit,CPU)。As shown in FIG. 5 , the processor 510 controls the processing operations of any one of the computer devices 100 , and the processor 510 may also be called a central processing unit (central processing unit, CPU).

如图5所示,存储器530可以包括只读存储器和随机存取存储器,并向处理器510提供指令和数据。存储器530的一部分还可以包括NVRAM。例如应用中存储器、通信接口以及存储器通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图5中将各种总线都标为总线系统550。As shown in FIG. 5 , the memory 530 may include read-only memory and random-access memory, and provides instructions and data to the processor 510 . A portion of memory 530 may also include NVRAM. For example, in the application, the memory, the communication interface, and the memory are coupled together through a bus system, where the bus system may include not only a data bus, but also a power bus, a control bus, and a status signal bus. However, the various buses are labeled as bus system 550 in FIG. 5 for clarity of illustration.

如图5所示,上述本发明实施例揭示的方法可以应用于处理器510中,或者由处理器510实现。处理器510可能是一种集成电路芯片500,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processing,DSP)、ASIC、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。As shown in FIG. 5 , the methods disclosed in the foregoing embodiments of the present invention may be applied to a processor 510 or implemented by the processor 510 . The processor 510 may be an integrated circuit chip 500 with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The above-mentioned 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 devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.

一种可能的实现方式中,如图5所示,通信接口540用于执行图3所示的实施例中的计算机设备100的接收步骤。处理器510用于执行图3所示的实施例中的计算机设备100的处理的步骤。In a possible implementation manner, as shown in FIG. 5 , the communication interface 540 is used to execute the receiving step of the computer device 100 in the embodiment shown in FIG. 3 . The processor 510 is used to execute the processing steps of the computer device 100 in the embodiment shown in FIG. 3 .

一方面,提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当指令被运行时,实现上述实施例中由计算机设备100执行的功能。In one aspect, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are executed, the functions performed by the computer device 100 in the foregoing embodiments are realized.

一方面,提供一种芯片500,该芯片500应用于计算机设备100中,芯片500包括至少一个处理器和通信接口,通信接口和至少一个处理器耦合,处理器用于运行指令,以实现上述实施例中由计算机设备100执行的功能。On the one hand, a chip 500 is provided, the chip 500 is applied in the computer device 100, the chip 500 includes at least one processor and a communication interface, the communication interface is coupled to at least one processor, and the processor is used to execute instructions to realize the above embodiments The functions performed by the computer device 100.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、终端、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器200或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器200或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器200、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘(digital video disc,DVD);还可以是半导体介质,例如,固态硬盘(solid state drive,SSD)。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present invention are executed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a terminal, user equipment or other programmable devices. The computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, The server 200 or data center transmits to another website site, computer, server 200 or data center through 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 a server 200 or a data center integrating one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disc (digital video disc, DVD); it may also be a semiconductor medium, such as a solid state drive (solid state drive). , SSD).

尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present invention has been described in conjunction with various embodiments herein, in implementing the claimed invention, those skilled in the art can understand and realize the disclosure by referring to the drawings, the disclosure, and the appended claims. Other Variations of Embodiments. In the claims, the word "comprising" does not exclude other components or steps, and "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 these measures cannot be combined to advantage.

尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包括这些改动和变型在内。Although the invention has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, the specification and drawings are merely illustrative of the invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (9)

1.一种激光打印策略代码显示方法,其特征在于,包括:1. A laser printing strategy code display method, characterized in that, comprising: 读取m行激光打印策略代码,m为大于或等于1且小于k的整数,k为激光打印策略代码满屏显示的最大行号;Read m lines of laser printing strategy codes, m is an integer greater than or equal to 1 and less than k, and k is the maximum line number of laser printing strategy codes displayed on the full screen; 根据所述m行激光打印策略代码的累计读取次数,在所述m行激光打印策略代码上添加身份标识x;According to the accumulative reading times of the m lines of laser printing strategy codes, an identity mark x is added to the m lines of laser printing strategy codes; 在显示界面显示携带所述身份标识x的所述m行激光打印策略代码;Displaying the m lines of laser printing strategy codes carrying the identity mark x on a display interface; 根据标记策略对携带所述身份标识x的所述m行激光打印策略代码进行标记。Marking the m lines of laser printing policy codes carrying the identification x according to the marking policy. 2.根据权利要求1所述的激光打印策略代码显示方法,其特征在于,所述读取m行激光打印策略代码,包括:2. The laser printing strategy code display method according to claim 1, wherein the reading of m rows of laser printing strategy codes comprises: 利用文件读取函数读取所述m行激光打印策略代码。Use the file reading function to read the m lines of laser printing strategy codes. 3.根据权利要求1所述的激光打印策略代码显示方法,其特征在于,所述读取m行激光打印策略代码后,所述根据所述m行激光打印策略代码的累计读取次数,在所述m行激光打印策略代码上添加身份标识x前,所述激光打印策略代码显示方法还包括:3. The laser printing strategy code display method according to claim 1, characterized in that, after reading m lines of laser printing strategy codes, according to the accumulative reading times of the m lines of laser printing strategy codes, in Before adding the identity mark x to the m lines of laser printing policy codes, the method for displaying the laser printing policy codes also includes: 利用第一signal信号处理函数将所述m行激光打印策略代码发送至主页面根组件;Using the first signal signal processing function to send the m lines of laser printing strategy codes to the root component of the main page; 在所述主页面根组件中利用全局变量保存所述m行激光打印策略代码。The m lines of laser printing strategy codes are stored in the root component of the main page using global variables. 4.根据权利要求1~3任一项所述的激光打印策略代码显示方法,其特征在于,所述m行激光打印策略代码携带的所述身份标识x为相应所述m行激光打印策略代码的累计读取次数。4. The laser printing strategy code display method according to any one of claims 1 to 3, characterized in that the identity x carried by the m lines of laser printing strategy codes is the corresponding m lines of laser printing strategy codes The cumulative number of reads. 5.根据权利要求1~3任一项所述的激光打印策略代码显示方法,其特征在于,所述根据标记策略对携带所述身份标识x的所述m行激光打印策略代码进行标记,包括:5. The laser printing strategy code display method according to any one of claims 1 to 3, wherein the marking of the m lines of laser printing strategy codes carrying the identity mark x according to the marking strategy includes : 获取激光打印设备发送的激光打印策略代码的当前代码行号n;Obtain the current code line number n of the laser printing policy code sent by the laser printing device; 在所述m行激光打印策略代码携带的所述身份标记与所述激光打印策略代码的所述当前代码行号n匹配的情况下,对所述m行激光打印策略代码进行标记。When the identity mark carried by the m lines of laser printing policy code matches the current code line number n of the laser printing policy code, mark the m lines of laser printing policy code. 6.根据权利要求5所述的激光打印策略代码显示方法,其特征在于,所述标记策略为:6. The laser printing strategy code display method according to claim 5, wherein the marking strategy is: 当m=1时,在所述当前代码行号n与所述身份标记x相等的情况下,对所述第n行激光打印策略代码进行标记;When m=1, when the current code line number n is equal to the identity mark x, mark the nth line of laser printing strategy code; 当m>1时,在所述当前代码行号n与所述身份标记x相等的情况下,对所述第n行激光打印策略代码进行标记,且依次对第n+1至第n+x×m行激光打印策略代码进行标记。When m>1, when the current code line number n is equal to the identity mark x, mark the nth line of laser printing strategy code, and sequentially mark the n+1th to n+xth ×m lines of laser printing strategy codes for marking. 7.根据权利要求1~3任一项所述的激光打印策略代码显示方法,其特征在于,所述在显示界面显示携带所述身份标识的所述m行激光打印策略代码后,所述激光打印策略代码显示方法还包括:7. The laser printing strategy code display method according to any one of claims 1 to 3, characterized in that, after the m lines of laser printing strategy codes carrying the identification are displayed on the display interface, the laser The display method of printing policy code also includes: 根据所述m行激光打印策略代码的读取内容,确定所述m行激光打印策略代码的读取起始行;According to the reading content of the m lines of laser printing strategy codes, determine the reading start line of the m lines of laser printing strategy codes; 根据所述读取起始行更新所述m行激光打印策略代码。Updating the m lines of laser printing strategy codes according to the reading start line. 8.一种计算机设备,其特征在于,包括:8. A computer device, comprising: 存储器,用于存储多条计算机执行指令;a memory for storing a plurality of computer-executable instructions; 及处理器,用于从所述存储器中加载所述计算机执行指令,以执行权利要求1~7任一项所述的激光打印策略代码显示方法。and a processor, configured to load the computer-executable instructions from the memory to execute the laser printing strategy code display method according to any one of claims 1-7. 9.一种计算机存储介质,其特征在于,所述计算机存储介质存储有指令,所述指令被处理器执行时实现权利要求1~7任一项所述的激光打印策略代码显示方法。9. A computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed by a processor, the laser printing strategy code display method according to any one of claims 1-7 is implemented.
CN202011331513.2A 2020-11-24 2020-11-24 A 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 A 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 A 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 A 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
US6428155B1 (en) * 1999-05-25 2002-08-06 Silverbrook Research Pty Ltd Printer cartridge including machine readable ink
US9052983B2 (en) * 2012-01-16 2015-06-09 International Business Machines Corporation Source code patches
US20160167303A1 (en) * 2014-12-15 2016-06-16 Arcam Ab Slicing method
CN204904462U (en) * 2015-05-08 2015-12-23 郑宇� Self -service terminating machine of commercial affairs registration
US20200195794A1 (en) * 2017-04-07 2020-06-18 Dover Europe Sàrl Method and device to manage different screens with different sizes on 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
US20170235473A1 (en) Method and Apparatus for Loading Application Program View, and Electronic Terminal
CN109960491A (en) Application generation method, generation device, electronic device and storage medium
CN102023869A (en) Control input value checking method and system
CN112068828A (en) Method, apparatus, system, device and medium for generating title control
CN112528189B (en) Data-based component packaging method, device, computer equipment and storage medium
CN112416268B (en) A laser printing strategy code display method and related device
CN114217877B (en) Operation processing method, device, equipment and medium based on page interaction component
WO2023024959A1 (en) Image labeling method and system, and device and storage medium
CN114003841A (en) A typesetting method and typesetting engine based on virtual tree
CN114489645A (en) A form generation construction method, system and storage medium based on Vue and Element-UI
CN112269635B (en) Functional module configuration method, system, electronic device and storage medium
CN112598396A (en) Scribing numbering method and related device
CN112068827A (en) Method, device, system, equipment and medium for generating accessory control
CN111047673A (en) PPT file generation method and device based on hand-drawn video
CN105808236B (en) HMI picture element composition design and code generation method
CN114661279A (en) Method, system and computer equipment for extracting source code of page components
CN115048602A (en) Style editing method and equipment, page display method and computer equipment
CN106843852A (en) A kind of method that client graphical user interface is quickly created
CN112380829B (en) A document generation method and device
CN115291848B (en) Interface drawing method and device for train display, medium and railway vehicle
CN110990050B (en) Model attribute value printing control method, device, medium and equipment
CN114398125B (en) Point nine effect graph generation method and related device thereof
EP4621606A1 (en) Sub-application page processing method and apparatus, and computer device and storage medium
WO2025066164A1 (en) Table component processing method and apparatus, computer device, and storage medium

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
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

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

Country or region after: China

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

Patentee before: Xinjinghe Laser Technology Co.,Ltd.

Country or region before: China