TGitBlame: Dot try to add non-existing files to MRU list
[TortoiseGit.git] / src / TortoiseProc / SVNDCommitDlg.cpp
blob00e302abcbef08adfda022922c6f02c790bafac9
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012 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 ON_BN_CLICKED(IDHELP, &CSVNDCommitDlg::OnBnClickedHelp)
52 END_MESSAGE_MAP()
54 BOOL CSVNDCommitDlg::OnInitDialog()
56 CStandAloneDialog::OnInitDialog();
57 CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
59 CString sWindowTitle;
60 GetWindowText(sWindowTitle);
61 CAppUtils::SetWindowTitle(m_hWnd, g_Git.m_CurrentDir, sWindowTitle);
63 CheckRadioButton(IDC_RADIO_SVN_COMMIT, IDC_RADIO_GIT_COMMIT, IDC_RADIO_SVN_COMMIT);
65 AdjustControlSize(IDC_RADIO_SVN_COMMIT);
66 AdjustControlSize(IDC_RADIO_GIT_COMMIT);
67 AdjustControlSize(IDC_REMEMBER);
69 this->UpdateData(false);
70 return TRUE;
73 void CSVNDCommitDlg::OnBnClickedOk()
75 CStandAloneDialog::UpdateData(TRUE);
77 CStandAloneDialog::OnOK();
80 void CSVNDCommitDlg::OnBnClickedHelp()
82 OnHelp();