form_CFGRxPathLoss.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_CFGRxPahtLoss.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * RX path loss 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_CFGRxPathLossH
- #define form_CFGRxPathLossH
- //---------------------------------------------------------------------------
- #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"
- #include "meta.h"
- //---------------------------------------------------------------------------
- class TfrmCFGRxPathLoss : public TForm
- {
- __published: // IDE-managed Components
- TPanel *Panel1;
- TPanel *Panel2;
- TLabel *Label3;
- TEdit *edtGSM400_MAX_RX_LOSS_0;
- TEdit *edtGSM400_MAX_RX_LOSS_1;
- TEdit *edtGSM400_MAX_RX_LOSS_2;
- TEdit *edtGSM400_MAX_RX_LOSS_3;
- TEdit *edtGSM400_MAX_RX_LOSS_4;
- TEdit *edtGSM400_MAX_RX_LOSS_5;
- TEdit *edtGSM400_MAX_RX_LOSS_6;
- TEdit *edtGSM400_MAX_RX_LOSS_7;
- TEdit *edtGSM400_MAX_RX_LOSS_8;
- TEdit *edtGSM400_MAX_RX_LOSS_9;
- TEdit *edtGSM400_MAX_RX_LOSS_10;
- TEdit *edtGSM400_MAX_RX_LOSS_11;
- TLabel *Label4;
- TEdit *edtGSM400_MIN_RX_LOSS_0;
- TEdit *edtGSM400_MIN_RX_LOSS_1;
- TEdit *edtGSM400_MIN_RX_LOSS_2;
- TEdit *edtGSM400_MIN_RX_LOSS_3;
- TEdit *edtGSM400_MIN_RX_LOSS_4;
- TEdit *edtGSM400_MIN_RX_LOSS_5;
- TEdit *edtGSM400_MIN_RX_LOSS_6;
- TEdit *edtGSM400_MIN_RX_LOSS_7;
- TEdit *edtGSM400_MIN_RX_LOSS_8;
- TEdit *edtGSM400_MIN_RX_LOSS_9;
- TEdit *edtGSM400_MIN_RX_LOSS_10;
- TEdit *edtGSM400_MIN_RX_LOSS_11;
- TLabel *Label5;
- TEdit *edtGSM850_MAX_RX_LOSS_0;
- TEdit *edtGSM850_MAX_RX_LOSS_1;
- TEdit *edtGSM850_MAX_RX_LOSS_2;
- TEdit *edtGSM850_MAX_RX_LOSS_3;
- TEdit *edtGSM850_MAX_RX_LOSS_4;
- TEdit *edtGSM850_MAX_RX_LOSS_5;
- TEdit *edtGSM850_MAX_RX_LOSS_6;
- TEdit *edtGSM850_MAX_RX_LOSS_7;
- TEdit *edtGSM850_MAX_RX_LOSS_8;
- TEdit *edtGSM850_MAX_RX_LOSS_9;
- TEdit *edtGSM850_MAX_RX_LOSS_10;
- TEdit *edtGSM850_MAX_RX_LOSS_11;
- TLabel *Label6;
- TEdit *edtGSM850_MIN_RX_LOSS_0;
- TEdit *edtGSM850_MIN_RX_LOSS_1;
- TEdit *edtGSM850_MIN_RX_LOSS_2;
- TEdit *edtGSM850_MIN_RX_LOSS_3;
- TEdit *edtGSM850_MIN_RX_LOSS_4;
- TEdit *edtGSM850_MIN_RX_LOSS_5;
- TEdit *edtGSM850_MIN_RX_LOSS_6;
- TEdit *edtGSM850_MIN_RX_LOSS_7;
- TEdit *edtGSM850_MIN_RX_LOSS_8;
- TEdit *edtGSM850_MIN_RX_LOSS_9;
- TEdit *edtGSM850_MIN_RX_LOSS_10;
- TEdit *edtGSM850_MIN_RX_LOSS_11;
- TLabel *Label7;
- TEdit *edtGSM900_MAX_RX_LOSS_0;
- TEdit *edtGSM900_MAX_RX_LOSS_1;
- TEdit *edtGSM900_MAX_RX_LOSS_2;
- TEdit *edtGSM900_MAX_RX_LOSS_3;
- TEdit *edtGSM900_MAX_RX_LOSS_4;
- TEdit *edtGSM900_MAX_RX_LOSS_5;
- TEdit *edtGSM900_MAX_RX_LOSS_6;
- TEdit *edtGSM900_MAX_RX_LOSS_7;
- TEdit *edtGSM900_MAX_RX_LOSS_8;
- TEdit *edtGSM900_MAX_RX_LOSS_9;
- TEdit *edtGSM900_MAX_RX_LOSS_10;
- TEdit *edtGSM900_MAX_RX_LOSS_11;
- TEdit *edtGSM900_MIN_RX_LOSS_0;
- TLabel *Label8;
- TEdit *edtGSM900_MIN_RX_LOSS_1;
- TEdit *edtGSM900_MIN_RX_LOSS_2;
- TEdit *edtGSM900_MIN_RX_LOSS_3;
- TEdit *edtGSM900_MIN_RX_LOSS_4;
- TEdit *edtGSM900_MIN_RX_LOSS_5;
- TEdit *edtGSM900_MIN_RX_LOSS_6;
- TEdit *edtGSM900_MIN_RX_LOSS_7;
- TEdit *edtGSM900_MIN_RX_LOSS_8;
- TEdit *edtGSM900_MIN_RX_LOSS_9;
- TEdit *edtGSM900_MIN_RX_LOSS_10;
- TEdit *edtGSM900_MIN_RX_LOSS_11;
- TLabel *Label9;
- TEdit *edtDCS1800_MAX_RX_LOSS_0;
- TEdit *edtDCS1800_MAX_RX_LOSS_1;
- TEdit *edtDCS1800_MAX_RX_LOSS_2;
- TEdit *edtDCS1800_MAX_RX_LOSS_3;
- TEdit *edtDCS1800_MAX_RX_LOSS_4;
- TEdit *edtDCS1800_MAX_RX_LOSS_5;
- TEdit *edtDCS1800_MAX_RX_LOSS_6;
- TEdit *edtDCS1800_MAX_RX_LOSS_7;
- TEdit *edtDCS1800_MAX_RX_LOSS_8;
- TEdit *edtDCS1800_MAX_RX_LOSS_9;
- TEdit *edtDCS1800_MAX_RX_LOSS_10;
- TEdit *edtDCS1800_MAX_RX_LOSS_11;
- TLabel *Label10;
- TEdit *edtDCS1800_MIN_RX_LOSS_0;
- TEdit *edtDCS1800_MIN_RX_LOSS_1;
- TEdit *edtDCS1800_MIN_RX_LOSS_2;
- TEdit *edtDCS1800_MIN_RX_LOSS_3;
- TEdit *edtDCS1800_MIN_RX_LOSS_4;
- TEdit *edtDCS1800_MIN_RX_LOSS_5;
- TEdit *edtDCS1800_MIN_RX_LOSS_6;
- TEdit *edtDCS1800_MIN_RX_LOSS_7;
- TEdit *edtDCS1800_MIN_RX_LOSS_8;
- TEdit *edtDCS1800_MIN_RX_LOSS_9;
- TEdit *edtDCS1800_MIN_RX_LOSS_10;
- TEdit *edtDCS1800_MIN_RX_LOSS_11;
- TLabel *Label11;
- TEdit *edtPCS1900_MAX_RX_LOSS_0;
- TEdit *edtPCS1900_MAX_RX_LOSS_1;
- TEdit *edtPCS1900_MAX_RX_LOSS_2;
- TEdit *edtPCS1900_MAX_RX_LOSS_3;
- TEdit *edtPCS1900_MAX_RX_LOSS_4;
- TEdit *edtPCS1900_MAX_RX_LOSS_5;
- TEdit *edtPCS1900_MAX_RX_LOSS_6;
- TEdit *edtPCS1900_MAX_RX_LOSS_7;
- TEdit *edtPCS1900_MAX_RX_LOSS_8;
- TEdit *edtPCS1900_MAX_RX_LOSS_9;
- TEdit *edtPCS1900_MAX_RX_LOSS_10;
- TEdit *edtPCS1900_MAX_RX_LOSS_11;
- TLabel *Label12;
- TEdit *edtPCS1900_MIN_RX_LOSS_0;
- TEdit *edtPCS1900_MIN_RX_LOSS_1;
- TEdit *edtPCS1900_MIN_RX_LOSS_2;
- TEdit *edtPCS1900_MIN_RX_LOSS_3;
- TEdit *edtPCS1900_MIN_RX_LOSS_4;
- TEdit *edtPCS1900_MIN_RX_LOSS_5;
- TEdit *edtPCS1900_MIN_RX_LOSS_6;
- TEdit *edtPCS1900_MIN_RX_LOSS_7;
- TEdit *edtPCS1900_MIN_RX_LOSS_8;
- TEdit *edtPCS1900_MIN_RX_LOSS_9;
- TEdit *edtPCS1900_MIN_RX_LOSS_10;
- TEdit *edtPCS1900_MIN_RX_LOSS_11;
- TButton *btnLoadFromCFGFile;
- TButton *btnSaveToCFGFile;
- TSaveDialog *SaveDlg;
- TOpenDialog *OpenDlg;
- TStatusBar *sbCFGRxPathLoss;
- TTimer *HintTimer;
- TPanel *Panel3;
- TPanel *Panel4;
- TLabel *Label1;
- TEdit *edtN_PM;
- TLabel *Label2;
- TComboBox *cbM_PM;
- TStaticText *lblHint;
- void __fastcall btnLoadFromCFGFileClick(TObject *Sender);
- void __fastcall FormDestroy(TObject *Sender);
- void __fastcall btnSaveToCFGFileClick(TObject *Sender);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall FormShow(TObject *Sender);
- void __fastcall edtGSM400_MAX_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtGSM400_MIN_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtGSM850_MAX_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtGSM850_MIN_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtGSM900_MAX_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtGSM900_MIN_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtDCS1800_MAX_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtDCS1800_MIN_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtPCS1900_MAX_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtPCS1900_MIN_RX_LOSS_Check(TObject *Sender);
- void __fastcall edtN_PMCheck(TObject *Sender);
- void __fastcall HintTimerTimer(TObject *Sender);
- void __fastcall cbM_PMChange(TObject *Sender);
- private: // User declarations
- TMETA_factory_cfg *cfg;
- short iN_PM;
- char cM_PM;
- TEdit *edtMAX_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
- TEdit *edtMIN_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
- AnsiString as_MAX_RX_LOSS[FrequencyBandCount];
- AnsiString as_MIN_RX_LOSS[FrequencyBandCount];
- float f_MAX_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
- float f_MIN_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
- public: // User declarations
- __fastcall TfrmCFGRxPathLoss(TComponent* Owner);
- void InitRxPathLoss( void );
- bool CheckFields( void );
- void ShowHintLabel( TControl *sender, char* hint );
- void edtMaxPathLossCheck(int idx, TObject *Sender);
- void edtMinPathLossCheck(int idx, TObject *Sender);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmCFGRxPathLoss *frmCFGRxPathLoss;
- //---------------------------------------------------------------------------
- #endif