cleanup .gitignore
[TortoiseGit.git] / src / TortoiseProc / SVNDCommitDlg.cpp
blob3ae2b876a33422284821c77c44575725aa07deb7
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2011 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 this->UpdateData(false);
66 return TRUE;
69 void CSVNDCommitDlg::OnBnClickedOk()
71 CStandAloneDialog::UpdateData(TRUE);
73 CStandAloneDialog::OnOK();
76 void CSVNDCommitDlg::OnBnClickedHelp()
78 OnHelp();