form_CFGTxPcl.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:11k
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * form_CFGTxPcl.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * TX PCL CFG form header
- *
- * Author:
- * -------
- * Andy Ueng (mtk00490)
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * $Revision$
- * $Modtime$
- * $Log$
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- //---------------------------------------------------------------------------
- #ifndef _FORM_CFGTXPCL_H_
- #define _FORM_CFGTXPCL_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ExtCtrls.hpp>
- #include <ComCtrls.hpp>
- #include <Dialogs.hpp>
- #include "META_factory_cfg.h"
- #define GSM_400_TAB_INDEX 0
- #define GSM_850_TAB_INDEX 1
- #define GSM_900_TAB_INDEX 2
- #define DCS_1800_TAB_INDEX 3
- #define PCS_1900_TAB_INDEX 4
- #define DRAW_CFG_CAL_PCL 0x001
- #define DRAW_CFG_PCL 0x002
- #define DRAW_CFG_CHECK_PCL 0x004
- #define DRAW_CFG_MAX_P 0x008
- #define DRAW_CFG_WANTED_P 0x010
- #define DRAW_CFG_MIN_P 0x020
- #define DRAW_CFG_C 0x040
- #define DRAW_CFG_CORRECTION 0x080
- #define DRAW_CFG_TSC 0x100
- #define DRAW_CFG_RECURSIVE_TIMES 0x200
- #define DRAW_CFG_APC_DELTA 0x400
- #define DRAW_CFG_APC_CHECK 0x800
- //---------------------------------------------------------------------------
- class TfrmCFGTxPcl : public TForm
- {
- __published: // IDE-managed Components
- TTabControl *tctlAPC;
- TPanel *Panel3;
- TPanel *Panel1;
- TPanel *Panel2;
- TLabel *Label1;
- TEdit *edtCAL_PCL0;
- TEdit *edtCAL_PCL1;
- TEdit *edtCAL_PCL2;
- TPanel *Panel4;
- TLabel *Label2;
- TEdit *edtPCL00;
- TEdit *edtPCL01;
- TEdit *edtPCL02;
- TEdit *edtPCL03;
- TEdit *edtPCL04;
- TEdit *edtPCL05;
- TEdit *edtPCL06;
- TEdit *edtPCL07;
- TEdit *edtPCL08;
- TEdit *edtPCL09;
- TEdit *edtPCL10;
- TEdit *edtPCL11;
- TEdit *edtPCL12;
- TEdit *edtPCL13;
- TEdit *edtPCL14;
- TEdit *edtPCL15;
- TPanel *Panel5;
- TLabel *Label3;
- TEdit *edtCHECK_PCL00;
- TEdit *edtCHECK_PCL01;
- TEdit *edtCHECK_PCL02;
- TEdit *edtCHECK_PCL03;
- TEdit *edtCHECK_PCL04;
- TEdit *edtCHECK_PCL05;
- TEdit *edtCHECK_PCL06;
- TEdit *edtCHECK_PCL07;
- TEdit *edtCHECK_PCL08;
- TEdit *edtCHECK_PCL09;
- TEdit *edtCHECK_PCL10;
- TEdit *edtCHECK_PCL11;
- TEdit *edtCHECK_PCL12;
- TEdit *edtCHECK_PCL13;
- TEdit *edtCHECK_PCL14;
- TEdit *edtCHECK_PCL15;
- TPanel *Panel6;
- TLabel *Label4;
- TEdit *edtMAX_P00;
- TEdit *edtMAX_P01;
- TEdit *edtMAX_P02;
- TEdit *edtMAX_P03;
- TEdit *edtMAX_P04;
- TEdit *edtMAX_P05;
- TEdit *edtMAX_P06;
- TEdit *edtMAX_P07;
- TEdit *edtMAX_P08;
- TEdit *edtMAX_P09;
- TEdit *edtMAX_P10;
- TEdit *edtMAX_P11;
- TEdit *edtMAX_P12;
- TEdit *edtMAX_P13;
- TEdit *edtMAX_P14;
- TEdit *edtMAX_P15;
- TPanel *Panel7;
- TPanel *Panel8;
- TLabel *Label5;
- TEdit *edtWANTED_P00;
- TEdit *edtWANTED_P01;
- TEdit *edtWANTED_P02;
- TEdit *edtWANTED_P03;
- TEdit *edtWANTED_P04;
- TEdit *edtWANTED_P05;
- TEdit *edtWANTED_P06;
- TEdit *edtWANTED_P07;
- TEdit *edtWANTED_P08;
- TEdit *edtWANTED_P09;
- TEdit *edtWANTED_P10;
- TEdit *edtWANTED_P11;
- TEdit *edtWANTED_P12;
- TEdit *edtWANTED_P13;
- TEdit *edtWANTED_P14;
- TEdit *edtWANTED_P15;
- TPanel *Panel9;
- TLabel *Label6;
- TEdit *edtMIN_P00;
- TEdit *edtMIN_P01;
- TEdit *edtMIN_P02;
- TEdit *edtMIN_P03;
- TEdit *edtMIN_P04;
- TEdit *edtMIN_P05;
- TEdit *edtMIN_P06;
- TEdit *edtMIN_P07;
- TEdit *edtMIN_P08;
- TEdit *edtMIN_P09;
- TEdit *edtMIN_P10;
- TEdit *edtMIN_P11;
- TEdit *edtMIN_P12;
- TEdit *edtMIN_P13;
- TEdit *edtMIN_P14;
- TEdit *edtMIN_P15;
- TLabel *Label7;
- TEdit *edtC00;
- TEdit *edtC01;
- TEdit *edtC02;
- TEdit *edtC03;
- TEdit *edtC04;
- TEdit *edtC05;
- TEdit *edtC06;
- TEdit *edtC07;
- TEdit *edtC08;
- TEdit *edtC09;
- TEdit *edtC10;
- TEdit *edtC11;
- TEdit *edtC12;
- TEdit *edtC13;
- TEdit *edtC14;
- TEdit *edtC15;
- TPanel *Panel10;
- TLabel *Label8;
- TEdit *edtCORRECTION00;
- TEdit *edtCORRECTION01;
- TEdit *edtCORRECTION02;
- TEdit *edtCORRECTION03;
- TEdit *edtCORRECTION04;
- TEdit *edtCORRECTION05;
- TEdit *edtCORRECTION06;
- TEdit *edtCORRECTION07;
- TEdit *edtCORRECTION08;
- TEdit *edtCORRECTION09;
- TEdit *edtCORRECTION10;
- TEdit *edtCORRECTION11;
- TEdit *edtCORRECTION12;
- TEdit *edtCORRECTION13;
- TEdit *edtCORRECTION14;
- TEdit *edtCORRECTION15;
- TButton *btnLoadFromCFGFile;
- TButton *btnSaveToCFGFile;
- TStatusBar *sbCFGTxPcl;
- TOpenDialog *OpenDlg;
- TSaveDialog *SaveDlg;
- TStaticText *lblHint;
- TTimer *HintTimer;
- TPanel *Panel11;
- TLabel *Label9;
- TEdit *edtTSC;
- TLabel *ed;
- TEdit *edtRecursiveTimes;
- TLabel *Label10;
- TEdit *edtAPCDelta;
- TLabel *Label11;
- TComboBox *cbAPCCheck;
- void __fastcall HintTimerTimer(TObject *Sender);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall edtCAL_PCLCheck(TObject *Sender);
- void __fastcall edtPCLCheck(TObject *Sender);
- void __fastcall edtCHECK_PCLCheck(TObject *Sender);
- void __fastcall edtMAX_PCheck(TObject *Sender);
- void __fastcall edtWANTED_PCheck(TObject *Sender);
- void __fastcall edtMIN_PCheck(TObject *Sender);
- void __fastcall edtCCheck(TObject *Sender);
- void __fastcall edtCORRECTIONCheck(TObject *Sender);
- void __fastcall btnLoadFromCFGFileClick(TObject *Sender);
- void __fastcall FormShow(TObject *Sender);
- void __fastcall tctlAPCChange(TObject *Sender);
- void __fastcall edtRecursiveTimesCheck(TObject *Sender);
- void __fastcall edtTSCCheck(TObject *Sender);
- void __fastcall edtAPCDeltaCheck(TObject *Sender);
- void __fastcall btnSaveToCFGFileClick(TObject *Sender);
-
- private: // User declarations
- TMETA_factory_cfg *cfg;
- int CurBand;
- int i_CAL_PCL[5][3];
- int i_2CAL_PCL[5][3];
- int i_PCL[5][16];
- int i_CHECK_PCL[5][16];
- char c_TSC;
- int i_Recursive_Times;
- bool m_bAPCCheck;
- double d_MAX_P[5][16];
- double d_WANTED_P[5][16];
- double d_MIN_P[5][16];
- double d_CORRECTION[5][16];
- double d_C[5][16];
- double d_APC_Delta;
- TEdit *edtCAL_PCL[3];
- TEdit *edtPCL[16];
- TEdit *edtCHECK_PCL[16];
- TEdit *edtMAX_P[16];
- TEdit *edtWANTED_P[16];
- TEdit *edtMIN_P[16];
- TEdit *edtC[16];
- TEdit *edtCORRECTION[16];
-
- public: // User declarations
- __fastcall TfrmCFGTxPcl(TComponent* Owner);
- void ShowHintLabel( TControl *sender, char* hint );
- void ReDrawFields( int draw_mask );
- bool CheckFields( void );
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmCFGTxPcl *frmCFGTxPcl;
- //---------------------------------------------------------------------------
- #endif