OSDN Git Service

Fixed issue #113: (10) Push and push times out on WebDAV passwords
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / DeleteConflictDlg.cpp
1 // DeleteConflictDlg.cpp : implementation file\r
2 //\r
3 \r
4 #include "stdafx.h"\r
5 #include "resource.h"\r
6 #include "DeleteConflictDlg.h"\r
7 \r
8 \r
9 // CDeleteConflictDlg dialog\r
10 \r
11 IMPLEMENT_DYNAMIC(CDeleteConflictDlg, CResizableStandAloneDialog)\r
12 \r
13 CDeleteConflictDlg::CDeleteConflictDlg(CWnd* pParent /*=NULL*/)\r
14         : CResizableStandAloneDialog(CDeleteConflictDlg::IDD, pParent)\r
15 \r
16         , m_LocalStatus(_T(""))\r
17         , m_RemoteStatus(_T(""))\r
18 {\r
19         m_bIsDelete =FALSE;\r
20 }\r
21 \r
22 CDeleteConflictDlg::~CDeleteConflictDlg()\r
23 {\r
24 }\r
25 \r
26 void CDeleteConflictDlg::DoDataExchange(CDataExchange* pDX)\r
27 {\r
28         CDialog::DoDataExchange(pDX);\r
29 \r
30         DDX_Text(pDX, IDC_LOCAL_STATUS, m_LocalStatus);\r
31         DDX_Text(pDX, IDC_REMOTE_STATUS, m_RemoteStatus);\r
32 }\r
33 \r
34 \r
35 BEGIN_MESSAGE_MAP(CDeleteConflictDlg, CResizableStandAloneDialog)\r
36         ON_BN_CLICKED(IDC_DELETE, &CDeleteConflictDlg::OnBnClickedDelete)\r
37         ON_BN_CLICKED(IDC_MODIFY, &CDeleteConflictDlg::OnBnClickedModify)\r
38 END_MESSAGE_MAP()\r
39 \r
40 \r
41 BOOL CDeleteConflictDlg::OnInitDialog()\r
42 {\r
43         CResizableStandAloneDialog::OnInitDialog();\r
44         AddAnchor(IDC_DEL_GROUP, TOP_LEFT, BOTTOM_RIGHT);\r
45         AddAnchor(IDC_DELETE, BOTTOM_RIGHT);\r
46         AddAnchor(IDC_MODIFY, BOTTOM_RIGHT);\r
47         AddAnchor(IDCANCEL, BOTTOM_RIGHT);\r
48 \r
49         if(this->m_bShowModifiedButton )\r
50                 this->GetDlgItem(IDC_MODIFY)->SetWindowText(_T("Modified"));\r
51         else\r
52                 this->GetDlgItem(IDC_MODIFY)->SetWindowText(_T("Created"));\r
53 \r
54         CString title;\r
55         this->GetWindowText(title);\r
56         title +=_T(" - ") +this->m_File;\r
57         this->SetWindowText(title);\r
58         return TRUE;\r
59 }\r
60 // CDeleteConflictDlg message handlers\r
61 \r
62 void CDeleteConflictDlg::OnBnClickedDelete()\r
63 {\r
64         // TODO: Add your control notification handler code here\r
65         m_bIsDelete = TRUE;\r
66         OnOK();\r
67 }\r
68 \r
69 void CDeleteConflictDlg::OnBnClickedModify()\r
70 {\r
71         // TODO: Add your control notification handler code here\r
72         m_bIsDelete = FALSE;\r
73         OnOK();\r
74 }\r