4,7 → 4,15 |
#include "GlobalDefines.h" |
|
#define BTN_ICON_SIZE 32 |
#define X_MIN 0 |
#define X_MAX 290 |
#define Y_MIN 0 |
#define Y_MAX 270 |
#define Z_MIN 0 |
#define Z_MAX 240 |
|
#define SLOW_MULTIPLIER 4 |
|
class PasteController : public QWidget |
{ |
Q_OBJECT |
16,14 → 24,19 |
void EnableControls(void); |
void DisableControls(void); |
void TransmitData(QByteArray); |
void UpdateStatus(QString); |
|
public slots: |
void EnableTransmit(bool); |
void InitializePrinter(void); |
void ToggleHotkeys(void); |
void MoveToolhead(void); |
void MoveToolheadSingle(void); |
void UpdatePosition(void); |
void UpdatePositionSingle(void); |
void UpdateTimer(int); |
void ExtrudeSingle(void); |
void ResetPosition(void); |
void ProcessData(QByteArray); |
void SetBaseHeight(void); |
|
void QSliderToQDoubleSpinBox(int); |
void QDoubleSpinBoxToQSlider(double); |
36,10 → 49,12 |
bool hotkeysEnabled; |
double xPos,yPos,zPos; |
bool X_Incr, X_Decr, Y_Incr, Y_Decr, Z_Incr, Z_Decr, E_Incr; |
bool transmittingData; |
|
void IncrementToolhead(double x, double y, double z); |
void SingleExtrude(void); |
|
QQueue<QString> *queueCmds; |
QTimer *tmrUpdate; |
|
QLabel *labelHelp; |
89,7 → 104,7 |
// Extruder setting elements |
QLabel *labelEForwardSteps; |
QSlider *sliderEForwardSteps; |
QSpinBox *textEForwardSteps; |
QDoubleSpinBox *textEForwardSteps; |
|
QLabel *labelEForwardSpeed; |
QSlider *sliderEForwardSpeed; |
97,12 → 112,16 |
|
QLabel *labelEBackwardSteps; |
QSlider *sliderEBackwardSteps; |
QSpinBox *textEBackwardSteps; |
QDoubleSpinBox *textEBackwardSteps; |
|
QLabel *labelEBackwardSpeed; |
QSlider *sliderEBackwardSpeed; |
QSpinBox *textEBackwardSpeed; |
|
QLabel *labelExtrusionHeight; |
QSlider *sliderExtrusionHeight; |
QDoubleSpinBox *textExtrusionHeight; |
|
QLabel *labelEZSteps; |
QSlider *sliderEZSteps; |
QDoubleSpinBox *textEZSteps; |