Mercurial > mercurial > hgweb_golang.cgi
comparison src/kaigo/horori/alloc/alloc.h @ 45:20b42e2deae1
add alloc, (new)mover, merger & (new)searcher.
| author | pyon@macmini |
|---|---|
| date | Thu, 16 Apr 2020 20:59:35 +0900 |
| parents | |
| children | 0369656be06c |
comparison
equal
deleted
inserted
replaced
| 44:b50f2a581cf8 | 45:20b42e2deae1 |
|---|---|
| 1 // Filename : alloc.h | |
| 2 // Last Change: 2020-04-16 –Ø 12:22:39. | |
| 3 // | |
| 4 #pragma once | |
| 5 | |
| 6 #include <wx/artprov.h> | |
| 7 #include <wx/xrc/xmlres.h> | |
| 8 #include <wx/string.h> | |
| 9 #include <wx/stattext.h> | |
| 10 #include <wx/gdicmn.h> | |
| 11 #include <wx/font.h> | |
| 12 #include <wx/colour.h> | |
| 13 #include <wx/settings.h> | |
| 14 #include <wx/filepicker.h> | |
| 15 #include <wx/bitmap.h> | |
| 16 #include <wx/image.h> | |
| 17 #include <wx/icon.h> | |
| 18 #include <wx/button.h> | |
| 19 #include <wx/sizer.h> | |
| 20 #include <wx/frame.h> | |
| 21 #include <wx/dnd.h> | |
| 22 | |
| 23 class AllocFrame : public wxFrame | |
| 24 { | |
| 25 private: | |
| 26 | |
| 27 protected: | |
| 28 wxStaticText* m_staticTextPdf; | |
| 29 wxFilePickerCtrl* m_filePickerPdf1; | |
| 30 wxFilePickerCtrl* m_filePickerPdf2; | |
| 31 wxStaticText* m_staticTextTif; | |
| 32 wxDirPickerCtrl* m_dirPickerTif; | |
| 33 wxStaticText* m_staticTextWork; | |
| 34 wxDirPickerCtrl* m_dirPickerWork; | |
| 35 wxButton* m_buttonAlloc; | |
| 36 | |
| 37 virtual void OnAlloc(wxCommandEvent& event); | |
| 38 void CreateControls(); | |
| 39 void InitializeControlsValue(); | |
| 40 void Pdf2Tif(); | |
| 41 void AllocateTif(); | |
| 42 | |
| 43 public: | |
| 44 AllocFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(244,157), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL); | |
| 45 ~AllocFrame(); | |
| 46 }; | |
| 47 | |
| 48 class DnDFile : public wxFileDropTarget | |
| 49 { | |
| 50 public: | |
| 51 DnDFile(wxFilePickerCtrl *fpCtrl) | |
| 52 { | |
| 53 m_filePickerCtrl = fpCtrl; | |
| 54 } | |
| 55 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames) | |
| 56 { | |
| 57 size_t nFiles = filenames.GetCount(); | |
| 58 if (nFiles != 1) return false; | |
| 59 m_filePickerCtrl->SetPath(filenames[0]); | |
| 60 return true; | |
| 61 } | |
| 62 | |
| 63 private: | |
| 64 wxFilePickerCtrl* m_filePickerCtrl; | |
| 65 }; | |
| 66 |
