Changeset View
Changeset View
Standalone View
Standalone View
src/printthread.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 94 | private: | |||
---|---|---|---|---|---|
96 | * @brief parse the next line | 96 | * @brief parse the next line | ||
97 | */ | 97 | */ | ||
98 | void nextLine(); | 98 | void nextLine(); | ||
99 | 99 | | |||
100 | /** | 100 | /** | ||
101 | * @brief end the print | 101 | * @brief end the print | ||
102 | */ | 102 | */ | ||
103 | void endPrint(); | 103 | void endPrint(); | ||
104 | | ||||
105 | /** | ||||
106 | * @brief injectCommand Attempt to inject a Command from the currently printing file. | ||||
107 | * | ||||
108 | * One of the following on a line that starts with ';-' \n | ||||
109 | * example line ;-Message: Hello \n | ||||
110 | * | ||||
111 | * - Pause: ppc\n | ||||
112 | * Pause the print job and then run the comma seperated commands after pausing the job.\n | ||||
113 | * + ppc: A comma seperated list of Commands to send after pause. ex(G91, G0 Z1, G90, G1 X0 Y195)\n | ||||
114 | *\n | ||||
115 | * - Extruder %Temperature:newTemp,extnum,wait \n | ||||
116 | * Set extruder temperature. \n | ||||
117 | * + newTemp: new target temperature. \n | ||||
118 | * + extnum: Extruder number you want to Heat. Starting at 0. \n | ||||
119 | * + wait: ignore commands until the target is reached. [true | false] \n | ||||
120 | *\n | ||||
121 | * - Bed %Temperature: newTemp,wait \n | ||||
122 | * Set the bed temperature. \n | ||||
123 | * + newTemp: new target temperature \n | ||||
124 | * + wait: ignore commands until the target is reached. [true | false] \n | ||||
125 | *\n | ||||
126 | * - Fan Speed:newSpeed, fanNum \n | ||||
127 | * Set the Fan speed. \n | ||||
128 | * + newSpeed: new fan speed. \n | ||||
129 | * + fanNum: Fan number. Starting at 0.\n | ||||
130 | *\n | ||||
131 | * - Print Speed:newSpeed \n | ||||
132 | * Set the printer speed. \n | ||||
133 | * + newSpeed: the print speed. 100= movement speed defined in file. \n | ||||
134 | *\n | ||||
135 | * - Flow Rate:newRate \n | ||||
136 | * Set the flow rate \n | ||||
137 | * + newRate: the flow rate. 100 = flow rate defined in file. \n | ||||
138 | *\n | ||||
139 | * - Message:message \n | ||||
140 | * Show a message the printer's LCD \n | ||||
141 | * + message: the message to print. \n | ||||
142 | *\n | ||||
143 | * - Command:command \n | ||||
144 | * Inject your own command. Command are sent as is. Be sure your line is correct. \n | ||||
145 | * + command: Commands to inject \n | ||||
146 | */ | ||||
147 | void injectCommand(QString command); | ||||
148 | | ||||
149 | /** | ||||
150 | * @brief d: Private storage for the thread | ||||
151 | */ | ||||
104 | PrintThreadPrivate *d; | 152 | PrintThreadPrivate *d; | ||
105 | }; | 153 | }; |