Fixed issue #2507: Support keyboard shortcuts in yes/no prompts
[TortoiseGit.git] / src / Utils / MiscUI / FileDlgEventHandler.cpp
blobaec60761428e843ad23845dd7cdb941b86ccb1a9
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2010 - TortoiseSVN
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 #include "stdafx.h"
20 #include "resource.h"
21 #include "FileDlgEventHandler.h"
23 CFileDlgEventHandler::CFileDlgEventHandler()
27 CFileDlgEventHandler::~CFileDlgEventHandler()
32 /////////////////////////////////////////////////////////////////////////////
33 // IFileDialogEvents methods
35 STDMETHODIMP CFileDlgEventHandler::OnFileOk ( IFileDialog* /*pfd*/ )
37 return S_OK; // allow the dialog to close
40 STDMETHODIMP CFileDlgEventHandler::OnFolderChanging ( IFileDialog* /*pfd*/, IShellItem* /*psiFolder*/ )
42 return S_OK; // allow the change
45 STDMETHODIMP CFileDlgEventHandler::OnFolderChange ( IFileDialog* /*pfd*/ )
47 return S_OK;
50 STDMETHODIMP CFileDlgEventHandler::OnSelectionChange ( IFileDialog* /*pfd*/ )
52 return S_OK;
55 STDMETHODIMP CFileDlgEventHandler::OnShareViolation ( IFileDialog* /*pfd*/, IShellItem* /*psi*/, FDE_SHAREVIOLATION_RESPONSE* /*pResponse*/ )
57 return S_OK;
60 STDMETHODIMP CFileDlgEventHandler::OnTypeChange ( IFileDialog* /*pfd*/ )
62 return S_OK;
65 STDMETHODIMP CFileDlgEventHandler::OnOverwrite ( IFileDialog* /*pfd*/, IShellItem* /*psi*/, FDE_OVERWRITE_RESPONSE* /*pResponse*/ )
67 return S_OK;
71 /////////////////////////////////////////////////////////////////////////////
72 // IFileDialogControlEvents methods
74 STDMETHODIMP CFileDlgEventHandler::OnItemSelected ( IFileDialogCustomize* /*pfdc*/, DWORD /*dwIDCtl*/, DWORD /*dwIDItem*/ )
76 return S_OK;
79 STDMETHODIMP CFileDlgEventHandler::OnButtonClicked ( IFileDialogCustomize* /*pfdc*/, DWORD /*dwIDCtl*/ )
81 return S_OK;
84 STDMETHODIMP CFileDlgEventHandler::OnCheckButtonToggled ( IFileDialogCustomize* /*pfdc*/, DWORD /*dwIDCtl*/, BOOL /*bChecked*/ )
86 return S_OK;
89 STDMETHODIMP CFileDlgEventHandler::OnControlActivating ( IFileDialogCustomize* /*pfdc*/, DWORD /*dwIDCtl*/ )
91 return S_OK;