-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChnl_frame.h
41 lines (39 loc) · 1.46 KB
/
Chnl_frame.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
//---------------------------------------------------------------------------
#ifndef Chnl_frameH
#define Chnl_frameH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "rxPlacemnt.hpp"
#include "StdAfx.h"
//---------------------------------------------------------------------------
class TFrmChnl : public TFrame
{
__published: // IDE-managed Components
TCheckBox *bOn;
TComboBox *cbVoltDiv;
TPanel *Panel1;
TFormStorage *FormStorage1;
TCheckBox *cbX10;
TComboBox *cbAC_DC;
void __fastcall BtnOnClick(TObject *Sender);
void __fastcall FormStorage1RestorePlacement(TObject *Sender);
private: // User declarations
TNotifyEvent FOnChange ;
int IX ;
TChnlParams Prms ;
public: // User declarations
__fastcall TFrmChnl(TComponent* Owner,TWinControl* parent,int ch,TNotifyEvent _onChnge);
void __fastcall SaveProps(void){ FormStorage1->SaveFormPlacement() ;}
uint16_t __fastcall GetLvlPos(void){ return Min(Max(cbVoltDiv->Tag,0),255) ;}
void __fastcall SetLvlPos(uint16_t lvl){ cbVoltDiv->Tag = lvl ;}
TChnlParams* __fastcall GetParams(void) ;//{ return &Prms ;}
void __fastcall SetParams(TChnlParams* prms) ;
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmChnl *FrmChnl;
//---------------------------------------------------------------------------
#endif