Mercurial > mercurial > hgweb_kaigo.hg.cgi
comparison horori/alloc/alloc.h @ 0:aaaa401818a1 draft
first commit.
| author | pyon <pyon@macmini> |
|---|---|
| date | Mon, 24 May 2021 21:32:58 +0900 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:aaaa401818a1 |
|---|---|
| 1 // Filename : alloc.h | |
| 2 // Last Change: 2021-05-07 ‹à 17:09:06. | |
| 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/checkbox.h> | |
| 16 #include <wx/bitmap.h> | |
| 17 #include <wx/image.h> | |
| 18 #include <wx/icon.h> | |
| 19 #include <wx/button.h> | |
| 20 #include <wx/sizer.h> | |
| 21 #include <wx/frame.h> | |
| 22 #include <wx/dnd.h> | |
| 23 | |
| 24 class AllocFrame : public wxFrame | |
| 25 { | |
| 26 private: | |
| 27 | |
| 28 protected: | |
| 29 wxStaticText* m_staticTextPdf; | |
| 30 wxFilePickerCtrl* m_filePickerPdf1; | |
| 31 wxFilePickerCtrl* m_filePickerPdf2; | |
| 32 wxCheckBox* m_checkBoxSkipPdf; | |
| 33 wxStaticText* m_staticTextTif; | |
| 34 wxDirPickerCtrl* m_dirPickerTif; | |
| 35 wxCheckBox* m_checkBoxJ2T; | |
| 36 wxStaticText* m_staticTextWork; | |
| 37 wxDirPickerCtrl* m_dirPickerWork; | |
| 38 wxButton* m_buttonAlloc; | |
| 39 | |
| 40 virtual void OnAlloc(wxCommandEvent& event); | |
| 41 void CreateControls(); | |
| 42 void InitializeControlsValue(); | |
| 43 void Pdf2Jpg(); | |
| 44 bool AllocateTif(); | |
| 45 | |
| 46 public: | |
| 47 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); | |
| 48 ~AllocFrame(); | |
| 49 }; | |
| 50 | |
| 51 class DnDFile : public wxFileDropTarget | |
| 52 { | |
| 53 public: | |
| 54 DnDFile(wxFilePickerCtrl *fpCtrl) | |
| 55 { | |
| 56 m_filePickerCtrl = fpCtrl; | |
| 57 } | |
| 58 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames) | |
| 59 { | |
| 60 size_t nFiles = filenames.GetCount(); | |
| 61 if (nFiles != 1) return false; | |
| 62 m_filePickerCtrl->SetPath(filenames[0]); | |
| 63 return true; | |
| 64 } | |
| 65 | |
| 66 private: | |
| 67 wxFilePickerCtrl* m_filePickerCtrl; | |
| 68 }; | |
| 69 |
