📄 property.h
字号:
// property.h
// 7/29/00
// n steffen
//
// class definitions for property pages/sheet for calibration parameters
//
#include "stdafx.h"
#ifndef USER_PARAMS
#include "user_params.h"
#endif
#ifndef _INC_CAL_TYPES_H_
#include "caltypes.h"
#endif
#define PLIST_SWVERSION "010413-01"
#define PLIST_REGISTRYKEY "Parameters"
#define PLIST_SWVERSIONKEY "SW_version"
#define PLIST_PARMTEMPLATEKEY "Parameter_template_filename"
#define PLIST_OUTPUTFILEKEY "Output_filename"
#define PLIST_PACTYPEKEY "PAC_type"
#define PLIST_TESTERTYPEKEY "Tester_type"
// registry key definitions for parameters
#define PLIST_GPIB_ADDRESS "GPIB_address"
#define PLIST_COM_PORT "Com_port"
#define PLIST_CAL_GSM "Cal_GSM"
#define PLIST_CAL_DCS "Cal_DCS"
#define PLIST_CAL_PCS "Cal_PCS"
#define PLIST_CAL_GSM850 "Cal_GSM850"
#define PLIST_GSM_TEST_CHANNEL "GSM_test_channel"
#define PLIST_GSM_HIGHEST_POWER "GSM_highest_power"
#define PLIST_GSM_RAMP_START "GSM_ramp_start"
#define PLIST_GSM_RAMP_END "GSM_ramp_end"
#define PLIST_GSM_TX_CABLE_LOSS "GSM_tx_cable_loss"
#define PLIST_GSM_RX_CABLE_LOSS "GSM_rx_cable_loss"
#define PLIST_DCS_TEST_CHANNEL "DCS_test_channel"
#define PLIST_DCS_HIGHEST_POWER "DCS_highest_power"
#define PLIST_DCS_RAMP_START "DCS_ramp_end"
#define PLIST_DCS_RAMP_END "DCS_ramp_end"
#define PLIST_DCS_TX_CABLE_LOSS "DCS_tx_cable_loss"
#define PLIST_DCS_RX_CABLE_LOSS "DCS_rx_cable_loss"
#define PLIST_PCS_TEST_CHANNEL "PCS_test_channel"
#define PLIST_PCS_HIGHEST_POWER "PCS_highest_power"
#define PLIST_PCS_RAMP_START "PCS_ramp_start"
#define PLIST_PCS_RAMP_END "PCS_ramp_end"
#define PLIST_PCS_TX_CABLE_LOSS "PCS_tx_cable_loss"
#define PLIST_PCS_RX_CABLE_LOSS "PCS_rx_cable_loss"
#define PLIST_GSM850_TEST_CHANNEL "GSM850_test_channel"
#define PLIST_GSM850_HIGHEST_POWER "GSM850_highest_power"
#define PLIST_GSM850_RAMP_START "GSM850_ramp_start"
#define PLIST_GSM850_RAMP_END "GSM850_ramp_end"
#define PLIST_GSM850_TX_CABLE_LOSS "GSM850_tx_cable_loss"
#define PLIST_GSM850_RX_CABLE_LOSS "GSM850_rx_cable_loss"
#define PLIST_GSM_RAMP_LENGTH_UP "GSM_ramp_length_up"
#define PLIST_GSM_RAMP_LENGTH_DOWN "GSM_ramp_length_down"
#define PLIST_GSM_RAMP_DELTA_UP "GSM_ramp_delta_up"
#define PLIST_GSM_RAMP_DELTA_DOWN "GSM_ramp_delta_down"
#define PLIST_GSM_PEDESTAL_SLOPE "GSM_pedestal_slope"
#define PLIST_GSM_PEDESTAL_POWER "GSM_pedestal_power"
#define PLIST_GSM_LOW_POWER_DATA "GSM_low_power_data"
#define PLIST_DCS_RAMP_LENGTH_UP "DCS_ramp_length_up"
#define PLIST_DCS_RAMP_LENGTH_DOWN "DCS_ramp_length_down"
#define PLIST_DCS_RAMP_DELTA_UP "DCS_ramp_delta_up"
#define PLIST_DCS_RAMP_DELTA_DOWN "DCS_ramp_delta_down"
#define PLIST_DCS_PEDESTAL_SLOPE "DCS_pedestal_slope"
#define PLIST_DCS_PEDESTAL_POWER "DCS_pedestal_power"
#define PLIST_DCS_LOW_POWER_DATA "DCS_low_power_data"
#define PLIST_PCS_RAMP_LENGTH_UP "PCS_ramp_length_up"
#define PLIST_PCS_RAMP_LENGTH_DOWN "PCS_ramp_length_down"
#define PLIST_PCS_RAMP_DELTA_UP "PCS_ramp_delta_up"
#define PLIST_PCS_RAMP_DELTA_DOWN "PCS_ramp_delta_down"
#define PLIST_PCS_PEDESTAL_SLOPE "PCS_pedestal_slope"
#define PLIST_PCS_PEDESTAL_POWER "PCS_pedestal_power"
#define PLIST_PCS_LOW_POWER_DATA "PCS_low_power_data"
#define PLIST_GSM850_RAMP_LENGTH_UP "GSM850_ramp_length_up"
#define PLIST_GSM850_RAMP_LENGTH_DOWN "GSM850_ramp_length_down"
#define PLIST_GSM850_RAMP_DELTA_UP "GSM850_ramp_delta_up"
#define PLIST_GSM850_RAMP_DELTA_DOWN "GSM850_ramp_delta_down"
#define PLIST_GSM850_PEDESTAL_SLOPE "GSM850_pedestal_slope"
#define PLIST_GSM850_PEDESTAL_POWER "GSM850_pedestal_power"
#define PLIST_GSM850_LOW_POWER_DATA "GSM850_low_power_data"
#define PLIST_CAL_RX "Cal_Rx"
void set_parameters_in_registry(UserDefParm_t *params);
void get_parameters_from_registry(UserDefParm_t *params);
void save_parameter_template_in_registry(CString filename);
void save_output_filename_in_registry(CString filename);
void save_pac_type_in_registry(PACCalType_t);
PACCalType_t get_pac_type();
void save_tester_type_in_registry(TesterType_t);
TesterType_t get_tester_type();
CString get_parameter_template_filename();
CString get_output_filename();
class CGSMParameters : public CPropertyPage
{
public:
CGSMParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CDCSParameters : public CPropertyPage
{
public:
CDCSParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CPCSParameters : public CPropertyPage
{
public:
CPCSParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CGSM850Parameters : public CPropertyPage
{
public:
CGSM850Parameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CGeneralParameters : public CPropertyPage
{
public:
CGeneralParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CGSMRampParameters : public CPropertyPage
{
public:
CGSMRampParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CDCSRampParameters : public CPropertyPage
{
public:
CDCSRampParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CPCSRampParameters : public CPropertyPage
{
public:
CPCSRampParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CGSM850RampParameters : public CPropertyPage
{
public:
CGSM850RampParameters() : CPropertyPage()
{
};
BOOL OnInitDialog();
BOOL OnApply();
void OnOK();
DECLARE_MESSAGE_MAP()
};
class CParameterPropertySheet : public CPropertySheet
{
CGeneralParameters page1;
CGSMParameters page2;
CDCSParameters page3;
CPCSParameters page4;
CGSMRampParameters page5;
CDCSRampParameters page6;
CPCSRampParameters page7;
CGSM850RampParameters page8;
CGSM850Parameters page9;
public:
CParameterPropertySheet();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -