OSDN Git Service

implemented gui
authorkei9 <kei9@users.sourceforge.jp>
Thu, 5 Dec 2013 16:13:30 +0000 (01:13 +0900)
committerkei9 <kei9@users.sourceforge.jp>
Thu, 5 Dec 2013 16:13:30 +0000 (01:13 +0900)
amulettool.py
data.zip [moved from model/data.zip with 100% similarity]
model/db_generator.py
view/__init__.py [new file with mode: 0644]
view/constnumbers.py
view/gaugedialog.xrc [new file with mode: 0644]
view/gaugedialogview.py [new file with mode: 0644]
view/mainframe.py [deleted file]
view/mainframe.xrc
view/mainframe2.xrc [deleted file]
view/mainframeview.py [new file with mode: 0644]

index ae047f4..d145fa3 100644 (file)
@@ -1,4 +1,77 @@
 # -*- coding: utf-8 -*-
 
-# \82¨\8eç\82è\83X\83L\83\8b\82ÌSeed\93Á\92è\83N\83\89\83X
+# お守りスキルのSeed特定ツールのコントロールクラス
 # 2013/12/04 written by kei9
+
+import threading
+import time
+import os.path
+
+import wx
+
+import view
+import model
+
+
+class AmuletToolController(wx.App):
+    u""" アプリケーションの制御クラス """
+    def OnInit(self):
+        self.frame_view = view.MainFrameView("view")
+        
+        self._init_events()
+
+        self.frame_view.Show()
+
+        self._init_database()
+        return True
+
+    def _init_events(self):
+        u"""イベント登録"""
+        frame = self.frame_view.frame
+
+        # menu event
+        frame.Bind(wx.EVT_MENU, self.OnClose, id=self.frame_view.ID_MENU_ITEM_EXIT)
+        frame.Bind(wx.EVT_MENU, self.OnAboutBox, id=self.frame_view.ID_MENU_ITEM_ABOUT)
+
+    def _init_database(self):
+        u""" DBの初期設定 """
+
+        if not os.path.exists(model.DB_FILE_NAME):
+            u""" DBが存在しない時は再生成する """
+            frame = self.frame_view.frame
+            generator = model.DataBaseGenerator(model.DB_FILE_NAME)
+            #generator = model.DataBaseGenerator()
+
+            dlg_view = view.GaugeDialogView("view")
+            def _loop():
+                while t1.is_alive():
+                    dlg_view.gauge.Pulse()
+                    time.sleep(0.2)
+                dlg_view.finish_generation()
+
+            t1 = threading.Thread(target=generator.generate_db)
+            t2 = threading.Thread(target=_loop)
+            t1.start()
+            t2.start()
+
+            dlg_view.ShowModal()
+            t1.join()
+            t2.join()
+            dlg_view.Destroy()
+
+        # access to db
+        db_accessor = model.DataBaseAccessor(model.DB_FILE_NAME)
+
+
+
+
+    def OnClose(self, evt):
+        self.frame_view.Close()
+
+    def OnAboutBox(self, evt):
+        info = self.frame_view.GetAboutInfo()
+        wx.AboutBox(info)
+
+if __name__ == "__main__":
+    app = AmuletToolController(False)
+    app.MainLoop()
similarity index 100%
rename from model/data.zip
rename to data.zip
index a0973b4..3a41379 100644 (file)
@@ -17,7 +17,7 @@ import db_supports
 class DataBaseGenerator(object):
     u""" this is generate class of database """
     def __init__(self, db_name=None):
-        if dbName is None:
+        if db_name is None:
             self._db_name = ":memory:"
         else :
             self._db_name = db_name
diff --git a/view/__init__.py b/view/__init__.py
new file mode 100644 (file)
index 0000000..fa1cda1
--- /dev/null
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+# GUIのViewモジュール
+# 2013/12/05 written by kei9
+
+from mainframeview import MainFrameView
+from gaugedialogview import GaugeDialogView
+from constnumbers import *
index c7ae3ef..5fa117d 100644 (file)
@@ -3,6 +3,16 @@
 # GUI用の説明文など。
 # 2013/12/05 written by kei9
 
+# for dict
+KEY_AMULET1 = "amulet1"
+KEY_AMULET2 = "amulet1"
+KEY_AMULET3 = "amulet1"
+KEY_THRESHOLD2 = "threshold2"
+
+# xrc file
+XRC_GAUGE_DIALOG = "gaugedialog.xrc"
+XRC_MAIN_FRAME = "mainframe.xrc"
+
 # for about
 NAME = u"Amulet Tools MH4"
 VERSION = u"0.1"
