-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstitchplayer.cpp
More file actions
33 lines (25 loc) · 726 Bytes
/
stitchplayer.cpp
File metadata and controls
33 lines (25 loc) · 726 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
#include "stitchplayer.h"
#include "ui_stitchplayer.h"
#include <stdlib.h>
#include <string>
stitchPlayer::stitchPlayer(QWidget *parent) :
QDialog(parent),
ui(new Ui::stitchPlayer)
{
ui->setupUi(this);
//Setup Window Titles
setWindowTitle("embTools - Stitch Run Time Calculator");
}
stitchPlayer::~stitchPlayer()
{
delete ui;
}
void stitchPlayer::on_submit_clicked()
{
int designStitch = ui -> stitch -> value();
int machineSpeed = ui -> speed -> value();
int designTrim = ui -> trim -> value();
int designTrimSpeed = ui -> trimSpeed -> value();
int calculate = ((designStitch / machineSpeed)+((designTrim * designTrimSpeed) / 60));
ui-> answer -> display(calculate);
}