diff src/kaigo/horori/mover/include/mover.h @ 45:20b42e2deae1

add alloc, (new)mover, merger & (new)searcher.
author pyon@macmini
date Thu, 16 Apr 2020 20:59:35 +0900
parents
children 169936fed61b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/kaigo/horori/mover/include/mover.h	Thu Apr 16 20:59:35 2020 +0900
@@ -0,0 +1,124 @@
+// Filename   : mover.h
+// Last Change: 2020-04-15  12:02:47.
+//
+#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/listctrl.h>
+#include <wx/bitmap.h>
+#include <wx/image.h>
+#include <wx/icon.h>
+#include <wx/button.h>
+#include <wx/sizer.h>
+#include <wx/checkbox.h>
+#include <wx/frame.h>
+#include <wx/dataview.h>
+#include <wx/statbmp.h>
+#include <wx/textctrl.h>
+#include <wx/datectrl.h>
+#include <wx/dateevt.h>
+#include <wx/choice.h>
+#include <wx/gbsizer.h>
+
+/* marksheet rect */
+#define MS_X 1340
+#define MS_Y  324
+#define MS_W  596
+#define MS_H  509
+
+/* lookin-window width & height */
+#define HNAME_WW 288
+#define HNAME_WH  86
+#define HNO_WW   288
+#define HNO_WH    49
+
+/* sub image size */
+#define HNAME_X 238
+#define HNAME_Y 540
+#define HNAME_W 656
+#define HNAME_H 170
+#define HNO_X 1340
+#define HNO_Y  238
+#define HNO_W  600
+#define HNO_H   94
+
+/* thumbnail size */
+#define THUMB_W 115
+#define THUMB_H 155
+
+/* right pane size */
+#define RIGHT_W  940
+#define RIGHT_H1 100
+#define RIGHT_H2 220
+
+WX_DECLARE_STRING_HASH_MAP(wxString, HhsHash);
+
+class MoveFrame : public wxFrame
+{
+	private:
+		HhsHash       m_hhash;
+		wxArrayString m_sss;
+		wxString      m_addr, m_port;
+
+	protected:
+		wxDirPickerCtrl* m_dirPicker;
+		wxButton*        m_buttonAuto;
+		wxCheckBox*      m_checkBox;
+
+		wxDataViewListCtrl* m_dataViewListCtrl;
+		wxDataViewColumn*   m_dataViewListColumnNo;
+		wxDataViewColumn*   m_dataViewListColumnHno;
+		wxDataViewColumn*   m_dataViewListColumnName;
+		wxDataViewColumn*   m_dataViewListColumnChecked;
+
+		wxStaticBitmap* m_bitmapName;
+		wxTextCtrl*     m_textCtrlName;
+
+		wxStaticBitmap* m_bitmapHno;
+		wxTextCtrl*     m_textCtrlHno;
+
+		wxListView* m_listViewThumb;
+
+		wxStaticBitmap* m_bitmapTk;
+		wxStaticBitmap* m_bitmapIk;
+
+		wxStaticText*     m_staticTextDate;
+		wxDatePickerCtrl* m_datePicker;
+		wxStaticText*     m_staticTextCcn;
+		wxChoice*         m_choiceCcn;
+		wxButton*         m_buttonSave;
+		wxTextCtrl*       m_textCtrlMsg;
+
+		virtual void OnKey(wxKeyEvent& event);
+		virtual void OnAuto(wxCommandEvent& event);
+		virtual void OnListChar(wxKeyEvent& event);
+		virtual void OnSelect(wxDataViewEvent& event);
+		virtual void OnHnoChar(wxKeyEvent& event);
+		virtual void OnHno(wxCommandEvent& event);
+		virtual void OnCheck(wxCommandEvent& event);
+		virtual void OnSave(wxCommandEvent& event);
+		virtual void OnThumbDeselected(wxListEvent& event);
+		virtual void OnThumbSelected(wxListEvent& event);
+		virtual void OnThumbDClick(wxListEvent& event);
+
+		void CreateControls();
+		void InitializeControlsValue();
+		void LoadDefaultImages();
+		void LoadDB();
+		void AutoDetect();
+		void ThumbnailPaper();
+		wxString AnalizeHhsno(wxString file);
+
+	public:
+		MoveFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL);
+		~MoveFrame();
+};
+