diff --git a/view/gaugedialog.xrc b/view/gaugedialog.xrc
new file mode 100644 (file)
index 0000000..ee0d834
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resource class="wxDialog">
+  <object class="wxDialog" name="GaugeDialog">
+    <object class="wxBoxSizer">
+      <orient>wxVERTICAL</orient>
+      <object class="sizeritem">
+        <object class="wxStaticText" name="LabelGaugeDialog">
+          <label>データベースの生成中...</label>
+        </object>
+        <flag>wxALL|wxEXPAND|wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTRE_HORIZONTAL</flag>
+        <border>10</border>
+      </object>
+      <object class="sizeritem">
+        <object class="wxGauge" name="GaugeProgress"/>
+        <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND</flag>
+        <border>10</border>
+      </object>
+      <object class="sizeritem">
+        <object class="wxButton" name="wxID_OK">
+          <label>OK</label>
+          <enabled>0</enabled>
+        </object>
+        <flag>wxALL|wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTRE_HORIZONTAL</flag>
+        <border>10</border>
+      </object>
+    </object>
+    <size>240,120</size>
+    <title>データベースの生成</title>
+    <style>wxCAPTION|wxSYSTEM_MENU</style>
+  </object>
+</resource>
\ No newline at end of file
diff --git a/view/gaugedialogview.py b/view/gaugedialogview.py
new file mode 100644 (file)
index 0000000..c092f67
--- /dev/null
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+
+# 進行状況をゲージで示すダイアログ
+# 2013/12/05 written by kei9
+import wx
+import os.path
+from wx import xrc
+
+import constnumbers
+
+class GaugeDialogView():
+    u""" メインのフレームクラス """
+    def __init__(self, dirname=None):
+        if dirname is None:
+            self.res = wx.xrc.XmlResource(constnumbers.XRC_GAUGE_DIALOG)
+        else:
+            self.res = wx.xrc.XmlResource(os.path.join(dirname,constnumbers.XRC_GAUGE_DIALOG))
+        self._init_dialog()
+
+    def _init_dialog(self):
+        # load controls
+        self.dialog = self.res.LoadDialog(None, "GaugeDialog")
+        self.label = xrc.XRCCTRL(self.dialog, "LabelGaugeDialog")
+        self.gauge = xrc.XRCCTRL(self.dialog, "GaugeProgress")
+        self.button = xrc.XRCCTRL(self.dialog, "wxID_OK")
+
+        self.ID_BUTTON_OK = xrc.XRCID("wxID_OK")
+        # "self.ID_BUTTON_OK" same as "wx.ID_OK"
+
+    def ShowModal(self):
+        self.button.Disable()
+        self.label.SetLabel(u"データベースの生成中...  ")
+        self.ret_code = self.dialog.ShowModal()
+        return self.ret_code
+
+    def finish_generation(self):
+        self.button.Enable()
+        self.label.SetLabel(u"データベースの生成中...完了")
+
+    def Destroy(self):
+        self.dialog.Destroy()
+
diff --git a/view/mainframe.py b/view/mainframe.py
deleted file mode 100644 (file)
index b44ca6b..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# GUIのメインフレーム
-# 2013/12/05 written by kei9
-import wx
-import wx.xrc
-
-import constnumbers
-
-class MainFrame(wx.App):
-    u""" メインのフレームクラス """
-    def OnInit(self):
-        self.res = wx.xrc.XmlResource("mainframe.xrc")
-        self.init_frame()
-        return True
-
-    def init_frame(self):
-        # load controls
-        self.frame = self.res.LoadFrame(None, "mainframe")
-
-        # buttons
-        self.button_seed_seaerch = wx.xrc.XRCCTRL(self.frame, "button_seed_search")
-        self.button_seed_clear = wx.xrc.XRCCTRL(self.frame, "button_seed_clear")
-        self.button_skill_ok = wx.xrc.XRCCTRL(self.frame, "button_skill_ok")
-        self.button_amusearch_seaerch = wx.xrc.XRCCTRL(self.frame, "button_amusearch_search")
-        self.button_amusearch_clear = wx.xrc.XRCCTRL(self.frame, "button_amusearch_clear")
-
-        # menu
-        self.menuitem_close = wx.xrc.XRCCTRL(self.frame, "MenuItemExit")
-        self.menuitem_about = wx.xrc.XRCCTRL(self.frame, "MenuItemAbout")
-        self.frame.Bind(wx.EVT_MENU, self.OnClose, self.menuitem_close)
-        self.frame.Bind(wx.EVT_MENU, self.OnAboutBox, self.menuitem_about)
-
-        # event
-        self.frame.Show()
-
-    def OnClose(self, evt):
-        self.frame.Close(True)
-
-    def OnAboutBox(self, evt):
-        u""" Show About Box """
-        info = wx.AboutDialogInfo()
-        info.Name = constnumbers.NAME
-        info.Version = constnumbers.VERSION
-        info.Copyright = constnumbers.COPYRIGHT
-        info.Description = constnumbers.DESCRIPTION
-        info.WebSite = (constnumbers.WEBSITE_LINK, constnumbers.WEBSITE_TEXT)
-        info.Developers = constnumbers.DEVELOPERS
-        info.License = constnumbers.LICENSE_TEXT
-        wx.AboutBox(info)
-
-
-
-if __name__ == "__main__":
-    app = MainFrame(False)
-    app.MainLoop()
index 69a489d..b3bdb85 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>
-<resource version="2.3.0.1">
-  <object class="wxFrame" name="mainframe">
-    <size>640, 480</size>
-    <style>wxDEFAULT_FRAME_STYLE</style>
-    <title>AmuletToolsMH4</title>
-    <object class="wxMenuBar" name="mainframe_menubar">
-      <object class="wxMenu" name="MenuItemFile">
-        <label>ファイル(_F)</label>
-        <object class="wxMenuItem" name="MenuItemExit">
-          <label>終了(_E)</label>
+<resource class="wxFrame">
+  <object class="wxFrame" name="MainFrame">
+    <object class="wxMenuBar" name="MenuBar">
+      <object class="wxMenu" name="MenuFile">
+        <object class="wxMenuItem" name="wxID_EXIT">
+          <label>Exit</label>
         </object>
+        <label>File</label>
       </object>
-      <object class="wxMenu" name="MenuItemHelp">
-        <label>ヘルプ(_H)</label>
-        <object class="wxMenuItem" name="MenuItemAbout">
-          <label>_About</label>
+      <object class="wxMenu" name="MenuHelp">
+        <object class="wxMenuItem" name="wxID_ABOUT">
+          <label>About</label>
         </object>
+        <label>Help</label>
       </object>
     </object>
-    <object class="wxBoxSizer">
-      <orient>wxVERTICAL</orient>
-      <object class="sizeritem">
-        <option>1</option>
-        <flag>wxALL|wxEXPAND</flag>
-        <border>10</border>
-        <object class="wxNotebook" name="notebook">
-          <usenotebooksizer>1</usenotebooksizer>
-          <object class="notebookpage">
-            <label>ランダムSeed特定</label>
-            <object class="wxPanel" name="notebook_panel_seed">
-              <style>wxTAB_TRAVERSAL</style>
-              <object class="wxBoxSizer">
-                <orient>wxVERTICAL</orient>
+    <object class="wxNotebook" name="NoteBookSeed">
+      <object class="notebookpage">
+        <object class="wxPanel" name="NoteBookPanelSeed">
+          <object class="wxBoxSizer">
+            <object class="sizeritem">
+              <object class="wxStaticBoxSizer">
                 <object class="sizeritem">
-                  <option>1</option>
-                  <flag>wxALL|wxEXPAND</flag>
-                  <border>10</border>
-                  <object class="wxTextCtrl" name="text_ctrl_seed_explain">
+                  <object class="wxTextCtrl" name="TextCtrlSeedExplain">
+                    <value>explain text of seed decision</value>
                     <style>wxTE_MULTILINE|wxTE_READONLY</style>
-                    <value>天運の錬金により取得したお守りの第2スキルの名を選択してください。\nスキルがない場合や、不明な場合は「なし」を選択してください。</value>
                   </object>
+                  <option>1</option>
+                  <flag>wxEXPAND</flag>
                 </object>
                 <object class="sizeritem">
-                  <option>2</option>
-                  <flag>wxEXPAND</flag>
-                  <object class="wxBoxSizer">
-                    <orient>wxHORIZONTAL</orient>
+                  <object class="wxGridSizer">
                     <object class="sizeritem">
-                      <option>2</option>
-                      <flag>wxALL|wxEXPAND</flag>
-                      <border>5</border>
                       <object class="wxStaticBoxSizer">
-                        <orient>wxHORIZONTAL</orient>
-                        <label>光るお守り</label>
                         <object class="sizeritem">
                           <object class="wxFlexGridSizer">
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet1_1">
+                              <object class="wxStaticText" name="LabelSeedAmulet1_1">
                                 <label>1枠目</label>
                               </object>
-                              <option>0</option>
-                              <flag>wxEXPAND</flag>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxComboBox" name="combo_box_amulet1_1">
-                                <selection>-1</selection>
-                              </object>
+                              <object class="wxComboBox" name="ComboBoxAmulet1_1"/>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet1_2">
+                              <object class="wxStaticText" name="LabelSeedAmulet1_2">
                                 <label>2枠目</label>
                               </object>
-                              <flag>wxEXPAND</flag>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxComboBox" name="combo_box_amulet1_2">
-                                <selection>-1</selection>
-                              </object>
+                              <object class="wxComboBox" name="ComboBoxAmulet1_2"/>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet1_3">
+                              <object class="wxStaticText" name="LabelSeedAmulet1_3">
                                 <label>3枠目</label>
                               </object>
-                              <flag>wxEXPAND</flag>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxComboBox" name="combo_box_amulet1_3">
-                                <selection>-1</selection>
-                              </object>
+                              <object class="wxComboBox" name="ComboBoxAmulet1_3"/>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet1_4">
+                              <object class="wxStaticText" name="LabelSeedAmulet1_4">
                                 <label>4枠目</label>
                               </object>
-                              <flag>wxEXPAND</flag>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxComboBox" name="combo_box_amulet1_4">
-                                <selection>-1</selection>
-                              </object>
+                              <object class="wxComboBox" name="ComboBoxAmulet1_4"/>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet1_5">
+                              <object class="wxStaticText" name="LabelSeedAmulet1_5">
                                 <label>5枠目</label>
                               </object>
-                              <flag>wxEXPAND</flag>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxComboBox" name="combo_box_amulet1_5">
-                                <selection>-1</selection>
-                              </object>
+                              <object class="wxComboBox" name="ComboBoxAmulet1_5"/>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet1_6">
+                              <object class="wxStaticText" name="LabelSeedAmulet1_6">
                                 <label>6枠目</label>
                               </object>
-                              <flag>wxEXPAND</flag>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxComboBox" name="combo_box_amulet1_6">
-                                <selection>-1</selection>
-                              </object>
+                              <object class="wxComboBox" name="ComboBoxAmulet1_6"/>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet1_7">
+                              <object class="wxStaticText" name="LabelSeedAmulet1_7">
                                 <label>7枠目</label>
                               </object>
-                              <flag>wxEXPAND</flag>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxComboBox" name="combo_box_amulet1_7">
-                                <selection>-1</selection>
-                              </object>
+                              <object class="wxComboBox" name="ComboBoxAmulet1_7"/>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
                             </object>
                             <cols>2</cols>
                             <rows>7</rows>
+                            <growablecols>1</growablecols>
+                            <growablerows/>
                           </object>
                           <option>1</option>
-                          <flag>wxEXPAND|wxGROW|wxSHAPED</flag>
+                          <flag>wxEXPAND</flag>
                         </object>
+                        <label>光るお守り</label>
+                        <orient>wxVERTICAL</orient>
                       </object>
+                      <option>1</option>
+                      <flag>wxALL|wxEXPAND</flag>
+                      <border>3</border>
                     </object>
                     <object class="sizeritem">
-                      <option>2</option>
-                      <flag>wxALL|wxEXPAND</flag>
-                      <border>5</border>
                       <object class="wxStaticBoxSizer">
-                        <orient>wxHORIZONTAL</orient>
                         <label>古びたお守り</label>
+                        <orient>wxVERTICAL</orient>
                         <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxGridSizer">
-                            <hgap>0</hgap>
-                            <rows>7</rows>
-                            <cols>2</cols>
-                            <vgap>0</vgap>
+                          <object class="wxFlexGridSizer">
                             <object class="sizeritem">
-                              <flag>wxEXPAND</flag>
-                              <object class="wxStaticText" name="label_amulet2_1">
+                              <object class="wxStaticText" name="LabelSeedAmulet2_1">
                                 <label>1枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet2_1"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet2_1">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <flag>wxEXPAND</flag>
-                              <object class="wxStaticText" name="label_amulet2_2">
+                              <object class="wxStaticText" name="LabelSeedAmulet2_2">
                                 <label>2枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet2_2"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet2_2">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <flag>wxEXPAND</flag>
-                              <object class="wxStaticText" name="label_amulet2_3">
+                              <object class="wxStaticText" name="LabelSeedAmulet2_3">
                                 <label>3枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet2_3"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet2_3">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <flag>wxEXPAND</flag>
-                              <object class="wxStaticText" name="label_amulet2_4">
+                              <object class="wxStaticText" name="LabelSeedAmulet2_4">
                                 <label>4枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet2_4"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet2_4">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <flag>wxEXPAND</flag>
-                              <object class="wxStaticText" name="label_amulet2_5">
+                              <object class="wxStaticText" name="LabelSeedAmulet2_5">
                                 <label>5枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet2_5"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet2_5">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <flag>wxEXPAND</flag>
-                              <object class="wxStaticText" name="label_amulet2_6">
+                              <object class="wxStaticText" name="LabelSeedAmulet2_6">
                                 <label>6枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet2_6"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet2_6">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <flag>wxEXPAND</flag>
-                              <object class="wxStaticText" name="label_amulet2_7">
+                              <object class="wxStaticText" name="LabelSeedAmulet2_7">
                                 <label>7枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet2_7"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet2_7">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
+                            <cols>2</cols>
+                            <rows>7</rows>
+                            <growablecols>1</growablecols>
+                            <growablerows/>
                           </object>
+                          <option>1</option>
+                          <flag>wxEXPAND</flag>
                         </object>
                       </object>
+                      <option>1</option>
+                      <flag>wxALL|wxEXPAND</flag>
+                      <border>3</border>
                     </object>
                     <object class="sizeritem">
-                      <option>2</option>
-                      <flag>wxALL|wxEXPAND</flag>
-                      <border>5</border>
                       <object class="wxStaticBoxSizer">
-                        <orient>wxHORIZONTAL</orient>
                         <label>歪んだお守り</label>
+                        <orient>wxVERTICAL</orient>
                         <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxGridSizer">
-                            <hgap>0</hgap>
-                            <rows>7</rows>
-                            <cols>2</cols>
-                            <vgap>0</vgap>
+                          <object class="wxFlexGridSizer">
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet3_1">
+                              <object class="wxStaticText" name="LabelSeedAmulet3_1">
                                 <label>1枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet3_1"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet3_1">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet3_2">
+                              <object class="wxStaticText" name="LabelSeedAmulet3_2">
                                 <label>2枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet3_2"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet3_2">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet3_3">
+                              <object class="wxStaticText" name="LabelSeedAmulet3_3">
                                 <label>3枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet3_3"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet3_3">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet3_4">
+                              <object class="wxStaticText" name="LabelSeedAmulet3_4">
                                 <label>4枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet3_4"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet3_4">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet3_5">
+                              <object class="wxStaticText" name="LabelSeedAmulet3_5">
                                 <label>5枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet3_5"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet3_5">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet3_6">
+                              <object class="wxStaticText" name="LabelSeedAmulet3_6">
                                 <label>6枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet3_6"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet3_6">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
                             <object class="sizeritem">
-                              <object class="wxStaticText" name="label_amulet3_7">
+                              <object class="wxStaticText" name="LabelSeedAmulet3_7">
                                 <label>7枠目</label>
                               </object>
+                              <flag>wxRIGHT</flag>
+                              <border>3</border>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxComboBox" name="ComboBoxAmulet3_7"/>
+                              <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amulet3_7">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
-                              </object>
                             </object>
+                            <cols>2</cols>
+                            <rows>7</rows>
+                            <growablecols>1</growablecols>
+                            <growablerows/>
                           </object>
-                        </object>
-                      </object>
-                    </object>
-                    <object class="sizeritem">
-                      <option>3</option>
-                      <flag>wxALL|wxEXPAND</flag>
-                      <border>10</border>
-                      <object class="wxBoxSizer">
-                        <orient>wxVERTICAL</orient>
-                        <object class="sizeritem">
-                          <flag>wxLEFT</flag>
-                          <border>5</border>
-                          <object class="wxStaticText" name="label_seed">
-                            <label>Seed値の候補</label>
-                          </object>
-                        </object>
-                        <object class="sizeritem">
                           <option>1</option>
-                          <flag>wxALL|wxEXPAND</flag>
-                          <border>5</border>
-                          <object class="wxListBox" name="list_box_seed">
-                            <style>wxLB_SINGLE|wxLB_HSCROLL</style>
-                            <content>
-                                                    </content>
-                          </object>
-                        </object>
-                        <object class="sizeritem">
                           <flag>wxEXPAND</flag>
-                          <border>20</border>
-                          <object class="wxBoxSizer">
-                            <orient>wxHORIZONTAL</orient>
-                            <object class="sizeritem">
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                              <object class="wxPanel" name="panel_1">
-                                <style>wxTAB_TRAVERSAL</style>
-                              </object>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxButton" name="button_seed_search">
-                                <label>検索</label>
-                              </object>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxButton" name="button_seed_clear">
-                                <label>クリア</label>
-                              </object>
-                            </object>
-                          </object>
                         </object>
                       </object>
