1 // TortoiseSVN - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2007 - TortoiseSVN
\r
5 // This program is free software; you can redistribute it and/or
\r
6 // modify it under the terms of the GNU General Public License
\r
7 // as published by the Free Software Foundation; either version 2
\r
8 // of the License, or (at your option) any later version.
\r
10 // This program is distributed in the hope that it will be useful,
\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 // GNU General Public License for more details.
\r
15 // You should have received a copy of the GNU General Public License
\r
16 // along with this program; if not, write to the Free Software Foundation,
\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\r
20 #include "TortoiseProc.h"
\r
21 #include "MergeAllDlg.h"
\r
24 IMPLEMENT_DYNAMIC(CMergeAllDlg, CStandAloneDialog)
\r
26 CMergeAllDlg::CMergeAllDlg(CWnd* pParent /*=NULL*/)
\r
27 : CStandAloneDialog(CMergeAllDlg::IDD, pParent)
\r
28 , m_depth(svn_depth_unknown)
\r
29 , m_bIgnoreEOL(FALSE)
\r
30 , m_bIgnoreAncestry(FALSE)
\r
35 CMergeAllDlg::~CMergeAllDlg()
\r
39 void CMergeAllDlg::DoDataExchange(CDataExchange* pDX)
\r
41 CStandAloneDialog::DoDataExchange(pDX);
\r
42 DDX_Control(pDX, IDC_DEPTH, m_depthCombo);
\r
43 DDX_Check(pDX, IDC_IGNOREANCESTRY, m_bIgnoreAncestry);
\r
44 DDX_Control(pDX, IDC_DEPTH, m_depthCombo);
\r
45 DDX_Check(pDX, IDC_IGNOREEOL, m_bIgnoreEOL);
\r
49 BEGIN_MESSAGE_MAP(CMergeAllDlg, CStandAloneDialog)
\r
50 ON_BN_CLICKED(IDHELP, &CMergeAllDlg::OnBnClickedHelp)
\r
54 // CMergeAllDlg message handlers
\r
56 void CMergeAllDlg::OnBnClickedHelp()
\r
61 BOOL CMergeAllDlg::OnInitDialog()
\r
63 CStandAloneDialog::OnInitDialog();
\r
65 m_depthCombo.AddString(CString(MAKEINTRESOURCE(IDS_SVN_DEPTH_WORKING)));
\r
66 m_depthCombo.AddString(CString(MAKEINTRESOURCE(IDS_SVN_DEPTH_INFINITE)));
\r
67 m_depthCombo.AddString(CString(MAKEINTRESOURCE(IDS_SVN_DEPTH_IMMEDIATE)));
\r
68 m_depthCombo.AddString(CString(MAKEINTRESOURCE(IDS_SVN_DEPTH_FILES)));
\r
69 m_depthCombo.AddString(CString(MAKEINTRESOURCE(IDS_SVN_DEPTH_EMPTY)));
\r
72 case svn_depth_unknown:
\r
73 m_depthCombo.SetCurSel(0);
\r
75 case svn_depth_infinity:
\r
76 m_depthCombo.SetCurSel(1);
\r
78 case svn_depth_immediates:
\r
79 m_depthCombo.SetCurSel(2);
\r
81 case svn_depth_files:
\r
82 m_depthCombo.SetCurSel(3);
\r
84 case svn_depth_empty:
\r
85 m_depthCombo.SetCurSel(4);
\r
88 m_depthCombo.SetCurSel(0);
\r
92 CheckRadioButton(IDC_COMPAREWHITESPACES, IDC_IGNOREALLWHITESPACES, IDC_COMPAREWHITESPACES);
\r
94 if ((m_pParentWnd==NULL)&&(hWndExplorer))
\r
95 CenterWindow(CWnd::FromHandle(hWndExplorer));
\r
99 void CMergeAllDlg::OnOK()
\r
101 switch (m_depthCombo.GetCurSel())
\r
104 m_depth = svn_depth_unknown;
\r
107 m_depth = svn_depth_infinity;
\r
110 m_depth = svn_depth_immediates;
\r
113 m_depth = svn_depth_files;
\r
116 m_depth = svn_depth_empty;
\r
119 m_depth = svn_depth_empty;
\r
123 CStandAloneDialog::OnOK();
\r