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

MTK

开发平台:

C++ Builder

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  *   form_CFGTxPcl.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   Maui META APP
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  TX PCL CFG form header
  48.  *
  49.  * Author:
  50.  * -------
  51.  *  Andy Ueng (mtk00490)
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * $Revision$
  58.  * $Modtime$
  59.  * $Log$
  60.  * 
  61.  *------------------------------------------------------------------------------
  62.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  63.  *============================================================================
  64.  ****************************************************************************/
  65. //---------------------------------------------------------------------------
  66. #ifndef _FORM_CFGTXPCL_H_
  67. #define _FORM_CFGTXPCL_H_
  68. //---------------------------------------------------------------------------
  69. #include <Classes.hpp>
  70. #include <Controls.hpp>
  71. #include <StdCtrls.hpp>
  72. #include <Forms.hpp>
  73. #include <ExtCtrls.hpp>
  74. #include <ComCtrls.hpp>
  75. #include <Dialogs.hpp>
  76. #include "META_factory_cfg.h"
  77. #define GSM_400_TAB_INDEX  0
  78. #define GSM_850_TAB_INDEX  1
  79. #define GSM_900_TAB_INDEX  2
  80. #define DCS_1800_TAB_INDEX 3
  81. #define PCS_1900_TAB_INDEX 4
  82. #define  DRAW_CFG_CAL_PCL          0x001
  83. #define  DRAW_CFG_PCL              0x002
  84. #define  DRAW_CFG_CHECK_PCL        0x004
  85. #define  DRAW_CFG_MAX_P            0x008
  86. #define  DRAW_CFG_WANTED_P         0x010
  87. #define  DRAW_CFG_MIN_P            0x020
  88. #define  DRAW_CFG_C                0x040
  89. #define  DRAW_CFG_CORRECTION       0x080
  90. #define  DRAW_CFG_TSC              0x100
  91. #define  DRAW_CFG_RECURSIVE_TIMES  0x200
  92. #define  DRAW_CFG_APC_DELTA        0x400
  93. #define  DRAW_CFG_APC_CHECK        0x800
  94. //---------------------------------------------------------------------------
  95. class TfrmCFGTxPcl : public TForm
  96. {
  97. __published: // IDE-managed Components
  98.         TTabControl *tctlAPC;
  99.         TPanel *Panel3;
  100.         TPanel *Panel1;
  101.         TPanel *Panel2;
  102.         TLabel *Label1;
  103.         TEdit *edtCAL_PCL0;
  104.         TEdit *edtCAL_PCL1;
  105.         TEdit *edtCAL_PCL2;
  106.         TPanel *Panel4;
  107.         TLabel *Label2;
  108.         TEdit *edtPCL00;
  109.         TEdit *edtPCL01;
  110.         TEdit *edtPCL02;
  111.         TEdit *edtPCL03;
  112.         TEdit *edtPCL04;
  113.         TEdit *edtPCL05;
  114.         TEdit *edtPCL06;
  115.         TEdit *edtPCL07;
  116.         TEdit *edtPCL08;
  117.         TEdit *edtPCL09;
  118.         TEdit *edtPCL10;
  119.         TEdit *edtPCL11;
  120.         TEdit *edtPCL12;
  121.         TEdit *edtPCL13;
  122.         TEdit *edtPCL14;
  123.         TEdit *edtPCL15;
  124.         TPanel *Panel5;
  125.         TLabel *Label3;
  126.         TEdit *edtCHECK_PCL00;
  127.         TEdit *edtCHECK_PCL01;
  128.         TEdit *edtCHECK_PCL02;
  129.         TEdit *edtCHECK_PCL03;
  130.         TEdit *edtCHECK_PCL04;
  131.         TEdit *edtCHECK_PCL05;
  132.         TEdit *edtCHECK_PCL06;
  133.         TEdit *edtCHECK_PCL07;
  134.         TEdit *edtCHECK_PCL08;
  135.         TEdit *edtCHECK_PCL09;
  136.         TEdit *edtCHECK_PCL10;
  137.         TEdit *edtCHECK_PCL11;
  138.         TEdit *edtCHECK_PCL12;
  139.         TEdit *edtCHECK_PCL13;
  140.         TEdit *edtCHECK_PCL14;
  141.         TEdit *edtCHECK_PCL15;
  142.         TPanel *Panel6;
  143.         TLabel *Label4;
  144.         TEdit *edtMAX_P00;
  145.         TEdit *edtMAX_P01;
  146.         TEdit *edtMAX_P02;
  147.         TEdit *edtMAX_P03;
  148.         TEdit *edtMAX_P04;
  149.         TEdit *edtMAX_P05;
  150.         TEdit *edtMAX_P06;
  151.         TEdit *edtMAX_P07;
  152.         TEdit *edtMAX_P08;
  153.         TEdit *edtMAX_P09;
  154.         TEdit *edtMAX_P10;
  155.         TEdit *edtMAX_P11;
  156.         TEdit *edtMAX_P12;
  157.         TEdit *edtMAX_P13;
  158.         TEdit *edtMAX_P14;
  159.         TEdit *edtMAX_P15;
  160.         TPanel *Panel7;
  161.         TPanel *Panel8;
  162.         TLabel *Label5;
  163.         TEdit *edtWANTED_P00;
  164.         TEdit *edtWANTED_P01;
  165.         TEdit *edtWANTED_P02;
  166.         TEdit *edtWANTED_P03;
  167.         TEdit *edtWANTED_P04;
  168.         TEdit *edtWANTED_P05;
  169.         TEdit *edtWANTED_P06;
  170.         TEdit *edtWANTED_P07;
  171.         TEdit *edtWANTED_P08;
  172.         TEdit *edtWANTED_P09;
  173.         TEdit *edtWANTED_P10;
  174.         TEdit *edtWANTED_P11;
  175.         TEdit *edtWANTED_P12;
  176.         TEdit *edtWANTED_P13;
  177.         TEdit *edtWANTED_P14;
  178.         TEdit *edtWANTED_P15;
  179.         TPanel *Panel9;
  180.         TLabel *Label6;
  181.         TEdit *edtMIN_P00;
  182.         TEdit *edtMIN_P01;
  183.         TEdit *edtMIN_P02;
  184.         TEdit *edtMIN_P03;
  185.         TEdit *edtMIN_P04;
  186.         TEdit *edtMIN_P05;
  187.         TEdit *edtMIN_P06;
  188.         TEdit *edtMIN_P07;
  189.         TEdit *edtMIN_P08;
  190.         TEdit *edtMIN_P09;
  191.         TEdit *edtMIN_P10;
  192.         TEdit *edtMIN_P11;
  193.         TEdit *edtMIN_P12;
  194.         TEdit *edtMIN_P13;
  195.         TEdit *edtMIN_P14;
  196.         TEdit *edtMIN_P15;
  197.         TLabel *Label7;
  198.         TEdit *edtC00;
  199.         TEdit *edtC01;
  200.         TEdit *edtC02;
  201.         TEdit *edtC03;
  202.         TEdit *edtC04;
  203.         TEdit *edtC05;
  204.         TEdit *edtC06;
  205.         TEdit *edtC07;
  206.         TEdit *edtC08;
  207.         TEdit *edtC09;
  208.         TEdit *edtC10;
  209.         TEdit *edtC11;
  210.         TEdit *edtC12;
  211.         TEdit *edtC13;
  212.         TEdit *edtC14;
  213.         TEdit *edtC15;
  214.         TPanel *Panel10;
  215.         TLabel *Label8;
  216.         TEdit *edtCORRECTION00;
  217.         TEdit *edtCORRECTION01;
  218.         TEdit *edtCORRECTION02;
  219.         TEdit *edtCORRECTION03;
  220.         TEdit *edtCORRECTION04;
  221.         TEdit *edtCORRECTION05;
  222.         TEdit *edtCORRECTION06;
  223.         TEdit *edtCORRECTION07;
  224.         TEdit *edtCORRECTION08;
  225.         TEdit *edtCORRECTION09;
  226.         TEdit *edtCORRECTION10;
  227.         TEdit *edtCORRECTION11;
  228.         TEdit *edtCORRECTION12;
  229.         TEdit *edtCORRECTION13;
  230.         TEdit *edtCORRECTION14;
  231.         TEdit *edtCORRECTION15;
  232.         TButton *btnLoadFromCFGFile;
  233.         TButton *btnSaveToCFGFile;
  234.         TStatusBar *sbCFGTxPcl;
  235.         TOpenDialog *OpenDlg;
  236.         TSaveDialog *SaveDlg;
  237.         TStaticText *lblHint;
  238.         TTimer *HintTimer;
  239.         TPanel *Panel11;
  240.         TLabel *Label9;
  241.         TEdit *edtTSC;
  242.         TLabel *ed;
  243.         TEdit *edtRecursiveTimes;
  244.         TLabel *Label10;
  245.         TEdit *edtAPCDelta;
  246.         TLabel *Label11;
  247.         TComboBox *cbAPCCheck;
  248.         void __fastcall HintTimerTimer(TObject *Sender);
  249.         void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  250.         void __fastcall edtCAL_PCLCheck(TObject *Sender);
  251.         void __fastcall edtPCLCheck(TObject *Sender);
  252.         void __fastcall edtCHECK_PCLCheck(TObject *Sender);
  253.         void __fastcall edtMAX_PCheck(TObject *Sender);
  254.         void __fastcall edtWANTED_PCheck(TObject *Sender);
  255.         void __fastcall edtMIN_PCheck(TObject *Sender);
  256.         void __fastcall edtCCheck(TObject *Sender);
  257.         void __fastcall edtCORRECTIONCheck(TObject *Sender);
  258.         void __fastcall btnLoadFromCFGFileClick(TObject *Sender);
  259.         void __fastcall FormShow(TObject *Sender);
  260.         void __fastcall tctlAPCChange(TObject *Sender);
  261.         void __fastcall edtRecursiveTimesCheck(TObject *Sender);
  262.         void __fastcall edtTSCCheck(TObject *Sender);
  263.         void __fastcall edtAPCDeltaCheck(TObject *Sender);
  264.         void __fastcall btnSaveToCFGFileClick(TObject *Sender);
  265.         
  266. private: // User declarations
  267.         TMETA_factory_cfg *cfg;
  268.         int CurBand;
  269.         int i_CAL_PCL[5][3];
  270.         int i_2CAL_PCL[5][3];
  271.         int i_PCL[5][16];
  272.         int i_CHECK_PCL[5][16];
  273.         char c_TSC;
  274.         int i_Recursive_Times;
  275.         bool m_bAPCCheck;
  276.         double d_MAX_P[5][16];
  277.         double d_WANTED_P[5][16];
  278.         double d_MIN_P[5][16];
  279.         double d_CORRECTION[5][16];
  280.         double d_C[5][16];
  281.         double d_APC_Delta;
  282.         TEdit *edtCAL_PCL[3];
  283.         TEdit *edtPCL[16];
  284.         TEdit *edtCHECK_PCL[16];
  285.         TEdit *edtMAX_P[16];
  286.         TEdit *edtWANTED_P[16];
  287.         TEdit *edtMIN_P[16];
  288.         TEdit *edtC[16];
  289.         TEdit *edtCORRECTION[16];
  290.         
  291. public: // User declarations
  292.         __fastcall TfrmCFGTxPcl(TComponent* Owner);
  293.         void ShowHintLabel( TControl *sender, char* hint );
  294.         void ReDrawFields( int draw_mask );
  295.         bool CheckFields( void );
  296. };
  297. //---------------------------------------------------------------------------
  298. extern PACKAGE TfrmCFGTxPcl *frmCFGTxPcl;
  299. //---------------------------------------------------------------------------
  300. #endif