-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmainwindow.h
64 lines (48 loc) · 1.21 KB
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include <QDebug>
#include <QTranslator>
#include "ui_mainwindow.h"
#include "snap7.h"
#include "plc_siemens.h"
#include "settings.h"
class MainWindow : public QMainWindow, private Ui::MainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
Settings settings;
PLC_Siemens *plcSiemens;
QTimer *timer ;
void byteCastingtest();
#pragma pack(push, 1)
typedef struct
{
int32_t counterDint;
uint8_t counterByte;
int16_t cInt;
uint16_t cWord;
uint32_t cDWord;
float_t cReal;
uint8_t cByte18;
uint8_t cByte19;
uint8_t cByte20;
uint8_t cByte21;
uint8_t cByte22;
} testStruct_t, *PtestStruct_t;
#pragma pack(pop)
private:
QTranslator *Italian;
protected:
//void closeEvent(QCloseEvent *event);
void changeEvent(QEvent *event);
private slots:
void on_pbWrite_clicked();
void update();
void on_pbTestCasting_clicked();
void on_actionEnglish_triggered();
void on_actionItalian_triggered();
};
#endif // MAINWINDOW_H