source: filezilla/trunk/fuentes/src/interface/dragdropmanager.h

Last change on this file was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 799 bytes
Line 
1#ifndef __DRAGDROPMANAGER__
2#define __DRAGDROPMANAGER__
3
4// wxWidgets doesn't provide any means to check on the type of objects
5// while an object hasn't been dropped yet and is still being moved around
6// At least on Windows, that appears to be a limitation of the native drag
7// and drop system.
8
9// As such, keep track on the objects.
10
11class CDragDropManager
12{
13public:
14        static CDragDropManager* Get() { return m_pDragDropManager; }
15
16        static CDragDropManager* Init();
17        void Release();
18
19        const wxWindow* pDragSource;
20        const wxWindow* pDropTarget;
21
22        CLocalPath localParent;
23        std::list<wxString> m_localFiles;
24
25        CServer server;
26        CServerPath remoteParent;
27
28protected:
29        CDragDropManager();
30        virtual ~CDragDropManager() {}
31
32        static CDragDropManager* m_pDragDropManager;
33};
34
35#endif //__DRAGDROPMANAGER__
Note: See TracBrowser for help on using the repository browser.