Allow to commit to super project after push in submodule
[TortoiseGit.git] / src / TortoiseProc / SVNDCommitDlg.cpp
blobed99db2a6cfd4ad04efbe1f089033a05dc6c16f2
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012-2013 Sven Strickroth, <email@cs-ware.de>
4 //
5 // Based on PushDlg.cpp
6 // Copyright (C) 2003-2008 - TortoiseGit
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License
10 // as published by the Free Software Foundation; either version 2
11 // of the License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software Foundation,
20 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include "stdafx.h"
24 #include "TortoiseProc.h"
25 #include "SVNDCommitDlg.h"
26 #include "AppUtils.h"
28 IMPLEMENT_DYNAMIC(CSVNDCommitDlg, CStandAloneDialog)
30 CSVNDCommitDlg::CSVNDCommitDlg(CWnd* pParent /*=NULL*/)
31 : CStandAloneDialog(CSVNDCommitDlg::IDD, pParent)
32 , m_remember(FALSE)
33 , m_rmdir(FALSE)
37 CSVNDCommitDlg::~CSVNDCommitDlg()
41 void CSVNDCommitDlg::DoDataExchange(CDataExchange* pDX)
43 CStandAloneDialog::DoDataExchange(pDX);
44 DDX_Check(pDX,IDC_RADIO_GIT_COMMIT,m_rmdir);
45 DDX_Check(pDX,IDC_REMEMBER,m_remember);
49 BEGIN_MESSAGE_MAP(CSVNDCommitDlg, CStandAloneDialog)
50 ON_BN_CLICKED(IDOK, &CSVNDCommitDlg::OnBnClickedOk)
51 END_MESSAGE_MAP()
53 BOOL CSVNDCommitDlg::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 CheckRadioButton(IDC_RADIO_SVN_COMMIT, IDC_RADIO_GIT_COMMIT, IDC_RADIO_SVN_COMMIT);
64 AdjustControlSize(IDC_RADIO_SVN_COMMIT);
65 AdjustControlSize(IDC_RADIO_GIT_COMMIT);
66 AdjustControlSize(IDC_REMEMBER);
68 this->UpdateData(false);
69 return TRUE;
72 void CSVNDCommitDlg::OnBnClickedOk()
74 CStandAloneDialog::UpdateData(TRUE);
76 CStandAloneDialog::OnOK();