1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2011 Sven Strickroth, <email@cs-ware.de>
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.
24 #include "TortoiseProc.h"
25 #include "SVNDCommitDlg.h"
28 IMPLEMENT_DYNAMIC(CSVNDCommitDlg
, CStandAloneDialog
)
30 CSVNDCommitDlg::CSVNDCommitDlg(CWnd
* pParent
/*=NULL*/)
31 : CStandAloneDialog(CSVNDCommitDlg::IDD
, pParent
)
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
)
54 BOOL
CSVNDCommitDlg::OnInitDialog()
56 CStandAloneDialog::OnInitDialog();
57 CAppUtils::MarkWindowAsUnpinnable(m_hWnd
);
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);
69 void CSVNDCommitDlg::OnBnClickedOk()
71 CStandAloneDialog::UpdateData(TRUE
);
73 CStandAloneDialog::OnOK();
76 void CSVNDCommitDlg::OnBnClickedHelp()