OSDN Git Service

Show User and Email info at setting dialog
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / RepoDrags.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2003-2008 - Stefan Kueng\r
4 \r
5 // This program is free software; you can redistribute it and/or\r
6 // modify it under the terms of the GNU General Public License\r
7 // as published by the Free Software Foundation; either version 2\r
8 // of the License, or (at your option) any later version.\r
9 \r
10 // This program is distributed in the hope that it will be useful,\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 // GNU General Public License for more details.\r
14 \r
15 // You should have received a copy of the GNU General Public License\r
16 // along with this program; if not, write to the Free Software Foundation,\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
18 //\r
19 #pragma once\r
20 #include "DragDropImpl.h"\r
21 \r
22 \r
23 class CItem;\r
24 class CTreeItem;\r
25 class CRepositoryBrowser;\r
26 \r
27 /**\r
28  * \ingroup TortoiseProc\r
29  * Implements a drop target on the left tree control in the repository browser\r
30  */\r
31 class CTreeDropTarget : public CIDropTarget\r
32 {\r
33 public:\r
34         CTreeDropTarget(CRepositoryBrowser * pRepoBrowser);\r
35         \r
36         virtual bool OnDrop(FORMATETC* pFmtEtc, STGMEDIUM& medium, DWORD *pdwEffect, POINTL pt);\r
37         virtual HRESULT STDMETHODCALLTYPE DragEnter(IDataObject __RPC_FAR *pDataObj, DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);\r
38         virtual HRESULT STDMETHODCALLTYPE DragOver(DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);\r
39         virtual HRESULT STDMETHODCALLTYPE DragLeave(void);\r
40 \r
41 private:\r
42         CRepositoryBrowser *    m_pRepoBrowser;\r
43         bool                                    m_bFiles;\r
44         DWORD                                   m_dwHoverStartTicks;\r
45         HTREEITEM                               hLastItem;\r
46 };\r
47 \r
48 /**\r
49  * \ingroup TortoiseProc\r
50  * Implements a drop target on the right list control in the repository browser\r
51  */\r
52 class CListDropTarget : public CIDropTarget\r
53 {\r
54 public:\r
55         CListDropTarget(CRepositoryBrowser * pRepoBrowser);\r
56 \r
57         virtual bool OnDrop(FORMATETC* pFmtEtc, STGMEDIUM& medium, DWORD *pdwEffect, POINTL pt);\r
58         virtual HRESULT STDMETHODCALLTYPE DragEnter(IDataObject __RPC_FAR *pDataObj, DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);\r
59         virtual HRESULT STDMETHODCALLTYPE DragOver(DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);\r
60         virtual HRESULT STDMETHODCALLTYPE DragLeave(void);\r
61 \r
62 private:\r
63         CRepositoryBrowser * m_pRepoBrowser;\r
64         bool m_bFiles;\r
65 };\r