-
-
Notifications
You must be signed in to change notification settings - Fork 557
/
Copy pathfrmsettings.h
124 lines (108 loc) · 3.26 KB
/
frmsettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// This file is a part of "grblControl" application.
// Copyright 2015 Hayrullin Denis Ravilevich
#ifndef FRMSETTINGS_H
#define FRMSETTINGS_H
#include <QDialog>
#include <QListWidgetItem>
#include "colorpicker.h"
namespace Ui {
class frmSettings;
}
class frmSettings : public QDialog
{
Q_OBJECT
public:
explicit frmSettings(QWidget *parent = 0);
~frmSettings();
int exec();
void undo();
QString port();
void setPort(QString port);
int baud();
void setBaud(int baud);
double toolDiameter();
void setToolDiameter(double diameter);
double toolLength();
void setToolLength(double length);
bool antialiasing();
void setAntialiasing(bool antialiasing);
bool zBuffer();
void setZBuffer(bool zBuffer);
double lineWidth();
void setLineWidth(double lineWidth);
double arcLength();
void setArcLength(double arcLength);
double arcDegree();
void setArcDegree(double arcDegree);
double arcPrecision();
bool arcDegreeMode();
void setArcDegreeMode(bool arcDegreeMode);
bool showProgramCommands();
void setShowProgramCommands(bool showProgramCommands);
bool showUICommands();
void setShowUICommands(bool showUICommands);
double safeZ();
void setSafeZ(double safeZ);
int spindleSpeedMin();
void setSpindleSpeedMin(int speed);
int spindleSpeedMax();
void setSpindleSpeedMax(int speed);
int rapidSpeed();
void setRapidSpeed(int rapidSpeed);
int heightmapProbingFeed();
void setHeightmapProbingFeed(int heightmapProbingFeed);
int acceleration();
void setAcceleration(int acceleration);
int queryStateTime();
void setQueryStateTime(int queryStateTime);
int toolType();
void setToolType(int toolType);
double toolAngle();
void setToolAngle(double toolAngle);
int fps();
void setFps(int fps);
bool msaa();
void setMsaa(bool msaa);
bool autoCompletion();
void setAutoCompletion(bool autoCompletion);
int units();
void setUnits(int units);
QString touchCommand();
void setTouchCommand(QString touchCommand);
bool simplify();
void setSimplify(bool simplify);
double simplifyPrecision();
void setSimplifyPrecision(double simplifyPrecision);
bool panelHeightmap();
void setPanelHeightmap(bool panelHeightmap);
bool panelSpindle();
void setPanelSpindle(bool panelSpindle);
bool panelFeed();
void setPanelFeed(bool panelFeed);
bool panelJog();
void setPanelJog(bool panelJog);
QList<ColorPicker*> colors();
QColor colors(QString name);
int fontSize();
void setFontSize(int fontSize);
protected:
void showEvent(QShowEvent *se);
private slots:
void onScrollBarValueChanged(int value);
void on_cmdRefresh_clicked();
void on_cmdOK_clicked();
void on_cmdCancel_clicked();
void on_cboToolType_currentIndexChanged(int index);
void on_listCategories_currentRowChanged(int currentRow);
void on_cmdDefaults_clicked();
void on_cboFontSize_currentTextChanged(const QString &arg1);
private:
Ui::frmSettings *ui;
void searchPorts();
QList<double> m_storedValues;
QList<bool> m_storedChecks;
QList<QString> m_storedCombos;
QList<QColor> m_storedColors;
QIntValidator m_intValidator;
};
#endif // FRMSETTINGS_H