comparison include/dndfile.h @ 22:92188f60323d default tip

Implement Masking function on Preview Dialog.
author pyon@macmini
date Sat, 04 Apr 2015 17:23:46 +0900
parents bc2e2b304095
children
comparison
equal deleted inserted replaced
21:a2ad87cad48b 22:92188f60323d
1 // Filename : dndfile.h 1 // Filename : dndfile.h
2 // Last Change: 12-Sep-2013. 2 // Last Change: 2015-04-04 11:10:10.
3 // 3 //
4 #ifndef __DNDFILE_H__ 4 #ifndef __DNDFILE_H__
5 #define __DNDFILE_H__ 5 #define __DNDFILE_H__
6 6
7 #include "db.h" 7 #include "db.h"
8 #include "wx/config.h"
9 #include "wx/fileconf.h"
10 #include "myframe.h"
8 11
9 class DnDFile : public wxFileDropTarget 12 class DnDFile : public wxFileDropTarget
10 { 13 {
11 public: 14 public:
12 DnDFile( wxGrid *grid ) 15 DnDFile( wxGrid *grid )
52 } 55 }
53 56
54 private: 57 private:
55 wxGrid* m_grid; 58 wxGrid* m_grid;
56 }; 59 };
57 60
61 class DnDFile2 : public wxFileDropTarget
62 {
63 public:
64 DnDFile2( MyFrame *frame )
65 {
66 m_frame = frame;
67 }
68 virtual bool OnDropFiles( wxCoord x, wxCoord y, const wxArrayString& filenames )
69 {
70 size_t nFiles = filenames.GetCount();
71 if ( nFiles != 1 ) return false;
72
73 m_frame->ShowBPrintFrame( filenames[0] );
74
75 return true;
76 }
77
78 private:
79 MyFrame* m_frame;
80 };
81
58 #endif //__DNDFILE_H__ 82 #endif //__DNDFILE_H__
83