1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012 Sven Strickroth, <email@cs-ware.de>
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include "TortoiseProc.h"
22 #include "SubmoduleUpdateDlg.h"
25 IMPLEMENT_DYNAMIC(CSubmoduleUpdateDlg
, CStandAloneDialog
)
27 CSubmoduleUpdateDlg::CSubmoduleUpdateDlg(CWnd
* pParent
/*=NULL*/)
28 : CStandAloneDialog(CSubmoduleUpdateDlg::IDD
, pParent
)
35 CSubmoduleUpdateDlg::~CSubmoduleUpdateDlg()
39 void CSubmoduleUpdateDlg::DoDataExchange(CDataExchange
* pDX
)
41 CStandAloneDialog::DoDataExchange(pDX
);
42 DDX_Check(pDX
, IDC_CHECK_SUBMODULE_INIT
, m_bInit
);
43 DDX_Check(pDX
, IDC_CHECK_SUBMODULE_RECURSIVE
, m_bRecursive
);
44 DDX_Check(pDX
, IDC_FORCE
, m_bForce
);
48 BEGIN_MESSAGE_MAP(CSubmoduleUpdateDlg
, CStandAloneDialog
)
49 ON_BN_CLICKED(IDOK
, &CSubmoduleUpdateDlg::OnBnClickedOk
)
50 ON_BN_CLICKED(IDHELP
, &CSubmoduleUpdateDlg::OnBnClickedHelp
)
53 BOOL
CSubmoduleUpdateDlg::OnInitDialog()
55 CStandAloneDialog::OnInitDialog();
56 CAppUtils::MarkWindowAsUnpinnable(m_hWnd
);
59 GetWindowText(sWindowTitle
);
60 CAppUtils::SetWindowTitle(m_hWnd
, g_Git
.m_CurrentDir
, sWindowTitle
);
62 AdjustControlSize(IDC_CHECK_SUBMODULE_INIT
);
63 AdjustControlSize(IDC_CHECK_SUBMODULE_RECURSIVE
);
70 void CSubmoduleUpdateDlg::OnBnClickedOk()
72 CStandAloneDialog::UpdateData(TRUE
);
74 CStandAloneDialog::OnOK();
77 void CSubmoduleUpdateDlg::OnBnClickedHelp()