+                      <option>1</option>
+                      <flag>wxALL|wxEXPAND</flag>
+                      <border>3</border>
                     </object>
+                    <cols>3</cols>
+                    <rows>1</rows>
                   </object>
+                  <option>0</option>
+                  <flag>wxEXPAND</flag>
                 </object>
-              </object>
-            </object>
-          </object>
-          <object class="notebookpage">
-            <label>Seed値対応スキル</label>
-            <object class="wxPanel" name="notebook_panel_skill">
-              <style>wxTAB_TRAVERSAL</style>
-              <object class="wxBoxSizer">
-                <orient>wxVERTICAL</orient>
                 <object class="sizeritem">
-                  <flag>wxEXPAND</flag>
-                  <object class="wxStaticBoxSizer">
-                    <orient>wxHORIZONTAL</orient>
-                    <label>Seed選択</label>
+                  <object class="wxBoxSizer">
                     <object class="sizeritem">
+                      <object class="wxPanel"/>
                       <option>1</option>
-                      <object class="wxComboBox" name="combo_box_skill_seed">
-                        <selection>-1</selection>
-                        <content>
-                                            </content>
-                      </object>
+                      <flag>wxEXPAND</flag>
                     </object>
                     <object class="sizeritem">
-                      <object class="wxButton" name="button_skill_ok">
+                      <object class="wxButton" name="ButtonSeedSearch">
                         <label>検索</label>
                       </object>
                     </object>
+                    <object class="sizeritem">
+                      <object class="wxButton" name="ButtonSeedClear">
+                        <label>クリア</label>
+                      </object>
+                    </object>
+                    <orient>wxHORIZONTAL</orient>
                   </object>
+                  <option>0</option>
+                  <flag>wxALL|wxEXPAND</flag>
+                  <border>5</border>
                 </object>
+                <label>錬金結果</label>
+                <orient>wxVERTICAL</orient>
+              </object>
+              <option>2</option>
+              <flag>wxTOP|wxBOTTOM|wxLEFT|wxEXPAND</flag>
+              <border>10</border>
+            </object>
+            <orient>wxHORIZONTAL</orient>
+            <object class="sizeritem">
+              <object class="wxStaticBoxSizer">
                 <object class="sizeritem">
+                  <object class="wxTextCtrl" name="TextCtrlSeedResults">
+                    <style>wxTE_MULTILINE|wxTE_READONLY</style>
+                  </object>
                   <option>1</option>
                   <flag>wxEXPAND</flag>
-                  <object class="wxListCtrl" name="list_ctrl_skill">
-                    <style>wxLC_REPORT|wxSUNKEN_BORDER</style>
+                </object>
+                <object class="sizeritem">
+                  <object class="wxStaticText" name="LablelSeedResults">
+                    <label>Seed値の候補</label>
+                  </object>
+                  <flag>wxTOP</flag>
+                  <border>10</border>
+                </object>
+                <object class="sizeritem">
+                  <object class="wxListBox" name="ListBoxSeed"/>
+                  <option>2</option>
+                  <flag>wxEXPAND</flag>
+                </object>
+                <label>検索結果</label>
+                <orient>wxVERTICAL</orient>
+                <object class="sizeritem">
+                  <object class="wxBoxSizer">
+                    <object class="sizeritem">
+                      <object class="wxPanel"/>
+                      <option>1</option>
+                      <flag>wxEXPAND</flag>
+                    </object>
+                    <object class="sizeritem">
+                      <object class="wxButton" name="ButtonSkillFromSeedSearch">
+                        <label>対応スキル検索</label>
+                        <enabled>0</enabled>
+                      </object>
+                    </object>
+                    <orient>wxHORIZONTAL</orient>
                   </object>
+                  <option>0</option>
+                  <flag>wxALL|wxEXPAND</flag>
+                  <border>5</border>
                 </object>
               </object>
+              <option>1</option>
+              <flag>wxALL|wxEXPAND</flag>
+              <border>10</border>
             </object>
           </object>
-          <object class="notebookpage">
-            <label>お守り検索</label>
-            <object class="wxPanel" name="notebook_panel_amulet">
-              <style>wxTAB_TRAVERSAL</style>
-              <object class="wxBoxSizer">
+        </object>
+        <label>Seed値の特定</label>
+        <selected>1</selected>
+      </object>
+      <object class="notebookpage">
+        <object class="wxPanel" name="NoteBookPanelSkill">
+          <object class="wxBoxSizer">
+            <orient>wxVERTICAL</orient>
+            <object class="sizeritem">
+              <object class="wxStaticBoxSizer">
+                <label>Seed選択</label>
                 <orient>wxHORIZONTAL</orient>
                 <object class="sizeritem">
+                  <object class="wxTextCtrl" name="TextCtrlSeedSelect"/>
                   <option>1</option>
                   <flag>wxALL|wxEXPAND</flag>
-                  <border>10</border>
+                  <border>5</border>
+                </object>
+                <object class="sizeritem">
+                  <object class="wxButton" name="ButtonSeedSkillSearch">
+                    <label>検索</label>
+                  </object>
+                  <flag>wxALL</flag>
+                  <border>5</border>
+                </object>
+                <object class="sizeritem">
+                  <object class="wxButton" name="ButtonSeedSkillClear">
+                    <label>クリア</label>
+                  </object>
+                  <flag>wxTOP|wxBOTTOM|wxRIGHT</flag>
+                  <border>5</border>
+                </object>
+              </object>
+              <flag>wxALL|wxEXPAND</flag>
+              <border>10</border>
+            </object>
+            <object class="sizeritem">
+              <object class="wxBoxSizer">
+                <object class="sizeritem">
                   <object class="wxBoxSizer">
-                    <orient>wxVERTICAL</orient>
                     <object class="sizeritem">
-                      <option>2</option>
-                      <flag>wxEXPAND</flag>
                       <object class="wxStaticBoxSizer">
-                        <orient>wxVERTICAL</orient>
-                        <label>第1スキル</label>
                         <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxBoxSizer">
-                            <orient>wxHORIZONTAL</orient>
+                          <object class="wxFlexGridSizer">
+                            <object class="sizeritem">
+                              <object class="wxStaticText"/>
+                            </object>
                             <object class="sizeritem">
-                              <flag>wxLEFT|wxRIGHT</flag>
-                              <border>10</border>
-                              <object class="wxStaticText" name="label_amusearch_skillname1">
-                                <label>スキル名</label>
+                              <object class="wxStaticText" name="LabelSeedSkillAmulet1">
+                                <label>光るお守り</label>
+                                <style>wxALIGN_CENTRE</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillAmulet2">
+                                <label>古びたお守り</label>
+                                <style>wxALIGN_CENTRE</style>
+                              </object>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amusearch_skillname1">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillAmulet3">
+                                <label>歪んだお守り</label>
+                                <style>wxALIGN_CENTRE</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
-                          </object>
-                        </object>
-                        <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxBoxSizer">
-                            <orient>wxHORIZONTAL</orient>
                             <object class="sizeritem">
