DeleteRemoteTagDlg: Allow to delete multiple tags at once
[TortoiseGit.git] / src / TortoiseProc / SubmoduleUpdateDlg.cpp
blob68477783b0ec87de1277bfdcff0230b99fc94cec
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.
20 #include "stdafx.h"
21 #include "TortoiseProc.h"
22 #include "SubmoduleUpdateDlg.h"
23 #include "AppUtils.h"
25 IMPLEMENT_DYNAMIC(CSubmoduleUpdateDlg, CStandAloneDialog)
27 CSubmoduleUpdateDlg::CSubmoduleUpdateDlg(CWnd* pParent /*=NULL*/)
28 : CStandAloneDialog(CSubmoduleUpdateDlg::IDD, pParent)
29 , m_bInit(true)
30 , m_bRecursive(FALSE)
31 , m_bForce(FALSE)
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)
51 END_MESSAGE_MAP()
53 BOOL CSubmoduleUpdateDlg::OnInitDialog()
55 CStandAloneDialog::OnInitDialog();
56 CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
58 CString sWindowTitle;
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);
65 UpdateData(FALSE);
67 return TRUE;
70 void CSubmoduleUpdateDlg::OnBnClickedOk()
72 CStandAloneDialog::UpdateData(TRUE);
74 CStandAloneDialog::OnOK();
77 void CSubmoduleUpdateDlg::OnBnClickedHelp()
79 OnHelp();