Ejemplo n.º 1
0
void CCustom1Dlg::OnCheckPublishImport() 
{
	if (!UpdateData(TRUE))
		return;
	
	EnableCheckboxes();
}
Ejemplo n.º 2
0
void CCustom1Dlg::OnSelchangeSelectProjectType() 
{
	if (!UpdateData(TRUE))
		return;

	RecomputeTargetPath();
	EnableCheckboxes();
}
Ejemplo n.º 3
0
CMainTab::CMainTab(CWnd* pParent /*=NULL*/)
	: CDialog(CMainTab::IDD, pParent)
	, CbAutoCountItems(FALSE)
	, DisplayHitpoints(FALSE)
{
	CbAutoCountItems = GetRegistryDword("","AutoCountItems",TRUE);
	DisplayHitpoints = GetRegistryDword("","DisplayHitpoints",TRUE);
	if(!Create(CMainTab::IDD,pParent))
		error_printf("Error in CMainTab constructor!\n");
	VerbLogging.SetCheck(GUIThread->Log->get_verbose()?BST_CHECKED:BST_UNCHECKED);
	EnableCheckboxes();

	// TODO: read LogXX values from registry

	LCI.SetCheck(LogCI?BST_CHECKED:BST_UNCHECKED);
	LIC.SetCheck(LogIC?BST_CHECKED:BST_UNCHECKED);
	LSI.SetCheck(LogSI?BST_CHECKED:BST_UNCHECKED);
	LIS.SetCheck(LogIS?BST_CHECKED:BST_UNCHECKED);
}
Ejemplo n.º 4
0
void CCustom1Dlg::DoDataExchange(CDataExchange* pDX)
{
	if (pDX->m_bSaveAndValidate == 0)
	{
		// Refresh the paths based on project information...
		if (m_RootPath.GetLength() == 0)
		{
			if (!Valvelibaw.m_Dictionary.Lookup("FULL_DIR_PATH", m_RootPath))
				m_RootPath = "u:\\hl2\\";

			m_RootPath.MakeLower();

			m_ToolProject = (m_RootPath.Find( "util" ) >= 0);

			int idx = m_RootPath.Find( m_SrcPath );	// look for src tree
			if (idx >= 0)
			{
				m_RootPath = m_RootPath.Left( idx );
			}

			m_TargetPath = m_RootPath;
			m_TargetPath += m_SrcPath;
			m_TargetPath += "\\lib\\public\\";

			m_ImplibPath = "unused";
			EnableCheckboxes();
		}
	}

	CAppWizStepDlg::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCustom1Dlg)
	DDX_Text(pDX, IDC_EDIT_ROOT_PATH, m_RootPath);
	DDX_Text(pDX, IDC_EDIT_TARGET_PATH, m_TargetPath);
	DDX_CBIndex(pDX, IDC_SELECT_PROJECT_TYPE, m_ProjectType);
	DDX_Check(pDX, IDC_CHECK_TOOL, m_ToolProject);
	DDX_Text(pDX, IDC_EDIT_IMPLIB_PATH, m_ImplibPath);
	DDX_Check(pDX, IDC_CHECK_PUBLIC, m_PublicProject);
	DDX_Check(pDX, IDC_CHECK_CONSOLE_APP, m_ConsoleApp);
	DDX_Check(pDX, IDC_CHECK_PUBLISH_IMPORT, m_PublishImportLib);
	DDX_Text(pDX, IDC_EDIT_SRC_PATH, m_SrcPath);
	//}}AFX_DATA_MAP
}
Ejemplo n.º 5
0
void CMainTab::OnBnClickedVerboseLogging()
{
	GUIThread->Log->set_verbose(VerbLogging.GetCheck()==BST_CHECKED);
	EnableCheckboxes();
}