-                              <flag>wxLEFT|wxRIGHT</flag>
-                              <border>10</border>
-                              <object class="wxStaticText" name="label_amusearch_skillval1">
-                                <label>値</label>
+                              <object class="wxStaticText" name="LabelSeedSkillThreshold2">
+                                <label>判定値2</label>
+                                <style>wxALIGN_CENTRE</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillResult1">
+                                <label>1枠目</label>
+                                <style>wxALIGN_CENTRE</style>
+                              </object>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amusearch_skillval1">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet1_1">
+                                <style>wxTE_READONLY</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
-                          </object>
-                        </object>
-                      </object>
-                    </object>
-                    <object class="sizeritem">
-                      <option>2</option>
-                      <flag>wxEXPAND</flag>
-                      <object class="wxStaticBoxSizer">
-                        <orient>wxVERTICAL</orient>
-                        <label>第2スキル</label>
-                        <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxBoxSizer">
-                            <orient>wxHORIZONTAL</orient>
                             <object class="sizeritem">
-                              <flag>wxLEFT|wxRIGHT</flag>
-                              <border>10</border>
-                              <object class="wxStaticText" name="label_amusearch_skillname2">
-                                <label>スキル名</label>
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet2_1">
+                                <style>wxTE_READONLY</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet3_1">
+                                <style>wxTE_READONLY</style>
+                              </object>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amusearch_skillname2">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillThreshold2_1">
+                                <style>wxTE_READONLY</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
-                          </object>
-                        </object>
-                        <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxBoxSizer">
-                            <orient>wxHORIZONTAL</orient>
                             <object class="sizeritem">
-                              <flag>wxLEFT|wxRIGHT</flag>
-                              <border>10</border>
-                              <object class="wxStaticText" name="label_amusearch_skillval2">
-                                <label>値</label>
+                              <object class="wxStaticText" name="LabelSeedSkillResult2">
+                                <label>2枠目</label>
                               </object>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet1_2">
+                                <style>wxTE_READONLY</style>
+                              </object>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amusearch_skillval2">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet2_2">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet3_2">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillThreshold2_2">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillResult3">
+                                <label>3枠目</label>
                               </object>
                             </object>
-                          </object>
-                        </object>
-                      </object>
-                    </object>
-                    <object class="sizeritem">
-                      <option>1</option>
-                      <flag>wxEXPAND</flag>
-                      <object class="wxStaticBoxSizer">
-                        <orient>wxVERTICAL</orient>
-                        <label>スロット数</label>
-                        <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxBoxSizer">
-                            <orient>wxHORIZONTAL</orient>
                             <object class="sizeritem">
-                              <flag>wxLEFT|wxRIGHT</flag>
-                              <border>10</border>
-                              <object class="wxStaticText" name="label_amusearch_slot">
-                                <label>値</label>
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet1_3">
+                                <style>wxTE_READONLY</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
                             <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet2_3">
+                                <style>wxTE_READONLY</style>
+                              </object>
                               <option>1</option>
                               <flag>wxEXPAND</flag>
-                              <object class="wxComboBox" name="combo_box_amusearch_slot">
-                                <selection>-1</selection>
-                                <content>
-                                                            </content>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet3_3">
+                                <style>wxTE_READONLY</style>
                               </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillThreshold2_3">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillResult4">
+                                <label>4枠目</label>
+                              </object>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet1_4">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet2_4">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet3_4">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillThreshold2_4">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillResult5">
+                                <label>5枠目</label>
+                              </object>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet1_5">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet2_5">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet3_5">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillThreshold2_5">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillResult6">
+                                <label>6枠目</label>
+                              </object>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet1_6">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet2_6">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet3_6">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillThreshold2_6">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
                             </object>
+                            <object class="sizeritem">
+                              <object class="wxStaticText" name="LabelSeedSkillResult7">
+                                <label>7枠目</label>
+                              </object>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet1_7">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet2_7">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillAmulet3_7">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <object class="sizeritem">
+                              <object class="wxTextCtrl" name="TextCtrlSeedSkillThreshold2_7">
+                                <style>wxTE_READONLY</style>
+                              </object>
+                              <option>1</option>
+                              <flag>wxEXPAND</flag>
+                            </object>
+                            <cols>5</cols>
+                            <rows>8</rows>
+                            <vgap>3</vgap>
+                            <hgap>3</hgap>
+                            <growablecols>1,2,3,4</growablecols>
                           </object>
+                          <option>1</option>
+                          <flag>wxEXPAND</flag>
                         </object>
+                        <label>対応第2スキル一覧</label>
+                        <orient>wxVERTICAL</orient>
                       </object>
+                      <flag>wxEXPAND</flag>
+                    </object>
+                    <orient>wxVERTICAL</orient>
+                    <object class="sizeritem">
+                      <object class="wxPanel"/>
+                      <option>1</option>
+                      <flag>wxEXPAND</flag>
                     </object>
                   </object>
+                  <option>2</option>
+                  <flag>wxEXPAND</flag>
                 </object>
                 <object class="sizeritem">
+                  <object class="wxStaticBoxSizer">
+                    <label>お守り候補</label>
+                    <orient>wxVERTICAL</orient>
+                    <object class="sizeritem">
+                      <object class="wxListBox" name="ListBoxSeedSkillAmuletProspect"/>
+                      <option>1</option>
+                      <flag>wxEXPAND</flag>
+                    </object>
+                  </object>
                   <option>1</option>
-                  <flag>wxALL|wxEXPAND</flag>
+                  <flag>wxBOTTOM|wxRIGHT|wxEXPAND</flag>
                   <border>10</border>
-                  <object class="wxBoxSizer">
-                    <orient>wxVERTICAL</orient>
+                </object>
+                <orient>wxHORIZONTAL</orient>
+              </object>
+              <option>1</option>
+              <flag>wxEXPAND</flag>
+            </object>
+          </object>
+        </object>
+        <label>Seed値対応スキル</label>
+      </object>
+      <object class="notebookpage">
+        <object class="wxPanel" name="NoteBookPanelAmuletSearch">
+          <object class="wxBoxSizer">
+            <orient>wxHORIZONTAL</orient>
+            <object class="sizeritem">
+              <object class="wxStaticBoxSizer">
+                <object class="sizeritem">
+                  <object class="wxFlexGridSizer">
                     <object class="sizeritem">
-                      <object class="wxStaticText" name="label_5">
-                        <label>çµ\90æ\9e\9c</label>
+                      <object class="wxStaticText" name="LabelAmuletSearchSkill1">
+                        <label>第1ã\82¹ã\82­ã\83«</label>
                       </object>
                     </object>
                     <object class="sizeritem">
-                      <option>1</option>
-                      <flag>wxEXPAND</flag>
-                      <object class="wxTextCtrl" name="text_ctrl_amusearch_result">
-                        <style>wxTE_MULTILINE|wxTE_READONLY</style>
+                      <object class="wxComboBox" name="ComboBoxAmuletSearchSkill1"/>
+                    </object>
+                    <object class="sizeritem">
+                      <object class="wxSpinCtrl" name="SpinCtrlAmuletSearchSkill1Value"/>
+                    </object>
+                    <object class="sizeritem">
+                      <object class="wxStaticText" name="LabelAmuletSearchSkill2">
+                        <label>第2スキル</label>
                       </object>
                     </object>
                     <object class="sizeritem">
-                      <flag>wxTOP</flag>
-                      <border>10</border>
-                      <object class="wxStaticText" name="label_amusearch_seed">
-                        <label>Seed値の候補</label>
+                      <object class="wxComboBox" name="ComboBoxAmuletSearchSkill2"/>
+                    </object>
+                    <object class="sizeritem">
+                      <object class="wxSpinCtrl" name="SpinCtrlAmuletSearchSkill2Value"/>
+                    </object>
+                    <object class="sizeritem">
+                      <object class="wxStaticText" name="LabelAmuletSearchSlot">
+                        <label>スロット数</label>
                       </object>
                     </object>
                     <object class="sizeritem">
