annotate src/kaigo/horori/alloc/alloc.h @ 48:ca00c4a85b98

small changes.
author pyon@macmini
date Wed, 22 Apr 2020 19:00:50 +0900
parents 20b42e2deae1
children 0369656be06c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
45
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
1 // Filename : alloc.h
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
2 // Last Change: 2020-04-16 –Ø 12:22:39.
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
3 //
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
4 #pragma once
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
5
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
6 #include <wx/artprov.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
7 #include <wx/xrc/xmlres.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
8 #include <wx/string.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
9 #include <wx/stattext.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
10 #include <wx/gdicmn.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
11 #include <wx/font.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
12 #include <wx/colour.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
13 #include <wx/settings.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
14 #include <wx/filepicker.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
15 #include <wx/bitmap.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
16 #include <wx/image.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
17 #include <wx/icon.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
18 #include <wx/button.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
19 #include <wx/sizer.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
20 #include <wx/frame.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
21 #include <wx/dnd.h>
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
22
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
23 class AllocFrame : public wxFrame
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
24 {
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
25 private:
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
26
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
27 protected:
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
28 wxStaticText* m_staticTextPdf;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
29 wxFilePickerCtrl* m_filePickerPdf1;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
30 wxFilePickerCtrl* m_filePickerPdf2;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
31 wxStaticText* m_staticTextTif;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
32 wxDirPickerCtrl* m_dirPickerTif;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
33 wxStaticText* m_staticTextWork;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
34 wxDirPickerCtrl* m_dirPickerWork;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
35 wxButton* m_buttonAlloc;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
36
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
37 virtual void OnAlloc(wxCommandEvent& event);
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
38 void CreateControls();
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
39 void InitializeControlsValue();
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
40 void Pdf2Tif();
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
41 void AllocateTif();
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
42
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
43 public:
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
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);
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
45 ~AllocFrame();
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
46 };
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
47
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
48 class DnDFile : public wxFileDropTarget
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
49 {
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
50 public:
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
51 DnDFile(wxFilePickerCtrl *fpCtrl)
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
52 {
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
53 m_filePickerCtrl = fpCtrl;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
54 }
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
55 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames)
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
56 {
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
57 size_t nFiles = filenames.GetCount();
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
58 if (nFiles != 1) return false;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
59 m_filePickerCtrl->SetPath(filenames[0]);
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
60 return true;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
61 }
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
62
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
63 private:
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
64 wxFilePickerCtrl* m_filePickerCtrl;
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
65 };
20b42e2deae1 add alloc, (new)mover, merger & (new)searcher.
pyon@macmini
parents:
diff changeset
66