form_EpskInterSlotRampSetting.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:8k
源码类别:
MTK
开发平台:
C++ Builder
- //---------------------------------------------------------------------------
- #ifndef _FORM_EPSKINTERSLOTRAMPSETTING_H_
- #define _FORM_EPSKINTERSLOTRAMPSETTING_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ComCtrls.hpp>
- #include <ExtCtrls.hpp>
- #include <Buttons.hpp>
- #include <Dialogs.hpp>
- #ifndef _RF_COMMON_H_
- #include "rf_common.h"
- #endif
- #ifndef _RF_EPSKINTERSLOTRAMPPROFILE_H_
- #include "rf_epskinterslotrampprofile.h"
- #endif
- #ifndef _RF_MULTISLOTTX_H_
- #include "rf_multislottx.h"
- #endif
- #define EPSK_INTER_RAMP_SECTION_NUM 4
- //---------------------------------------------------------------------------
- class TfrmEpskInterSlotRampSetting : public TForm
- {
- __published: // IDE-managed Components
- TTabControl *tclEpskInterRamp;
- TPanel *pnlGG;
- TPanel *pnlRampGG;
- TButton *btnGGLeft;
- TButton *btnGGRight;
- TLabel *Label1;
- TEdit *edtGGInterRamp00;
- TEdit *edtGGInterRamp01;
- TEdit *edtGGInterRamp02;
- TEdit *edtGGInterRamp03;
- TEdit *edtGGInterRamp04;
- TEdit *edtGGInterRamp05;
- TLabel *Label2;
- TLabel *Label3;
- TLabel *Label4;
- TLabel *Label5;
- TLabel *Label6;
- TLabel *Label7;
- TLabel *Label8;
- TLabel *Label9;
- TLabel *Label10;
- TLabel *Label11;
- TLabel *Label12;
- TLabel *Label13;
- TLabel *Label14;
- TEdit *edtGGInterRamp06;
- TEdit *edtGGInterRamp07;
- TEdit *edtGGInterRamp08;
- TEdit *edtGGInterRamp09;
- TEdit *edtGGInterRamp10;
- TEdit *edtGGInterRamp11;
- TEdit *edtGGInterRamp12;
- TEdit *edtGGInterRamp13;
- TLabel *Label15;
- TLabel *Label16;
- TEdit *edtGGInterRamp14;
- TEdit *edtGGInterRamp15;
- TPanel *pnlGE;
- TPanel *pnlRampGE;
- TPanel *pnlEG;
- TPanel *pnlRampEG;
- TPanel *pnlEE;
- TPanel *pnlRampEE;
- TButton *btnGELeft;
- TButton *btnGERight;
- TButton *btnEGLeft;
- TButton *btnEGRight;
- TButton *btnEELeft;
- TButton *btnEERight;
- TLabel *Label17;
- TLabel *Label18;
- TLabel *Label19;
- TLabel *Label20;
- TLabel *Label21;
- TLabel *Label22;
- TLabel *Label23;
- TLabel *Label24;
- TLabel *Label25;
- TLabel *Label26;
- TLabel *Label27;
- TLabel *Label28;
- TLabel *Label29;
- TEdit *edtGEInterRamp00;
- TEdit *edtGEInterRamp01;
- TEdit *edtGEInterRamp02;
- TEdit *edtGEInterRamp03;
- TEdit *edtGEInterRamp04;
- TEdit *edtGEInterRamp05;
- TEdit *edtGEInterRamp06;
- TEdit *edtGEInterRamp07;
- TEdit *edtGEInterRamp08;
- TEdit *edtGEInterRamp09;
- TEdit *edtGEInterRamp10;
- TEdit *edtGEInterRamp11;
- TEdit *edtGEInterRamp12;
- TEdit *edtGEInterRamp13;
- TLabel *Label30;
- TLabel *Label31;
- TLabel *Label32;
- TEdit *edtGEInterRamp14;
- TEdit *edtGEInterRamp15;
- TLabel *Label33;
- TLabel *Label34;
- TLabel *Label35;
- TLabel *Label36;
- TLabel *Label37;
- TLabel *Label38;
- TLabel *Label39;
- TLabel *Label40;
- TLabel *Label41;
- TLabel *Label42;
- TLabel *Label43;
- TLabel *Label44;
- TLabel *Label45;
- TEdit *edtEGInterRamp00;
- TEdit *edtEGInterRamp01;
- TEdit *edtEGInterRamp02;
- TEdit *edtEGInterRamp03;
- TEdit *edtEGInterRamp04;
- TEdit *edtEGInterRamp05;
- TEdit *edtEGInterRamp06;
- TEdit *edtEGInterRamp07;
- TEdit *edtEGInterRamp08;
- TEdit *edtEGInterRamp09;
- TEdit *edtEGInterRamp10;
- TEdit *edtEGInterRamp11;
- TEdit *edtEGInterRamp12;
- TEdit *edtEGInterRamp13;
- TEdit *edtEGInterRamp14;
- TEdit *edtEGInterRamp15;
- TLabel *Label46;
- TLabel *Label47;
- TLabel *Label48;
- TLabel *Label49;
- TLabel *Label50;
- TLabel *Label51;
- TLabel *Label52;
- TLabel *Label53;
- TLabel *Label54;
- TLabel *Label55;
- TLabel *Label56;
- TLabel *Label57;
- TLabel *Label58;
- TLabel *Label59;
- TLabel *Label60;
- TEdit *edtEEInterRamp00;
- TEdit *edtEEInterRamp01;
- TEdit *edtEEInterRamp02;
- TEdit *edtEEInterRamp03;
- TEdit *edtEEInterRamp04;
- TEdit *edtEEInterRamp05;
- TEdit *edtEEInterRamp06;
- TEdit *edtEEInterRamp07;
- TEdit *edtEEInterRamp08;
- TEdit *edtEEInterRamp09;
- TEdit *edtEEInterRamp10;
- TEdit *edtEEInterRamp11;
- TEdit *edtEEInterRamp12;
- TEdit *edtEEInterRamp13;
- TEdit *edtEEInterRamp14;
- TLabel *Label61;
- TLabel *Label62;
- TLabel *Label63;
- TEdit *edtEEInterRamp15;
- TLabel *Label64;
- TButton *btnUploadFromFlash;
- TButton *btnDownloadToFlash;
- TButton *btnChangeDB;
- TButton *btnLoadFromFile;
- TButton *btnSaveToFile;
- TBitBtn *btnTXStart;
- TBitBtn *btnTXStop;
- TLabel *Label65;
- TEdit *edtTestArfcn;
- TTimer *HintTimer;
- TOpenDialog *OpenDialog;
- TSaveDialog *SaveDialog;
- TStaticText *lblHint;
- TStatusBar *sbISR;
- void __fastcall HintTimerTimer(TObject *Sender);
- void __fastcall btnGGLeftClick(TObject *Sender);
- void __fastcall btnGGRightClick(TObject *Sender);
- void __fastcall btnGELeftClick(TObject *Sender);
- void __fastcall btnGERightClick(TObject *Sender);
- void __fastcall btnEGLeftClick(TObject *Sender);
- void __fastcall btnEGRightClick(TObject *Sender);
- void __fastcall btnEELeftClick(TObject *Sender);
- void __fastcall btnEERightClick(TObject *Sender);
- void __fastcall edtGGInterRampCheck(TObject *Sender);
- void __fastcall edtGEInterRampCheck(TObject *Sender);
- void __fastcall edtEGInterRampCheck(TObject *Sender);
- void __fastcall edtEEInterRampCheck(TObject *Sender);
- void __fastcall btnUploadFromFlashClick(TObject *Sender);
- void __fastcall btnDownloadToFlashClick(TObject *Sender);
- void __fastcall btnChangeDBClick(TObject *Sender);
- void __fastcall btnLoadFromFileClick(TObject *Sender);
- void __fastcall btnSaveToFileClick(TObject *Sender);
- void __fastcall btnTXStartClick(TObject *Sender);
- void __fastcall edtArfcnCheck(TObject *Sender);
- void __fastcall tclEpskInterRampChange(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall btnTXStopClick(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- private: // User declarations
- bool m_bInit;
- bool m_bMultiSlotTxExSupport;
- CRFEPSKINTERSLOTRAMP m_RF_EPSK_INTER_SLOT_RAMP_Obj;
- CRFMULTISLOTTX m_RF_MULTI_SLOT_TX_Obj;
- TEdit *edtInterRamp[EPSK_INTER_RAMP_SECTION_NUM][INTER_RAMP_SAMPLE_NUM];
- E_BANDSEL m_eCurBand;
- short m_sTestArfcn[MAX_SUPPORT_BAND_NUM]; // GSM900, DCS1800, PCS1900, GSM 850
- int m_iLastTabIndex;
- l1cal_EPSK_interRampData_T EPSK_Inter_RamTable[MAX_SUPPORT_BAND_NUM];
- public: // User declarations
- __fastcall TfrmEpskInterSlotRampSetting(TComponent* Owner);
- void Init(void);
- // UI
- void ReDrawFields( void );
- bool CheckFields( void );
- void ShowHintLabel( TControl *sender, char* hint );
- void CurrentPageLock( void );
- void CurrentPageReset( void );
- // callback
- void UploadFromFlashDone( void );
- void DownloadToFlashDone( void );
- void ConfirmCallback_MultiSlotTX( void );
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmEpskInterSlotRampSetting *frmEpskInterSlotRampSetting;
- //---------------------------------------------------------------------------
- #endif