f824846d6f0248423ec0d1f4a35669c084178bdf
[public/netxms.git] / src / console / win32 / ObjectPropsStatus.cpp
1 // ObjectPropsStatus.cpp : implementation file
2 //
3
4 #include "stdafx.h"
5 #include "nxcon.h"
6 #include "ObjectPropsStatus.h"
7
8 #ifdef _DEBUG
9 #define new DEBUG_NEW
10 #undef THIS_FILE
11 static char THIS_FILE[] = __FILE__;
12 #endif
13
14 /////////////////////////////////////////////////////////////////////////////
15 // CObjectPropsStatus property page
16
17 IMPLEMENT_DYNCREATE(CObjectPropsStatus, CPropertyPage)
18
19 CObjectPropsStatus::CObjectPropsStatus() : CPropertyPage(CObjectPropsStatus::IDD)
20 {
21 //{{AFX_DATA_INIT(CObjectPropsStatus)
22 m_iRelChange = 0;
23 m_dSingleThreshold = 0.0;
24 m_dThreshold1 = 0.0;
25 m_dThreshold2 = 0.0;
26 m_dThreshold3 = 0.0;
27 m_dThreshold4 = 0.0;
28 m_iCalcAlg = -1;
29 m_iPropAlg = -1;
30 //}}AFX_DATA_INIT
31 }
32
33 CObjectPropsStatus::~CObjectPropsStatus()
34 {
35 }
36
37 void CObjectPropsStatus::DoDataExchange(CDataExchange* pDX)
38 {
39 CPropertyPage::DoDataExchange(pDX);
40 //{{AFX_DATA_MAP(CObjectPropsStatus)
41 DDX_Control(pDX, IDC_COMBO_S4, m_wndComboS4);
42 DDX_Control(pDX, IDC_COMBO_S3, m_wndComboS3);
43 DDX_Control(pDX, IDC_COMBO_S2, m_wndComboS2);
44 DDX_Control(pDX, IDC_COMBO_S1, m_wndComboS1);
45 DDX_Control(pDX, IDC_COMBO_FIXED, m_wndComboFixed);
46 DDX_Text(pDX, IDC_EDIT_RELATIVE, m_iRelChange);
47 DDV_MinMaxInt(pDX, m_iRelChange, -4, 4);
48 DDX_Text(pDX, IDC_EDIT_THRESHOLD, m_dSingleThreshold);
49 DDV_MinMaxDouble(pDX, m_dSingleThreshold, 0., 1.);
50 DDX_Text(pDX, IDC_EDIT_T1, m_dThreshold1);
51 DDV_MinMaxDouble(pDX, m_dThreshold1, 0., 1.);
52 DDX_Text(pDX, IDC_EDIT_T2, m_dThreshold2);
53 DDV_MinMaxDouble(pDX, m_dThreshold2, 0., 1.);
54 DDX_Text(pDX, IDC_EDIT_T3, m_dThreshold3);
55 DDV_MinMaxDouble(pDX, m_dThreshold3, 0., 1.);
56 DDX_Text(pDX, IDC_EDIT_T4, m_dThreshold4);
57 DDV_MinMaxDouble(pDX, m_dThreshold4, 0., 1.);
58 DDX_Radio(pDX, IDC_RADIO_CALC_DEFAULT, m_iCalcAlg);
59 DDX_Radio(pDX, IDC_RADIO_PROP_DEFAULT, m_iPropAlg);
60 //}}AFX_DATA_MAP
61 }
62
63
64 BEGIN_MESSAGE_MAP(CObjectPropsStatus, CPropertyPage)
65 //{{AFX_MSG_MAP(CObjectPropsStatus)
66 // NOTE: the ClassWizard will add message map macros here
67 //}}AFX_MSG_MAP
68 END_MESSAGE_MAP()
69
70 /////////////////////////////////////////////////////////////////////////////
71 // CObjectPropsStatus message handlers