Uncheck autoload putty key for git://, http://, and https:// clone URLs
[TortoiseGit.git] / src / TortoiseProc / IgnoreDlg.cpp
blobb7d0e3a001c115385474fe7d60080714c2782322
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012-2013 - 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.
19 // IgnoreDlg.cpp : implementation file
22 #include "stdafx.h"
23 #include "TortoiseProc.h"
24 #include "IgnoreDlg.h"
26 // CIgnoreDlg dialog
28 IMPLEMENT_DYNAMIC(CIgnoreDlg, CStateStandAloneDialog)
30 CIgnoreDlg::CIgnoreDlg(CWnd* pParent /*=NULL*/)
31 : CStateStandAloneDialog(CIgnoreDlg::IDD, pParent)
32 , m_IgnoreType(0)
33 , m_IgnoreFile(1)
38 CIgnoreDlg::~CIgnoreDlg()
42 void CIgnoreDlg::DoDataExchange(CDataExchange* pDX)
44 CDialog::DoDataExchange(pDX);
48 BEGIN_MESSAGE_MAP(CIgnoreDlg, CStateStandAloneDialog)
49 END_MESSAGE_MAP()
52 // CIgnoreDlg message handlers
53 BOOL CIgnoreDlg::OnInitDialog()
55 CStateStandAloneDialog::OnInitDialog();
57 this->CheckRadioButton(IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE, IDC_RADIO_IGNOREFILE_GITINFOEXCLUDE, IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE + m_IgnoreType);
59 AdjustControlSize(IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE);
60 AdjustControlSize(IDC_RADIO_IGNOREFILE_LOCALGITIGNORES);
61 AdjustControlSize(IDC_RADIO_IGNOREFILE_GITINFOEXCLUDE);
63 this->CheckRadioButton(IDC_RADIO_IGNORETYPE_ONLYINFOLDER, IDC_RADIO_IGNORETYPE_RECURSIVELY, IDC_RADIO_IGNORETYPE_ONLYINFOLDER + m_IgnoreType);
65 AdjustControlSize(IDC_RADIO_IGNORETYPE_ONLYINFOLDER);
66 AdjustControlSize(IDC_RADIO_IGNORETYPE_RECURSIVELY);
68 EnableSaveRestore(_T("IgnoreDlg"));
70 return TRUE;
73 void CIgnoreDlg::OnOK()
75 m_IgnoreFile = this->GetCheckedRadioButton(IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE, IDC_RADIO_IGNOREFILE_GITINFOEXCLUDE) - IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE;
76 m_IgnoreType = this->GetCheckedRadioButton(IDC_RADIO_IGNORETYPE_ONLYINFOLDER, IDC_RADIO_IGNORETYPE_RECURSIVELY) - IDC_RADIO_IGNORETYPE_ONLYINFOLDER;
77 return CStateStandAloneDialog::OnOK();