|
qCNC 0.82-alpha
|
00001 00042 #ifndef INTERFACES_H 00043 #define INTERFACES_H 00044 #include <stdio.h> 00045 #include <ctype.h> 00046 #include <stdlib.h> 00047 #include <unistd.h> 00048 00049 00050 //C++ specific 00051 #include <iostream> 00052 00053 00054 00055 //QT4 specific 00056 #include <QMainWindow> 00057 #include <QtGui/QApplication> 00058 #include <QtNetwork/QHostAddress> 00059 #include <QtNetwork/QTcpSocket> 00060 #include <QtGui> 00061 #include <QFile> 00062 #include <QLabel> 00063 #include <QTextStream> 00064 #include <QDebug> 00065 #include <QtNetwork> 00066 #include <QtNetwork/QTcpSocket> 00067 #include <QObject> 00068 #include <QString> 00069 #include <QtCore> 00070 00071 00072 #define DEBUG 1 00073 #define STANDALONE 0 00074 #define INTERNAL 0 00075 #define ERROR 0 00076 00077 typedef struct { 00078 00079 float x; 00080 float y; 00081 float z; 00082 float status; //0-9 used for status-tagging 00083 float error; //0-9 used for internal error managment 00084 }protocol; 00085 00086 00087 00088 struct KK { 00089 int log_e; 00090 QString path; 00091 int uart_e; 00092 int drawing_e; 00093 int cnc_e; 00094 int read_e; 00095 int auto_e; 00096 int tab; 00097 }; 00098 struct gcode_linkedL { 00099 gcode_linkedL *next; 00100 double x; 00101 double y; 00102 double z; 00103 int abs; //absoluto incremential 00104 }; 00105 00106 struct Suart_debug { 00107 int type; 00108 char sender[10]; 00109 char destination[10]; 00110 char opcode[10]; 00111 int opcodev; 00112 }; 00113 00114 struct gui_settings { 00115 //serial device settings 00116 QString SerialDevice; //device 00117 00118 //TCP settings 00119 QString TCPaddress; //address 00120 qint32 TCPport; //port 00121 qint16 TCPStdtimeout; //std timeout 00122 00123 //Program settings 00124 QString Proglogpath; 00125 qint16 Progenlog; 00126 qint16 Progenuartdb; 00127 qint16 Progenkill; 00128 qint16 ProgDevCNCmode; 00129 }; 00130 struct tcpset { 00131 //TCP settings 00132 QString TCPaddress; //address 00133 qint32 TCPport; //port 00134 qint16 TCPStdtimeout; //std timeout 00135 }; 00136 struct progset { 00137 QString Proglogpath; 00138 qint16 Progenlog; 00139 qint16 Progenuartdb; 00140 qint16 Progenkill; 00141 qint16 ProgDevCNCmode; 00142 00143 }; 00144 struct serialset { 00145 QString SerialDev; 00146 00147 }; 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 #endif // INTERFACES_H