| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | #pragma once#pragma execution_character_set("utf-8")#include <qthread.h>#include "CGH_Printer.h"class CGH_Printer;class PrintThread :    public QThread{    Q_OBJECTpublic:    explicit PrintThread(QObject* parent = 0);    ~PrintThread();    string numberToString(int n, int l = 3);protected:    // QThread的虚函数    // 线程处理函数    // 不能直接调用,通过start()间接调用    void run();signals:    void TransCGH(const QString& tempCGH);    void TransPrintProgress(int tempLL, int tempCC);    void PrintOK();    void PrintCancel();public slots:    void Print();private:    CGH_Printer* m_Printer;    vector<int> Devices;    string sAxis;    double PrintLSpacing, PrintCSpacing;    int PrintLine, PrintColumn;    string PrintPrefix;    int PrintExpose, PrintQuiet;    string PrintResource;    double HoloLine, HoloColumn;    double initPrintX, initPrintY;    double OffsetX,OffsetY;    bool PRINTSTOP;    CGH_Shutter* MyShutter;};
 |