-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGRBLParametersDialog.cpp
More file actions
42 lines (30 loc) · 928 Bytes
/
GRBLParametersDialog.cpp
File metadata and controls
42 lines (30 loc) · 928 Bytes
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
// GRBLParametersDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Aerofoil.h"
#include "GRBLParametersDialog.h"
#include "afxdialogex.h"
// GRBLParametersDialog dialog
IMPLEMENT_DYNAMIC(GRBLParametersDialog, CDialogEx)
GRBLParametersDialog::GRBLParametersDialog(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_GRBL_PARAMETERS, pParent)
, feedRate(0)
, laserPower(0)
, dynamicLaserPower(FALSE)
{
}
GRBLParametersDialog::~GRBLParametersDialog()
{
}
void GRBLParametersDialog::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDT_FEED_RATE, feedRate);
DDV_MinMaxDouble(pDX, feedRate, 100, 5000);
DDX_Text(pDX, IDC_EDT_LASER_POWER, laserPower);
DDV_MinMaxDouble(pDX, laserPower, 0, 1000);
DDX_Check(pDX, IDC_CHK_DYNAMIC_LASER, dynamicLaserPower);
}
BEGIN_MESSAGE_MAP(GRBLParametersDialog, CDialogEx)
END_MESSAGE_MAP()
// GRBLParametersDialog message handlers