Esempio n. 1
0
/*******************************************************************************
  Function Name  : OnBnClickedButtonGrpDispConfig
  Input(s)       : -
  Output         : -
  Functionality  : This function handles the Graph display configure click event
  Member of      : CSigGrphConfigDlg
  Author(s)      : ArunKumar K
  Date Created   : 27-10-2010
  Modifications  :
*******************************************************************************/
void CSigGrphConfigDlg::OnBnClickedButtonGrpDispConfig()
{
    // Create configuration dialog and show it
    CGraphConfiguration omGraphConf;
    omGraphConf.m_eBusType = (eTYPE_BUS)m_omCmbBusType.GetCurSel();
    //Store previous Line display type
    eDISPLAY_TYPE ePrevDisplay =
        m_pMainFrame->m_odGraphList[m_omCmbBusType.GetCurSel()].m_odGraphParameters.m_eDisplayType;
    //Show Configuration dialog
    omGraphConf.DoModal();
    eDISPLAY_TYPE eCurrDisplay =
        m_pMainFrame->m_odGraphList[m_omCmbBusType.GetCurSel()].m_odGraphParameters.m_eDisplayType;

    //if line display type changed, update all Graph elements.
    if( ePrevDisplay != eCurrDisplay)
    {
        vUpdateLineDisplayOfElements(eCurrDisplay);
    }
}
Esempio n. 2
0
/*******************************************************************************
  Function Name  : OnBtnConfigure
  Input(s)       : -
  Output         : -
  Functionality  : This function will shoe element configuration dialog to show
                   and change view style parameters.
  Member of      : CGraphBottomView
  Author(s)      : Raja N
  Date Created   : 10/12/2004
  Modifications  : 
*******************************************************************************/
void CGraphBottomView::OnBtnConfigure() 
{
    // Create configuration dialog and show it
    CGraphConfiguration omGraphConf;

	CGraphList * podList = NULL;
	CGraphChildFrame* pParentWnd = NULL;
	pParentWnd = (CGraphChildFrame*)pomGetParentWindow();

	if(pParentWnd != NULL)
		podList = pParentWnd->pGetSignalListDetails();
	else
		return; 

	CGraphParameters par;
	//omGraphConf.vSetValues(podList->m_odGraphParameters);
	omGraphConf.m_pGraphList = podList;
	omGraphConf.m_pDMGraphCtrl = m_pDMGraphCtrl;
    omGraphConf.DoModal();
}