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 | * @param ppc: A comma seperated list of Commands to send after pause. ex(G91, G0 Z1, G90, G1 X0 Y195)\n | ||||
114 | *\n | ||||
115 | * - resume\n | ||||
116 | * Resume the print job.\n | ||||
117 | *\n | ||||
118 | * - extruder temperature:newTemp,extnum,wait \n | ||||
119 | * Set extruder temperature. \n | ||||
120 | * @param newTemp: new target temperature. | ||||
121 | * @param extnum: Extruder number you want to Heat. Starting at 0. | ||||
122 | * @param wait: ignore commands until the target is reached. [true | false] \n | ||||
123 | *\n | ||||
124 | * - bed temperature: newTemp,wait \n | ||||
125 | * Set the bed temperature. \n | ||||
126 | * @param newTemp: new target temperature | ||||
127 | * @param wait: ignore commands until the target is reached. [true | false] \n | ||||
128 | *\n | ||||
129 | * - fan speed:newSpeed, fanNum \n | ||||
130 | * Set the Fan speed. \n | ||||
131 | * @param newSpeed: new fan speed. | ||||
132 | * @param fanNum: Fan number. Starting at 0.\n | ||||
133 | *\n | ||||
134 | * - print speed:newSpeed \n | ||||
135 | * Set the printer speed. \n | ||||
136 | * @param newSpeed: the print speed. 100= movement speed defined in file. \n | ||||
137 | *\n | ||||
138 | * - flow rate:newRate \n | ||||
139 | * Set the flow rate \n | ||||
140 | * @param newRate: the flow rate. 100 = flow rate defined in file. \n | ||||
141 | *\n | ||||
142 | * - message:message \n | ||||
143 | * Show a message the printer's LCD \n | ||||
144 | * @param message: the message to print. \n | ||||
145 | *\n | ||||
146 | * - command:command \n | ||||
147 | * Inject your own command. Command are sent as is. Be sure your line is correct. \n | ||||
148 | * @param command: Commands to inject \n | ||||
149 | */ | ||||
150 | void injectCommand(QString command); | ||||
151 | | ||||
152 | /** | ||||
153 | * @brief d: Private storage for the thread | ||||
154 | */ | ||||
104 | PrintThreadPrivate *d; | 155 | PrintThreadPrivate *d; | ||
105 | }; | 156 | }; |