-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscannerbox.h
61 lines (50 loc) · 1.34 KB
/
scannerbox.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
#pragma once
#include "InterfaceLLT_2.h"
#include <QWidget>
class QLabel;
class CInterfaceLLT;
class QComboBox;
class QGroupBox;
class QPushButton;
extern void __stdcall NewProfile(const unsigned char* pucData, unsigned int uiSize, void* pUserData);
extern std::vector<unsigned char> vucProfileBuffer;
class ScannerBox : public QWidget
{
Q_OBJECT
public:
ScannerBox(QWidget *parent = Q_NULLPTR);
~ScannerBox();
void startProfileTrans();
void stopProfileTrans();
signals:
void updateStatus(QString& );
void updateGraph(unsigned int);
private:
void ipSearch();
void scanConnect();
void advancedSettings();
void writeScannerSettings();
void changeProfileTrans();
void OnError(QString errorText);
void OnError(QString errorText, int errorValue);
QGroupBox* m_scanGroupBox;
QLabel* m_ipLabel;
QComboBox* m_ipComboBox;
QLabel* m_scanType;
QPushButton* m_ipSearch;
QPushButton* m_scanConnect;
QPushButton* m_advancedSettings;
QPushButton* m_transButton;
//´«¸ÐÆ÷½Ó¿Ú
CInterfaceLLT* m_scanner;
unsigned int m_uiResolution = 0;
unsigned int m_uiShutterTime = 1000; //1000us
unsigned int m_uiIdleTime = 3900;
unsigned int m_uiscanRate = 25; //25 1/s
TScannerType m_tscanCONTROLType;
std::vector<unsigned int> m_vuiInterfaces;
unsigned int m_uiInterfaceCount = 0;
std::vector<DWORD> m_vdwResolutions;
bool m_bLoadError;
int m_iRetValue;
};