unit2.h

来自「光学仪器的控制系统 用于教学和科研的仪器」· C头文件 代码 · 共 139 行

H
139
字号
//---------------------------------------------------------------------------
#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TChanShu : public TForm
{
__published:	// IDE-managed Components
        TGroupBox *GroupBox2;
        TRadioButton *Radio21;
        TRadioButton *Radio22;
        TRadioButton *Radio23;
        TRadioButton *Radio24;
        TGroupBox *GroupBox1;
        TRadioButton *Radio11;
        TRadioButton *Radio12;
        TButton *ButtonOK;
        TButton *ButtonCAL;
        TGroupBox *GroupBox3;
        TRadioButton *Radio32;
        TRadioButton *Radio33;
        TEdit *Edit32;
        TLabel *Label2;
        TUpDown *UpDown32;
        TLabel *Label1;
        TUpDown *UpDown33;
        TEdit *Edit33;
        TGroupBox *GroupBox4;
        TLabel *Label3;
        TLabel *Label4;
        TEdit *Edit41;
        TEdit *Edit42;
        TEdit *Edit11;
        TLabel *Label7;
        TEdit *Edit12;
        TLabel *Label8;
        TEdit *Edit13;
        TEdit *Edit14;
        TLabel *Label9;
        TLabel *Label10;
        TRadioButton *Radio13;
        TEdit *Edit16;
        TLabel *Label5;
        TEdit *Edit15;
        TLabel *Label11;
        TUpDown *UpDown31;
        TLabel *Label12;
        TEdit *Edit31;
        TRadioButton *Radio31;
        TButton *ButtonDEF;
        TGroupBox *GroupBox5;
        TGroupBox *GroupBox6;
        TUpDown *UpDown61;
        TEdit *EditLampCh;
        TLabel *Label14;
        TEdit *EditVol;
        TGroupBox *GroupBox7;
        TEdit *EditAmp;
        TUpDown *UpDown62;
        TGroupBox *GroupBox8;
        TEdit *EditLamp;
        TUpDown *UpDown63;
        TLabel *Label6;
        TLabel *Label15;
        TUpDown *UpDown64;
        TGroupBox *GroupBox9;
        TRadioButton *Radio41;
        TRadioButton *Radio42;
        TRadioButton *Radio43;
        TRadioButton *Radio44;
        TRadioButton *Radio45;
        TGroupBox *GroupBox10;
        TCheckBox *CheckBox1;
        TLabel *Label13;
        TComboBox *ComboBox1;
        TLabel *Label16;
        TCheckBox *CheckBox2;
        TLabel *Label17;
        TComboBox *ComboBox2;
        TGroupBox *GroupBox11;
        TRadioButton *RadioButton1;
        TRadioButton *RadioButton2;
        TRadioButton *RadioButton3;
        TRadioButton *RadioButton4;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall Radio11Click(TObject *Sender);
        void __fastcall Radio12Click(TObject *Sender);
        void __fastcall Radio13Click(TObject *Sender);
        void __fastcall Radio31Click(TObject *Sender);
        void __fastcall Radio32Click(TObject *Sender);
        void __fastcall Radio33Click(TObject *Sender);
        void __fastcall FormShow(TObject *Sender);
        void __fastcall ButtonOKClick(TObject *Sender);
        void __fastcall ButtonCALClick(TObject *Sender);
        void __fastcall ButtonDEFClick(TObject *Sender);
        void __fastcall Edit11KeyPress(TObject *Sender, char &Key);
        void __fastcall Edit33Change(TObject *Sender);
        void __fastcall UpDown63Click(TObject *Sender, TUDBtnType Button);
        void __fastcall EditChange(TObject *Sender);
        void __fastcall CheckBox1Click(TObject *Sender);
private:
    bool __fastcall ifNumber(AnsiString * String);
    void SetYiqiAttr();	//设置机器状态
    void SetRadio31(void);
    void SetRadio32(void);
    void SetRadio33(void);
public:		// User declarations
        __fastcall TChanShu(TComponent* Owner);

        bool bOK;
        short int Select0;
        short int Select1;
        short int Select2;
        short int Select3;
        short int Select4;
        short int csd5[4];      // 1-重复扫描次数 2-连续扫描次数 3-时间扫描时间
        float wnst,wnet;        // 起始波长和终止波长
        float twns,twne,ewns,ewne;// 时间坐标和能量坐标
        float tnl2[4],tnh2[4];  // 第一个BOX的Low、High值
                                // 1-透过率 2-吸光度 3-能量
        short int csd2;         // 工作光源
        short int csd8;         // 换灯波长
        short int csd9;         // 光谱带宽
        short int csd10;        // 负高压
        short int csd11;        // 增益


};
//---------------------------------------------------------------------------
extern PACKAGE TChanShu *ChanShu;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?