1 // SubmoduleAddDlg.cpp : implementation file
6 #include "SubmoduleAddDlg.h"
9 // CSubmoduleAddDlg dialog
11 IMPLEMENT_DYNAMIC(CSubmoduleAddDlg
, CResizableStandAloneDialog
)
13 CSubmoduleAddDlg::CSubmoduleAddDlg(CWnd
* pParent
/*=NULL*/)
14 : CResizableStandAloneDialog(CSubmoduleAddDlg::IDD
, pParent
)
21 CSubmoduleAddDlg::~CSubmoduleAddDlg()
25 void CSubmoduleAddDlg::DoDataExchange(CDataExchange
* pDX
)
27 CDialog::DoDataExchange(pDX
);
28 DDX_Control(pDX
, IDC_COMBOBOXEX_REPOSITORY
, m_Repository
);
29 DDX_Control(pDX
, IDC_COMBOBOXEX_PATH
, m_PathCtrl
);
30 DDX_Check(pDX
, IDC_BRANCH_CHECK
, m_bBranch
);
31 DDX_Text(pDX
, IDC_SUBMODULE_BRANCH
, m_strBranch
);
35 BEGIN_MESSAGE_MAP(CSubmoduleAddDlg
, CResizableStandAloneDialog
)
36 ON_COMMAND(IDC_REP_BROWSE
, OnRepBrowse
)
37 ON_COMMAND(IDC_BUTTON_PATH_BROWSE
, OnPathBrowse
)
38 ON_COMMAND(IDC_BRANCH_CHECK
, OnBranchCheck
)
42 // CSubmoduleAddDlg message handlers
44 BOOL
CSubmoduleAddDlg::OnInitDialog()
46 CResizableStandAloneDialog::OnInitDialog();
48 AddAnchor(IDOK
,BOTTOM_RIGHT
);
49 AddAnchor(IDCANCEL
,BOTTOM_RIGHT
);
50 AddAnchor(IDC_GROUP_SUBMODULE
,TOP_LEFT
,BOTTOM_RIGHT
);
51 AddAnchor(IDC_COMBOBOXEX_REPOSITORY
,TOP_LEFT
,TOP_RIGHT
);
52 AddAnchor(IDC_COMBOBOXEX_PATH
,TOP_LEFT
,TOP_RIGHT
);
53 AddAnchor(IDC_REP_BROWSE
,TOP_RIGHT
);
54 AddAnchor(IDC_BUTTON_PATH_BROWSE
,TOP_RIGHT
);
55 AddAnchor(IDC_BRANCH_CHECK
,BOTTOM_LEFT
);
56 AddAnchor(IDC_SUBMODULE_BRANCH
,BOTTOM_LEFT
,BOTTOM_RIGHT
);
61 EnableSaveRestore(_T("SubmoduleAddDlg"));
63 m_Repository
.SetURLHistory(true);
64 m_PathCtrl
.SetPathHistory(true);
69 void CSubmoduleAddDlg::OnRepBrowse()
72 void CSubmoduleAddDlg::OnPathBrowse()
75 void CSubmoduleAddDlg::OnBranchCheck()
80 this->GetDlgItem(IDC_SUBMODULE_BRANCH
)->ShowWindow(TRUE
);
83 this->GetDlgItem(IDC_SUBMODULE_BRANCH
)->ShowWindow(FALSE
);