- //---------------------------------------------------------------------------
- #ifndef _FORM_RTC32K_H_
- #define _FORM_RTC32K_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ComCtrls.hpp>
- #include <Dialogs.hpp>
- #include <Buttons.hpp>
- #include <ExtCtrls.hpp>
- #ifndef _RF_RTC_H_
- #include "rf_rtc.h"
- #endif
- //---------------------------------------------------------------------------
- class TfrmRTC32k : public TForm
- {
- __published: // IDE-managed Components
- TButton *m_btnLogFile;
- TStaticText *m_stLogFile;
- TStatusBar *m_sbRtc32K;
- TSaveDialog *m_dlgSaveLog;
- TStaticText *lblHint;
- TTimer *HintTimer;
- TGroupBox *GroupBox1;
- TLabel *lblLabel41;
- TComboBox *m_cbBand;
- TLabel *lblLabel42;
- TEdit *m_edtArfcn;
- TLabel *lblLabel43;
- TComboBox *m_cbTXTsc;
- TLabel *lblLabel44;
- TEdit *m_edtPcl;
- TLabel *m_lblTestCount;
- TEdit *m_edtTestCount;
- TEdit *m_edtPeriod;
- TLabel *m_lblPeriod;
- TLabel *Label1;
- TBitBtn *m_btnStart;
- TBitBtn *m_btnStop;
- TRichEdit *m_reResult;
- TOpenDialog *m_dlgOpenDB;
- TLabel *Label2;
- TComboBox *m_cbEquipment;
- TLabel *Label3;
- TEdit *m_edtDnPower;
- TButton *m_btnCfgFile;
- TStaticText *m_stCfgFile;
- TOpenDialog *m_dlgOpenCfg;
- void __fastcall m_btnLogFileClick(TObject *Sender);
- void __fastcall m_btnStartClick(TObject *Sender);
- void __fastcall m_btnStopClick(TObject *Sender);
- void __fastcall FormDestroy(TObject *Sender);
- void __fastcall edtTestCountCheck(TObject *Sender);
- void __fastcall edtPeriodCheck(TObject *Sender);
- void __fastcall HintTimerTimer(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall m_btnCfgFileClick(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- void __fastcall m_cbBandChange(TObject *Sender);
- void __fastcall m_edtArfcnCheck(TObject *Sender);
- void __fastcall m_edtPclCheck(TObject *Sender);
- void __fastcall m_edtDnPowerCheck(TObject *Sender);
- private: // User declarations
- bool m_bInit;
- TMETA_factory_cfg* m_pCfg;
- TThread *m_pt_Rtc32K;
- S_RF_RTC_T m_sRfRtc;
- S_RCT m_sRct;
- public: // User declarations
- __fastcall TfrmRTC32k(TComponent* Owner);
- void Init(void);
- void _fastcall SubClassWndProc(Messages::TMessage &Message);
- // UI
- void ShowHintLabel(TControl *sender, char* hint);
- void CurrentPageLock(void);
- void CurrentPageReset(void);
- void FillRtc32KResult(bool b_title, int clock_mHz);
- // cfg
- bool read_cfg_file(AnsiString asFileName);
- //log
- void setup_log_file(AnsiString asFileName);
- // equipment
- void CloseRctHandle(void);
- // RF
- void StopRf(void);
- // callback
- void __fastcall on_TerminateSuccess(TObject *Sender);
- void __fastcall on_TerminateFail(TObject *Sender);
- void __fastcall on_TerminateByUser(TObject *Sender);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmRTC32k *frmRTC32k;
- //---------------------------------------------------------------------------
- #endif