-                      <option>2</option>
+                      <object class="wxSpinCtrl" name="SpinCtrlAmuletSearchSlotNumber"/>
+                    </object>
+                    <cols>3</cols>
+                    <rows>3</rows>
+                    <vgap>3</vgap>
+                    <hgap>3</hgap>
+                  </object>
+                  <option>0</option>
+                  <flag>wxEXPAND</flag>
+                </object>
+                <object class="sizeritem">
+                  <object class="wxBoxSizer">
+                    <object class="sizeritem">
+                      <object class="wxPanel"/>
+                      <option>1</option>
                       <flag>wxEXPAND</flag>
-                      <object class="wxListBox" name="list_box_1">
-                        <content>
-                                            </content>
+                    </object>
+                    <object class="sizeritem">
+                      <object class="wxButton" name="ButtonAmuletSearchSearch">
+                        <label>検索</label>
                       </object>
                     </object>
                     <object class="sizeritem">
-                      <flag>wxEXPAND</flag>
-                      <object class="wxBoxSizer">
-                        <orient>wxHORIZONTAL</orient>
-                        <object class="sizeritem">
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                          <object class="wxPanel" name="panel_2">
-                            <style>wxTAB_TRAVERSAL</style>
-                          </object>
-                        </object>
-                        <object class="sizeritem">
-                          <object class="wxButton" name="button_amusearch_search">
-                            <label>検索</label>
-                          </object>
-                        </object>
-                        <object class="sizeritem">
-                          <object class="wxButton" name="button_amusearch_clear">
-                            <label>クリア</label>
-                          </object>
-                        </object>
+                      <object class="wxButton" name="ButtonAmuletSearchClear">
+                        <label>クリア</label>
                       </object>
                     </object>
+                    <orient>wxHORIZONTAL</orient>
                   </object>
+                  <flag>wxEXPAND</flag>
                 </object>
+                <label>お守り指定</label>
+                <orient>wxVERTICAL</orient>
               </object>
+              <option>0</option>
+              <flag>wxALL|wxEXPAND</flag>
+              <border>10</border>
             </object>
-          </object>
-          <object class="notebookpage">
-            <label>第2スキル固定手順</label>
-            <object class="wxPanel" name="notebook_panel_flow">
-              <style>wxTAB_TRAVERSAL</style>
-              <object class="wxBoxSizer">
-                <orient>wxVERTICAL</orient>
+            <object class="sizeritem">
+              <object class="wxStaticBoxSizer">
                 <object class="sizeritem">
-                  <flag>wxLEFT|wxRIGHT|wxTOP</flag>
-                  <border>10</border>
-                  <object class="wxStaticText" name="label_4">
-                    <label>第2スキルの固定手順の説明です。</label>
+                  <object class="wxTextCtrl" name="TextCtrlAmuletSearchResult">
+                    <style>wxTE_MULTILINE|wxTE_READONLY</style>
                   </object>
+                  <option>1</option>
+                  <flag>wxEXPAND</flag>
                 </object>
                 <object class="sizeritem">
-                  <option>1</option>
-                  <flag>wxALL|wxEXPAND</flag>
-                  <border>10</border>
-                  <object class="wxTextCtrl" name="text_ctrl_flow_explain">
-                    <style>wxTE_MULTILINE|wxTE_READONLY</style>
-                  </object>
+                  <object class="wxListBox" name="ListBoxAmuletSearchSeeds"/>
+                  <option>2</option>
+                  <flag>wxEXPAND</flag>
                 </object>
+                <label>Seed候補</label>
+                <orient>wxVERTICAL</orient>
               </object>
+              <option>1</option>
+              <flag>wxTOP|wxBOTTOM|wxRIGHT|wxEXPAND</flag>
+              <border>10</border>
             </object>
           </object>
-          <object class="notebookpage">
-            <label>設定</label>
-            <object class="wxPanel" name="notebook_panel_settings">
-              <style>wxTAB_TRAVERSAL</style>
+        </object>
+        <label>お守り検索</label>
+      </object>
+      <object class="notebookpage">
+        <object class="wxPanel" name="NoteBookPanelFlow">
+          <object class="wxBoxSizer">
+            <orient>wxVERTICAL</orient>
+            <object class="sizeritem">
+              <object class="wxStaticText" name="LabelFlow">
+                <label>第2スキルの固定手順</label>
+              </object>
+              <flag>wxTOP|wxLEFT|wxRIGHT</flag>
+              <border>10</border>
+            </object>
+            <object class="sizeritem">
+              <object class="wxTextCtrl" name="TextCtrlFlow">
+                <style>wxTE_MULTILINE|wxTE_READONLY</style>
+              </object>
+              <option>1</option>
+              <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND</flag>
+              <border>10</border>
             </object>
           </object>
         </object>
+        <label>第2スキル固定手順</label>
+      </object>
+      <object class="notebookpage">
+        <object class="wxPanel" name="NoteBookPanelSettings"/>
+        <label>設定</label>
       </object>
     </object>
+    <size>640,480</size>
+    <title>AmuletToolsMH4</title>
   </object>
 </resource>
