Mercurial > mercurial > hgweb_golang.cgi
view src/kaigo/horori/alloc/alloc.h @ 54:665f92c37b72
small fix.
author | pyon@macmini |
---|---|
date | Thu, 21 May 2020 22:53:50 +0900 |
parents | 20b42e2deae1 |
children | 0369656be06c |
line wrap: on
line source
// Filename : alloc.h // Last Change: 2020-04-16 –Ø 12:22:39. // #pragma once #include <wx/artprov.h> #include <wx/xrc/xmlres.h> #include <wx/string.h> #include <wx/stattext.h> #include <wx/gdicmn.h> #include <wx/font.h> #include <wx/colour.h> #include <wx/settings.h> #include <wx/filepicker.h> #include <wx/bitmap.h> #include <wx/image.h> #include <wx/icon.h> #include <wx/button.h> #include <wx/sizer.h> #include <wx/frame.h> #include <wx/dnd.h> class AllocFrame : public wxFrame { private: protected: wxStaticText* m_staticTextPdf; wxFilePickerCtrl* m_filePickerPdf1; wxFilePickerCtrl* m_filePickerPdf2; wxStaticText* m_staticTextTif; wxDirPickerCtrl* m_dirPickerTif; wxStaticText* m_staticTextWork; wxDirPickerCtrl* m_dirPickerWork; wxButton* m_buttonAlloc; virtual void OnAlloc(wxCommandEvent& event); void CreateControls(); void InitializeControlsValue(); void Pdf2Tif(); void AllocateTif(); public: 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); ~AllocFrame(); }; class DnDFile : public wxFileDropTarget { public: DnDFile(wxFilePickerCtrl *fpCtrl) { m_filePickerCtrl = fpCtrl; } virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames) { size_t nFiles = filenames.GetCount(); if (nFiles != 1) return false; m_filePickerCtrl->SetPath(filenames[0]); return true; } private: wxFilePickerCtrl* m_filePickerCtrl; };