Perform a stable sort in order to preserve the order
[TortoiseGit.git] / src / TortoiseProc / SVNDCommitDlg.cpp
blob4b45500189a4b5890bd122553020ac2e2120d5a1
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012-2014 - TortoiseGit
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 "SVNDCommitDlg.h"
23 #include "AppUtils.h"
25 IMPLEMENT_DYNAMIC(CSVNDCommitDlg, CStandAloneDialog)
27 CSVNDCommitDlg::CSVNDCommitDlg(CWnd* pParent /*=NULL*/)
28 : CStandAloneDialog(CSVNDCommitDlg::IDD, pParent)
29 , m_remember(FALSE)
30 , m_rmdir(FALSE)
34 CSVNDCommitDlg::~CSVNDCommitDlg()
38 void CSVNDCommitDlg::DoDataExchange(CDataExchange* pDX)
40 CStandAloneDialog::DoDataExchange(pDX);
41 DDX_Check(pDX,IDC_RADIO_GIT_COMMIT,m_rmdir);
42 DDX_Check(pDX,IDC_REMEMBER,m_remember);
46 BEGIN_MESSAGE_MAP(CSVNDCommitDlg, CStandAloneDialog)
47 ON_BN_CLICKED(IDOK, &CSVNDCommitDlg::OnBnClickedOk)
48 ON_BN_CLICKED(IDHELP, OnHelp)
49 END_MESSAGE_MAP()
51 BOOL CSVNDCommitDlg::OnInitDialog()
53 CStandAloneDialog::OnInitDialog();
54 CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
56 CString sWindowTitle;
57 GetWindowText(sWindowTitle);
58 CAppUtils::SetWindowTitle(m_hWnd, g_Git.m_CurrentDir, sWindowTitle);
60 CheckRadioButton(IDC_RADIO_SVN_COMMIT, IDC_RADIO_GIT_COMMIT, IDC_RADIO_SVN_COMMIT);
62 AdjustControlSize(IDC_RADIO_SVN_COMMIT);
63 AdjustControlSize(IDC_RADIO_GIT_COMMIT);
64 AdjustControlSize(IDC_REMEMBER);
66 this->UpdateData(false);
67 return TRUE;
70 void CSVNDCommitDlg::OnBnClickedOk()
72 CStandAloneDialog::UpdateData(TRUE);
74 CStandAloneDialog::OnOK();