# HG changeset patch # User pyon@macmini # Date 1597229878 -32400 # Node ID 48e46bfe97fac415d299f35313e25c3e9946b6e0 # Parent 62ae9daac43ac861deca2e22d92b7caf66cdd9d2 kaigo: pre-release eraline. diff -r 62ae9daac43a -r 48e46bfe97fa src/kaigo/horori/eraline/include/geraline.h --- a/src/kaigo/horori/eraline/include/geraline.h Thu Aug 06 19:50:15 2020 +0900 +++ b/src/kaigo/horori/eraline/include/geraline.h Wed Aug 12 19:57:58 2020 +0900 @@ -1,50 +1,78 @@ // Filename : geraline.h -// Last Change: 2020-08-06 15:45:27. +// Last Change: 2020-08-12 15:35:35. // #pragma once +#include +#include +#include #include -#include #include -#include #include -#include #include #include -#include -#include +#include #include +#include +#include +#include +#include class EralineFrame : public wxFrame { private: + wxString m_file; + wxImage m_image; + int m_x0, m_y0, m_x1, m_y1; protected: - wxStaticBitmap* m_bitmapZoom; - wxStaticText* m_staticTextInDir; - wxDirPickerCtrl* m_dirPickerInDir; - wxStaticText* m_staticTextOutDir; - wxDirPickerCtrl* m_dirPickerOutDir; - wxStaticText* m_staticTextY; - wxSpinCtrl* m_spinCtrlY; - wxStaticText* m_staticTextH; - wxSpinCtrl* m_spinCtrlH; - wxButton* m_buttonErase; - wxStaticText* m_staticTextFile; - wxTextCtrl* m_textCtrlFile; - wxStaticBitmap* m_bitmapThumb; - wxButton* m_buttonPrev; - wxButton* m_buttonNext; + wxStaticText* m_staticTextInDir; + wxStaticText* m_staticTextList; + wxStaticText* m_staticTextThumb; + wxStaticBitmap* m_bitmapLogo; + wxDirPickerCtrl* m_dirPickerInDir; + wxDataViewListCtrl* m_dataViewListCtrl; + wxDataViewColumn* m_dataViewListColumnName; + wxDataViewColumn* m_dataViewListColumnSize; + wxDataViewColumn* m_dataViewListColumnTime; + wxStaticBitmap* m_bitmapThumb; + wxStaticText* m_staticTextZoom; + wxScrolledWindow* m_scrolledWindow; + wxStaticBitmap* m_bitmapZoom; + wxStaticText* m_staticTextDot; + wxStaticText* m_staticTextY; + wxStaticText* m_staticTextH; + wxStaticText* m_staticTextOutDir; + wxStaticText* m_staticTextMsg; + wxGrid* m_gridView; + wxSpinCtrl* m_spinCtrlY; + wxSpinCtrl* m_spinCtrlH; + wxDirPickerCtrl* m_dirPickerOutDir; + wxTextCtrl* m_textCtrlMsg; + wxTextCtrl* m_textCtrlRGB; + wxButton* m_buttonErase; // Virtual event handlers, overide them in your derived class - virtual void OnErase(wxCommandEvent& event) { event.Skip(); } - virtual void OnDClick(wxMouseEvent& event) { event.Skip(); } - virtual void OnPrev(wxCommandEvent& event) { event.Skip(); } - virtual void OnNext(wxCommandEvent& event) { event.Skip(); } + virtual void OnSize(wxSizeEvent& event); + virtual void OnItemSelected(wxDataViewEvent& event); + virtual void OnInDirChanged(wxFileDirPickerEvent& event); + virtual void OnThumbDClicked(wxMouseEvent& event); + virtual void OnZoomDClicked(wxMouseEvent& event); + virtual void OnRangeSelect(wxGridRangeSelectEvent& event); + /* + virtual void OnSpinY(wxSpinEvent& event ) { event.Skip(); } + virtual void OnSpinYText(wxCommandEvent& event); + virtual void OnSpinH(wxSpinEvent& event ); + virtual void OnSpinHText(wxCommandEvent& event); + */ + virtual void OnErase(wxCommandEvent& event); public: EralineFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(800,800), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL); ~EralineFrame(); + void CreateControls(); + void LoadFile(); + void ViewDot(); }; diff -r 62ae9daac43a -r 48e46bfe97fa src/kaigo/horori/eraline/src/eraline.cpp --- a/src/kaigo/horori/eraline/src/eraline.cpp Thu Aug 06 19:50:15 2020 +0900 +++ b/src/kaigo/horori/eraline/src/eraline.cpp Wed Aug 12 19:57:58 2020 +0900 @@ -1,5 +1,5 @@ /* eraline.cpp - * Last Change: 2020-08-06 木 15:04:04. + * Last Change: 2020-08-12 水 16:58:21. * by T.Mutoh * * > eraline y d in.jpg out.jpg @@ -35,12 +35,12 @@ int y = wxAtoi(argv[1]); int d = wxAtoi(argv[2]); - wxString injpg = argv[3]; - wxString outjpg = argv[4]; + wxString inimg = argv[3]; + wxString outimg = argv[4]; wxImage::AddHandler(new wxTIFFHandler ); - wxImage img(injpg, wxBITMAP_TYPE_TIFF); + wxImage img(inimg, wxBITMAP_TYPE_TIFF); int r, g, b; for (int x = 0; x < img.GetWidth(); x++) { @@ -69,7 +69,7 @@ img.SetOption(wxIMAGE_OPTION_TIFF_COMPRESSION, 5); img.SetOption(wxIMAGE_OPTION_TIFF_BITSPERSAMPLE, 1); - img.SaveFile(outjpg); + img.SaveFile(outimg); return 0; } diff -r 62ae9daac43a -r 48e46bfe97fa src/kaigo/horori/eraline/src/geraline.cpp --- a/src/kaigo/horori/eraline/src/geraline.cpp Thu Aug 06 19:50:15 2020 +0900 +++ b/src/kaigo/horori/eraline/src/geraline.cpp Wed Aug 12 19:57:58 2020 +0900 @@ -1,92 +1,331 @@ // Filename : geraline.cpp -// Last Change: 2020-08-06 木 15:43:36. +// Last Change: 2020-08-12 水 17:18:40. // +#include +#include +#include #include "geraline.h" +#define GRID_SZ 9 +#define GRID_W 100 +#define GRID_H 60 +#define GRID_DY 30 // offset +#define ORGIMG_W 2480 +#define ORGIMG_H 3508 +#define THUMB_W 400 +#define THUMB_H 560 + EralineFrame::EralineFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxFrame(parent, id, title, pos, size, style) { - this->SetSizeHints(wxDefaultSize, wxDefaultSize); - this->SetBackgroundColour(wxColour(241, 226, 46)); + CreateControls(); + + // Connect Events + this->Connect(wxEVT_SIZE, wxSizeEventHandler(EralineFrame::OnSize)); + m_dirPickerInDir->Connect(wxEVT_COMMAND_DIRPICKER_CHANGED, wxFileDirPickerEventHandler(EralineFrame::OnInDirChanged), NULL, this); + m_dataViewListCtrl->Connect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler(EralineFrame::OnItemSelected), NULL, this); + m_bitmapThumb->Connect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(EralineFrame::OnThumbDClicked), NULL, this); + m_bitmapZoom->Connect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(EralineFrame::OnZoomDClicked), NULL, this); + m_gridView->Connect(wxEVT_GRID_RANGE_SELECT, wxGridRangeSelectEventHandler(EralineFrame::OnRangeSelect), NULL, this); + /* + m_spinCtrlY->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EralineFrame::OnSpinY ), NULL, this ); + m_spinCtrlY->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EralineFrame::OnSpinYText ), NULL, this ); + m_spinCtrlH->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EralineFrame::OnSpinH ), NULL, this ); + m_spinCtrlH->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EralineFrame::OnSpinHText ), NULL, this ); + */ + m_buttonErase->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnErase), NULL, this); + + m_textCtrlMsg->AppendText(wxString::Format(wxT("Scale = %2.4f x %2.4f\n"), 1.0 * THUMB_W / ORGIMG_W, 1.0 * THUMB_H / ORGIMG_H)); + + m_file = wxT("image/eraline.tif"); + LoadFile(); +} + +EralineFrame::~EralineFrame() +{ + // Disconnect Events + this->Disconnect(wxEVT_SIZE, wxSizeEventHandler(EralineFrame::OnSize)); + m_dirPickerInDir->Disconnect(wxEVT_COMMAND_DIRPICKER_CHANGED, wxFileDirPickerEventHandler(EralineFrame::OnInDirChanged), NULL, this); + m_dataViewListCtrl->Disconnect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler(EralineFrame::OnItemSelected), NULL, this); + m_bitmapThumb->Disconnect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(EralineFrame::OnThumbDClicked), NULL, this); + m_bitmapZoom->Disconnect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(EralineFrame::OnZoomDClicked), NULL, this); + m_gridView->Disconnect(wxEVT_GRID_RANGE_SELECT, wxGridRangeSelectEventHandler(EralineFrame::OnRangeSelect), NULL, this); + /* + m_spinCtrlY->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EralineFrame::OnSpinY ), NULL, this ); + m_spinCtrlY->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EralineFrame::OnSpinYText ), NULL, this ); + m_spinCtrlH->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EralineFrame::OnSpinH ), NULL, this ); + m_spinCtrlH->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EralineFrame::OnSpinHText ), NULL, this ); + */ + m_buttonErase->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnErase), NULL, this); +} + +// Event-Handlers +void EralineFrame::OnSize(wxSizeEvent& event) +{ + event.Skip(); +} + +void EralineFrame::OnInDirChanged(wxFileDirPickerEvent& event) +{ + m_dataViewListCtrl->DeleteAllItems(); + wxString path = m_dirPickerInDir->GetPath(); + wxDir dir(path); + if (!dir.IsOpened()) return; + + int n = 0; + wxString file; + bool cont = dir.GetFirst(&file, wxT("*.tif"), wxDIR_FILES); + + wxVector data; + while (cont) { + data.push_back(wxVariant(file)); + data.push_back(wxVariant(wxEmptyString)); + data.push_back(wxVariant(wxEmptyString)); + m_dataViewListCtrl->AppendItem(data); + data.clear(); + n++; + cont = dir.GetNext(&file); + } + + m_textCtrlMsg->AppendText(wxString::Format(wxT("Input Directory Changed (%d files).\n"), n)); + m_dirPickerOutDir->SetPath(path); +} - wxBoxSizer* bSizer = new wxBoxSizer(wxHORIZONTAL); +void EralineFrame::OnErase(wxCommandEvent& WXUNUSED(event)) +{ + wxString indir = m_dirPickerInDir->GetPath(); + wxString outdir = m_dirPickerOutDir->GetPath(); + if (indir.IsSameAs(outdir)) { + m_textCtrlMsg->AppendText(wxT("Error: Output direcoty is same Input directory.\n")); + wxMessageBox(wxT("Bad Folder")); + return; + } + + wxString cmd, infile, outfile; + wxString y = wxString::Format(wxT("%d"), m_spinCtrlY->GetValue()); + + wxTextFile textfile; + wxString batchfile = outdir + wxFILE_SEP_PATH + wxT("a.bat"); + + // > eraline.exe y h in.tif out.tif + for (int r = 0; r < m_dataViewListCtrl->GetItemCount(); r++) { + infile = indir + wxFILE_SEP_PATH + m_dataViewListCtrl->GetTextValue(r, 0); + outfile = outdir + wxFILE_SEP_PATH + m_dataViewListCtrl->GetTextValue(r, 0); + cmd = wxT("eraline.exe ") + y + wxT(" 1 ") + infile + " " + outfile; + textfile.AddLine(cmd); + } + + textfile.Create(batchfile); + wxCSConv cust(wxT("cp932")); + textfile.Write(wxTextFileType_Dos, cust); + textfile.Close(); + + wxExecute(batchfile, wxEXEC_SYNC|wxEXEC_HIDE_CONSOLE, NULL, NULL); + m_textCtrlMsg->AppendText(wxT("Process done.\n")); + wxMessageBox(wxT("Process done.")); +} + +void EralineFrame::OnThumbDClicked(wxMouseEvent& event) +{ + int x, y; + event.GetPosition(&x, &y); + m_x0 = (int)(1.0 * ORGIMG_W / THUMB_W * x); + m_y0 = (int)(1.0 * ORGIMG_H / THUMB_H * y); + m_textCtrlMsg->AppendText(wxString::Format(wxT("Preview: (%d, %d) Double-Clicked. -> [%d, %d]\n"), x, y, m_x0, m_y0)); - m_bitmapZoom = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0); - bSizer->Add(m_bitmapZoom, 1, wxALL|wxEXPAND, 5); + int dy = 40; // for centering + m_scrolledWindow->Scroll(m_x0 / 10 - dy, m_y0 / 10 - dy); +} + +void EralineFrame::OnZoomDClicked(wxMouseEvent& event) +{ + int x, y; + event.GetPosition(&x, &y); + m_x1 = x; + m_y1 = y; + m_textCtrlMsg->AppendText(wxString::Format(wxT("Zoom: (%d, %d) Double-Clicked.\n"), x, y)); + + ViewDot(); +} + +void EralineFrame::OnItemSelected(wxDataViewEvent& WXUNUSED(event)) +{ + int r = m_dataViewListCtrl->GetSelectedRow(); + wxString file = m_dataViewListCtrl->GetTextValue(r, 0); + + m_file = m_dirPickerInDir->GetPath() + wxFILE_SEP_PATH + file; + LoadFile(); +} + +void EralineFrame::OnRangeSelect(wxGridRangeSelectEvent& event) +{ + int c0 = event.GetLeftCol(); + int c1 = event.GetRightCol(); + int r0 = event.GetTopRow(); + int r1 = event.GetBottomRow(); + + m_spinCtrlY->SetValue(m_y1 + r0 - GRID_DY); + m_spinCtrlH->SetValue(r1 - r0 + 1); + m_textCtrlMsg->AppendText(wxString::Format(wxT("Grid: (%d, %d) - (%d, %d) [%d x %d], Selected.\n"), r0, c0, r1, c1, c1 - c0 + 1, r1 - r0 + 1)); +} + +// Functions +void EralineFrame::CreateControls() +{ + this->SetIcon(wxIcon(wxT("sample"))); + this->SetSizeHints(wxDefaultSize, wxDefaultSize); + this->SetBackgroundColour(wxColour(230, 230, 45)); wxGridBagSizer* gbSizer = new wxGridBagSizer(0, 0); gbSizer->SetFlexibleDirection(wxBOTH); gbSizer->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED); + // Col 0 m_staticTextInDir = new wxStaticText(this, wxID_ANY, wxT("Input Folder"), wxDefaultPosition, wxDefaultSize, 0); - m_staticTextInDir->Wrap(-1); gbSizer->Add(m_staticTextInDir, wxGBPosition(0, 0), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); - m_dirPickerInDir = new wxDirPickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a folder"), wxDefaultPosition, wxSize(200, -1), wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL); + m_staticTextList = new wxStaticText(this, wxID_ANY, wxT("Files"), wxDefaultPosition, wxDefaultSize, 0); + gbSizer->Add(m_staticTextList, wxGBPosition(1, 0), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT, 5); + + m_staticTextThumb = new wxStaticText(this, wxID_ANY, wxT("Preview"), wxDefaultPosition, wxDefaultSize, 0); + gbSizer->Add(m_staticTextThumb, wxGBPosition(2, 0), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT, 5); + + m_bitmapLogo = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize(300, 1), 0); + gbSizer->Add(m_bitmapLogo, wxGBPosition(8, 0), wxGBSpan(1, 2), wxALL, 5); + + // Col 1 + m_dirPickerInDir = new wxDirPickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a folder"), wxDefaultPosition, wxSize(280, -1), wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL); gbSizer->Add(m_dirPickerInDir, wxGBPosition(0, 1), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL, 5); + m_dataViewListCtrl = new wxDataViewListCtrl(this, wxID_ANY, wxDefaultPosition, wxSize(THUMB_W, 500), wxDV_ROW_LINES|wxDV_SINGLE); + m_dataViewListColumnName = m_dataViewListCtrl->AppendTextColumn(wxT("Name"), wxDATAVIEW_CELL_INERT, 120, static_cast(wxALIGN_LEFT), wxDATAVIEW_COL_RESIZABLE); + m_dataViewListColumnSize = m_dataViewListCtrl->AppendTextColumn(wxT("Size"), wxDATAVIEW_CELL_INERT, -1, static_cast(wxALIGN_RIGHT), wxDATAVIEW_COL_RESIZABLE); + m_dataViewListColumnTime = m_dataViewListCtrl->AppendTextColumn(wxT("Time"), wxDATAVIEW_CELL_INERT, -1, static_cast(wxALIGN_CENTER), wxDATAVIEW_COL_RESIZABLE); + gbSizer->Add(m_dataViewListCtrl, wxGBPosition(1, 1), wxGBSpan(1, 1), wxALL|wxEXPAND, 5); + + m_bitmapThumb = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize(THUMB_W, THUMB_H), 0); + gbSizer->Add(m_bitmapThumb, wxGBPosition(2, 1), wxGBSpan(6, 1), wxALL, 5); + + // Col 2 + m_staticTextZoom = new wxStaticText(this, wxID_ANY, wxT("-->> Zoom"), wxDefaultPosition, wxDefaultSize, 0); + gbSizer->Add(m_staticTextZoom, wxGBPosition(2, 2), wxGBSpan(1, 1), wxALL|wxALIGN_TOP|wxALIGN_RIGHT, 5); + + // Col 3 + m_scrolledWindow = new wxScrolledWindow(this, wxID_ANY, wxDefaultPosition, wxSize(600, 500), wxHSCROLL|wxVSCROLL); + m_scrolledWindow->SetScrollRate(5, 5); + m_scrolledWindow->SetScrollbars(10, 10, ORGIMG_W / 10, ORGIMG_H / 10); + m_scrolledWindow->SetBackgroundColour(wxColour(200, 200, 200)); + m_bitmapZoom = new wxStaticBitmap(m_scrolledWindow, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize(300, 400), 0); + gbSizer->Add(m_scrolledWindow, wxGBPosition(0, 3), wxGBSpan(8, 1), wxEXPAND | wxALL, 5); + + // Col 4 + m_staticTextDot = new wxStaticText(this, wxID_ANY, wxT("-->> Dot"), wxDefaultPosition, wxDefaultSize, 0); + gbSizer->Add(m_staticTextDot, wxGBPosition(0, 4), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + + m_staticTextY = new wxStaticText(this, wxID_ANY, wxT("y"), wxDefaultPosition, wxDefaultSize, 0); + gbSizer->Add(m_staticTextY, wxGBPosition(3, 4), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + + m_staticTextH = new wxStaticText(this, wxID_ANY, wxT("h"), wxDefaultPosition, wxDefaultSize, 0); + gbSizer->Add(m_staticTextH, wxGBPosition(4, 4), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + m_staticTextOutDir = new wxStaticText(this, wxID_ANY, wxT("Output Folder"), wxDefaultPosition, wxDefaultSize, 0); - m_staticTextOutDir->Wrap(-1); - gbSizer->Add(m_staticTextOutDir, wxGBPosition(1, 0), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + gbSizer->Add(m_staticTextOutDir, wxGBPosition(5, 4), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + + m_staticTextMsg = new wxStaticText(this, wxID_ANY, wxT("Message"), wxDefaultPosition, wxDefaultSize, 0); + gbSizer->Add(m_staticTextMsg, wxGBPosition(6, 4), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT, 5); - m_dirPickerOutDir = new wxDirPickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a folder"), wxDefaultPosition, wxSize(200, -1), wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL); - gbSizer->Add(m_dirPickerOutDir, wxGBPosition(1, 1), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL, 5); - - m_staticTextY = new wxStaticText(this, wxID_ANY, wxT("y"), wxDefaultPosition, wxDefaultSize, 0); - m_staticTextY->Wrap(-1); - gbSizer->Add(m_staticTextY, wxGBPosition(2, 0), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + // Col 5 + m_gridView = new wxGrid(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0); + m_gridView->CreateGrid(GRID_W, GRID_H); + m_gridView->EnableEditing(false); + m_gridView->EnableGridLines(true); + m_gridView->EnableDragGridSize(false); + m_gridView->EnableDragRowSize(false); + m_gridView->SetMargins(0, 0); + m_gridView->EnableDragColMove(false); + m_gridView->EnableDragColSize(false); + m_gridView->SetRowMinimalAcceptableHeight(GRID_SZ); + m_gridView->SetColMinimalAcceptableWidth(GRID_SZ); + m_gridView->SetDefaultColSize(GRID_SZ, true); + m_gridView->SetDefaultRowSize(GRID_SZ, true); + m_gridView->SetColLabelSize(25); + m_gridView->SetRowLabelSize(25); + m_gridView->SetColLabelAlignment(wxALIGN_CENTER, wxALIGN_CENTER); + m_gridView->SetRowLabelAlignment(wxALIGN_RIGHT, wxALIGN_CENTER); + m_gridView->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_TOP); + m_gridView->SetLabelFont(wxFont(5, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString)); + m_gridView->SetSelectionBackground(*wxRED); + gbSizer->Add(m_gridView, wxGBPosition(0, 5), wxGBSpan(3, 3), wxALL, 5); m_spinCtrlY = new wxSpinCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(80, -1), wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 3500, 0); - gbSizer->Add(m_spinCtrlY, wxGBPosition(2, 1), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL, 5); - - m_staticTextH = new wxStaticText(this, wxID_ANY, wxT("h"), wxDefaultPosition, wxDefaultSize, 0); - m_staticTextH->Wrap(-1); - gbSizer->Add(m_staticTextH, wxGBPosition(3, 0), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + gbSizer->Add(m_spinCtrlY, wxGBPosition(3, 5), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL, 5); m_spinCtrlH = new wxSpinCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(80, -1), wxALIGN_RIGHT|wxSP_ARROW_KEYS, 1, 10, 1); - gbSizer->Add(m_spinCtrlH, wxGBPosition(3, 1), wxGBSpan(1, 1), wxALL, 5); - - m_buttonErase = new wxButton(this, wxID_ANY, wxT("Erase"), wxDefaultPosition, wxSize(60, -1), 0); - gbSizer->Add(m_buttonErase, wxGBPosition(3, 2), wxGBSpan(1, 2), wxALL|wxALIGN_CENTER_VERTICAL, 5); + gbSizer->Add(m_spinCtrlH, wxGBPosition(4, 5), wxGBSpan(1, 1), wxALL, 5); - m_staticTextFile = new wxStaticText(this, wxID_ANY, wxT("File"), wxDefaultPosition, wxDefaultSize, 0); - m_staticTextFile->Wrap(-1); - gbSizer->Add(m_staticTextFile, wxGBPosition(5, 0), wxGBSpan(1, 1), wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + m_dirPickerOutDir = new wxDirPickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a folder"), wxDefaultPosition, wxSize(280, -1), wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL); + gbSizer->Add(m_dirPickerOutDir, wxGBPosition(5, 5), wxGBSpan(1, 2), wxALL|wxALIGN_CENTER_VERTICAL, 5); - m_textCtrlFile = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(200, -1), wxTE_READONLY); - m_textCtrlFile->SetBackgroundColour(wxColour(235, 239, 75)); + m_textCtrlMsg = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(500, 60), wxTE_MULTILINE); + gbSizer->Add(m_textCtrlMsg, wxGBPosition(6, 5), wxGBSpan(2, 3), wxALL, 5); - gbSizer->Add(m_textCtrlFile, wxGBPosition(5, 1), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL, 5); - - m_bitmapThumb = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize(300,400), 0); - gbSizer->Add(m_bitmapThumb, wxGBPosition(6, 1), wxGBSpan(1, 3), wxALL, 5); + // Col 6 + m_textCtrlRGB = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY); + gbSizer->Add(m_textCtrlRGB, wxGBPosition(3, 6), wxGBSpan(1, 1), wxALL, 5); - m_buttonPrev = new wxButton(this, wxID_ANY, wxT("<"), wxDefaultPosition, wxSize(20, -1), 0); - gbSizer->Add(m_buttonPrev, wxGBPosition(5, 2), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 0); + // Col 7 + m_buttonErase = new wxButton(this, wxID_ANY, wxT("Erase"), wxDefaultPosition, wxSize(60, -1), 0); + gbSizer->Add(m_buttonErase, wxGBPosition(5, 7), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL, 5); - m_buttonNext = new wxButton(this, wxID_ANY, wxT(">"), wxDefaultPosition, wxSize(20, -1), 0); - gbSizer->Add(m_buttonNext, wxGBPosition(5, 3), wxGBSpan(1, 1), wxALL|wxALIGN_CENTER_VERTICAL, 0); - - bSizer->Add(gbSizer, 0, wxEXPAND, 5); - - this->SetSizer(bSizer); + // + this->SetSizer(gbSizer); this->Layout(); this->Centre(wxBOTH); +} - // Connect Events - m_buttonErase->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnErase), NULL, this); - m_bitmapThumb->Connect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(EralineFrame::OnDClick), NULL, this); - m_buttonPrev->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnPrev), NULL, this); - m_buttonNext->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnNext), NULL, this); +void EralineFrame::LoadFile() +{ + if (!wxFileExists(m_file)) return; + m_image.LoadFile(m_file, wxBITMAP_TYPE_TIFF, 0); + + wxBitmap bitmap = wxBitmap(m_image.Scale(THUMB_W, THUMB_H, wxIMAGE_QUALITY_HIGH)); + m_bitmapThumb->SetBitmap(bitmap); + + bitmap = wxBitmap(m_image); + m_bitmapZoom->SetBitmap(bitmap); + + m_textCtrlMsg->AppendText(wxString::Format(wxT("Image-Size: %d x %d\n"), m_image.GetWidth(), m_image.GetHeight())); } -EralineFrame::~EralineFrame() +void EralineFrame::ViewDot() { - // Disconnect Events - m_buttonErase->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnErase), NULL, this); - m_bitmapThumb->Disconnect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(EralineFrame::OnDClick), NULL, this); - m_buttonPrev->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnPrev), NULL, this); - m_buttonNext->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(EralineFrame::OnNext), NULL, this); + wxGridUpdateLocker noUpdates(m_gridView); + /* + if (m_image.GetWidth() != m_gridView->GetNumberCols() || m_image.GetHeight() != m_gridView->GetNumberRows()) { + m_gridView->DeleteCols(0, m_gridView->GetNumberCols(), true); + m_gridView->DeleteRows(0, m_gridView->GetNumberRows(), true); + m_gridView->AppendCols(m_image.GetWidth(), true); + m_gridView->AppendRows(m_image.GetHeight(), true); + } + */ + int rn = m_gridView->GetNumberRows(); + int cn = m_gridView->GetNumberCols(); + int dy = GRID_DY; // for centering + if (m_y1 < dy) m_y1 = dy; + if (m_x1 + cn > ORGIMG_W) m_x1 = ORGIMG_W - cn; + if (m_y1 + rn > ORGIMG_H) m_y1 = ORGIMG_H - rn; + + unsigned char r, g, b; + for (int y = 0; y < rn; y++) { + for (int x = 0; x < cn; x++) { + r = m_image.GetRed(m_x1 + x, m_y1 + y - dy); + g = m_image.GetGreen(m_x1 + x, m_y1 + y - dy); + b = m_image.GetBlue(m_x1 + x, m_y1 + y - dy); + m_gridView->SetCellBackgroundColour(y, x, wxColour(r, g, b)); + } + } + m_textCtrlMsg->AppendText(wxString::Format(wxT("Refresh Grid (%d x %d).\n"), m_gridView->GetNumberCols(), m_gridView->GetNumberRows())); } + diff -r 62ae9daac43a -r 48e46bfe97fa src/kaigo/horori/eraline/src/main.cpp --- a/src/kaigo/horori/eraline/src/main.cpp Thu Aug 06 19:50:15 2020 +0900 +++ b/src/kaigo/horori/eraline/src/main.cpp Wed Aug 12 19:57:58 2020 +0900 @@ -1,5 +1,5 @@ // Filename : main.cpp -// Last Change: 2020-08-06 木 15:42:41. +// Last Change: 2020-08-12 水 15:01:57. // #include "main.h" #include "geraline.h" @@ -22,7 +22,7 @@ wxImage::AddHandler(new wxJPEGHandler); wxImage::AddHandler(new wxTIFFHandler); - EralineFrame *frame = new EralineFrame(NULL, wxID_ANY, wxT("Erase Line -"), wxDefaultPosition, wxSize(800, 800), wxDEFAULT_FRAME_STYLE); + EralineFrame *frame = new EralineFrame(NULL, wxID_ANY, wxT("Erase Line -"), wxDefaultPosition, wxSize(1900, 1140), wxDEFAULT_FRAME_STYLE); frame->Show(true); frame->Raise(); diff -r 62ae9daac43a -r 48e46bfe97fa src/kaigo/horori/horori.fbp --- a/src/kaigo/horori/horori.fbp Thu Aug 06 19:50:15 2020 +0900 +++ b/src/kaigo/horori/horori.fbp Wed Aug 12 19:57:58 2020 +0900 @@ -7212,7 +7212,7 @@ EralineFrame - 800,800 + 1000,900 wxDEFAULT_FRAME_STYLE ; ; forward_declare @@ -7221,15 +7221,410 @@ wxTAB_TRAVERSAL 1 - + OnSize + + + wxBOTH + + + 0 - bSizer - wxHORIZONTAL + gbSizer + wxFLEX_GROWMODE_SPECIFIED none - + 0 + + 5 + 1 + 0 + wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + 0 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Input Folder + 0 + + 0 + + + 0 + + 1 + m_staticTextInDir + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 1 + 0 + wxALL|wxALIGN_RIGHT + 1 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Files + 0 + + 0 + + + 0 + + 1 + m_staticTextList + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 1 + 0 + wxALL|wxALIGN_RIGHT + 2 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Preview + 0 + + 0 + + + 0 + + 1 + m_staticTextThumb + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + 5 + 2 + 0 + wxALL + 8 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_bitmapLogo + 1 + + + protected + 1 + + Resizable + 1 + 300,-1 + ; ; forward_declare + 0 + + + + + + + + 5 + 1 + 1 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + Select a folder + + 0 + + 1 + m_dirPickerInDir + 1 + + + protected + 1 + + Resizable + 1 + 280,-1 + wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + OnInDirChanged + + + + 5 + 1 + 1 wxALL|wxEXPAND - 1 + 1 + 1 + + + + 1 + 1 + + + 0 + wxID_ANY + + + m_dataViewListCtrl + protected + + -1,300 + wxDV_ROW_LINES|wxDV_SINGLE + ; ; forward_declare + + + + + OnItemSelected + + wxALIGN_LEFT + + wxDATAVIEW_COL_RESIZABLE + Name + wxDATAVIEW_CELL_INERT + m_dataViewListColumnName + protected + Text + 120 + + + wxALIGN_LEFT + + wxDATAVIEW_COL_RESIZABLE + Size + wxDATAVIEW_CELL_INERT + m_dataViewListColumnSize + protected + Text + -1 + + + wxALIGN_CENTER + + wxDATAVIEW_COL_RESIZABLE + Time + wxDATAVIEW_CELL_INERT + m_dataViewListColumnTime + protected + Text + -1 + + + + + 5 + 1 + 1 + wxALL + 2 + 6 1 1 @@ -7266,7 +7661,453 @@ 0 1 - m_bitmapZoom + m_bitmapThumb + 1 + + + protected + 1 + + Resizable + 1 + 300,200 + ; ; forward_declare + 0 + + + + + OnThumbDClicked + + + + 5 + 1 + 2 + wxALL|wxALIGN_RIGHT + 2 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + -->> Zoom + 0 + + 0 + + + 0 + + 1 + m_staticTextZoom + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 1 + 3 + wxEXPAND | wxALL + 0 + 9 + + 1 + 1 + 1 + 1 + + + + + + 212,208,200 + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_scrolledWindow + 1 + + + protected + 1 + + Resizable + 5 + 5 + 1 + + ; ; forward_declare + 0 + + + + wxHSCROLL|wxVSCROLL + OnZoomDClicked + + + + 5 + 1 + 4 + wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + 0 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + -->> Dot + 0 + + 0 + + + 0 + + 1 + m_staticTextDot + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 1 + 4 + wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + 3 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + y + 0 + + 0 + + + 0 + + 1 + m_staticTextY + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 1 + 4 + wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + 4 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + h + 0 + + 0 + + + 0 + + 1 + m_staticTextH + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 1 + 4 + wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + 5 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Output Folder + 0 + + 0 + + + 0 + + 1 + m_staticTextOutDir + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 1 + 4 + wxALL|wxALIGN_RIGHT + 6 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Message + 0 + + 0 + + + 0 + + 1 + m_staticTextMsg 1 @@ -7276,970 +8117,517 @@ Resizable 1 + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + 3 + 5 + wxALL + 0 + 3 + + 1 + 1 + 1 + 1 + + + + + 0 + 0 + + + + 1 + + + wxALIGN_LEFT + + wxALIGN_TOP + 0 + 1 + wxALIGN_CENTER + 25 + + wxALIGN_CENTER + 3 + 12 + + 1 + 0 + Dock + 0 + Left + 0 + 0 + 0 + 0 + 0 + 1 + + 1 + + + 1 + 0 + 0 + wxID_ANY + + ,90,90,8,70,0 + + 0 + 0 + + 0 + + + 0 + + 1 + m_gridView + 1 + + + protected + 1 + + Resizable + wxALIGN_RIGHT + 25 + + wxALIGN_CENTER + 12 + 30 + 1 + ; ; forward_declare 0 + OnRangeSelect + + + + 5 + 1 + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 3 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 0 + 3500 + + 0 + + 0 + + 0 + + 1 + m_spinCtrlY + 1 + + + protected + 1 + + Resizable + 1 + 80,-1 + wxALIGN_RIGHT|wxSP_ARROW_KEYS + ; ; forward_declare + 0 + + + + + + OnSpinY + OnSpinYText + + + + 5 + 1 + 5 + wxALL + 4 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 1 + 10 + + 0 + + 1 + + 0 + + 1 + m_spinCtrlH + 1 + + + protected + 1 + + Resizable + 1 + 80,-1 + wxALIGN_RIGHT|wxSP_ARROW_KEYS + ; ; forward_declare + 0 + + + + + + OnSpinH + OnSpinHText + + + + 5 + 2 + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 5 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + Select a folder + + 0 + + 1 + m_dirPickerOutDir + 1 + + + protected + 1 + + Resizable + 1 + 280,-1 + wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + - + 5 - wxEXPAND - 0 - - - wxBOTH - - - 0 + 3 + 5 + wxALL + 6 + 2 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 - gbSizer - wxFLEX_GROWMODE_SPECIFIED - none - 0 - - 5 - 1 - 0 - wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL - 0 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - Input Folder - 0 - - 0 - - - 0 - - 1 - m_staticTextInDir - 1 - - - protected - 1 - - Resizable - 1 - - - ; ; forward_declare - 0 - - - - - -1 - - - - 5 - 1 - 1 - wxALL|wxALIGN_CENTER_VERTICAL - 0 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - Select a folder - - 0 - - 1 - m_dirPickerInDir - 1 - - - protected - 1 - - Resizable - 1 - 200,-1 - wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - 5 - 1 - 0 - wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL - 1 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - Output Folder - 0 - - 0 - - - 0 - - 1 - m_staticTextOutDir - 1 - - - protected - 1 - - Resizable - 1 - - - ; ; forward_declare - 0 - - - - - -1 - - - - 5 - 1 - 1 - wxALL|wxALIGN_CENTER_VERTICAL - 1 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - Select a folder - - 0 - - 1 - m_dirPickerOutDir - 1 - - - protected - 1 - - Resizable - 1 - 200,-1 - wxDIRP_DEFAULT_STYLE|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - 5 - 1 - 0 - wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL - 2 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - y - 0 - - 0 - - - 0 - - 1 - m_staticTextY - 1 - - - protected - 1 - - Resizable - 1 - - - ; ; forward_declare - 0 - - - - - -1 - - - - 5 - 1 - 1 - wxALL|wxALIGN_CENTER_VERTICAL - 2 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - 0 - 3500 - - 0 - - 0 - - 0 - - 1 - m_spinCtrlY - 1 - - - protected - 1 - - Resizable - 1 - 80,-1 - wxALIGN_RIGHT|wxSP_ARROW_KEYS - ; ; forward_declare - 0 - - - - - - - - - 5 - 1 - 0 - wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL - 3 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - h - 0 - - 0 - - - 0 - - 1 - m_staticTextH - 1 - - - protected - 1 - - Resizable - 1 - - - ; ; forward_declare - 0 - - - - - -1 - - - - 5 - 1 - 1 - wxALL - 3 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - 1 - 10 - - 0 - - 1 - - 0 - - 1 - m_spinCtrlH - 1 - - - protected - 1 - - Resizable - 1 - 80,-1 - wxALIGN_RIGHT|wxSP_ARROW_KEYS - ; ; forward_declare - 0 - - - - - - - - - 5 - 2 - 2 - wxALL|wxALIGN_CENTER_VERTICAL - 3 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - - 1 - 0 - 1 - - 1 - - 0 - 0 - - Dock - 0 - Left - 1 - - 1 - - - 0 - 0 - wxID_ANY - Erase - - 0 - - 0 - - - 0 - - 1 - m_buttonErase - 1 - - - protected - 1 - - - - Resizable - 1 - 60,-1 - - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnErase - - - - 5 - 1 - 0 - wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL - 5 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - File - 0 - - 0 - - - 0 - - 1 - m_staticTextFile - 1 - - - protected - 1 - - Resizable - 1 - - - ; ; forward_declare - 0 - - - - - -1 - - - - 5 - 1 - 1 - wxALL|wxALIGN_CENTER_VERTICAL - 5 - 1 - - 1 - 1 - 1 - 1 - - - - - - 235,239,75 - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - - 0 - - 1 - m_textCtrlFile - 1 - - - protected - 1 - - Resizable - 1 - 200,-1 - wxTE_READONLY - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - 5 - 3 - 1 - wxALL - 6 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - 0 - - 1 - m_bitmapThumb - 1 - - - protected - 1 - - Resizable - 1 - 300,400 - ; ; forward_declare - 0 - - - - - OnDClick - - - - 0 - 1 - 2 - wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT - 5 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - - 1 - 0 - 1 - - 1 - - 0 - 0 - - Dock - 0 - Left - 1 - - 1 - - - 0 - 0 - wxID_ANY - < - - 0 - - 0 - - - 0 - - 1 - m_buttonPrev - 1 - - - protected - 1 - - - - Resizable - 1 - 20,-1 - - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnPrev - - - - 0 - 1 - 3 - wxALL|wxALIGN_CENTER_VERTICAL - 5 - 1 - - 1 - 1 - 1 - 1 - - - - - - - - - 1 - 0 - 1 - - 1 - - 0 - 0 - - Dock - 0 - Left - 1 - - 1 - - - 0 - 0 - wxID_ANY - > - - 0 - - 0 - - - 0 - - 1 - m_buttonNext - 1 - - - protected - 1 - - - - Resizable - 1 - 20,-1 - - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - OnNext - - + 1 + m_textCtrlMsg + 1 + + + protected + 1 + + Resizable + 1 + 300,-1 + wxTE_MULTILINE + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + 5 + 1 + 6 + wxALL + 3 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_textCtrlRGB + 1 + + + protected + 1 + + Resizable + 1 + + wxTE_READONLY + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + 5 + 1 + 7 + wxALL|wxALIGN_CENTER_VERTICAL + 5 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 1 + + 1 + + + 0 + 0 + wxID_ANY + Erase + + 0 + + 0 + + + 0 + + 1 + m_buttonErase + 1 + + + protected + 1 + + + + Resizable + 1 + 60,-1 + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + OnErase