form_CFGRxPathLoss.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_CFGRxPahtLoss.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   Maui META APP
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  RX path loss 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_CFGRxPathLossH
  67. #define form_CFGRxPathLossH
  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. #include "meta.h"
  78. //---------------------------------------------------------------------------
  79. class TfrmCFGRxPathLoss : public TForm
  80. {
  81. __published: // IDE-managed Components
  82.         TPanel *Panel1;
  83.         TPanel *Panel2;
  84.         TLabel *Label3;
  85.         TEdit *edtGSM400_MAX_RX_LOSS_0;
  86.         TEdit *edtGSM400_MAX_RX_LOSS_1;
  87.         TEdit *edtGSM400_MAX_RX_LOSS_2;
  88.         TEdit *edtGSM400_MAX_RX_LOSS_3;
  89.         TEdit *edtGSM400_MAX_RX_LOSS_4;
  90.         TEdit *edtGSM400_MAX_RX_LOSS_5;
  91.         TEdit *edtGSM400_MAX_RX_LOSS_6;
  92.         TEdit *edtGSM400_MAX_RX_LOSS_7;
  93.         TEdit *edtGSM400_MAX_RX_LOSS_8;
  94.         TEdit *edtGSM400_MAX_RX_LOSS_9;
  95.         TEdit *edtGSM400_MAX_RX_LOSS_10;
  96.         TEdit *edtGSM400_MAX_RX_LOSS_11;
  97.         TLabel *Label4;
  98.         TEdit *edtGSM400_MIN_RX_LOSS_0;
  99.         TEdit *edtGSM400_MIN_RX_LOSS_1;
  100.         TEdit *edtGSM400_MIN_RX_LOSS_2;
  101.         TEdit *edtGSM400_MIN_RX_LOSS_3;
  102.         TEdit *edtGSM400_MIN_RX_LOSS_4;
  103.         TEdit *edtGSM400_MIN_RX_LOSS_5;
  104.         TEdit *edtGSM400_MIN_RX_LOSS_6;
  105.         TEdit *edtGSM400_MIN_RX_LOSS_7;
  106.         TEdit *edtGSM400_MIN_RX_LOSS_8;
  107.         TEdit *edtGSM400_MIN_RX_LOSS_9;
  108.         TEdit *edtGSM400_MIN_RX_LOSS_10;
  109.         TEdit *edtGSM400_MIN_RX_LOSS_11;
  110.         TLabel *Label5;
  111.         TEdit *edtGSM850_MAX_RX_LOSS_0;
  112.         TEdit *edtGSM850_MAX_RX_LOSS_1;
  113.         TEdit *edtGSM850_MAX_RX_LOSS_2;
  114.         TEdit *edtGSM850_MAX_RX_LOSS_3;
  115.         TEdit *edtGSM850_MAX_RX_LOSS_4;
  116.         TEdit *edtGSM850_MAX_RX_LOSS_5;
  117.         TEdit *edtGSM850_MAX_RX_LOSS_6;
  118.         TEdit *edtGSM850_MAX_RX_LOSS_7;
  119.         TEdit *edtGSM850_MAX_RX_LOSS_8;
  120.         TEdit *edtGSM850_MAX_RX_LOSS_9;
  121.         TEdit *edtGSM850_MAX_RX_LOSS_10;
  122.         TEdit *edtGSM850_MAX_RX_LOSS_11;
  123.         TLabel *Label6;
  124.         TEdit *edtGSM850_MIN_RX_LOSS_0;
  125.         TEdit *edtGSM850_MIN_RX_LOSS_1;
  126.         TEdit *edtGSM850_MIN_RX_LOSS_2;
  127.         TEdit *edtGSM850_MIN_RX_LOSS_3;
  128.         TEdit *edtGSM850_MIN_RX_LOSS_4;
  129.         TEdit *edtGSM850_MIN_RX_LOSS_5;
  130.         TEdit *edtGSM850_MIN_RX_LOSS_6;
  131.         TEdit *edtGSM850_MIN_RX_LOSS_7;
  132.         TEdit *edtGSM850_MIN_RX_LOSS_8;
  133.         TEdit *edtGSM850_MIN_RX_LOSS_9;
  134.         TEdit *edtGSM850_MIN_RX_LOSS_10;
  135.         TEdit *edtGSM850_MIN_RX_LOSS_11;
  136.         TLabel *Label7;
  137.         TEdit *edtGSM900_MAX_RX_LOSS_0;
  138.         TEdit *edtGSM900_MAX_RX_LOSS_1;
  139.         TEdit *edtGSM900_MAX_RX_LOSS_2;
  140.         TEdit *edtGSM900_MAX_RX_LOSS_3;
  141.         TEdit *edtGSM900_MAX_RX_LOSS_4;
  142.         TEdit *edtGSM900_MAX_RX_LOSS_5;
  143.         TEdit *edtGSM900_MAX_RX_LOSS_6;
  144.         TEdit *edtGSM900_MAX_RX_LOSS_7;
  145.         TEdit *edtGSM900_MAX_RX_LOSS_8;
  146.         TEdit *edtGSM900_MAX_RX_LOSS_9;
  147.         TEdit *edtGSM900_MAX_RX_LOSS_10;
  148.         TEdit *edtGSM900_MAX_RX_LOSS_11;
  149.         TEdit *edtGSM900_MIN_RX_LOSS_0;
  150.         TLabel *Label8;
  151.         TEdit *edtGSM900_MIN_RX_LOSS_1;
  152.         TEdit *edtGSM900_MIN_RX_LOSS_2;
  153.         TEdit *edtGSM900_MIN_RX_LOSS_3;
  154.         TEdit *edtGSM900_MIN_RX_LOSS_4;
  155.         TEdit *edtGSM900_MIN_RX_LOSS_5;
  156.         TEdit *edtGSM900_MIN_RX_LOSS_6;
  157.         TEdit *edtGSM900_MIN_RX_LOSS_7;
  158.         TEdit *edtGSM900_MIN_RX_LOSS_8;
  159.         TEdit *edtGSM900_MIN_RX_LOSS_9;
  160.         TEdit *edtGSM900_MIN_RX_LOSS_10;
  161.         TEdit *edtGSM900_MIN_RX_LOSS_11;
  162.         TLabel *Label9;
  163.         TEdit *edtDCS1800_MAX_RX_LOSS_0;
  164.         TEdit *edtDCS1800_MAX_RX_LOSS_1;
  165.         TEdit *edtDCS1800_MAX_RX_LOSS_2;
  166.         TEdit *edtDCS1800_MAX_RX_LOSS_3;
  167.         TEdit *edtDCS1800_MAX_RX_LOSS_4;
  168.         TEdit *edtDCS1800_MAX_RX_LOSS_5;
  169.         TEdit *edtDCS1800_MAX_RX_LOSS_6;
  170.         TEdit *edtDCS1800_MAX_RX_LOSS_7;
  171.         TEdit *edtDCS1800_MAX_RX_LOSS_8;
  172.         TEdit *edtDCS1800_MAX_RX_LOSS_9;
  173.         TEdit *edtDCS1800_MAX_RX_LOSS_10;
  174.         TEdit *edtDCS1800_MAX_RX_LOSS_11;
  175.         TLabel *Label10;
  176.         TEdit *edtDCS1800_MIN_RX_LOSS_0;
  177.         TEdit *edtDCS1800_MIN_RX_LOSS_1;
  178.         TEdit *edtDCS1800_MIN_RX_LOSS_2;
  179.         TEdit *edtDCS1800_MIN_RX_LOSS_3;
  180.         TEdit *edtDCS1800_MIN_RX_LOSS_4;
  181.         TEdit *edtDCS1800_MIN_RX_LOSS_5;
  182.         TEdit *edtDCS1800_MIN_RX_LOSS_6;
  183.         TEdit *edtDCS1800_MIN_RX_LOSS_7;
  184.         TEdit *edtDCS1800_MIN_RX_LOSS_8;
  185.         TEdit *edtDCS1800_MIN_RX_LOSS_9;
  186.         TEdit *edtDCS1800_MIN_RX_LOSS_10;
  187.         TEdit *edtDCS1800_MIN_RX_LOSS_11;
  188.         TLabel *Label11;
  189.         TEdit *edtPCS1900_MAX_RX_LOSS_0;
  190.         TEdit *edtPCS1900_MAX_RX_LOSS_1;
  191.         TEdit *edtPCS1900_MAX_RX_LOSS_2;
  192.         TEdit *edtPCS1900_MAX_RX_LOSS_3;
  193.         TEdit *edtPCS1900_MAX_RX_LOSS_4;
  194.         TEdit *edtPCS1900_MAX_RX_LOSS_5;
  195.         TEdit *edtPCS1900_MAX_RX_LOSS_6;
  196.         TEdit *edtPCS1900_MAX_RX_LOSS_7;
  197.         TEdit *edtPCS1900_MAX_RX_LOSS_8;
  198.         TEdit *edtPCS1900_MAX_RX_LOSS_9;
  199.         TEdit *edtPCS1900_MAX_RX_LOSS_10;
  200.         TEdit *edtPCS1900_MAX_RX_LOSS_11;
  201.         TLabel *Label12;
  202.         TEdit *edtPCS1900_MIN_RX_LOSS_0;
  203.         TEdit *edtPCS1900_MIN_RX_LOSS_1;
  204.         TEdit *edtPCS1900_MIN_RX_LOSS_2;
  205.         TEdit *edtPCS1900_MIN_RX_LOSS_3;
  206.         TEdit *edtPCS1900_MIN_RX_LOSS_4;
  207.         TEdit *edtPCS1900_MIN_RX_LOSS_5;
  208.         TEdit *edtPCS1900_MIN_RX_LOSS_6;
  209.         TEdit *edtPCS1900_MIN_RX_LOSS_7;
  210.         TEdit *edtPCS1900_MIN_RX_LOSS_8;
  211.         TEdit *edtPCS1900_MIN_RX_LOSS_9;
  212.         TEdit *edtPCS1900_MIN_RX_LOSS_10;
  213.         TEdit *edtPCS1900_MIN_RX_LOSS_11;
  214.         TButton *btnLoadFromCFGFile;
  215.         TButton *btnSaveToCFGFile;
  216.         TSaveDialog *SaveDlg;
  217.         TOpenDialog *OpenDlg;
  218.         TStatusBar *sbCFGRxPathLoss;
  219.         TTimer *HintTimer;
  220.         TPanel *Panel3;
  221.         TPanel *Panel4;
  222.         TLabel *Label1;
  223.         TEdit *edtN_PM;
  224.         TLabel *Label2;
  225.         TComboBox *cbM_PM;
  226.         TStaticText *lblHint;
  227.         void __fastcall btnLoadFromCFGFileClick(TObject *Sender);
  228.         void __fastcall FormDestroy(TObject *Sender);
  229.         void __fastcall btnSaveToCFGFileClick(TObject *Sender);
  230.         void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  231.         void __fastcall FormShow(TObject *Sender);
  232.         void __fastcall edtGSM400_MAX_RX_LOSS_Check(TObject *Sender);
  233.         void __fastcall edtGSM400_MIN_RX_LOSS_Check(TObject *Sender);
  234.         void __fastcall edtGSM850_MAX_RX_LOSS_Check(TObject *Sender);
  235.         void __fastcall edtGSM850_MIN_RX_LOSS_Check(TObject *Sender);
  236.         void __fastcall edtGSM900_MAX_RX_LOSS_Check(TObject *Sender);
  237.         void __fastcall edtGSM900_MIN_RX_LOSS_Check(TObject *Sender);
  238.         void __fastcall edtDCS1800_MAX_RX_LOSS_Check(TObject *Sender);
  239.         void __fastcall edtDCS1800_MIN_RX_LOSS_Check(TObject *Sender);
  240.         void __fastcall edtPCS1900_MAX_RX_LOSS_Check(TObject *Sender);
  241.         void __fastcall edtPCS1900_MIN_RX_LOSS_Check(TObject *Sender);
  242.         void __fastcall edtN_PMCheck(TObject *Sender);
  243.         void __fastcall HintTimerTimer(TObject *Sender);
  244.         void __fastcall cbM_PMChange(TObject *Sender);
  245. private: // User declarations
  246.         TMETA_factory_cfg *cfg;
  247.         short iN_PM;
  248.         char cM_PM;
  249.         TEdit *edtMAX_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
  250.         TEdit *edtMIN_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
  251.         AnsiString as_MAX_RX_LOSS[FrequencyBandCount];
  252.         AnsiString as_MIN_RX_LOSS[FrequencyBandCount];
  253.         float f_MAX_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
  254.         float f_MIN_RX_LOSS[FrequencyBandCount][PLTABLE_SIZE];
  255. public: // User declarations
  256.         __fastcall TfrmCFGRxPathLoss(TComponent* Owner);
  257.         void  InitRxPathLoss( void );
  258.         bool  CheckFields( void );
  259.         void  ShowHintLabel( TControl *sender, char* hint );
  260.         void  edtMaxPathLossCheck(int idx, TObject *Sender);
  261.         void  edtMinPathLossCheck(int idx, TObject *Sender);
  262. };
  263. //---------------------------------------------------------------------------
  264. extern PACKAGE TfrmCFGRxPathLoss *frmCFGRxPathLoss;
  265. //---------------------------------------------------------------------------
  266. #endif