-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrameSerialSettings.h
55 lines (53 loc) · 2.09 KB
/
FrameSerialSettings.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
//---------------------------------------------------------------------------
#ifndef FrameSerialSettingsH
#define FrameSerialSettingsH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
//---------------------------------------------------------------------------
class TfrmeSerialSettings : public TFrame
{
__published: // IDE-managed Components
TLabel *Label5;
TLabel *Label6;
TLabel *Label7;
TLabel *Label8;
TComboBox *cmboxSpeed;
TComboBox *cmboxParity;
TComboBox *cmboxStopBits;
TComboBox *cmboxDataBits;
TCheckBox *checkboxCancelTXEcho;
TComboBox *cmboxPortName;
TLabel *Label1;
private: // User declarations
String GetPortName() const;
void SetPortName( String Val );
TStrings& GetPortNameList() const;
void SetPortNameList( TStrings& Val );
int GetSpeed() const;
void SetSpeed( int Value );
int GetParity() const;
void SetParity( int Value );
int GetBits() const;
void SetBits( int Value );
int GetStopBits() const;
void SetStopBits( int Value );
bool GetCancelTXEcho() const;
void SetCancelTXEcho( bool Val );
public: // User declarations
__fastcall TfrmeSerialSettings(TComponent* Owner);
bool CheckParsValidity() const;
__property String PortName = { read = GetPortName, write = SetPortName };
__property TStrings& PortNameList = { read = GetPortNameList, write = SetPortNameList };
__property int Speed = { read = GetSpeed, write = SetSpeed };
__property int Parity = { read = GetParity, write = SetParity };
__property int Bits = { read = GetBits, write = SetBits };
__property int StopBits = { read = GetStopBits, write = SetStopBits };
__property bool CancelTXEcho = { read = GetCancelTXEcho, write = SetCancelTXEcho };
};
//---------------------------------------------------------------------------
//extern PACKAGE TfrmeSerialSettings *frmeSerialSettings;
//---------------------------------------------------------------------------
#endif