form_EpskInterSlotRampSetting.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:8k
源码类别:

MTK

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef _FORM_EPSKINTERSLOTRAMPSETTING_H_
  3. #define _FORM_EPSKINTERSLOTRAMPSETTING_H_
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <Buttons.hpp>
  12. #include <Dialogs.hpp>
  13. #ifndef  _RF_COMMON_H_
  14. #include "rf_common.h"
  15. #endif
  16. #ifndef _RF_EPSKINTERSLOTRAMPPROFILE_H_
  17. #include "rf_epskinterslotrampprofile.h"
  18. #endif
  19. #ifndef _RF_MULTISLOTTX_H_
  20. #include "rf_multislottx.h"
  21. #endif
  22. #define  EPSK_INTER_RAMP_SECTION_NUM  4
  23. //---------------------------------------------------------------------------
  24. class TfrmEpskInterSlotRampSetting : public TForm
  25. {
  26. __published: // IDE-managed Components
  27.         TTabControl *tclEpskInterRamp;
  28.         TPanel *pnlGG;
  29.         TPanel *pnlRampGG;
  30.         TButton *btnGGLeft;
  31.         TButton *btnGGRight;
  32.         TLabel *Label1;
  33.         TEdit *edtGGInterRamp00;
  34.         TEdit *edtGGInterRamp01;
  35.         TEdit *edtGGInterRamp02;
  36.         TEdit *edtGGInterRamp03;
  37.         TEdit *edtGGInterRamp04;
  38.         TEdit *edtGGInterRamp05;
  39.         TLabel *Label2;
  40.         TLabel *Label3;
  41.         TLabel *Label4;
  42.         TLabel *Label5;
  43.         TLabel *Label6;
  44.         TLabel *Label7;
  45.         TLabel *Label8;
  46.         TLabel *Label9;
  47.         TLabel *Label10;
  48.         TLabel *Label11;
  49.         TLabel *Label12;
  50.         TLabel *Label13;
  51.         TLabel *Label14;
  52.         TEdit *edtGGInterRamp06;
  53.         TEdit *edtGGInterRamp07;
  54.         TEdit *edtGGInterRamp08;
  55.         TEdit *edtGGInterRamp09;
  56.         TEdit *edtGGInterRamp10;
  57.         TEdit *edtGGInterRamp11;
  58.         TEdit *edtGGInterRamp12;
  59.         TEdit *edtGGInterRamp13;
  60.         TLabel *Label15;
  61.         TLabel *Label16;
  62.         TEdit *edtGGInterRamp14;
  63.         TEdit *edtGGInterRamp15;
  64.         TPanel *pnlGE;
  65.         TPanel *pnlRampGE;
  66.         TPanel *pnlEG;
  67.         TPanel *pnlRampEG;
  68.         TPanel *pnlEE;
  69.         TPanel *pnlRampEE;
  70.         TButton *btnGELeft;
  71.         TButton *btnGERight;
  72.         TButton *btnEGLeft;
  73.         TButton *btnEGRight;
  74.         TButton *btnEELeft;
  75.         TButton *btnEERight;
  76.         TLabel *Label17;
  77.         TLabel *Label18;
  78.         TLabel *Label19;
  79.         TLabel *Label20;
  80.         TLabel *Label21;
  81.         TLabel *Label22;
  82.         TLabel *Label23;
  83.         TLabel *Label24;
  84.         TLabel *Label25;
  85.         TLabel *Label26;
  86.         TLabel *Label27;
  87.         TLabel *Label28;
  88.         TLabel *Label29;
  89.         TEdit *edtGEInterRamp00;
  90.         TEdit *edtGEInterRamp01;
  91.         TEdit *edtGEInterRamp02;
  92.         TEdit *edtGEInterRamp03;
  93.         TEdit *edtGEInterRamp04;
  94.         TEdit *edtGEInterRamp05;
  95.         TEdit *edtGEInterRamp06;
  96.         TEdit *edtGEInterRamp07;
  97.         TEdit *edtGEInterRamp08;
  98.         TEdit *edtGEInterRamp09;
  99.         TEdit *edtGEInterRamp10;
  100.         TEdit *edtGEInterRamp11;
  101.         TEdit *edtGEInterRamp12;
  102.         TEdit *edtGEInterRamp13;
  103.         TLabel *Label30;
  104.         TLabel *Label31;
  105.         TLabel *Label32;
  106.         TEdit *edtGEInterRamp14;
  107.         TEdit *edtGEInterRamp15;
  108.         TLabel *Label33;
  109.         TLabel *Label34;
  110.         TLabel *Label35;
  111.         TLabel *Label36;
  112.         TLabel *Label37;
  113.         TLabel *Label38;
  114.         TLabel *Label39;
  115.         TLabel *Label40;
  116.         TLabel *Label41;
  117.         TLabel *Label42;
  118.         TLabel *Label43;
  119.         TLabel *Label44;
  120.         TLabel *Label45;
  121.         TEdit *edtEGInterRamp00;
  122.         TEdit *edtEGInterRamp01;
  123.         TEdit *edtEGInterRamp02;
  124.         TEdit *edtEGInterRamp03;
  125.         TEdit *edtEGInterRamp04;
  126.         TEdit *edtEGInterRamp05;
  127.         TEdit *edtEGInterRamp06;
  128.         TEdit *edtEGInterRamp07;
  129.         TEdit *edtEGInterRamp08;
  130.         TEdit *edtEGInterRamp09;
  131.         TEdit *edtEGInterRamp10;
  132.         TEdit *edtEGInterRamp11;
  133.         TEdit *edtEGInterRamp12;
  134.         TEdit *edtEGInterRamp13;
  135.         TEdit *edtEGInterRamp14;
  136.         TEdit *edtEGInterRamp15;
  137.         TLabel *Label46;
  138.         TLabel *Label47;
  139.         TLabel *Label48;
  140.         TLabel *Label49;
  141.         TLabel *Label50;
  142.         TLabel *Label51;
  143.         TLabel *Label52;
  144.         TLabel *Label53;
  145.         TLabel *Label54;
  146.         TLabel *Label55;
  147.         TLabel *Label56;
  148.         TLabel *Label57;
  149.         TLabel *Label58;
  150.         TLabel *Label59;
  151.         TLabel *Label60;
  152.         TEdit *edtEEInterRamp00;
  153.         TEdit *edtEEInterRamp01;
  154.         TEdit *edtEEInterRamp02;
  155.         TEdit *edtEEInterRamp03;
  156.         TEdit *edtEEInterRamp04;
  157.         TEdit *edtEEInterRamp05;
  158.         TEdit *edtEEInterRamp06;
  159.         TEdit *edtEEInterRamp07;
  160.         TEdit *edtEEInterRamp08;
  161.         TEdit *edtEEInterRamp09;
  162.         TEdit *edtEEInterRamp10;
  163.         TEdit *edtEEInterRamp11;
  164.         TEdit *edtEEInterRamp12;
  165.         TEdit *edtEEInterRamp13;
  166.         TEdit *edtEEInterRamp14;
  167.         TLabel *Label61;
  168.         TLabel *Label62;
  169.         TLabel *Label63;
  170.         TEdit *edtEEInterRamp15;
  171.         TLabel *Label64;
  172.         TButton *btnUploadFromFlash;
  173.         TButton *btnDownloadToFlash;
  174.         TButton *btnChangeDB;
  175.         TButton *btnLoadFromFile;
  176.         TButton *btnSaveToFile;
  177.         TBitBtn *btnTXStart;
  178.         TBitBtn *btnTXStop;
  179.         TLabel *Label65;
  180.         TEdit *edtTestArfcn;
  181.         TTimer *HintTimer;
  182.         TOpenDialog *OpenDialog;
  183.         TSaveDialog *SaveDialog;
  184.         TStaticText *lblHint;
  185.         TStatusBar *sbISR;
  186.         void __fastcall HintTimerTimer(TObject *Sender);
  187.         void __fastcall btnGGLeftClick(TObject *Sender);
  188.         void __fastcall btnGGRightClick(TObject *Sender);
  189.         void __fastcall btnGELeftClick(TObject *Sender);
  190.         void __fastcall btnGERightClick(TObject *Sender);
  191.         void __fastcall btnEGLeftClick(TObject *Sender);
  192.         void __fastcall btnEGRightClick(TObject *Sender);
  193.         void __fastcall btnEELeftClick(TObject *Sender);
  194.         void __fastcall btnEERightClick(TObject *Sender);
  195.         void __fastcall edtGGInterRampCheck(TObject *Sender);
  196.         void __fastcall edtGEInterRampCheck(TObject *Sender);
  197.         void __fastcall edtEGInterRampCheck(TObject *Sender);
  198.         void __fastcall edtEEInterRampCheck(TObject *Sender);
  199.         void __fastcall btnUploadFromFlashClick(TObject *Sender);
  200.         void __fastcall btnDownloadToFlashClick(TObject *Sender);
  201.         void __fastcall btnChangeDBClick(TObject *Sender);
  202.         void __fastcall btnLoadFromFileClick(TObject *Sender);
  203.         void __fastcall btnSaveToFileClick(TObject *Sender);
  204.         void __fastcall btnTXStartClick(TObject *Sender);
  205.         void __fastcall edtArfcnCheck(TObject *Sender);
  206.         void __fastcall tclEpskInterRampChange(TObject *Sender);
  207.         void __fastcall FormCreate(TObject *Sender);
  208.         void __fastcall btnTXStopClick(TObject *Sender);
  209.         void __fastcall FormActivate(TObject *Sender);
  210. private: // User declarations
  211.         bool m_bInit;
  212.         bool m_bMultiSlotTxExSupport;
  213.         CRFEPSKINTERSLOTRAMP  m_RF_EPSK_INTER_SLOT_RAMP_Obj;
  214.         CRFMULTISLOTTX        m_RF_MULTI_SLOT_TX_Obj;
  215.         TEdit *edtInterRamp[EPSK_INTER_RAMP_SECTION_NUM][INTER_RAMP_SAMPLE_NUM];
  216.         E_BANDSEL m_eCurBand;
  217.         short m_sTestArfcn[MAX_SUPPORT_BAND_NUM];  // GSM900, DCS1800, PCS1900, GSM 850
  218.         int  m_iLastTabIndex;
  219.         l1cal_EPSK_interRampData_T  EPSK_Inter_RamTable[MAX_SUPPORT_BAND_NUM];
  220. public: // User declarations
  221.         __fastcall TfrmEpskInterSlotRampSetting(TComponent* Owner);
  222.         void Init(void);
  223.         // UI
  224.         void  ReDrawFields( void );
  225.         bool  CheckFields( void );
  226.         void  ShowHintLabel( TControl *sender, char* hint );
  227.         void  CurrentPageLock( void );
  228.         void  CurrentPageReset( void );
  229.         // callback
  230.         void  UploadFromFlashDone( void );
  231.         void  DownloadToFlashDone( void );
  232.         void  ConfirmCallback_MultiSlotTX( void );
  233. };
  234. //---------------------------------------------------------------------------
  235. extern PACKAGE TfrmEpskInterSlotRampSetting *frmEpskInterSlotRampSetting;
  236. //---------------------------------------------------------------------------
  237. #endif