-
Notifications
You must be signed in to change notification settings - Fork 0
/
tool.cpp
42 lines (38 loc) · 860 Bytes
/
tool.cpp
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
#include "tool.h"
Tool::Tool(QObject *parent)
: QObject{parent}
{
counter = 0;
number = " ";
description = " ";
gesammtLaenge = " ";
ausspannLaenge = " ";
freistellLaenge = " ";
halterComment = " ";
halterName = " ";
schneidLange = " ";
state = Out;
}
void Tool::clear()
{
number = " ";
description = " ";
gesammtLaenge = " ";
ausspannLaenge = " ";
freistellLaenge = " ";
halterComment = " ";
halterName = " ";
schneidLange = " ";
counter = 0;
}
QString Tool::get_StateString()
{
QString string_Return = "";
if(state == Tool::In)
string_Return = "In";
if(state == Tool::Out)
string_Return = "Out";
if(state == Tool::Disassembled)
string_Return = "Disassembled";
return string_Return;
}