CModularWebController::CModularWebController(const std::string& PatchDirectory)
    : m_ModularController(new CModularController(PatchDirectory))
    , m_WebPageManager(new CWebPageManager())
{
    UpdatePatchesPage(m_ModularController->GetPatchManager(), *m_WebPageManager);
    UpdateModuleCreationPage(m_ModularController->GetModuleManager(), *m_WebPageManager);

    CreatePages(*m_WebPageManager);
}
//-----------------------------------------------------------------------------
// Purpose: Constructor.
// Input  : pszCaption - 
//			pParentWnd - 
//			iSelectPage - 
//-----------------------------------------------------------------------------
CObjectProperties::CObjectProperties(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	m_bDummy = false;
	m_pDummy = NULL;
	m_pInputButton = NULL;
	m_pOutputButton = NULL;

	CreatePages();
}
//-----------------------------------------------------------------------------
// Purpose: Constructor.
//-----------------------------------------------------------------------------
CObjectProperties::CObjectProperties(void) :
	CPropertySheet()
{
	m_bDummy = false;
	m_pDummy = NULL;
	m_pInputButton = NULL;
	m_pOutputButton = NULL;
	m_pOrgObjects = NULL;
	m_bDataDirty = false;

	CreatePages();
}
int CEle_Power_DecomposeView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CView::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  在此添加您专用的创建代码
	m_TabCtrl = new CTabCtrl;

	if (m_TabCtrl->Create(WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS,
		CRect(0, 0, 0, 0), this, ID_TABCTRL) == FALSE)
		return -1;

	CreatePages();
	return 0;
}
Beispiel #5
0
void CXMLDlg::CreateNewProject(HTREEITEM pItem)
{
	AGDOCTYPE ProjectType = GetCurrentDocType(pItem);
	if (ProjectType == DOC_CALENDAR)
		return;

	ASSERT(!m_pAGDoc);

	if (!(m_pAGDoc = new CAGDoc()))
	{
		ASSERT(false);
		return;
	}

	m_pAGDoc->SetDocType(ProjectType);
	m_pAGDoc->SetPortrait(GetCurrentPortrait(pItem));

	CString strFileName = GetCurrentObjectFile(pItem);
	m_szProjectPath = strFileName.Left(strFileName.ReverseFind('\\')+1);
	CString szName = strFileName.Mid(strFileName.ReverseFind('\\')+1);
	m_pAGDoc->SetFileName(CString(szName)); // Filename and extension only; no path

	int nPages = CreatePages(pItem);

	m_pAGDoc->SetCurrentPageNum(0);
	m_pAGDoc->SetModified(false);

	// Create Dir
	CString szDir = _T("D:\\content\\"); // m_szProjectPath;
	CreateDirectory(szDir, NULL);
	szDir += szName.Left(2);
	szDir += '\\';
	CreateDirectory(szDir, NULL);

	// Create File
	// If you want to remove the old extension first, uncomment the line below
	//szName = szName.Left(szName.ReverseFind('.'));
	CString szFile = szDir + szName + CString(_T("ctp"));
	
	// Keep the tree relative current
	bool bSaveOK = SaveDoc(szFile);

	delete m_pAGDoc;
	m_pAGDoc = NULL;
}
Beispiel #6
0
void WizardPlugin::Init(QWizard* wizard, int finish_page_id) {
  start_page_ = CreatePages(wizard, finish_page_id);
}