\ No newline at end of file
diff --git a/view/mainframe2.xrc b/view/mainframe2.xrc
deleted file mode 100644 (file)
index e3249a7..0000000
+++ /dev/null
@@ -1,500 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<resource class="wxFrame">
-  <object class="wxFrame" name="MainFrame">
-    <object class="wxMenuBar" name="MenuBar">
-      <object class="wxMenu" name="MenuFile">
-        <object class="wxMenuItem" name="MenuItemExit">
-          <label>Exit</label>
-        </object>
-        <label>File</label>
-      </object>
-      <object class="wxMenu" name="MenuHelp">
-        <object class="wxMenuItem" name="MenuItemAbout">
-          <label>About</label>
-        </object>
-        <label>Help</label>
-      </object>
-    </object>
-    <object class="wxNotebook" name="NoteBookSeed">
-      <object class="notebookpage">
-        <object class="wxPanel" name="NoteBookPanelSeed">
-          <object class="wxBoxSizer">
-            <object class="sizeritem">
-              <object class="wxStaticBoxSizer">
-                <object class="sizeritem">
-                  <object class="wxTextCtrl" name="TextCtrlSeedExplain">
-                    <value>explain text of seed decision</value>
-                    <style>wxTE_MULTILINE|wxTE_READONLY</style>
-                  </object>
-                  <option>1</option>
-                  <flag>wxEXPAND</flag>
-                </object>
-                <object class="sizeritem">
-                  <object class="wxGridSizer">
-                    <object class="sizeritem">
-                      <object class="wxStaticBoxSizer">
-                        <object class="sizeritem">
-                          <object class="wxFlexGridSizer">
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_1">
-                                <label>1枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet1_1"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_2">
-                                <label>2枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet1_2"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_3">
-                                <label>3枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet1_3"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_4">
-                                <label>4枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet1_4"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_5">
-                                <label>5枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet1_5"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_6">
-                                <label>6枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet1_6"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_7">
-                                <label>7枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet1_7"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <cols>2</cols>
-                            <rows>7</rows>
-                            <growablecols>1</growablecols>
-                            <growablerows/>
-                          </object>
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                        </object>
-                        <label>光るお守り</label>
-                        <orient>wxVERTICAL</orient>
-                      </object>
-                      <option>1</option>
-                      <flag>wxALL|wxEXPAND</flag>
-                      <border>3</border>
-                    </object>
-                    <object class="sizeritem">
-                      <object class="wxStaticBoxSizer">
-                        <label>古びたお守り</label>
-                        <orient>wxVERTICAL</orient>
-                        <object class="sizeritem">
-                          <object class="wxFlexGridSizer">
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet2_1">
-                                <label>1枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet2_1"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet1_2">
-                                <label>2枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet2_2"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet2_3">
-                                <label>3枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet2_3"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet2_4">
-                                <label>4枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet2_4"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet2_5">
-                                <label>5枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet2_5"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet2_6">
-                                <label>6枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet2_6"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet2_7">
-                                <label>7枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet2_7"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <cols>2</cols>
-                            <rows>7</rows>
-                            <growablecols>1</growablecols>
-                            <growablerows/>
-                          </object>
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                        </object>
-                      </object>
-                      <option>1</option>
-                      <flag>wxALL|wxEXPAND</flag>
-                      <border>3</border>
-                    </object>
-                    <object class="sizeritem">
-                      <object class="wxStaticBoxSizer">
-                        <label>歪んだお守り</label>
-                        <orient>wxVERTICAL</orient>
-                        <object class="sizeritem">
-                          <object class="wxFlexGridSizer">
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet3_1">
-                                <label>1枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet3_1"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet3_2">
-                                <label>2枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet3_2"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet3_3">
-                                <label>3枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet3_3"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet3_4">
-                                <label>4枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet3_4"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet3_5">
-                                <label>5枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet3_5"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet3_6">
-                                <label>6枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet3_6"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxStaticText" name="LabelSeedAmulet3_7">
-                                <label>7枠目</label>
-                              </object>
-                              <flag>wxRIGHT</flag>
-                              <border>3</border>
-                            </object>
-                            <object class="sizeritem">
-                              <object class="wxComboBox" name="ComboBoxAmulet3_7"/>
-                              <option>1</option>
-                              <flag>wxEXPAND</flag>
-                            </object>
-                            <cols>2</cols>
-                            <rows>7</rows>
-                            <growablecols>1</growablecols>
-                            <growablerows/>
-                          </object>
-                          <option>1</option>
-                          <flag>wxEXPAND</flag>
-                        </object>
-                      </object>
-                      <option>1</option>
-                      <flag>wxALL|wxEXPAND</flag>
-                      <border>3</border>
-                    </object>
-                    <cols>3</cols>
-                    <rows>1</rows>
-                  </object>
-                  <option>0</option>
-                  <flag>wxEXPAND</flag>
-                </object>
-                <object class="sizeritem">
-                  <object class="wxBoxSizer">
-                    <object class="sizeritem">
-                      <object class="wxPanel"/>
-                      <option>1</option>
-                      <flag>wxEXPAND</flag>
-                    </object>
-                    <object class="sizeritem">
-                      <object class="wxButton" name="ButtonSeedSearch">
-                        <label>検索</label>
-                      </object>
-                    </object>
-                    <object class="sizeritem">
-                      <object class="wxButton" name="ButtonSeedClear">
-                        <label>クリア</label>
-                      </object>
-                    </object>
-                    <orient>wxHORIZONTAL</orient>
-                  </object>
-                  <option>0</option>
-                  <flag>wxALL|wxEXPAND</flag>
-                  <border>5</border>
-                </object>
-                <label>錬金結果</label>
-                <orient>wxVERTICAL</orient>
-              </object>
-              <option>2</option>
-              <flag>wxTOP|wxBOTTOM|wxLEFT|wxEXPAND</flag>
-              <border>10</border>
-            </object>
-            <orient>wxHORIZONTAL</orient>
-            <object class="sizeritem">
-              <object class="wxStaticBoxSizer">
-                <object class="sizeritem">
-                  <object class="wxTextCtrl" name="TextCtrlSeedsResults">
-                    <style>wxTE_MULTILINE|wxTE_READONLY</style>
-                  </object>
-                  <option>1</option>
-                  <flag>wxEXPAND</flag>
-                </object>
-                <object class="sizeritem">
-                  <object class="wxStaticText" name="LablelSeedsResults">
-                    <label>Seed値の候補</label>
-                  </object>
-                  <flag>wxTOP</flag>
-                  <border>10</border>
-                </object>
-                <object class="sizeritem">
-                  <object class="wxListBox" name="ListBoxSeeds"/>
-                  <option>2</option>
-                  <flag>wxEXPAND</flag>
-                </object>
-                <label>検索結果</label>
-                <orient>wxVERTICAL</orient>
-                <object class="sizeritem">
-                  <object class="wxBoxSizer">
-                    <object class="sizeritem">
-                      <object class="wxPanel"/>
-                      <option>1</option>
-                      <flag>wxEXPAND</flag>
-                    </object>
-                    <object class="sizeritem">
-                      <object class="wxButton" name="ButtonSkillFromSeedSearch">
-                        <label>対応スキル検索</label>
-                        <enabled>0</enabled>
-                      </object>
-                    </object>
-                    
-                    <orient>wxHORIZONTAL</orient>
-                  </object>
-                  <option>0</option>
-                  <flag>wxALL|wxEXPAND</flag>
-                  <border>5</border>
-                </object>
-              </object>
-              <option>1</option>
-              <flag>wxALL|wxEXPAND</flag>
-              <border>10</border>
-            </object>
-          </object>
-        </object>
-        <label>Seed値の特定</label>
-        <selected>1</selected>
-      </object>
-      <object class="notebookpage">
-        <object class="wxPanel" name="NoteBookPanelSkill">
-          <object class="wxBoxSizer">
-            <orient>wxVERTICAL</orient>
-            <object class="sizeritem">
-              <object class="wxStaticBoxSizer">
-                <label>Seed選択</label>
-                <orient>wxHORIZONTAL</orient>
-                <object class="sizeritem">
-                  <object class="wxTextCtrl" name="TextCtrlSeedSelect"/>
-                  <option>1</option>
-                  <flag>wxALL|wxEXPAND</flag>
-                  <border>5</border>
-                </object>
-                <object class="sizeritem">
-                  <object class="wxButton" name="ButtonSeedSkillSearch">
-                    <label>検索</label>
-                  </object>
-                  <flag>wxALL</flag>
-                  <border>5</border>
-                </object>
-                <object class="sizeritem">
-                  <object class="wxButton" name="ButtonSeedSkillClear">
-                    <label>クリア</label>
-                  </object>
-                  <flag>wxTOP|wxBOTTOM|wxRIGHT</flag>
-                  <border>5</border>
-                </object>
-              </object>
-              <flag>wxALL|wxEXPAND</flag>
-              <border>10</border>
-            </object>
-            <object class="sizeritem">
-              <object class="wxBoxSizer">
-                <orient>wxHORIZONTAL</orient>
-                <object class="sizeritem">
-                  <object class="wxStaticBoxSizer">
-                    <label>対応第2スキル一覧</label>
-                    <orient>wxVERTICAL</orient>
-                  </object>
-                  <option>1</option>
-                  <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND</flag>
-                  <border>10</border>
-                </object>
-              </object>
-              <flag>wxEXPAND</flag>
-            </object>
-          </object>
-        </object>
-        <label>Seed値対応スキル</label>
-      </object>
-      <object class="notebookpage">
-        <object class="wxPanel" name="NoteBookPanelAmulet"/>
-        <label>お守り検索</label>
-      </object>
-      <object class="notebookpage">
-        <object class="wxPanel" name="NoteBookPanelFlow"/>
-        <label>第2スキル固定手順</label>
-      </object>
-      <object class="notebookpage">
-        <object class="wxPanel" name="NoteBookPanelSettings"/>
-        <label>設定</label>
-      </object>
-    </object>
-    <size>640,480</size>
-    <title>AmuletToolsMH4</title>
-  </object>
-</resource>
\ No newline at end of file
diff --git a/view/mainframeview.py b/view/mainframeview.py
new file mode 100644 (file)
index 0000000..f119d77
--- /dev/null
@@ -0,0 +1,162 @@
+# -*- coding: utf-8 -*-
+
+# GUIのメインフレーム
+# 2013/12/05 written by kei9
+import os.path
+
+import wx
+from wx import xrc
+
+import constnumbers
+
+class MainFrameView():
+    u""" メインのフレームクラス """
+    def __init__(self, dirname=None):
+        if dirname is None:
+            self.res = wx.xrc.XmlResource(constnumbers.XRC_MAIN_FRAME)
+        else:
+            self.res = wx.xrc.XmlResource(os.path.join(dirname,constnumbers.XRC_MAIN_FRAME))
+        self._init_frame()
+
+    def _init_frame(self):
+        # load controls
+        self.frame = self.res.LoadFrame(None, "MainFrame")
+
+        # buttons
+        self.button_seed_seaerch = xrc.XRCCTRL(self.frame, "ButtonSeedSearch")
+        self.button_seed_clear = xrc.XRCCTRL(self.frame, "ButtonSeedClear")
+        self.button_skill_from_seed_search = xrc.XRCCTRL(self.frame, "ButtonSkillFromSeedSearch")
+        self.button_skill_search = xrc.XRCCTRL(self.frame, "ButtonSkillSearch")
+        self.button_skill_clear = xrc.XRCCTRL(self.frame, "ButtonSkillClear")
+        self.button_amulet_search_seaerch = xrc.XRCCTRL(self.frame, "ButtonAmuletSearchSearch")
+        self.button_amulet_search_clear = xrc.XRCCTRL(self.frame, "ButtonAmuletSearchClear")
+
+        # menu
+        self.ID_MENU_ITEM_EXIT = xrc.XRCID("wxID_EXIT") # same as wx.ID_EXIT
+        self.ID_MENU_ITEM_ABOUT = xrc.XRCID("wxID_ABOUT") # same as wx.ID_ABOUT
+
+        # load text ctrls
+        self._load_text_ctrls()
+
+        # load combo box
+        self._load_combo_boxes()
+
+        # load list box
+        self.list_box_amulet_search_seeds = xrc.XRCCTRL(self.frame, "ListBoxAmuletSearchSeeds")
+        self.list_box_seed_skill_amulet_prospect = xrc.XRCCTRL(self.frame, "ListBoxSeedSkillAmuletProspect")
+
+        # load spin ctrl
+        self.spin_ctrl_amulet_search_skill1_val = xrc.XRCCTRL(self.frame, "SpinCtrlAmuletSearchSkill1Value")
+        self.spin_ctrl_amulet_search_skill2_val = xrc.XRCCTRL(self.frame, "SpinCtrlAmuletSearchSkill2Value")
+        self.spin_ctrl_amulet_search_slot_num = xrc.XRCCTRL(self.frame, "SpinCtrlAmuletSearchSlotNumber")
+
+        # set explanation text
+        self.text_ctrl_seed_explain.SetValue(constnumbers.SEED_DECISION_EXPLANATION)
+        self.text_ctrl_flow.SetValue(constnumbers.SECOND_SKILL_FLOW)
+
+    def _load_combo_boxes(self):
+        # load combo boxes
+        self.combo_box_skill_dict = {}
+        self.combo_box_skill_dict[constnumbers.KEY_AMULET1] = [
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet1_1"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet1_3"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet1_4"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet1_4"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet1_5"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet1_6"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet1_7")]
+        self.combo_box_skill_dict[constnumbers.KEY_AMULET2] = [
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet2_1"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet2_3"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet2_4"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet2_4"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet2_5"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet2_6"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet2_7")]
+        self.combo_box_skill_dict[constnumbers.KEY_AMULET3] = [
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet3_1"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet3_3"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet3_4"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet3_4"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet3_5"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet3_6"),
+                xrc.XRCCTRL(self.frame, "ComboBoxAmulet3_7")]
+        self.combo_box_amulet_search_skill1 = xrc.XRCCTRL(self.frame, "ComboBoxAmuletSearchSkill1")
+        self.combo_box_amulet_search_skill2 = xrc.XRCCTRL(self.frame, "ComboBoxAmuletSearchSkill2")
+
+    def _load_text_ctrls(self):
+        # load text ctrls
+        self.text_ctrl_seed_explain = xrc.XRCCTRL(self.frame, "TextCtrlSeedExplain")
+        self.text_ctrl_seed_result = xrc.XRCCTRL(self.frame, "TextCtrlSeedResults")
+        self.text_ctrl_seed_select = xrc.XRCCTRL(self.frame, "TextCtrlSeedSelect")
+        self.text_ctrl_amulet_search_result = xrc.XRCCTRL(self.frame, "TextCtrlAmuletSearchResult")
+        self.text_ctrl_flow = xrc.XRCCTRL(self.frame, "TextCtrlFlow")
+        self.text_ctrl_seed_skill_dict = {}
+        self.text_ctrl_seed_skill_dict[constnumbers.KEY_AMULET1] = [
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet1_1"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet1_2"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet1_3"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet1_4"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet1_5"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet1_6"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet1_7")]
+        self.text_ctrl_seed_skill_dict[constnumbers.KEY_AMULET2] = [
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet2_1"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet2_2"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet2_3"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet2_4"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet2_5"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet2_6"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet2_7")]
+        self.text_ctrl_seed_skill_dict[constnumbers.KEY_AMULET3] = [
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet3_1"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet3_2"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet3_3"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet3_4"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet3_5"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet3_6"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillAmulet3_7")]
+        self.text_ctrl_seed_skill_dict[constnumbers.KEY_THRESHOLD2] = [
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillThreshold2_1"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillThreshold2_2"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillThreshold2_3"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillThreshold2_4"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillThreshold2_5"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillThreshold2_6"),
+                xrc.XRCCTRL(self.frame, "TextCtrlSeedSkillThreshold2_7")]
+
+    def Show(self):
+        self.frame.Show()
+
+    def Close(self):
+        self.frame.Close(True)
+
+    def OnAboutBox(self, evt):
+        u""" Show About Box """
+        info = wx.AboutDialogInfo()
+        info.Name = constnumbers.NAME
+        info.Version = constnumbers.VERSION
+        info.Copyright = constnumbers.COPYRIGHT
+        info.Description = constnumbers.DESCRIPTION
+        info.WebSite = (constnumbers.WEBSITE_LINK, constnumbers.WEBSITE_TEXT)
+        info.Developers = constnumbers.DEVELOPERS
+        info.License = constnumbers.LICENSE_TEXT
+        wx.AboutBox(info)
+
+    def GetAboutInfo(self):
+        u""" create About info """
+        info = wx.AboutDialogInfo()
+        info.Name = constnumbers.NAME
+        info.Version = constnumbers.VERSION
+        info.Copyright = constnumbers.COPYRIGHT
+        info.Description = constnumbers.DESCRIPTION
+        info.WebSite = (constnumbers.WEBSITE_LINK, constnumbers.WEBSITE_TEXT)
+        info.Developers = constnumbers.DEVELOPERS
+        info.License = constnumbers.LICENSE_TEXT
+        return info
+
+if __name__ == "__main__":
+    app = wx.App(False)
+    mainframe = MainFrameView()
+    mainframe.Show()
+    app.MainLoop()