You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# include "zxLogInstance.h"
# include "iRibbonXmlCmd.h"
# ifdef MY_OWN_GRID
# include "iSubWndGrid.h"
# else
# include "nmSubWndDemo.h"
# endif
# include "nmSubWndUtils.h"
# include "nmDataLogFile.h"
# include <vector>
using namespace std ;
iSubWnd * nmSubWndUtils : : createSubWnd ( iRibbonXmlCmd * pCmdInfo )
{
if ( NULL = = pCmdInfo ) {
return NULL ;
}
return createSubWnd ( pCmdInfo - > m_sID , pCmdInfo - > m_sExtInfo ) ;
}
iSubWnd * nmSubWndUtils : : createSubWnd ( QString sID , QString sExt )
{
iSubWnd * pSubWnd = NULL ;
int nID = sID . toInt ( ) ;
if ( nID = = 5101 ) {
// TODO, 先弹窗做输入, 做PVT的检查, 做PVT的新建和选择
// 基于IDlgBase
pSubWnd = new nmSubWndDemo ( NULL , sExt ) ;
}
if ( NULL ! = pSubWnd ) {
// TODO 此处根据需要设置 改变 标识
pSubWnd - > setModified ( true ) ;
}
return pSubWnd ;
}
bool nmSubWndUtils : : isEnableOfID_Common ( QString sID , QString sName , const bool bLicensed )
{
nmDataLogFile : : getInstance ( ) - > writeLog ( " isEnableOfID " + sID + " " + sName ) ;
if ( sID . toInt ( ) = = 5101 ) {
return true ;
}
return false ;
}