From cb3c84d4ef725e8c2ce9b9a0d99c39440f5387bd Mon Sep 17 00:00:00 2001 From: EillesWan Date: Sun, 14 Jan 2024 23:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E6=B6=88=E6=81=AF=E6=98=AF=EF=BC=8C?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E8=AE=BE=E8=AE=A1=E5=AE=8C=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E5=9D=8F=E6=B6=88=E6=81=AF=E6=98=AF=EF=BC=8C=E8=BF=98=E6=B2=A1?= =?UTF-8?q?=E6=8A=8A=E6=95=B4=E4=B8=AA=E9=80=BB=E8=BE=91=E6=90=9E=E5=AE=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llc_win_wxPython.py | 818 +++-- ...LunConverter.fbp => LingLunConverter0.fbp} | 0 wxFB_Project/LingLunConverter1.fbp | 3131 ++++++++++++++++ wxFB_Project/LingLunConverter1_1.fbp | 3179 +++++++++++++++++ wxFB_Project/{generated.py => generated0.py} | 0 wxFB_Project/generated1.py | 478 +++ wxFB_Project/generated1_1.py | 514 +++ 7 files changed, 7919 insertions(+), 201 deletions(-) rename wxFB_Project/{LingLunConverter.fbp => LingLunConverter0.fbp} (100%) create mode 100644 wxFB_Project/LingLunConverter1.fbp create mode 100644 wxFB_Project/LingLunConverter1_1.fbp rename wxFB_Project/{generated.py => generated0.py} (100%) create mode 100644 wxFB_Project/generated1.py create mode 100644 wxFB_Project/generated1_1.py diff --git a/llc_win_wxPython.py b/llc_win_wxPython.py index c8345d5..5d74453 100644 --- a/llc_win_wxPython.py +++ b/llc_win_wxPython.py @@ -19,9 +19,10 @@ import sys if sys.argv: if "-l" in sys.argv: - pass # 更换语言 + pass # 更换语言 elif "--edit-lang" in sys.argv: from utils.localize import main + main() exit() @@ -36,6 +37,8 @@ from Musicreater.plugin.addonpack import ( from Musicreater.plugin.bdxfile import to_BDX_file_in_delay, to_BDX_file_in_score import wx +import wx.xrc +import wx.propgrid as pg from utils.io import myWords, logger, object_constants # , TrimLog, is_logging from utils.update_check import check_update @@ -46,8 +49,8 @@ BLACK = (18, 17, 16) # 121110 __appname__ = "伶伦转换器" -__version__ = "WXGUI 0.0.3" -__zhver__ = "WX图形界面 预代预版第三次修订" +__version__ = "WXGUI 1.0.0" +__zhver__ = "WX图形界面 初代预版第〇次修订" osc = object_constants.ObjectStateConstant( @@ -76,6 +79,9 @@ class LinglunConverterApp(wx.App): return True +logger.info("加载主框架……") + + class LingLunMainFrame(wx.Frame): def __init__(self, parent): wx.Frame.__init__( @@ -101,9 +107,30 @@ class LingLunMainFrame(wx.Frame): ) self.SetForegroundColour(BLACK) self.SetBackgroundColour(WHITE) - self.m_statusBar2 = self.CreateStatusBar(1, wx.STB_SIZEGRIP, wx.ID_ANY) + self.m_statusBar2.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + self.m_menubar1 = wx.MenuBar(0) + self.m_menubar1.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + self.FileMenu = wx.Menu() self.m_Exit_menuItem1 = wx.MenuItem( self.FileMenu, wx.ID_ANY, "退出", "这是退出按钮", wx.ITEM_NORMAL @@ -120,11 +147,10 @@ class LingLunMainFrame(wx.Frame): wx.StaticBox(self, wx.ID_ANY, "言·论"), wx.VERTICAL ) - self.yanlun_now = random.randrange(0, yanlun_length) self.m_LinglunWords_staticText1 = wx.StaticText( s_yanLunbarSizer.GetStaticBox(), wx.ID_ANY, - myWords[self.yanlun_now] + "\r", + "灵光焕发 深艺献心", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL | wx.ST_ELLIPSIZE_MIDDLE | wx.ST_NO_AUTORESIZE, @@ -152,11 +178,107 @@ class LingLunMainFrame(wx.Frame): m_mainBoxSizer.Add( s_yanLunbarSizer, - 1, + 0, wx.ALL | wx.EXPAND | wx.RESERVE_SPACE_EVEN_IF_HIDDEN | wx.TOP, 2, ) + self.mian_notebook = wx.Notebook( + self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, 0 + ) + self.mian_notebook.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + + self.convert_page = ConvertPagePanel( + self.mian_notebook, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + wx.TAB_TRAVERSAL, + ) + self.mian_notebook.AddPage(self.convert_page, "开始转换", True) + self.setting_page = SettingPagePannel( + self.mian_notebook, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + wx.TAB_TRAVERSAL, + ) + self.mian_notebook.AddPage(self.setting_page, "数据设置", False) + + m_mainBoxSizer.Add(self.mian_notebook, 1, wx.EXPAND | wx.ALL, 5) + + self.SetSizer(m_mainBoxSizer) + self.Layout() + + self.Centre(wx.BOTH) + + # Connect Events + self.Bind( + wx.EVT_MENU, self.onExitButtonPressed, id=self.m_Exit_menuItem1.GetId() + ) + self.m_LinglunWords_staticText1.Bind(wx.EVT_LEFT_DCLICK, self.onYanlunDClicked) + self.m_LinglunWords_staticText1.Bind(wx.EVT_MOUSEWHEEL, self.onYanlunWheeled) + + + def __del__(self): + pass + + # Virtual event handlers, override them in your derived class + def onExitButtonPressed(self, event): + self.Destroy() + + def onYanlunDClicked(self, event): + self.yanlun_now = random.randrange(0, yanlun_length) + self.m_LinglunWords_staticText1.SetLabelText(myWords[self.yanlun_now] + "\r") + + def onYanlunWheeled(self, event): + if event.GetWheelRotation() < 0: + self.yanlun_now += 1 + else: + self.yanlun_now -= 1 + self.yanlun_now += ( + -yanlun_length + if self.yanlun_now >= yanlun_length + else (yanlun_length if self.yanlun_now < 0 else 0) + ) + self.m_LinglunWords_staticText1.SetLabelText(myWords[self.yanlun_now] + "\r") + + + +logger.info("加载分页……") + +########################################################################### +## Class convert_page_panel +########################################################################### + + +class ConvertPagePanel(wx.Panel): + def __init__( + self, + parent, + id=wx.ID_ANY, + pos=wx.DefaultPosition, + size=wx.Size(565, 540), + style=wx.TAB_TRAVERSAL, + name=wx.EmptyString, + ): + wx.Panel.__init__( + self, parent, id=id, pos=pos, size=size, style=style, name=name + ) + + self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)) + + main_page_sizer = wx.BoxSizer(wx.VERTICAL) + s_midiChooseSizer = wx.BoxSizer(wx.HORIZONTAL) self.m_ChooseMidiTips_staticText3 = wx.StaticText( @@ -169,7 +291,6 @@ class LingLunMainFrame(wx.Frame): ) ss_MidiChooserSizer_bSizer9 = wx.BoxSizer(wx.VERTICAL) - self.midiFilesList = set() self.m_midiFilesList_listBox2 = wx.ListBox( self, @@ -190,7 +311,7 @@ class LingLunMainFrame(wx.Frame): self.m_midiBroseButton_button21, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5 ) - m_mainBoxSizer.Add(s_midiChooseSizer, 1, wx.EXPAND, 5) + main_page_sizer.Add(s_midiChooseSizer, 0, wx.EXPAND, 5) s_formatChooseSizer = wx.BoxSizer(wx.HORIZONTAL) @@ -205,6 +326,7 @@ class LingLunMainFrame(wx.Frame): wx.DefaultPosition, wx.DefaultSize, m_outformatChoice_choice1Choices, + 0, ) self.m_outformatChoice_choice1.SetSelection(0) ss_outputFormatChooseSizer.Add( @@ -226,12 +348,12 @@ class LingLunMainFrame(wx.Frame): m_playerChoice_choice2Choices, 0, ) - self.m_playerChoice_choice2.SetSelection(0) + self.m_playerChoice_choice2.SetSelection(2) ss_playerChooseSizer.Add(self.m_playerChoice_choice2, 0, wx.ALL | wx.EXPAND, 5) s_formatChooseSizer.Add(ss_playerChooseSizer, 1, wx.ALL | wx.EXPAND, 5) - m_mainBoxSizer.Add(s_formatChooseSizer, 1, wx.EXPAND, 5) + main_page_sizer.Add(s_formatChooseSizer, 0, wx.EXPAND, 5) s_promptSizer = wx.StaticBoxSizer( wx.StaticBox(self, wx.ID_ANY, "转换参数"), wx.VERTICAL @@ -273,7 +395,10 @@ class LingLunMainFrame(wx.Frame): ) ss_regularPromoptsEnteringSizer1.Add( - sss_VolumnPersentageEnteringSizer, 1, wx.ALL | wx.EXPAND, 5 + sss_VolumnPersentageEnteringSizer, + 0, + wx.ALL | wx.EXPAND | wx.SHAPED | wx.ALIGN_CENTER_VERTICAL, + 5, ) sss_SpeedEnteringSizer = wx.StaticBoxSizer( @@ -308,121 +433,50 @@ class LingLunMainFrame(wx.Frame): sss_SpeedEnteringSizer.Add(self.m_speed_spinCtrlDouble, 0, wx.ALL, 5) ss_regularPromoptsEnteringSizer1.Add( - sss_SpeedEnteringSizer, 1, wx.ALL | wx.EXPAND, 5 - ) - - self.m_oldExeFormatChecker_checkBox3 = wx.CheckBox( - s_promptSizer.GetStaticBox(), - wx.ID_ANY, - "启用\n旧版\n执行\n指令\n格式", - wx.DefaultPosition, - wx.DefaultSize, + sss_SpeedEnteringSizer, 0, + wx.ALL | wx.EXPAND | wx.SHAPED | wx.ALIGN_CENTER_VERTICAL, + 5, ) - ss_regularPromoptsEnteringSizer1.Add( - self.m_oldExeFormatChecker_checkBox3, 0, wx.SHAPED, 0 - ) - s_promptSizer.Add(ss_regularPromoptsEnteringSizer1, 1, wx.EXPAND | wx.SHAPED, 5) - ss_progressbarCheckingSizer = wx.StaticBoxSizer( - wx.StaticBox(s_promptSizer.GetStaticBox(), wx.ID_ANY, "进度条"), wx.HORIZONTAL + s_promptSizer.Add(ss_regularPromoptsEnteringSizer1, 0, wx.EXPAND, 5) + + ss_commandCheckingSizer = wx.StaticBoxSizer( + wx.StaticBox(s_promptSizer.GetStaticBox(), wx.ID_ANY, "指令设置"), wx.HORIZONTAL ) self.m_progressBarEnablingCheckBox1 = wx.CheckBox( - ss_progressbarCheckingSizer.GetStaticBox(), + ss_commandCheckingSizer.GetStaticBox(), wx.ID_ANY, "启用进度条", wx.DefaultPosition, wx.DefaultSize, - wx.ALIGN_RIGHT, + 0, ) - self.m_progressBarEnablingCheckBox1.SetValue(True) - ss_progressbarCheckingSizer.Add( - self.m_progressBarEnablingCheckBox1, 0, wx.ALL, 5 + ss_commandCheckingSizer.Add( + self.m_progressBarEnablingCheckBox1, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5 ) - sss_customProgressBarSizer_wSizer6 = wx.WrapSizer( - wx.HORIZONTAL, wx.WRAPSIZER_DEFAULT_FLAGS - ) - - ssss_basicProgressStylePattle_sbSizer9 = wx.StaticBoxSizer( - wx.StaticBox( - ss_progressbarCheckingSizer.GetStaticBox(), wx.ID_ANY, "基本样式组" - ), - wx.VERTICAL, - ) - - self.m_BasicProgressBarStyleEntering_textCtrl4 = wx.TextCtrl( - ssss_basicProgressStylePattle_sbSizer9.GetStaticBox(), + self.m_oldExeFormatChecker_checkBox3 = wx.CheckBox( + ss_commandCheckingSizer.GetStaticBox(), wx.ID_ANY, - DEFAULT_PROGRESSBAR_STYLE[0], + "启用旧版执行指令格式", wx.DefaultPosition, wx.DefaultSize, - wx.TE_LEFT | wx.TE_NO_VSCROLL, + 0, ) - ssss_basicProgressStylePattle_sbSizer9.Add( - self.m_BasicProgressBarStyleEntering_textCtrl4, 0, wx.ALL | wx.EXPAND, 5 + ss_commandCheckingSizer.Add( + self.m_oldExeFormatChecker_checkBox3, + 0, + wx.ALL | wx.ALIGN_CENTER_VERTICAL, + 5, ) - sss_customProgressBarSizer_wSizer6.Add( - ssss_basicProgressStylePattle_sbSizer9, 1, wx.EXPAND, 5 - ) + s_promptSizer.Add(ss_commandCheckingSizer, 0, wx.EXPAND, 5) - ssss_UnplayedPartProgressbarPattle_sbSizer10 = wx.StaticBoxSizer( - wx.StaticBox( - ss_progressbarCheckingSizer.GetStaticBox(), wx.ID_ANY, "未播放之样式" - ), - wx.VERTICAL, - ) + ss_HideAndSeekSizer_bSizer15 = wx.BoxSizer(wx.VERTICAL) - self.m_unplayedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( - ssss_UnplayedPartProgressbarPattle_sbSizer10.GetStaticBox(), - wx.ID_ANY, - DEFAULT_PROGRESSBAR_STYLE[1][1], - wx.DefaultPosition, - wx.DefaultSize, - wx.TE_LEFT | wx.TE_NO_VSCROLL, - ) - ssss_UnplayedPartProgressbarPattle_sbSizer10.Add( - self.m_unplayedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 - ) - - sss_customProgressBarSizer_wSizer6.Add( - ssss_UnplayedPartProgressbarPattle_sbSizer10, 1, wx.EXPAND, 5 - ) - - ssss_PlayedPartProgressbarPattle_sbSizer11 = wx.StaticBoxSizer( - wx.StaticBox( - ss_progressbarCheckingSizer.GetStaticBox(), wx.ID_ANY, "已播放之样式" - ), - wx.VERTICAL, - ) - - self.m_playedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( - ssss_PlayedPartProgressbarPattle_sbSizer11.GetStaticBox(), - wx.ID_ANY, - DEFAULT_PROGRESSBAR_STYLE[1][0], - wx.DefaultPosition, - wx.DefaultSize, - wx.TE_LEFT | wx.TE_NO_VSCROLL, - ) - ssss_PlayedPartProgressbarPattle_sbSizer11.Add( - self.m_playedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 - ) - - sss_customProgressBarSizer_wSizer6.Add( - ssss_PlayedPartProgressbarPattle_sbSizer11, 1, wx.EXPAND, 5 - ) - - ss_progressbarCheckingSizer.Add( - sss_customProgressBarSizer_wSizer6, 1, wx.EXPAND, 5 - ) - - s_promptSizer.Add(ss_progressbarCheckingSizer, 1, wx.EXPAND, 5) - - self.ss_HideAndSeekSizer_bSizer15 = wx.BoxSizer(wx.VERTICAL) - - self.sss_ScoreboardPlayerPromptsSizer_bSizer7 = wx.BoxSizer(wx.HORIZONTAL) + sss_ScoreboardPlayerPromptsSizer_bSizer7 = wx.BoxSizer(wx.HORIZONTAL) self.m_EnterScoreboardNameTip_staticText4 = wx.StaticText( s_promptSizer.GetStaticBox(), @@ -434,8 +488,11 @@ class LingLunMainFrame(wx.Frame): ) self.m_EnterScoreboardNameTip_staticText4.Wrap(-1) - self.sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( - self.m_EnterScoreboardNameTip_staticText4, 0, wx.ALL, 5 + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( + self.m_EnterScoreboardNameTip_staticText4, + 0, + wx.ALL | wx.ALIGN_CENTER_VERTICAL, + 5, ) self.m_ScoreboardNameEntering_textCtrl9 = wx.TextCtrl( @@ -447,7 +504,7 @@ class LingLunMainFrame(wx.Frame): 0, ) self.m_ScoreboardNameEntering_textCtrl9.SetMaxLength(10) - self.sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_ScoreboardNameEntering_textCtrl9, 0, wx.ALL, 5 ) @@ -460,7 +517,7 @@ class LingLunMainFrame(wx.Frame): ) self.m_staticline1.SetMinSize(wx.Size(2, -1)) - self.sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_staticline1, 0, wx.ALL | wx.EXPAND, 5 ) @@ -472,15 +529,18 @@ class LingLunMainFrame(wx.Frame): wx.DefaultSize, wx.ALIGN_RIGHT, ) - self.sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( - self.m_IsAutoResetScoreboard_checkBox2, 0, wx.ALL, 5 + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( + self.m_IsAutoResetScoreboard_checkBox2, + 0, + wx.ALL | wx.ALIGN_CENTER_VERTICAL, + 5, ) - self.ss_HideAndSeekSizer_bSizer15.Add( - self.sss_ScoreboardPlayerPromptsSizer_bSizer7, 1, wx.SHAPED, 5 + ss_HideAndSeekSizer_bSizer15.Add( + sss_ScoreboardPlayerPromptsSizer_bSizer7, 0, wx.SHAPED | wx.EXPAND, 5 ) - self.sss_StructurePlayerPromptsSizer_bSizer8 = wx.BoxSizer(wx.HORIZONTAL) + sss_StructurePlayerPromptsSizer_bSizer8 = wx.BoxSizer(wx.HORIZONTAL) self.m_PlayerSelectorEnteringTips_staticText41 = wx.StaticText( s_promptSizer.GetStaticBox(), @@ -492,8 +552,11 @@ class LingLunMainFrame(wx.Frame): ) self.m_PlayerSelectorEnteringTips_staticText41.Wrap(-1) - self.sss_StructurePlayerPromptsSizer_bSizer8.Add( - self.m_PlayerSelectorEnteringTips_staticText41, 0, wx.ALL, 5 + sss_StructurePlayerPromptsSizer_bSizer8.Add( + self.m_PlayerSelectorEnteringTips_staticText41, + 0, + wx.ALL | wx.ALIGN_CENTER_VERTICAL, + 5, ) m_PlayerSelectorEntering_comboBox1Choices = ["@a", "@p", "@e[type=player]"] @@ -507,8 +570,11 @@ class LingLunMainFrame(wx.Frame): wx.CB_DROPDOWN | wx.TE_PROCESS_ENTER, ) self.m_PlayerSelectorEntering_comboBox1.SetSelection(0) - self.sss_StructurePlayerPromptsSizer_bSizer8.Add( - self.m_PlayerSelectorEntering_comboBox1, 0, wx.ALL, 5 + sss_StructurePlayerPromptsSizer_bSizer8.Add( + self.m_PlayerSelectorEntering_comboBox1, + 0, + wx.ALL | wx.ALIGN_CENTER_VERTICAL, + 5, ) self.m_staticline2 = wx.StaticLine( @@ -520,7 +586,7 @@ class LingLunMainFrame(wx.Frame): ) self.m_staticline2.SetMinSize(wx.Size(2, -1)) - self.sss_StructurePlayerPromptsSizer_bSizer8.Add( + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_staticline2, 0, wx.ALL | wx.EXPAND, 5 ) @@ -534,8 +600,8 @@ class LingLunMainFrame(wx.Frame): ) self.StructureMaxHeoghtTips_.Wrap(-1) - self.sss_StructurePlayerPromptsSizer_bSizer8.Add( - self.StructureMaxHeoghtTips_, 0, wx.ALL, 5 + sss_StructurePlayerPromptsSizer_bSizer8.Add( + self.StructureMaxHeoghtTips_, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5 ) self.m_StructureHeight_slider7 = wx.Slider( @@ -548,7 +614,7 @@ class LingLunMainFrame(wx.Frame): wx.DefaultSize, wx.SL_HORIZONTAL, ) - self.sss_StructurePlayerPromptsSizer_bSizer8.Add( + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_StructureHeight_slider7, 0, wx.ALL, 5 ) @@ -563,15 +629,18 @@ class LingLunMainFrame(wx.Frame): 1024, 50, ) - self.sss_StructurePlayerPromptsSizer_bSizer8.Add( - self.m_enteringStructureMaxHeight_spinCtrl1, 0, wx.ALL, 5 + sss_StructurePlayerPromptsSizer_bSizer8.Add( + self.m_enteringStructureMaxHeight_spinCtrl1, + 0, + wx.ALL | wx.ALIGN_CENTER_VERTICAL, + 5, ) - self.ss_HideAndSeekSizer_bSizer15.Add( - self.sss_StructurePlayerPromptsSizer_bSizer8, 1, wx.SHAPED, 5 + ss_HideAndSeekSizer_bSizer15.Add( + sss_StructurePlayerPromptsSizer_bSizer8, 0, wx.SHAPED | wx.EXPAND, 5 ) - self.sss_BDXfileSignNameSizer_bSizer13 = wx.BoxSizer(wx.HORIZONTAL) + sss_BDXfileSignNameSizer_bSizer13 = wx.BoxSizer(wx.HORIZONTAL) self.m_BDXfileSignNameTips_staticText8 = wx.StaticText( s_promptSizer.GetStaticBox(), @@ -583,8 +652,11 @@ class LingLunMainFrame(wx.Frame): ) self.m_BDXfileSignNameTips_staticText8.Wrap(-1) - self.sss_BDXfileSignNameSizer_bSizer13.Add( - self.m_BDXfileSignNameTips_staticText8, 0, wx.ALL, 5 + sss_BDXfileSignNameSizer_bSizer13.Add( + self.m_BDXfileSignNameTips_staticText8, + 0, + wx.ALL | wx.ALIGN_CENTER_VERTICAL, + 5, ) self.m_EnteringBDXfileSignName_textCtrl12 = wx.TextCtrl( @@ -595,17 +667,19 @@ class LingLunMainFrame(wx.Frame): wx.DefaultSize, 0, ) - self.sss_BDXfileSignNameSizer_bSizer13.Add( + sss_BDXfileSignNameSizer_bSizer13.Add( self.m_EnteringBDXfileSignName_textCtrl12, 0, wx.ALL, 5 ) - self.ss_HideAndSeekSizer_bSizer15.Add( - self.sss_BDXfileSignNameSizer_bSizer13, 1, wx.SHAPED, 5 + ss_HideAndSeekSizer_bSizer15.Add( + sss_BDXfileSignNameSizer_bSizer13, 0, wx.SHAPED | wx.EXPAND, 5 ) - s_promptSizer.Add(self.ss_HideAndSeekSizer_bSizer15, 1, wx.EXPAND, 5) + s_promptSizer.Add(ss_HideAndSeekSizer_bSizer15, 0, wx.EXPAND, 5) - m_mainBoxSizer.Add(s_promptSizer, 1, wx.EXPAND, 5) + main_page_sizer.Add( + s_promptSizer, 0, wx.SHAPED | wx.EXPAND | wx.ALIGN_CENTER_HORIZONTAL, 5 + ) s_StartSizer_sbSizer18 = wx.StaticBoxSizer( wx.StaticBox(self, wx.ID_ANY, "开始转换"), wx.HORIZONTAL @@ -615,7 +689,7 @@ class LingLunMainFrame(wx.Frame): s_StartSizer_sbSizer18.Add((0, 0), 1, wx.EXPAND, 5) - self.m_button2 = wx.Button( + self.m_start_button2 = wx.Button( s_StartSizer_sbSizer18.GetStaticBox(), wx.ID_ANY, "开始转换", @@ -623,34 +697,25 @@ class LingLunMainFrame(wx.Frame): wx.DefaultSize, 0, ) - s_StartSizer_sbSizer18.Add(self.m_button2, 0, wx.ALIGN_CENTER | wx.ALL, 5) + s_StartSizer_sbSizer18.Add(self.m_start_button2, 0, wx.ALIGN_CENTER | wx.ALL, 5) - m_mainBoxSizer.Add( + main_page_sizer.Add( s_StartSizer_sbSizer18, 1, wx.ALL | wx.EXPAND | wx.RESERVE_SPACE_EVEN_IF_HIDDEN, 5, ) - self.SetSizer(m_mainBoxSizer) + self.SetSizer(main_page_sizer) self.Layout() - self.Centre(wx.BOTH) - # Connect Events - self.Bind( - wx.EVT_MENU, self.onExitButtonPressed, id=self.m_Exit_menuItem1.GetId() - ) - self.m_LinglunWords_staticText1.Bind(wx.EVT_LEFT_DCLICK, self.onYanlunDClicked) - self.m_LinglunWords_staticText1.Bind(wx.EVT_MOUSEWHEEL, self.onYanlunWheeled) self.m_ChooseMidiTips_staticText3.Bind(wx.EVT_LEFT_DCLICK, self.MidiEasterEgg) - self.m_midiFilesList_listBox2.Bind(wx.EVT_LISTBOX, self.onFileListUpdated) self.m_midiFilesList_listBox2.Bind( wx.EVT_LISTBOX_DCLICK, self.onFileDoubleClicked ) self.m_midiBroseButton_button21.Bind(wx.EVT_BUTTON, self.openFile) - self.m_outformatChoice_choice1.Bind(wx.EVT_CHOICE, self.onOutputFormatChosen) self.m_playerChoice_choice2.Bind(wx.EVT_CHOICE, self.onPlayerChosen) self.m_volumn_slider.Bind(wx.EVT_SCROLL, self.onVolumeScrolling) @@ -662,15 +727,6 @@ class LingLunMainFrame(wx.Frame): self.m_progressBarEnablingCheckBox1.Bind( wx.EVT_CHECKBOX, self.onProgressbarChecked ) - self.m_BasicProgressBarStyleEntering_textCtrl4.Bind( - wx.EVT_TEXT, self.onProgressbarBasicStyleUpdating - ) - self.m_unplayedProgressbarStyleEntering_textCtrl5.Bind( - wx.EVT_TEXT, self.onProgressbarUnplayedStyleUpdating - ) - self.m_playedProgressbarStyleEntering_textCtrl5.Bind( - wx.EVT_TEXT, self.onProgressbarPlayedStyleUpdating - ) self.m_ScoreboardNameEntering_textCtrl9.Bind( wx.EVT_TEXT, self.onScoreboredNameUpdating ) @@ -689,15 +745,9 @@ class LingLunMainFrame(wx.Frame): self.m_EnteringBDXfileSignName_textCtrl12.Bind( wx.EVT_TEXT, self.onBDXfileSignNameUpdating ) - self.m_button2.Bind(wx.EVT_BUTTON, self.onStartButtonPressed) - - # self.ss_HideAndSeekSizer_bSizer15.Hide( - # self.sss_BDXfileSignNameSizer_bSizer13 - # ) - # self.ss_HideAndSeekSizer_bSizer15.Hide( - # self.sss_StructurePlayerPromptsSizer_bSizer8 - # ) + self.m_start_button2.Bind(wx.EVT_BUTTON, self.onStartButtonPressed) + self.m_EnteringBDXfileSignName_textCtrl12.Enable(False) self.m_PlayerSelectorEntering_comboBox1.Enable(False) @@ -708,25 +758,6 @@ class LingLunMainFrame(wx.Frame): pass # Virtual event handlers, override them in your derived class - def onExitButtonPressed(self, event): - self.Destroy() - - def onYanlunDClicked(self, event): - self.yanlun_now = random.randrange(0, yanlun_length) - self.m_LinglunWords_staticText1.SetLabelText(myWords[self.yanlun_now] + "\r") - - def onYanlunWheeled(self, event): - if event.GetWheelRotation() < 0: - self.yanlun_now += 1 - else: - self.yanlun_now -= 1 - self.yanlun_now += ( - -yanlun_length - if self.yanlun_now >= yanlun_length - else (yanlun_length if self.yanlun_now < 0 else 0) - ) - self.m_LinglunWords_staticText1.SetLabelText(myWords[self.yanlun_now] + "\r") - def MidiEasterEgg(self, event): if "诸葛亮与八卦阵-山水千年" not in self.midiFilesList: self.midiFilesList.add("诸葛亮与八卦阵-山水千年") @@ -820,23 +851,15 @@ class LingLunMainFrame(wx.Frame): ) def onProgressbarChecked(self, event): - if self.m_progressBarEnablingCheckBox1.GetValue(): - self.m_BasicProgressBarStyleEntering_textCtrl4.Enable(True) - self.m_unplayedProgressbarStyleEntering_textCtrl5.Enable(True) - self.m_playedProgressbarStyleEntering_textCtrl5.Enable(True) - else: - self.m_BasicProgressBarStyleEntering_textCtrl4.Enable(False) - self.m_unplayedProgressbarStyleEntering_textCtrl5.Enable(False) - self.m_playedProgressbarStyleEntering_textCtrl5.Enable(False) - - def onProgressbarBasicStyleUpdating(self, event): - event.Skip() - - def onProgressbarUnplayedStyleUpdating(self, event): - event.Skip() - - def onProgressbarPlayedStyleUpdating(self, event): - event.Skip() + pass + # if self.m_progressBarEnablingCheckBox1.GetValue(): + # self.m_BasicProgressBarStyleEntering_textCtrl4.Enable(True) + # self.m_unplayedProgressbarStyleEntering_textCtrl5.Enable(True) + # self.m_playedProgressbarStyleEntering_textCtrl5.Enable(True) + # else: + # self.m_BasicProgressBarStyleEntering_textCtrl4.Enable(False) + # self.m_unplayedProgressbarStyleEntering_textCtrl5.Enable(False) + # self.m_playedProgressbarStyleEntering_textCtrl5.Enable(False) def onScoreboredNameUpdating(self, event): event.Skip() @@ -955,6 +978,399 @@ class LingLunMainFrame(wx.Frame): ).ShowModal() + +########################################################################### +## Class setting_page_pannel +########################################################################### + + +class SettingPagePannel(wx.Panel): + def __init__( + self, + parent, + id=wx.ID_ANY, + pos=wx.DefaultPosition, + size=wx.Size(565, 540), + style=wx.TAB_TRAVERSAL, + name=wx.EmptyString, + ): + wx.Panel.__init__( + self, parent, id=id, pos=pos, size=size, style=style, name=name + ) + + setting_page_sizer = wx.BoxSizer(wx.VERTICAL) + + self.setting_notebook = wx.Notebook( + self, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + wx.NB_FIXEDWIDTH | wx.NB_MULTILINE | wx.NB_RIGHT, + ) + self.setting_notebook.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "@OPPOSans R", + ) + ) + self.setting_notebook.SetBackgroundColour( + wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW) + ) + + self.setting_page1 = wx.Panel( + self.setting_notebook, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + wx.TAB_TRAVERSAL, + ) + self.setting_page1.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + + setting_page1_box_sizer = wx.BoxSizer(wx.VERTICAL) + + sss_customProgressBarSizer_wSizer6 = wx.WrapSizer( + wx.HORIZONTAL, wx.WRAPSIZER_DEFAULT_FLAGS + ) + + setting_page1_progressbar_style = wx.StaticBoxSizer( + wx.StaticBox(self.setting_page1, wx.ID_ANY, "进度条"), wx.HORIZONTAL + ) + + ssss_basicProgressStylePattle_sbSizer9 = wx.StaticBoxSizer( + wx.StaticBox( + setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, "基本样式组" + ), + wx.VERTICAL, + ) + + self.m_BasicProgressBarStyleEntering_textCtrl4 = wx.TextCtrl( + ssss_basicProgressStylePattle_sbSizer9.GetStaticBox(), + wx.ID_ANY, + "▶ %%N [ %%s/%^s %%% __________ %%t|%^t ]", + wx.DefaultPosition, + wx.DefaultSize, + wx.TE_LEFT | wx.TE_NO_VSCROLL, + ) + ssss_basicProgressStylePattle_sbSizer9.Add( + self.m_BasicProgressBarStyleEntering_textCtrl4, 0, wx.ALL | wx.EXPAND, 5 + ) + + setting_page1_progressbar_style.Add( + ssss_basicProgressStylePattle_sbSizer9, 1, wx.ALL | wx.EXPAND, 5 + ) + + ssss_UnplayedPartProgressbarPattle_sbSizer10 = wx.StaticBoxSizer( + wx.StaticBox( + setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, "未播放之样式" + ), + wx.VERTICAL, + ) + + self.m_unplayedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( + ssss_UnplayedPartProgressbarPattle_sbSizer10.GetStaticBox(), + wx.ID_ANY, + "§7=§r", + wx.DefaultPosition, + wx.DefaultSize, + wx.TE_LEFT | wx.TE_NO_VSCROLL, + ) + ssss_UnplayedPartProgressbarPattle_sbSizer10.Add( + self.m_unplayedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 + ) + + setting_page1_progressbar_style.Add( + ssss_UnplayedPartProgressbarPattle_sbSizer10, 1, wx.ALL | wx.EXPAND, 5 + ) + + ssss_PlayedPartProgressbarPattle_sbSizer11 = wx.StaticBoxSizer( + wx.StaticBox( + setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, "已播放之样式" + ), + wx.VERTICAL, + ) + + self.m_playedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( + ssss_PlayedPartProgressbarPattle_sbSizer11.GetStaticBox(), + wx.ID_ANY, + "§e=§r", + wx.DefaultPosition, + wx.DefaultSize, + wx.TE_LEFT | wx.TE_NO_VSCROLL, + ) + ssss_PlayedPartProgressbarPattle_sbSizer11.Add( + self.m_playedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 + ) + + setting_page1_progressbar_style.Add( + ssss_PlayedPartProgressbarPattle_sbSizer11, 1, wx.ALL | wx.EXPAND, 5 + ) + + sss_customProgressBarSizer_wSizer6.Add( + setting_page1_progressbar_style, 1, wx.ALL | wx.EXPAND, 5 + ) + + setting_page1_experiment_style = wx.StaticBoxSizer( + wx.StaticBox(self.setting_page1, wx.ID_ANY, "实验性功能"), wx.HORIZONTAL + ) + + self.m_enable_experiment_checkBox = wx.CheckBox( + setting_page1_experiment_style.GetStaticBox(), + wx.ID_ANY, + "启用实验性功能", + wx.DefaultPosition, + wx.DefaultSize, + 0, + ) + setting_page1_experiment_style.Add( + self.m_enable_experiment_checkBox, + 1, + wx.ALL | wx.EXPAND, + 5, + ) + + experiment_type_choiceChoices = ["常规转换", "长音插值", "同刻偏移"] + self.experiment_type_choice = wx.Choice( + setting_page1_experiment_style.GetStaticBox(), + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + experiment_type_choiceChoices, + 0, + ) + self.experiment_type_choice.SetSelection(0) + setting_page1_experiment_style.Add( + self.experiment_type_choice, + 2, + wx.ALL | wx.EXPAND, + 5, + ) + + self.m_ignore_midi_error_checkBox = wx.CheckBox( + setting_page1_experiment_style.GetStaticBox(), + wx.ID_ANY, + "忽略MIDI错误", + wx.DefaultPosition, + wx.DefaultSize, + 0, + ) + self.m_ignore_midi_error_checkBox.SetValue(True) + setting_page1_experiment_style.Add( + self.m_ignore_midi_error_checkBox, 1, wx.ALL, 5 + ) + + sss_customProgressBarSizer_wSizer6.Add( + setting_page1_experiment_style, 1, wx.ALL | wx.EXPAND, 5 + ) + + setting_page1_box_sizer.Add( + sss_customProgressBarSizer_wSizer6, 1, wx.ALL | wx.EXPAND, 5 + ) + + self.setting_page1.SetSizer(setting_page1_box_sizer) + self.setting_page1.Layout() + setting_page1_box_sizer.Fit(self.setting_page1) + self.setting_notebook.AddPage(self.setting_page1, "基本信息", True) + self.setting_page2 = wx.Panel( + self.setting_notebook, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + wx.TAB_TRAVERSAL, + ) + self.setting_page2.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + wx.EmptyString, + ) + ) + + setting_page2_box_sizer = wx.BoxSizer(wx.VERTICAL) + + m_pitched_instrument_table_choiceChoices = ["“偷吃”的对照表", "“经典”对照表"] + self.m_pitched_instrument_table_choice = wx.Choice( + self.setting_page2, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + m_pitched_instrument_table_choiceChoices, + 0, + ) + self.m_pitched_instrument_table_choice.SetSelection(0) + self.m_pitched_instrument_table_choice.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + + setting_page2_box_sizer.Add( + self.m_pitched_instrument_table_choice, + 0, + wx.ALL | wx.EXPAND, + 5, + ) + + self.m_pitched_notes_table_propertyGrid1 = pg.PropertyGrid( + self.setting_page2, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + pg.PG_BOLD_MODIFIED | pg.PG_DEFAULT_STYLE, + ) + self.m_pitched_notes_table_propertyGrid1.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + + self.m_propertyGridItem1 = self.m_pitched_notes_table_propertyGrid1.Append( + pg.StringProperty("乐音乐器1", "乐音乐器1") + ) + self.m_propertyGridItem2 = self.m_pitched_notes_table_propertyGrid1.Append( + pg.StringProperty("乐音乐器2", "乐音乐器2") + ) + setting_page2_box_sizer.Add( + self.m_pitched_notes_table_propertyGrid1, + 1, + wx.ALL | wx.EXPAND, + 5, + ) + + self.setting_page2.SetSizer(setting_page2_box_sizer) + self.setting_page2.Layout() + setting_page2_box_sizer.Fit(self.setting_page2) + self.setting_notebook.AddPage(self.setting_page2, "乐音乐器对照表", False) + self.setting_page3 = wx.Panel( + self.setting_notebook, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + wx.TAB_TRAVERSAL, + ) + setting_page3_box_sizer = wx.BoxSizer(wx.VERTICAL) + + m_percussion_instrument_table_choice1Choices = ["“偷吃”的对照表", "“经典”对照表"] + self.m_percussion_instrument_table_choice1 = wx.Choice( + self.setting_page3, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + m_percussion_instrument_table_choice1Choices, + 0, + ) + self.m_percussion_instrument_table_choice1.SetSelection(0) + self.m_percussion_instrument_table_choice1.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + + setting_page3_box_sizer.Add( + self.m_percussion_instrument_table_choice1, + 0, + wx.ALL | wx.EXPAND, + 5, + ) + + self.m_percussion_notes_table_propertyGrid11 = pg.PropertyGrid( + self.setting_page3, + wx.ID_ANY, + wx.DefaultPosition, + wx.DefaultSize, + pg.PG_BOLD_MODIFIED | pg.PG_DEFAULT_STYLE, + ) + self.m_percussion_notes_table_propertyGrid11.SetFont( + wx.Font( + wx.NORMAL_FONT.GetPointSize(), + wx.FONTFAMILY_DEFAULT, + wx.FONTSTYLE_NORMAL, + wx.FONTWEIGHT_NORMAL, + False, + "OPPOSans R", + ) + ) + + self.m_propertyGridItem11 = self.m_percussion_notes_table_propertyGrid11.Append( + pg.StringProperty("打击乐器1", "打击乐器1") + ) + self.m_propertyGridItem21 = self.m_percussion_notes_table_propertyGrid11.Append( + pg.StringProperty("打击乐器2", "打击乐器2") + ) + setting_page3_box_sizer.Add( + self.m_percussion_notes_table_propertyGrid11, + 1, + wx.ALL | wx.EXPAND, + 5, + ) + + self.setting_page3.SetSizer(setting_page3_box_sizer) + self.setting_page3.Layout() + setting_page3_box_sizer.Fit(self.setting_page3) + self.setting_notebook.AddPage(self.setting_page3, "打击乐器对照表", False) + + setting_page_sizer.Add(self.setting_notebook, 1, wx.EXPAND | wx.ALL, 5) + + self.SetSizer(setting_page_sizer) + self.Layout() + + # Connect Events + self.m_BasicProgressBarStyleEntering_textCtrl4.Bind( + wx.EVT_TEXT, self.onProgressbarBasicStyleUpdating + ) + self.m_unplayedProgressbarStyleEntering_textCtrl5.Bind( + wx.EVT_TEXT, self.onProgressbarUnplayedStyleUpdating + ) + self.m_playedProgressbarStyleEntering_textCtrl5.Bind( + wx.EVT_TEXT, self.onProgressbarPlayedStyleUpdating + ) + + def __del__(self): + pass + + # Virtual event handlers, override them in your derived class + + + def onProgressbarBasicStyleUpdating(self, event): + event.Skip() + + def onProgressbarUnplayedStyleUpdating(self, event): + event.Skip() + + def onProgressbarPlayedStyleUpdating(self, event): + event.Skip() + + logger.info("执行应用。") # 启动应用程序 diff --git a/wxFB_Project/LingLunConverter.fbp b/wxFB_Project/LingLunConverter0.fbp similarity index 100% rename from wxFB_Project/LingLunConverter.fbp rename to wxFB_Project/LingLunConverter0.fbp diff --git a/wxFB_Project/LingLunConverter1.fbp b/wxFB_Project/LingLunConverter1.fbp new file mode 100644 index 0000000..11d5e25 --- /dev/null +++ b/wxFB_Project/LingLunConverter1.fbp @@ -0,0 +1,3131 @@ + + + + + ; + Python + 1 + source_name + 0 + 0 + res + UTF-8 + connect + + 1000 + none + + + 0 + LingLunConverter + + . + + 1 + 1 + 1 + 1 + UI + 0 + 0 + 0 + + 0 + wxAUI_MGR_DEFAULT + wxSYS_COLOUR_WINDOW + wxBOTH + + 1 + 1 + impl_virtual + + wxSYS_COLOUR_WINDOWTEXT + OPPOSans R,90,400,-1,70,0 + 0 + wxID_ANY + + + LingLunMainFrame + + 660,723 + wxDEFAULT_FRAME_STYLE + ; ; forward_declare + + + 0 + + LingLunConverter + wxTAB_TRAVERSAL + 1 + + + + 1 + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + wxID_ANY + + + m_statusBar2 + protected + + + wxSTB_SIZEGRIP + ; ; forward_declare + + + + + + + + + 1 + 1 + + OPPOSans R,90,400,-1,70,0 + 0 + wxID_ANY + + + m_menubar1 + protected + + + + ; ; forward_declare + + + + + + 文件 + FileMenu + protected + + + 0 + 1 + 这是退出按钮 + wxID_ANY + wxITEM_NORMAL + 退出 + m_Exit_menuItem1 + none + + + onExitButtonPressed + + + + + + m_mainBoxSizer + wxVERTICAL + none + + 2 + wxALL|wxEXPAND|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxTOP + 0 + + wxID_ANY + 言·论 + -1,-1 + s_yanLunbarSizer + wxVERTICAL + 1 + none + + 5 + wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + wxSYS_COLOUR_WINDOWTEXT + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + wxSYS_COLOUR_HIGHLIGHTTEXT + 1 + OPPOSans B,90,400,12,70,0 + 0 + 0 + wxID_ANY + 灵光焕发 深艺献心 + 0 + + 0 + + + 0 + + 1 + m_LinglunWords_staticText1 + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_CENTER_HORIZONTAL|wxST_ELLIPSIZE_MIDDLE|wxST_NO_AUTORESIZE + ; ; forward_declare + 0 + + + + + -1 + onYanlunDClicked + onYanlunWheeled + + + + + + 5 + wxEXPAND | wxALL + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + mian_notebook + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + + + 开始转换 + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + convert_page + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + main_page_sizer + wxVERTICAL + none + + 5 + wxEXPAND + 0 + + -1,-1 + s_midiChooseSizer + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 选择MIDI文件 (双击移除) + 0 + + 0 + + + 0 + + 1 + m_ChooseMidiTips_staticText3 + 1 + + + protected + 1 + + Fixed + 1 + + + ; ; forward_declare + 0 + + + + + -1 + MidiEasterEgg + + + + 5 + wxEXPAND + 1 + + + ss_MidiChooserSizer_bSizer9 + wxVERTICAL + none + + 0 + wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_midiFilesList_listBox2 + 1 + + + protected + 1 + + Resizable + 1 + + wxLB_HSCROLL|wxLB_SORT + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onFileListUpdated + onFileDoubleClicked + + + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + 0 + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 1 + + 1 + + + 0 + 0 + wxID_ANY + 打开… + + 0 + + 0 + + + 0 + + 1 + m_midiBroseButton_button21 + 1 + + + protected + 1 + + + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + openFile + + + + + + 5 + wxEXPAND + 0 + + + s_formatChooseSizer + wxHORIZONTAL + none + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 选择输出格式 + + ss_outputFormatChooseSizer + wxVERTICAL + 1 + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "附加包" "BDX结构" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_outformatChoice_choice1 + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onOutputFormatChosen + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 选择播放器 + + ss_playerChooseSizer + wxVERTICAL + 1 + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "计分板" "延时" "中继器" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_playerChoice_choice2 + 1 + + + protected + 1 + + Resizable + 2 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onPlayerChosen + + + + + + + + 5 + wxSHAPED|wxEXPAND|wxALIGN_CENTER_HORIZONTAL + 0 + + wxID_ANY + 转换参数 + + s_promptSizer + wxVERTICAL + 1 + none + + 5 + wxEXPAND + 0 + + + ss_regularPromoptsEnteringSizer1 + wxHORIZONTAL + none + + 5 + wxALL|wxEXPAND|wxSHAPED|wxALIGN_CENTER_VERTICAL + 0 + + wxID_ANY + 音量大小 + + sss_VolumnPersentageEnteringSizer + wxHORIZONTAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 1000 + + 0 + + 0 + + 0 + + 1 + m_volumn_slider + 1 + + + protected + 1 + + Resizable + 1 + + wxSL_HORIZONTAL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + 1000 + + + + onVolumeScrolling + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + 2 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 0.5 + 100.000000 + 100 + + 0 + + 0 + + 0 + + 1 + m_volumn_spinCtrlDouble1 + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS|wxTE_PROCESS_ENTER + ; ; forward_declare + 0 + + 100 + + + + onVolumeSpinChanged + + + + + + 5 + wxALL|wxEXPAND|wxSHAPED|wxALIGN_CENTER_VERTICAL + 0 + + wxID_ANY + 播放倍速 + + sss_SpeedEnteringSizer + wxHORIZONTAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 100 + + 0 + + 0 + + 0 + + 1 + m_speed_slider + 1 + + + protected + 1 + + Resizable + 1 + + wxSL_HORIZONTAL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + 50 + + + + onSpeedScrolling + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + 2 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 0.1 + 1 + 10 + + 0 + + 0.01 + + 0 + + 1 + m_speed_spinCtrlDouble + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS|wxTE_PROCESS_ENTER + ; ; forward_declare + 0 + + 1 + + + + onSpeedSpinChanged + + + + + + + + 5 + wxEXPAND + 0 + + wxID_ANY + 指令设置 + + ss_commandCheckingSizer + wxHORIZONTAL + 1 + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 启用进度条 + + 0 + + + 0 + + 1 + m_progressBarEnablingCheckBox1 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onProgressbarChecked + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 启用旧版执行指令格式 + + 0 + + + 0 + + 1 + m_oldExeFormatChecker_checkBox3 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + 5 + wxEXPAND + 0 + + + ss_HideAndSeekSizer_bSizer15 + wxVERTICAL + none + + 5 + wxSHAPED|wxEXPAND + 0 + + + sss_ScoreboardPlayerPromptsSizer_bSizer7 + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 播放计分板名称 + 0 + + 0 + + + 0 + + 1 + m_EnterScoreboardNameTip_staticText4 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + 10 + + 0 + + 1 + m_ScoreboardNameEntering_textCtrl9 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + mscplay + + + + onScoreboredNameUpdating + + + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + 2,-1 + 1 + m_staticline1 + 1 + + + protected + 1 + + Resizable + 1 + + wxLI_HORIZONTAL + ; ; forward_declare + 0 + + + + + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 自动重置计分板 + + 0 + + + 0 + + 1 + m_IsAutoResetScoreboard_checkBox2 + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_RIGHT + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onAutoResetScoreboardChecked + + + + + + 5 + wxSHAPED|wxEXPAND + 0 + + + sss_StructurePlayerPromptsSizer_bSizer8 + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 玩家选择器 + 0 + + 0 + + + 0 + + 1 + m_PlayerSelectorEnteringTips_staticText41 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "@a" "@p" "@e[type=player]" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_PlayerSelectorEntering_comboBox1 + 1 + + + protected + 1 + + Resizable + 0 + 1 + + wxCB_DROPDOWN|wxTE_PROCESS_ENTER + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + @a + + + + onPlayerSelectorUpdating + + + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + 2,-1 + 0 + m_staticline2 + 1 + + + protected + 1 + + Resizable + 1 + + wxLI_HORIZONTAL + ; ; forward_declare + 0 + + + + + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 结构生成最大高度 + 0 + + 0 + + + 0 + + 1 + StructureMaxHeoghtTips_ + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 1024 + + 0 + + 3 + + 0 + + 1 + m_StructureHeight_slider7 + 1 + + + protected + 1 + + Resizable + 1 + + wxSL_HORIZONTAL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + 50 + + + + onStructureMaxHeightScrolling + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 50 + 1024 + + 0 + + 3 + + 0 + + 1 + m_enteringStructureMaxHeight_spinCtrl1 + 1 + + + protected + 1 + + Resizable + 1 + + wxSP_ARROW_KEYS + ; ; forward_declare + 0 + + 50 + + + + onStructureMaxHeightSpinChanged + + + + + + 5 + wxSHAPED|wxEXPAND + 0 + + + sss_BDXfileSignNameSizer_bSizer13 + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + BDX作者署名 + 0 + + 0 + + + 0 + + 1 + m_BDXfileSignNameTips_staticText8 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_EnteringBDXfileSignName_textCtrl12 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + UserYou + + + + onBDXfileSignNameUpdating + + + + + + + + + + 5 + wxALL|wxEXPAND|wxRESERVE_SPACE_EVEN_IF_HIDDEN + 1 + + wxID_ANY + 开始转换 + -1,100 + s_StartSizer_sbSizer18 + wxHORIZONTAL + 1 + none + + 5 + wxEXPAND + 1 + + 0 + protected + 0 + + + + 5 + wxALIGN_CENTER|wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + 0 + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 1 + + 1 + + + 0 + 0 + wxID_ANY + 开始转换 + + 0 + + 0 + + + 0 + + 1 + m_start_button2 + 1 + + + protected + 1 + + + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onStartButtonPressed + + + + + + + + + + 数据设置 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + setting_page_sizer + wxVERTICAL + none + + 5 + wxEXPAND | wxALL + 1 + + 1 + 1 + 1 + 1 + + + + + + wxSYS_COLOUR_WINDOW + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + @OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_notebook + 1 + + + protected + 1 + + Resizable + 1 + + wxNB_FIXEDWIDTH|wxNB_MULTILINE|wxNB_RIGHT + ; ; forward_declare + 0 + + + + + + + 基本信息 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page1 + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + setting_page1_box_sizer + wxVERTICAL + none + + 5 + wxALL|wxEXPAND + 1 + + wxWRAPSIZER_DEFAULT_FLAGS + + sss_customProgressBarSizer_wSizer6 + wxHORIZONTAL + none + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 进度条 + + setting_page1_progressbar_style + wxHORIZONTAL + 1 + none + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 基本样式组 + + ssss_basicProgressStylePattle_sbSizer9 + wxVERTICAL + 1 + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + -1,-1 + 1 + m_BasicProgressBarStyleEntering_textCtrl4 + 1 + + + protected + 1 + + Fixed + 1 + + wxTE_LEFT|wxTE_NO_VSCROLL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + ▶ %%N [ %%s/%^s %%% __________ %%t|%^t ] + + + + onProgressbarBasicStyleUpdating + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 未播放之样式 + + ssss_UnplayedPartProgressbarPattle_sbSizer10 + wxVERTICAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_unplayedProgressbarStyleEntering_textCtrl5 + 1 + + + protected + 1 + + Resizable + 1 + + wxTE_LEFT|wxTE_NO_VSCROLL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + §7=§r + + + + onProgressbarUnplayedStyleUpdating + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 已播放之样式 + + ssss_PlayedPartProgressbarPattle_sbSizer11 + wxVERTICAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_playedProgressbarStyleEntering_textCtrl5 + 1 + + + protected + 1 + + Resizable + 1 + + wxTE_LEFT|wxTE_NO_VSCROLL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + §e=§r + + + + onProgressbarPlayedStyleUpdating + + + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 实验性功能 + + setting_page1_experiment_style + wxHORIZONTAL + 1 + none + + 5 + wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 启用实验性功能 + + 0 + + + 0 + + 1 + m_enable_experiment_checkBox + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL + 2 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "常规转换" "长音插值" "同刻偏移" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + experiment_type_choice + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALIGN_CENTER_VERTICAL|wxALL + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 忽略MIDI错误 + + 0 + + + 0 + + 1 + m_ignore_midi_error_checkBox + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + 乐音乐器对照表 + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + ,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page2 + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + setting_page2_box_sizer + wxVERTICAL + none + + 5 + wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "“偷吃”的对照表" "“经典”对照表" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_pitched_instrument_table_choice + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + 1 + + 0 + + + 0 + + 1 + m_pitched_notes_table_propertyGrid1 + 1 + + + protected + 1 + + Resizable + 1 + + wxPG_BOLD_MODIFIED|wxPG_DEFAULT_STYLE + ; ; forward_declare + 0 + + + + + + + 乐音乐器1 + m_propertyGridItem1 + protected + String + + + + 乐音乐器2 + m_propertyGridItem2 + protected + String + + + + + + + + + 打击乐器对照表 + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page3 + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + setting_page3_box_sizer + wxVERTICAL + none + + 5 + wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "“偷吃”的对照表" "“经典”对照表" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_percussion_instrument_table_choice1 + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + 1 + + 0 + + + 0 + + 1 + m_percussion_notes_table_propertyGrid11 + 1 + + + protected + 1 + + Resizable + 1 + + wxPG_BOLD_MODIFIED|wxPG_DEFAULT_STYLE + ; ; forward_declare + 0 + + + + + + + 打击乐器1 + m_propertyGridItem11 + protected + String + + + + 打击乐器2 + m_propertyGridItem21 + protected + String + + + + + + + + + + + + + + + + + diff --git a/wxFB_Project/LingLunConverter1_1.fbp b/wxFB_Project/LingLunConverter1_1.fbp new file mode 100644 index 0000000..00b552d --- /dev/null +++ b/wxFB_Project/LingLunConverter1_1.fbp @@ -0,0 +1,3179 @@ + + + + + ; + Python + 1 + source_name + 0 + 0 + res + UTF-8 + connect + + 1000 + none + + + 0 + LingLunConverter + + . + + 1 + 1 + 1 + 1 + UI + 0 + 0 + 0 + + 0 + wxAUI_MGR_DEFAULT + wxSYS_COLOUR_WINDOW + wxBOTH + + 1 + 1 + impl_virtual + + wxSYS_COLOUR_WINDOWTEXT + OPPOSans R,90,400,-1,70,0 + 0 + wxID_ANY + + + LingLunMainFrame + + 660,723 + wxDEFAULT_FRAME_STYLE + ; ; forward_declare + + + 0 + + LingLunConverter + wxTAB_TRAVERSAL + 1 + + + + 1 + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + wxID_ANY + + + m_statusBar2 + protected + + + wxSTB_SIZEGRIP + ; ; forward_declare + + + + + + + + + 1 + 1 + + OPPOSans R,90,400,-1,70,0 + 0 + wxID_ANY + + + m_menubar1 + protected + + + + ; ; forward_declare + + + + + + 文件 + FileMenu + protected + + + 0 + 1 + 这是退出按钮 + wxID_ANY + wxITEM_NORMAL + 退出 + m_Exit_menuItem1 + none + + + onExitButtonPressed + + + + + + m_mainBoxSizer + wxVERTICAL + none + + 2 + wxALL|wxEXPAND|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxTOP + 0 + + wxID_ANY + 言·论 + -1,-1 + s_yanLunbarSizer + wxVERTICAL + 1 + none + + 5 + wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + wxSYS_COLOUR_WINDOWTEXT + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + wxSYS_COLOUR_HIGHLIGHTTEXT + 1 + OPPOSans B,90,400,12,70,0 + 0 + 0 + wxID_ANY + 灵光焕发 深艺献心 + 0 + + 0 + + + 0 + + 1 + m_LinglunWords_staticText1 + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_CENTER_HORIZONTAL|wxST_ELLIPSIZE_MIDDLE|wxST_NO_AUTORESIZE + ; ; forward_declare + 0 + + + + + -1 + onYanlunDClicked + onYanlunWheeled + + + + + + 5 + wxEXPAND | wxALL + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + mian_notebook + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + + + 开始转换 + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + convert_page + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + + + 数据设置 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + + + + + + 0 + wxAUI_MGR_DEFAULT + wxSYS_COLOUR_WINDOW + + 1 + 1 + impl_virtual + + + 0 + wxID_ANY + + + ConvertPagePanel + + 565,540 + ; ; forward_declare + + 0 + + + wxTAB_TRAVERSAL + + + main_page_sizer + wxVERTICAL + none + + 5 + wxEXPAND + 0 + + -1,-1 + s_midiChooseSizer + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 选择MIDI文件 (双击移除) + 0 + + 0 + + + 0 + + 1 + m_ChooseMidiTips_staticText3 + 1 + + + protected + 1 + + Fixed + 1 + + + ; ; forward_declare + 0 + + + + + -1 + MidiEasterEgg + + + + 5 + wxEXPAND + 1 + + + ss_MidiChooserSizer_bSizer9 + wxVERTICAL + none + + 0 + wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_midiFilesList_listBox2 + 1 + + + protected + 1 + + Resizable + 1 + + wxLB_HSCROLL|wxLB_SORT + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onFileListUpdated + onFileDoubleClicked + + + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + 0 + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 1 + + 1 + + + 0 + 0 + wxID_ANY + 打开… + + 0 + + 0 + + + 0 + + 1 + m_midiBroseButton_button21 + 1 + + + protected + 1 + + + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + openFile + + + + + + 5 + wxEXPAND + 0 + + + s_formatChooseSizer + wxHORIZONTAL + none + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 选择输出格式 + + ss_outputFormatChooseSizer + wxVERTICAL + 1 + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "附加包" "BDX结构" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_outformatChoice_choice1 + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onOutputFormatChosen + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 选择播放器 + + ss_playerChooseSizer + wxVERTICAL + 1 + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "计分板" "延时" "中继器" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_playerChoice_choice2 + 1 + + + protected + 1 + + Resizable + 2 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onPlayerChosen + + + + + + + + 5 + wxSHAPED|wxEXPAND|wxALIGN_CENTER_HORIZONTAL + 0 + + wxID_ANY + 转换参数 + + s_promptSizer + wxVERTICAL + 1 + none + + 5 + wxEXPAND + 0 + + + ss_regularPromoptsEnteringSizer1 + wxHORIZONTAL + none + + 5 + wxALL|wxEXPAND|wxSHAPED|wxALIGN_CENTER_VERTICAL + 0 + + wxID_ANY + 音量大小 + + sss_VolumnPersentageEnteringSizer + wxHORIZONTAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 1000 + + 0 + + 0 + + 0 + + 1 + m_volumn_slider + 1 + + + protected + 1 + + Resizable + 1 + + wxSL_HORIZONTAL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + 1000 + + + + onVolumeScrolling + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + 2 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 0.5 + 100.000000 + 100 + + 0 + + 0 + + 0 + + 1 + m_volumn_spinCtrlDouble1 + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS|wxTE_PROCESS_ENTER + ; ; forward_declare + 0 + + 100 + + + + onVolumeSpinChanged + + + + + + 5 + wxALL|wxEXPAND|wxSHAPED|wxALIGN_CENTER_VERTICAL + 0 + + wxID_ANY + 播放倍速 + + sss_SpeedEnteringSizer + wxHORIZONTAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 100 + + 0 + + 0 + + 0 + + 1 + m_speed_slider + 1 + + + protected + 1 + + Resizable + 1 + + wxSL_HORIZONTAL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + 50 + + + + onSpeedScrolling + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + 2 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 0.1 + 1 + 10 + + 0 + + 0.01 + + 0 + + 1 + m_speed_spinCtrlDouble + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS|wxTE_PROCESS_ENTER + ; ; forward_declare + 0 + + 1 + + + + onSpeedSpinChanged + + + + + + + + 5 + wxEXPAND + 0 + + wxID_ANY + 指令设置 + + ss_commandCheckingSizer + wxHORIZONTAL + 1 + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 启用进度条 + + 0 + + + 0 + + 1 + m_progressBarEnablingCheckBox1 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onProgressbarChecked + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 启用旧版执行指令格式 + + 0 + + + 0 + + 1 + m_oldExeFormatChecker_checkBox3 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + 5 + wxEXPAND + 0 + + + ss_HideAndSeekSizer_bSizer15 + wxVERTICAL + none + + 5 + wxSHAPED|wxEXPAND + 0 + + + sss_ScoreboardPlayerPromptsSizer_bSizer7 + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 播放计分板名称 + 0 + + 0 + + + 0 + + 1 + m_EnterScoreboardNameTip_staticText4 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + 10 + + 0 + + 1 + m_ScoreboardNameEntering_textCtrl9 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + mscplay + + + + onScoreboredNameUpdating + + + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + 2,-1 + 1 + m_staticline1 + 1 + + + protected + 1 + + Resizable + 1 + + wxLI_HORIZONTAL + ; ; forward_declare + 0 + + + + + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 自动重置计分板 + + 0 + + + 0 + + 1 + m_IsAutoResetScoreboard_checkBox2 + 1 + + + protected + 1 + + Resizable + 1 + + wxALIGN_RIGHT + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onAutoResetScoreboardChecked + + + + + + 5 + wxSHAPED|wxEXPAND + 0 + + + sss_StructurePlayerPromptsSizer_bSizer8 + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 玩家选择器 + 0 + + 0 + + + 0 + + 1 + m_PlayerSelectorEnteringTips_staticText41 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "@a" "@p" "@e[type=player]" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_PlayerSelectorEntering_comboBox1 + 1 + + + protected + 1 + + Resizable + 0 + 1 + + wxCB_DROPDOWN|wxTE_PROCESS_ENTER + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + @a + + + + onPlayerSelectorUpdating + + + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + 2,-1 + 0 + m_staticline2 + 1 + + + protected + 1 + + Resizable + 1 + + wxLI_HORIZONTAL + ; ; forward_declare + 0 + + + + + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 结构生成最大高度 + 0 + + 0 + + + 0 + + 1 + StructureMaxHeoghtTips_ + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 1024 + + 0 + + 3 + + 0 + + 1 + m_StructureHeight_slider7 + 1 + + + protected + 1 + + Resizable + 1 + + wxSL_HORIZONTAL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + 50 + + + + onStructureMaxHeightScrolling + + + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 50 + 1024 + + 0 + + 3 + + 0 + + 1 + m_enteringStructureMaxHeight_spinCtrl1 + 1 + + + protected + 1 + + Resizable + 1 + + wxSP_ARROW_KEYS + ; ; forward_declare + 0 + + 50 + + + + onStructureMaxHeightSpinChanged + + + + + + 5 + wxSHAPED|wxEXPAND + 0 + + + sss_BDXfileSignNameSizer_bSizer13 + wxHORIZONTAL + none + + 5 + wxALL|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + BDX作者署名 + 0 + + 0 + + + 0 + + 1 + m_BDXfileSignNameTips_staticText8 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_EnteringBDXfileSignName_textCtrl12 + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + UserYou + + + + onBDXfileSignNameUpdating + + + + + + + + + + 5 + wxALL|wxEXPAND|wxRESERVE_SPACE_EVEN_IF_HIDDEN + 1 + + wxID_ANY + 开始转换 + -1,100 + s_StartSizer_sbSizer18 + wxHORIZONTAL + 1 + none + + 5 + wxEXPAND + 1 + + 0 + protected + 0 + + + + 5 + wxALIGN_CENTER|wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + 0 + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 1 + + 1 + + + 0 + 0 + wxID_ANY + 开始转换 + + 0 + + 0 + + + 0 + + 1 + m_start_button2 + 1 + + + protected + 1 + + + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onStartButtonPressed + + + + + + + + 0 + wxAUI_MGR_DEFAULT + + + 1 + 1 + impl_virtual + + + 0 + wxID_ANY + + + SettingPagePannel + + 565,540 + ; ; forward_declare + + 0 + + + wxTAB_TRAVERSAL + + + setting_page_sizer + wxVERTICAL + none + + 5 + wxEXPAND | wxALL + 1 + + 1 + 1 + 1 + 1 + + + + + + wxSYS_COLOUR_WINDOW + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + @OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_notebook + 1 + + + protected + 1 + + Resizable + 1 + + wxNB_FIXEDWIDTH|wxNB_MULTILINE|wxNB_RIGHT + ; ; forward_declare + 0 + + + + + + + 基本信息 + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page1 + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + setting_page1_box_sizer + wxVERTICAL + none + + 5 + wxALL|wxEXPAND + 1 + + wxWRAPSIZER_DEFAULT_FLAGS + + sss_customProgressBarSizer_wSizer6 + wxHORIZONTAL + none + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 进度条 + + setting_page1_progressbar_style + wxHORIZONTAL + 1 + none + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 基本样式组 + + ssss_basicProgressStylePattle_sbSizer9 + wxVERTICAL + 1 + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + -1,-1 + 1 + m_BasicProgressBarStyleEntering_textCtrl4 + 1 + + + protected + 1 + + Fixed + 1 + + wxTE_LEFT|wxTE_NO_VSCROLL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + ▶ %%N [ %%s/%^s %%% __________ %%t|%^t ] + + + + onProgressbarBasicStyleUpdating + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 未播放之样式 + + ssss_UnplayedPartProgressbarPattle_sbSizer10 + wxVERTICAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_unplayedProgressbarStyleEntering_textCtrl5 + 1 + + + protected + 1 + + Resizable + 1 + + wxTE_LEFT|wxTE_NO_VSCROLL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + §7=§r + + + + onProgressbarUnplayedStyleUpdating + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 已播放之样式 + + ssss_PlayedPartProgressbarPattle_sbSizer11 + wxVERTICAL + 1 + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_playedProgressbarStyleEntering_textCtrl5 + 1 + + + protected + 1 + + Resizable + 1 + + wxTE_LEFT|wxTE_NO_VSCROLL + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + §e=§r + + + + onProgressbarPlayedStyleUpdating + + + + + + + + 5 + wxALL|wxEXPAND + 1 + + wxID_ANY + 实验性功能 + + setting_page1_experiment_style + wxHORIZONTAL + 1 + none + + 5 + wxALL|wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 启用实验性功能 + + 0 + + + 0 + + 1 + m_enable_experiment_checkBox + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALL|wxEXPAND + 2 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "常规转换" "长音插值" "同刻偏移" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + experiment_type_choice + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALL + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + 忽略MIDI错误 + + 0 + + + 0 + + 1 + m_ignore_midi_error_checkBox + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + 乐音乐器对照表 + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + ,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page2 + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + setting_page2_box_sizer + wxVERTICAL + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "“偷吃”的对照表" "“经典”对照表" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_pitched_instrument_table_choice + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALL|wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + 1 + + 0 + + + 0 + + 1 + m_pitched_notes_table_propertyGrid1 + 1 + + + protected + 1 + + Resizable + 1 + + wxPG_BOLD_MODIFIED|wxPG_DEFAULT_STYLE + ; ; forward_declare + 0 + + + + + + + 乐音乐器1 + m_propertyGridItem1 + protected + String + + + + 乐音乐器2 + m_propertyGridItem2 + protected + String + + + + + + + + + 打击乐器对照表 + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + setting_page3 + 1 + + + protected + 1 + + Resizable + 1 + + ; ; forward_declare + 0 + + + + wxTAB_TRAVERSAL + + + setting_page3_box_sizer + wxVERTICAL + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + "“偷吃”的对照表" "“经典”对照表" + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_percussion_instrument_table_choice1 + 1 + + + protected + 1 + + Resizable + 0 + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + 5 + wxALL|wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + + 1 + OPPOSans R,90,400,-1,70,0 + 0 + 0 + wxID_ANY + 1 + + 0 + + + 0 + + 1 + m_percussion_notes_table_propertyGrid11 + 1 + + + protected + 1 + + Resizable + 1 + + wxPG_BOLD_MODIFIED|wxPG_DEFAULT_STYLE + ; ; forward_declare + 0 + + + + + + + 打击乐器1 + m_propertyGridItem11 + protected + String + + + + 打击乐器2 + m_propertyGridItem21 + protected + String + + + + + + + + + + + + diff --git a/wxFB_Project/generated.py b/wxFB_Project/generated0.py similarity index 100% rename from wxFB_Project/generated.py rename to wxFB_Project/generated0.py diff --git a/wxFB_Project/generated1.py b/wxFB_Project/generated1.py new file mode 100644 index 0000000..5fb370b --- /dev/null +++ b/wxFB_Project/generated1.py @@ -0,0 +1,478 @@ +# -*- coding: utf-8 -*- + +########################################################################### +## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3) +## http://www.wxformbuilder.org/ +## +## PLEASE DO *NOT* EDIT THIS FILE! +########################################################################### + +import wx +import wx.xrc +import wx.propgrid as pg + +########################################################################### +## Class LingLunMainFrame +########################################################################### + +class LingLunMainFrame ( wx.Frame ): + + def __init__( self, parent ): + wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 660,723 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL, name = u"LingLunConverter" ) + + self.SetSizeHints( wx.DefaultSize, wx.DefaultSize ) + self.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + self.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOWTEXT ) ) + self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) ) + + self.m_statusBar2 = self.CreateStatusBar( 1, wx.STB_SIZEGRIP, wx.ID_ANY ) + self.m_statusBar2.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.m_menubar1 = wx.MenuBar( 0 ) + self.m_menubar1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.FileMenu = wx.Menu() + self.m_Exit_menuItem1 = wx.MenuItem( self.FileMenu, wx.ID_ANY, u"退出", u"这是退出按钮", wx.ITEM_NORMAL ) + self.FileMenu.Append( self.m_Exit_menuItem1 ) + + self.m_menubar1.Append( self.FileMenu, u"文件" ) + + self.SetMenuBar( self.m_menubar1 ) + + m_mainBoxSizer = wx.BoxSizer( wx.VERTICAL ) + + s_yanLunbarSizer = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"言·论" ), wx.VERTICAL ) + + self.m_LinglunWords_staticText1 = wx.StaticText( s_yanLunbarSizer.GetStaticBox(), wx.ID_ANY, u"灵光焕发 深艺献心", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL|wx.ST_ELLIPSIZE_MIDDLE|wx.ST_NO_AUTORESIZE ) + self.m_LinglunWords_staticText1.Wrap( -1 ) + + self.m_LinglunWords_staticText1.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans B" ) ) + self.m_LinglunWords_staticText1.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_HIGHLIGHTTEXT ) ) + self.m_LinglunWords_staticText1.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOWTEXT ) ) + + s_yanLunbarSizer.Add( self.m_LinglunWords_staticText1, 0, wx.EXPAND, 5 ) + + + m_mainBoxSizer.Add( s_yanLunbarSizer, 0, wx.ALL|wx.EXPAND|wx.RESERVE_SPACE_EVEN_IF_HIDDEN|wx.TOP, 2 ) + + self.mian_notebook = wx.Notebook( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, 0 ) + self.mian_notebook.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.convert_page = wx.Panel( self.mian_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + main_page_sizer = wx.BoxSizer( wx.VERTICAL ) + + s_midiChooseSizer = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_ChooseMidiTips_staticText3 = wx.StaticText( self.convert_page, wx.ID_ANY, u"选择MIDI文件\n(双击移除)", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_ChooseMidiTips_staticText3.Wrap( -1 ) + + s_midiChooseSizer.Add( self.m_ChooseMidiTips_staticText3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + ss_MidiChooserSizer_bSizer9 = wx.BoxSizer( wx.VERTICAL ) + + m_midiFilesList_listBox2Choices = [] + self.m_midiFilesList_listBox2 = wx.ListBox( self.convert_page, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_midiFilesList_listBox2Choices, wx.LB_HSCROLL|wx.LB_SORT ) + ss_MidiChooserSizer_bSizer9.Add( self.m_midiFilesList_listBox2, 0, wx.EXPAND, 0 ) + + + s_midiChooseSizer.Add( ss_MidiChooserSizer_bSizer9, 1, wx.EXPAND, 5 ) + + self.m_midiBroseButton_button21 = wx.Button( self.convert_page, wx.ID_ANY, u"打开…", wx.DefaultPosition, wx.DefaultSize, 0 ) + s_midiChooseSizer.Add( self.m_midiBroseButton_button21, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + main_page_sizer.Add( s_midiChooseSizer, 0, wx.EXPAND, 5 ) + + s_formatChooseSizer = wx.BoxSizer( wx.HORIZONTAL ) + + ss_outputFormatChooseSizer = wx.StaticBoxSizer( wx.StaticBox( self.convert_page, wx.ID_ANY, u"选择输出格式" ), wx.VERTICAL ) + + m_outformatChoice_choice1Choices = [ u"附加包", u"BDX结构" ] + self.m_outformatChoice_choice1 = wx.Choice( ss_outputFormatChooseSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_outformatChoice_choice1Choices, 0 ) + self.m_outformatChoice_choice1.SetSelection( 0 ) + ss_outputFormatChooseSizer.Add( self.m_outformatChoice_choice1, 0, wx.ALL|wx.EXPAND, 5 ) + + + s_formatChooseSizer.Add( ss_outputFormatChooseSizer, 1, wx.ALL|wx.EXPAND, 5 ) + + ss_playerChooseSizer = wx.StaticBoxSizer( wx.StaticBox( self.convert_page, wx.ID_ANY, u"选择播放器" ), wx.VERTICAL ) + + m_playerChoice_choice2Choices = [ u"计分板", u"延时", u"中继器" ] + self.m_playerChoice_choice2 = wx.Choice( ss_playerChooseSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_playerChoice_choice2Choices, 0 ) + self.m_playerChoice_choice2.SetSelection( 2 ) + ss_playerChooseSizer.Add( self.m_playerChoice_choice2, 0, wx.ALL|wx.EXPAND, 5 ) + + + s_formatChooseSizer.Add( ss_playerChooseSizer, 1, wx.ALL|wx.EXPAND, 5 ) + + + main_page_sizer.Add( s_formatChooseSizer, 0, wx.EXPAND, 5 ) + + s_promptSizer = wx.StaticBoxSizer( wx.StaticBox( self.convert_page, wx.ID_ANY, u"转换参数" ), wx.VERTICAL ) + + ss_regularPromoptsEnteringSizer1 = wx.BoxSizer( wx.HORIZONTAL ) + + sss_VolumnPersentageEnteringSizer = wx.StaticBoxSizer( wx.StaticBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"音量大小" ), wx.HORIZONTAL ) + + self.m_volumn_slider = wx.Slider( sss_VolumnPersentageEnteringSizer.GetStaticBox(), wx.ID_ANY, 1000, 0, 1000, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL ) + sss_VolumnPersentageEnteringSizer.Add( self.m_volumn_slider, 0, wx.ALL, 5 ) + + self.m_volumn_spinCtrlDouble1 = wx.SpinCtrlDouble( sss_VolumnPersentageEnteringSizer.GetStaticBox(), wx.ID_ANY, u"100", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL|wx.SP_ARROW_KEYS|wx.TE_PROCESS_ENTER, 0, 100, 100.000000, 0.5 ) + self.m_volumn_spinCtrlDouble1.SetDigits( 2 ) + sss_VolumnPersentageEnteringSizer.Add( self.m_volumn_spinCtrlDouble1, 0, wx.ALL, 5 ) + + + ss_regularPromoptsEnteringSizer1.Add( sss_VolumnPersentageEnteringSizer, 0, wx.ALL|wx.EXPAND|wx.SHAPED|wx.ALIGN_CENTER_VERTICAL, 5 ) + + sss_SpeedEnteringSizer = wx.StaticBoxSizer( wx.StaticBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"播放倍速" ), wx.HORIZONTAL ) + + self.m_speed_slider = wx.Slider( sss_SpeedEnteringSizer.GetStaticBox(), wx.ID_ANY, 50, 0, 100, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL ) + sss_SpeedEnteringSizer.Add( self.m_speed_slider, 0, wx.ALL, 5 ) + + self.m_speed_spinCtrlDouble = wx.SpinCtrlDouble( sss_SpeedEnteringSizer.GetStaticBox(), wx.ID_ANY, u"1", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL|wx.SP_ARROW_KEYS|wx.TE_PROCESS_ENTER, 0.01, 10, 1, 0.1 ) + self.m_speed_spinCtrlDouble.SetDigits( 2 ) + sss_SpeedEnteringSizer.Add( self.m_speed_spinCtrlDouble, 0, wx.ALL, 5 ) + + + ss_regularPromoptsEnteringSizer1.Add( sss_SpeedEnteringSizer, 0, wx.ALL|wx.EXPAND|wx.SHAPED|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + s_promptSizer.Add( ss_regularPromoptsEnteringSizer1, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.EXPAND, 5 ) + + ss_commandCheckingSizer = wx.StaticBoxSizer( wx.StaticBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"指令设置" ), wx.HORIZONTAL ) + + self.m_progressBarEnablingCheckBox1 = wx.CheckBox( ss_commandCheckingSizer.GetStaticBox(), wx.ID_ANY, u"启用进度条", wx.DefaultPosition, wx.DefaultSize, 0 ) + ss_commandCheckingSizer.Add( self.m_progressBarEnablingCheckBox1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_oldExeFormatChecker_checkBox3 = wx.CheckBox( ss_commandCheckingSizer.GetStaticBox(), wx.ID_ANY, u"启用旧版执行指令格式", wx.DefaultPosition, wx.DefaultSize, 0 ) + ss_commandCheckingSizer.Add( self.m_oldExeFormatChecker_checkBox3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + s_promptSizer.Add( ss_commandCheckingSizer, 0, wx.EXPAND, 5 ) + + ss_HideAndSeekSizer_bSizer15 = wx.BoxSizer( wx.VERTICAL ) + + sss_ScoreboardPlayerPromptsSizer_bSizer7 = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_EnterScoreboardNameTip_staticText4 = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"播放计分板名称", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_EnterScoreboardNameTip_staticText4.Wrap( -1 ) + + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_EnterScoreboardNameTip_staticText4, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_ScoreboardNameEntering_textCtrl9 = wx.TextCtrl( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"mscplay", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_ScoreboardNameEntering_textCtrl9.SetMaxLength( 10 ) + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_ScoreboardNameEntering_textCtrl9, 0, wx.ALL, 5 ) + + self.m_staticline1 = wx.StaticLine( s_promptSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ) + self.m_staticline1.SetMinSize( wx.Size( 2,-1 ) ) + + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_staticline1, 0, wx.ALL|wx.EXPAND, 5 ) + + self.m_IsAutoResetScoreboard_checkBox2 = wx.CheckBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"自动重置计分板", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT ) + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_IsAutoResetScoreboard_checkBox2, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + ss_HideAndSeekSizer_bSizer15.Add( sss_ScoreboardPlayerPromptsSizer_bSizer7, 0, wx.SHAPED|wx.EXPAND, 5 ) + + sss_StructurePlayerPromptsSizer_bSizer8 = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_PlayerSelectorEnteringTips_staticText41 = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"玩家选择器", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_PlayerSelectorEnteringTips_staticText41.Wrap( -1 ) + + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_PlayerSelectorEnteringTips_staticText41, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + m_PlayerSelectorEntering_comboBox1Choices = [ u"@a", u"@p", u"@e[type=player]" ] + self.m_PlayerSelectorEntering_comboBox1 = wx.ComboBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"@a", wx.DefaultPosition, wx.DefaultSize, m_PlayerSelectorEntering_comboBox1Choices, wx.CB_DROPDOWN|wx.TE_PROCESS_ENTER ) + self.m_PlayerSelectorEntering_comboBox1.SetSelection( 0 ) + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_PlayerSelectorEntering_comboBox1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_staticline2 = wx.StaticLine( s_promptSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ) + self.m_staticline2.SetMinSize( wx.Size( 2,-1 ) ) + + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_staticline2, 0, wx.ALL|wx.EXPAND, 5 ) + + self.StructureMaxHeoghtTips_ = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"结构生成最大高度", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.StructureMaxHeoghtTips_.Wrap( -1 ) + + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.StructureMaxHeoghtTips_, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_StructureHeight_slider7 = wx.Slider( s_promptSizer.GetStaticBox(), wx.ID_ANY, 50, 3, 1024, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL ) + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_StructureHeight_slider7, 0, wx.ALL, 5 ) + + self.m_enteringStructureMaxHeight_spinCtrl1 = wx.SpinCtrl( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"50", wx.DefaultPosition, wx.DefaultSize, wx.SP_ARROW_KEYS, 3, 1024, 50 ) + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_enteringStructureMaxHeight_spinCtrl1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + ss_HideAndSeekSizer_bSizer15.Add( sss_StructurePlayerPromptsSizer_bSizer8, 0, wx.SHAPED|wx.EXPAND, 5 ) + + sss_BDXfileSignNameSizer_bSizer13 = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_BDXfileSignNameTips_staticText8 = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"BDX作者署名", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_BDXfileSignNameTips_staticText8.Wrap( -1 ) + + sss_BDXfileSignNameSizer_bSizer13.Add( self.m_BDXfileSignNameTips_staticText8, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_EnteringBDXfileSignName_textCtrl12 = wx.TextCtrl( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"UserYou", wx.DefaultPosition, wx.DefaultSize, 0 ) + sss_BDXfileSignNameSizer_bSizer13.Add( self.m_EnteringBDXfileSignName_textCtrl12, 0, wx.ALL, 5 ) + + + ss_HideAndSeekSizer_bSizer15.Add( sss_BDXfileSignNameSizer_bSizer13, 0, wx.SHAPED|wx.EXPAND, 5 ) + + + s_promptSizer.Add( ss_HideAndSeekSizer_bSizer15, 0, wx.EXPAND, 5 ) + + + main_page_sizer.Add( s_promptSizer, 0, wx.SHAPED|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + s_StartSizer_sbSizer18 = wx.StaticBoxSizer( wx.StaticBox( self.convert_page, wx.ID_ANY, u"开始转换" ), wx.HORIZONTAL ) + + s_StartSizer_sbSizer18.SetMinSize( wx.Size( -1,100 ) ) + + s_StartSizer_sbSizer18.Add( ( 0, 0), 1, wx.EXPAND, 5 ) + + self.m_start_button2 = wx.Button( s_StartSizer_sbSizer18.GetStaticBox(), wx.ID_ANY, u"开始转换", wx.DefaultPosition, wx.DefaultSize, 0 ) + s_StartSizer_sbSizer18.Add( self.m_start_button2, 0, wx.ALIGN_CENTER|wx.ALL, 5 ) + + + main_page_sizer.Add( s_StartSizer_sbSizer18, 1, wx.ALL|wx.EXPAND|wx.RESERVE_SPACE_EVEN_IF_HIDDEN, 5 ) + + + self.convert_page.SetSizer( main_page_sizer ) + self.convert_page.Layout() + main_page_sizer.Fit( self.convert_page ) + self.mian_notebook.AddPage( self.convert_page, u"开始转换", False ) + self.setting_page = wx.Panel( self.mian_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + setting_page_sizer = wx.BoxSizer( wx.VERTICAL ) + + self.setting_notebook = wx.Notebook( self.setting_page, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.NB_FIXEDWIDTH|wx.NB_MULTILINE|wx.NB_RIGHT ) + self.setting_notebook.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "@OPPOSans R" ) ) + self.setting_notebook.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) ) + + self.setting_page1 = wx.Panel( self.setting_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + self.setting_page1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + setting_page1_box_sizer = wx.BoxSizer( wx.VERTICAL ) + + sss_customProgressBarSizer_wSizer6 = wx.WrapSizer( wx.HORIZONTAL, wx.WRAPSIZER_DEFAULT_FLAGS ) + + setting_page1_progressbar_style = wx.StaticBoxSizer( wx.StaticBox( self.setting_page1, wx.ID_ANY, u"进度条" ), wx.HORIZONTAL ) + + ssss_basicProgressStylePattle_sbSizer9 = wx.StaticBoxSizer( wx.StaticBox( setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, u"基本样式组" ), wx.VERTICAL ) + + self.m_BasicProgressBarStyleEntering_textCtrl4 = wx.TextCtrl( ssss_basicProgressStylePattle_sbSizer9.GetStaticBox(), wx.ID_ANY, u"▶ %%N [ %%s/%^s %%% __________ %%t|%^t ]", wx.DefaultPosition, wx.DefaultSize, wx.TE_LEFT|wx.TE_NO_VSCROLL ) + ssss_basicProgressStylePattle_sbSizer9.Add( self.m_BasicProgressBarStyleEntering_textCtrl4, 0, wx.ALL|wx.EXPAND, 5 ) + + + setting_page1_progressbar_style.Add( ssss_basicProgressStylePattle_sbSizer9, 1, wx.ALL|wx.EXPAND, 5 ) + + ssss_UnplayedPartProgressbarPattle_sbSizer10 = wx.StaticBoxSizer( wx.StaticBox( setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, u"未播放之样式" ), wx.VERTICAL ) + + self.m_unplayedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( ssss_UnplayedPartProgressbarPattle_sbSizer10.GetStaticBox(), wx.ID_ANY, u"§7=§r", wx.DefaultPosition, wx.DefaultSize, wx.TE_LEFT|wx.TE_NO_VSCROLL ) + ssss_UnplayedPartProgressbarPattle_sbSizer10.Add( self.m_unplayedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 ) + + + setting_page1_progressbar_style.Add( ssss_UnplayedPartProgressbarPattle_sbSizer10, 1, wx.ALL|wx.EXPAND, 5 ) + + ssss_PlayedPartProgressbarPattle_sbSizer11 = wx.StaticBoxSizer( wx.StaticBox( setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, u"已播放之样式" ), wx.VERTICAL ) + + self.m_playedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( ssss_PlayedPartProgressbarPattle_sbSizer11.GetStaticBox(), wx.ID_ANY, u"§e=§r", wx.DefaultPosition, wx.DefaultSize, wx.TE_LEFT|wx.TE_NO_VSCROLL ) + ssss_PlayedPartProgressbarPattle_sbSizer11.Add( self.m_playedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 ) + + + setting_page1_progressbar_style.Add( ssss_PlayedPartProgressbarPattle_sbSizer11, 1, wx.ALL|wx.EXPAND, 5 ) + + + sss_customProgressBarSizer_wSizer6.Add( setting_page1_progressbar_style, 1, wx.ALL|wx.EXPAND, 5 ) + + setting_page1_experiment_style = wx.StaticBoxSizer( wx.StaticBox( self.setting_page1, wx.ID_ANY, u"实验性功能" ), wx.HORIZONTAL ) + + self.m_enable_experiment_checkBox = wx.CheckBox( setting_page1_experiment_style.GetStaticBox(), wx.ID_ANY, u"启用实验性功能", wx.DefaultPosition, wx.DefaultSize, 0 ) + setting_page1_experiment_style.Add( self.m_enable_experiment_checkBox, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.EXPAND, 5 ) + + experiment_type_choiceChoices = [ u"常规转换", u"长音插值", u"同刻偏移" ] + self.experiment_type_choice = wx.Choice( setting_page1_experiment_style.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, experiment_type_choiceChoices, 0 ) + self.experiment_type_choice.SetSelection( 0 ) + setting_page1_experiment_style.Add( self.experiment_type_choice, 2, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_ignore_midi_error_checkBox = wx.CheckBox( setting_page1_experiment_style.GetStaticBox(), wx.ID_ANY, u"忽略MIDI错误", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_ignore_midi_error_checkBox.SetValue(True) + setting_page1_experiment_style.Add( self.m_ignore_midi_error_checkBox, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + + + sss_customProgressBarSizer_wSizer6.Add( setting_page1_experiment_style, 1, wx.ALL|wx.EXPAND, 5 ) + + + setting_page1_box_sizer.Add( sss_customProgressBarSizer_wSizer6, 1, wx.ALL|wx.EXPAND, 5 ) + + + self.setting_page1.SetSizer( setting_page1_box_sizer ) + self.setting_page1.Layout() + setting_page1_box_sizer.Fit( self.setting_page1 ) + self.setting_notebook.AddPage( self.setting_page1, u"基本信息", True ) + self.setting_page2 = wx.Panel( self.setting_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + self.setting_page2.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) ) + + setting_page2_box_sizer = wx.BoxSizer( wx.VERTICAL ) + + m_pitched_instrument_table_choiceChoices = [ u"“偷吃”的对照表", u"“经典”对照表" ] + self.m_pitched_instrument_table_choice = wx.Choice( self.setting_page2, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_pitched_instrument_table_choiceChoices, 0 ) + self.m_pitched_instrument_table_choice.SetSelection( 0 ) + self.m_pitched_instrument_table_choice.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + setting_page2_box_sizer.Add( self.m_pitched_instrument_table_choice, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL|wx.EXPAND, 5 ) + + self.m_pitched_notes_table_propertyGrid1 = pg.PropertyGrid(self.setting_page2, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.propgrid.PG_BOLD_MODIFIED|wx.propgrid.PG_DEFAULT_STYLE) + self.m_pitched_notes_table_propertyGrid1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.m_propertyGridItem1 = self.m_pitched_notes_table_propertyGrid1.Append( pg.StringProperty( u"乐音乐器1", u"乐音乐器1" ) ) + self.m_propertyGridItem2 = self.m_pitched_notes_table_propertyGrid1.Append( pg.StringProperty( u"乐音乐器2", u"乐音乐器2" ) ) + setting_page2_box_sizer.Add( self.m_pitched_notes_table_propertyGrid1, 1, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + + self.setting_page2.SetSizer( setting_page2_box_sizer ) + self.setting_page2.Layout() + setting_page2_box_sizer.Fit( self.setting_page2 ) + self.setting_notebook.AddPage( self.setting_page2, u"乐音乐器对照表", False ) + self.setting_page3 = wx.Panel( self.setting_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + setting_page3_box_sizer = wx.BoxSizer( wx.VERTICAL ) + + m_percussion_instrument_table_choice1Choices = [ u"“偷吃”的对照表", u"“经典”对照表" ] + self.m_percussion_instrument_table_choice1 = wx.Choice( self.setting_page3, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_percussion_instrument_table_choice1Choices, 0 ) + self.m_percussion_instrument_table_choice1.SetSelection( 0 ) + self.m_percussion_instrument_table_choice1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + setting_page3_box_sizer.Add( self.m_percussion_instrument_table_choice1, 0, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + self.m_percussion_notes_table_propertyGrid11 = pg.PropertyGrid(self.setting_page3, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.propgrid.PG_BOLD_MODIFIED|wx.propgrid.PG_DEFAULT_STYLE) + self.m_percussion_notes_table_propertyGrid11.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.m_propertyGridItem11 = self.m_percussion_notes_table_propertyGrid11.Append( pg.StringProperty( u"打击乐器1", u"打击乐器1" ) ) + self.m_propertyGridItem21 = self.m_percussion_notes_table_propertyGrid11.Append( pg.StringProperty( u"打击乐器2", u"打击乐器2" ) ) + setting_page3_box_sizer.Add( self.m_percussion_notes_table_propertyGrid11, 1, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + + self.setting_page3.SetSizer( setting_page3_box_sizer ) + self.setting_page3.Layout() + setting_page3_box_sizer.Fit( self.setting_page3 ) + self.setting_notebook.AddPage( self.setting_page3, u"打击乐器对照表", False ) + + setting_page_sizer.Add( self.setting_notebook, 1, wx.EXPAND |wx.ALL, 5 ) + + + self.setting_page.SetSizer( setting_page_sizer ) + self.setting_page.Layout() + setting_page_sizer.Fit( self.setting_page ) + self.mian_notebook.AddPage( self.setting_page, u"数据设置", True ) + + m_mainBoxSizer.Add( self.mian_notebook, 1, wx.EXPAND |wx.ALL, 5 ) + + + self.SetSizer( m_mainBoxSizer ) + self.Layout() + + self.Centre( wx.BOTH ) + + # Connect Events + self.Bind( wx.EVT_MENU, self.onExitButtonPressed, id = self.m_Exit_menuItem1.GetId() ) + self.m_LinglunWords_staticText1.Bind( wx.EVT_LEFT_DCLICK, self.onYanlunDClicked ) + self.m_LinglunWords_staticText1.Bind( wx.EVT_MOUSEWHEEL, self.onYanlunWheeled ) + self.m_ChooseMidiTips_staticText3.Bind( wx.EVT_LEFT_DCLICK, self.MidiEasterEgg ) + self.m_midiFilesList_listBox2.Bind( wx.EVT_LISTBOX, self.onFileListUpdated ) + self.m_midiFilesList_listBox2.Bind( wx.EVT_LISTBOX_DCLICK, self.onFileDoubleClicked ) + self.m_midiBroseButton_button21.Bind( wx.EVT_BUTTON, self.openFile ) + self.m_outformatChoice_choice1.Bind( wx.EVT_CHOICE, self.onOutputFormatChosen ) + self.m_playerChoice_choice2.Bind( wx.EVT_CHOICE, self.onPlayerChosen ) + self.m_volumn_slider.Bind( wx.EVT_SCROLL, self.onVolumeScrolling ) + self.m_volumn_spinCtrlDouble1.Bind( wx.EVT_SPINCTRLDOUBLE, self.onVolumeSpinChanged ) + self.m_speed_slider.Bind( wx.EVT_SCROLL, self.onSpeedScrolling ) + self.m_speed_spinCtrlDouble.Bind( wx.EVT_SPINCTRLDOUBLE, self.onSpeedSpinChanged ) + self.m_progressBarEnablingCheckBox1.Bind( wx.EVT_CHECKBOX, self.onProgressbarChecked ) + self.m_ScoreboardNameEntering_textCtrl9.Bind( wx.EVT_TEXT, self.onScoreboredNameUpdating ) + self.m_IsAutoResetScoreboard_checkBox2.Bind( wx.EVT_CHECKBOX, self.onAutoResetScoreboardChecked ) + self.m_PlayerSelectorEntering_comboBox1.Bind( wx.EVT_TEXT, self.onPlayerSelectorUpdating ) + self.m_StructureHeight_slider7.Bind( wx.EVT_SCROLL, self.onStructureMaxHeightScrolling ) + self.m_enteringStructureMaxHeight_spinCtrl1.Bind( wx.EVT_SPINCTRL, self.onStructureMaxHeightSpinChanged ) + self.m_EnteringBDXfileSignName_textCtrl12.Bind( wx.EVT_TEXT, self.onBDXfileSignNameUpdating ) + self.m_start_button2.Bind( wx.EVT_BUTTON, self.onStartButtonPressed ) + self.m_BasicProgressBarStyleEntering_textCtrl4.Bind( wx.EVT_TEXT, self.onProgressbarBasicStyleUpdating ) + self.m_unplayedProgressbarStyleEntering_textCtrl5.Bind( wx.EVT_TEXT, self.onProgressbarUnplayedStyleUpdating ) + self.m_playedProgressbarStyleEntering_textCtrl5.Bind( wx.EVT_TEXT, self.onProgressbarPlayedStyleUpdating ) + + def __del__( self ): + pass + + + # Virtual event handlers, override them in your derived class + def onExitButtonPressed( self, event ): + event.Skip() + + def onYanlunDClicked( self, event ): + event.Skip() + + def onYanlunWheeled( self, event ): + event.Skip() + + def MidiEasterEgg( self, event ): + event.Skip() + + def onFileListUpdated( self, event ): + event.Skip() + + def onFileDoubleClicked( self, event ): + event.Skip() + + def openFile( self, event ): + event.Skip() + + def onOutputFormatChosen( self, event ): + event.Skip() + + def onPlayerChosen( self, event ): + event.Skip() + + def onVolumeScrolling( self, event ): + event.Skip() + + def onVolumeSpinChanged( self, event ): + event.Skip() + + def onSpeedScrolling( self, event ): + event.Skip() + + def onSpeedSpinChanged( self, event ): + event.Skip() + + def onProgressbarChecked( self, event ): + event.Skip() + + def onScoreboredNameUpdating( self, event ): + event.Skip() + + def onAutoResetScoreboardChecked( self, event ): + event.Skip() + + def onPlayerSelectorUpdating( self, event ): + event.Skip() + + def onStructureMaxHeightScrolling( self, event ): + event.Skip() + + def onStructureMaxHeightSpinChanged( self, event ): + event.Skip() + + def onBDXfileSignNameUpdating( self, event ): + event.Skip() + + def onStartButtonPressed( self, event ): + event.Skip() + + def onProgressbarBasicStyleUpdating( self, event ): + event.Skip() + + def onProgressbarUnplayedStyleUpdating( self, event ): + event.Skip() + + def onProgressbarPlayedStyleUpdating( self, event ): + event.Skip() + + diff --git a/wxFB_Project/generated1_1.py b/wxFB_Project/generated1_1.py new file mode 100644 index 0000000..e42fdfd --- /dev/null +++ b/wxFB_Project/generated1_1.py @@ -0,0 +1,514 @@ +# -*- coding: utf-8 -*- + +########################################################################### +## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3) +## http://www.wxformbuilder.org/ +## +## PLEASE DO *NOT* EDIT THIS FILE! +########################################################################### + +import wx +import wx.xrc +import wx.propgrid as pg + +########################################################################### +## Class LingLunMainFrame +########################################################################### + +class LingLunMainFrame ( wx.Frame ): + + def __init__( self, parent ): + wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 660,723 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL, name = u"LingLunConverter" ) + + self.SetSizeHints( wx.DefaultSize, wx.DefaultSize ) + self.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + self.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOWTEXT ) ) + self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) ) + + self.m_statusBar2 = self.CreateStatusBar( 1, wx.STB_SIZEGRIP, wx.ID_ANY ) + self.m_statusBar2.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.m_menubar1 = wx.MenuBar( 0 ) + self.m_menubar1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.FileMenu = wx.Menu() + self.m_Exit_menuItem1 = wx.MenuItem( self.FileMenu, wx.ID_ANY, u"退出", u"这是退出按钮", wx.ITEM_NORMAL ) + self.FileMenu.Append( self.m_Exit_menuItem1 ) + + self.m_menubar1.Append( self.FileMenu, u"文件" ) + + self.SetMenuBar( self.m_menubar1 ) + + m_mainBoxSizer = wx.BoxSizer( wx.VERTICAL ) + + s_yanLunbarSizer = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"言·论" ), wx.VERTICAL ) + + self.m_LinglunWords_staticText1 = wx.StaticText( s_yanLunbarSizer.GetStaticBox(), wx.ID_ANY, u"灵光焕发 深艺献心", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL|wx.ST_ELLIPSIZE_MIDDLE|wx.ST_NO_AUTORESIZE ) + self.m_LinglunWords_staticText1.Wrap( -1 ) + + self.m_LinglunWords_staticText1.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans B" ) ) + self.m_LinglunWords_staticText1.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_HIGHLIGHTTEXT ) ) + self.m_LinglunWords_staticText1.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOWTEXT ) ) + + s_yanLunbarSizer.Add( self.m_LinglunWords_staticText1, 0, wx.EXPAND, 5 ) + + + m_mainBoxSizer.Add( s_yanLunbarSizer, 0, wx.ALL|wx.EXPAND|wx.RESERVE_SPACE_EVEN_IF_HIDDEN|wx.TOP, 2 ) + + self.mian_notebook = wx.Notebook( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, 0 ) + self.mian_notebook.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.convert_page = wx.Panel( self.mian_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + self.mian_notebook.AddPage( self.convert_page, u"开始转换", False ) + self.setting_page = wx.Panel( self.mian_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + self.mian_notebook.AddPage( self.setting_page, u"数据设置", True ) + + m_mainBoxSizer.Add( self.mian_notebook, 1, wx.EXPAND |wx.ALL, 5 ) + + + self.SetSizer( m_mainBoxSizer ) + self.Layout() + + self.Centre( wx.BOTH ) + + # Connect Events + self.Bind( wx.EVT_MENU, self.onExitButtonPressed, id = self.m_Exit_menuItem1.GetId() ) + self.m_LinglunWords_staticText1.Bind( wx.EVT_LEFT_DCLICK, self.onYanlunDClicked ) + self.m_LinglunWords_staticText1.Bind( wx.EVT_MOUSEWHEEL, self.onYanlunWheeled ) + + def __del__( self ): + pass + + + # Virtual event handlers, override them in your derived class + def onExitButtonPressed( self, event ): + event.Skip() + + def onYanlunDClicked( self, event ): + event.Skip() + + def onYanlunWheeled( self, event ): + event.Skip() + + +########################################################################### +## Class convert_page_panel +########################################################################### + +class convert_page_panel ( wx.Panel ): + + def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 565,540 ), style = wx.TAB_TRAVERSAL, name = wx.EmptyString ): + wx.Panel.__init__ ( self, parent, id = id, pos = pos, size = size, style = style, name = name ) + + self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) ) + + main_page_sizer = wx.BoxSizer( wx.VERTICAL ) + + s_midiChooseSizer = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_ChooseMidiTips_staticText3 = wx.StaticText( self, wx.ID_ANY, u"选择MIDI文件\n(双击移除)", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_ChooseMidiTips_staticText3.Wrap( -1 ) + + s_midiChooseSizer.Add( self.m_ChooseMidiTips_staticText3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + ss_MidiChooserSizer_bSizer9 = wx.BoxSizer( wx.VERTICAL ) + + m_midiFilesList_listBox2Choices = [] + self.m_midiFilesList_listBox2 = wx.ListBox( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_midiFilesList_listBox2Choices, wx.LB_HSCROLL|wx.LB_SORT ) + ss_MidiChooserSizer_bSizer9.Add( self.m_midiFilesList_listBox2, 0, wx.EXPAND, 0 ) + + + s_midiChooseSizer.Add( ss_MidiChooserSizer_bSizer9, 1, wx.EXPAND, 5 ) + + self.m_midiBroseButton_button21 = wx.Button( self, wx.ID_ANY, u"打开…", wx.DefaultPosition, wx.DefaultSize, 0 ) + s_midiChooseSizer.Add( self.m_midiBroseButton_button21, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + main_page_sizer.Add( s_midiChooseSizer, 0, wx.EXPAND, 5 ) + + s_formatChooseSizer = wx.BoxSizer( wx.HORIZONTAL ) + + ss_outputFormatChooseSizer = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"选择输出格式" ), wx.VERTICAL ) + + m_outformatChoice_choice1Choices = [ u"附加包", u"BDX结构" ] + self.m_outformatChoice_choice1 = wx.Choice( ss_outputFormatChooseSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_outformatChoice_choice1Choices, 0 ) + self.m_outformatChoice_choice1.SetSelection( 0 ) + ss_outputFormatChooseSizer.Add( self.m_outformatChoice_choice1, 0, wx.ALL|wx.EXPAND, 5 ) + + + s_formatChooseSizer.Add( ss_outputFormatChooseSizer, 1, wx.ALL|wx.EXPAND, 5 ) + + ss_playerChooseSizer = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"选择播放器" ), wx.VERTICAL ) + + m_playerChoice_choice2Choices = [ u"计分板", u"延时", u"中继器" ] + self.m_playerChoice_choice2 = wx.Choice( ss_playerChooseSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_playerChoice_choice2Choices, 0 ) + self.m_playerChoice_choice2.SetSelection( 2 ) + ss_playerChooseSizer.Add( self.m_playerChoice_choice2, 0, wx.ALL|wx.EXPAND, 5 ) + + + s_formatChooseSizer.Add( ss_playerChooseSizer, 1, wx.ALL|wx.EXPAND, 5 ) + + + main_page_sizer.Add( s_formatChooseSizer, 0, wx.EXPAND, 5 ) + + s_promptSizer = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"转换参数" ), wx.VERTICAL ) + + ss_regularPromoptsEnteringSizer1 = wx.BoxSizer( wx.HORIZONTAL ) + + sss_VolumnPersentageEnteringSizer = wx.StaticBoxSizer( wx.StaticBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"音量大小" ), wx.HORIZONTAL ) + + self.m_volumn_slider = wx.Slider( sss_VolumnPersentageEnteringSizer.GetStaticBox(), wx.ID_ANY, 1000, 0, 1000, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL ) + sss_VolumnPersentageEnteringSizer.Add( self.m_volumn_slider, 0, wx.ALL, 5 ) + + self.m_volumn_spinCtrlDouble1 = wx.SpinCtrlDouble( sss_VolumnPersentageEnteringSizer.GetStaticBox(), wx.ID_ANY, u"100", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL|wx.SP_ARROW_KEYS|wx.TE_PROCESS_ENTER, 0, 100, 100.000000, 0.5 ) + self.m_volumn_spinCtrlDouble1.SetDigits( 2 ) + sss_VolumnPersentageEnteringSizer.Add( self.m_volumn_spinCtrlDouble1, 0, wx.ALL, 5 ) + + + ss_regularPromoptsEnteringSizer1.Add( sss_VolumnPersentageEnteringSizer, 0, wx.ALL|wx.EXPAND|wx.SHAPED|wx.ALIGN_CENTER_VERTICAL, 5 ) + + sss_SpeedEnteringSizer = wx.StaticBoxSizer( wx.StaticBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"播放倍速" ), wx.HORIZONTAL ) + + self.m_speed_slider = wx.Slider( sss_SpeedEnteringSizer.GetStaticBox(), wx.ID_ANY, 50, 0, 100, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL ) + sss_SpeedEnteringSizer.Add( self.m_speed_slider, 0, wx.ALL, 5 ) + + self.m_speed_spinCtrlDouble = wx.SpinCtrlDouble( sss_SpeedEnteringSizer.GetStaticBox(), wx.ID_ANY, u"1", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL|wx.SP_ARROW_KEYS|wx.TE_PROCESS_ENTER, 0.01, 10, 1, 0.1 ) + self.m_speed_spinCtrlDouble.SetDigits( 2 ) + sss_SpeedEnteringSizer.Add( self.m_speed_spinCtrlDouble, 0, wx.ALL, 5 ) + + + ss_regularPromoptsEnteringSizer1.Add( sss_SpeedEnteringSizer, 0, wx.ALL|wx.EXPAND|wx.SHAPED|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + s_promptSizer.Add( ss_regularPromoptsEnteringSizer1, 0, wx.EXPAND, 5 ) + + ss_commandCheckingSizer = wx.StaticBoxSizer( wx.StaticBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"指令设置" ), wx.HORIZONTAL ) + + self.m_progressBarEnablingCheckBox1 = wx.CheckBox( ss_commandCheckingSizer.GetStaticBox(), wx.ID_ANY, u"启用进度条", wx.DefaultPosition, wx.DefaultSize, 0 ) + ss_commandCheckingSizer.Add( self.m_progressBarEnablingCheckBox1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_oldExeFormatChecker_checkBox3 = wx.CheckBox( ss_commandCheckingSizer.GetStaticBox(), wx.ID_ANY, u"启用旧版执行指令格式", wx.DefaultPosition, wx.DefaultSize, 0 ) + ss_commandCheckingSizer.Add( self.m_oldExeFormatChecker_checkBox3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + s_promptSizer.Add( ss_commandCheckingSizer, 0, wx.EXPAND, 5 ) + + ss_HideAndSeekSizer_bSizer15 = wx.BoxSizer( wx.VERTICAL ) + + sss_ScoreboardPlayerPromptsSizer_bSizer7 = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_EnterScoreboardNameTip_staticText4 = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"播放计分板名称", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_EnterScoreboardNameTip_staticText4.Wrap( -1 ) + + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_EnterScoreboardNameTip_staticText4, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_ScoreboardNameEntering_textCtrl9 = wx.TextCtrl( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"mscplay", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_ScoreboardNameEntering_textCtrl9.SetMaxLength( 10 ) + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_ScoreboardNameEntering_textCtrl9, 0, wx.ALL, 5 ) + + self.m_staticline1 = wx.StaticLine( s_promptSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ) + self.m_staticline1.SetMinSize( wx.Size( 2,-1 ) ) + + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_staticline1, 0, wx.ALL|wx.EXPAND, 5 ) + + self.m_IsAutoResetScoreboard_checkBox2 = wx.CheckBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"自动重置计分板", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT ) + sss_ScoreboardPlayerPromptsSizer_bSizer7.Add( self.m_IsAutoResetScoreboard_checkBox2, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + ss_HideAndSeekSizer_bSizer15.Add( sss_ScoreboardPlayerPromptsSizer_bSizer7, 0, wx.SHAPED|wx.EXPAND, 5 ) + + sss_StructurePlayerPromptsSizer_bSizer8 = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_PlayerSelectorEnteringTips_staticText41 = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"玩家选择器", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_PlayerSelectorEnteringTips_staticText41.Wrap( -1 ) + + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_PlayerSelectorEnteringTips_staticText41, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + m_PlayerSelectorEntering_comboBox1Choices = [ u"@a", u"@p", u"@e[type=player]" ] + self.m_PlayerSelectorEntering_comboBox1 = wx.ComboBox( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"@a", wx.DefaultPosition, wx.DefaultSize, m_PlayerSelectorEntering_comboBox1Choices, wx.CB_DROPDOWN|wx.TE_PROCESS_ENTER ) + self.m_PlayerSelectorEntering_comboBox1.SetSelection( 0 ) + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_PlayerSelectorEntering_comboBox1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_staticline2 = wx.StaticLine( s_promptSizer.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ) + self.m_staticline2.SetMinSize( wx.Size( 2,-1 ) ) + + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_staticline2, 0, wx.ALL|wx.EXPAND, 5 ) + + self.StructureMaxHeoghtTips_ = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"结构生成最大高度", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.StructureMaxHeoghtTips_.Wrap( -1 ) + + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.StructureMaxHeoghtTips_, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_StructureHeight_slider7 = wx.Slider( s_promptSizer.GetStaticBox(), wx.ID_ANY, 50, 3, 1024, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL ) + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_StructureHeight_slider7, 0, wx.ALL, 5 ) + + self.m_enteringStructureMaxHeight_spinCtrl1 = wx.SpinCtrl( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"50", wx.DefaultPosition, wx.DefaultSize, wx.SP_ARROW_KEYS, 3, 1024, 50 ) + sss_StructurePlayerPromptsSizer_bSizer8.Add( self.m_enteringStructureMaxHeight_spinCtrl1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + + ss_HideAndSeekSizer_bSizer15.Add( sss_StructurePlayerPromptsSizer_bSizer8, 0, wx.SHAPED|wx.EXPAND, 5 ) + + sss_BDXfileSignNameSizer_bSizer13 = wx.BoxSizer( wx.HORIZONTAL ) + + self.m_BDXfileSignNameTips_staticText8 = wx.StaticText( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"BDX作者署名", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_BDXfileSignNameTips_staticText8.Wrap( -1 ) + + sss_BDXfileSignNameSizer_bSizer13.Add( self.m_BDXfileSignNameTips_staticText8, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_EnteringBDXfileSignName_textCtrl12 = wx.TextCtrl( s_promptSizer.GetStaticBox(), wx.ID_ANY, u"UserYou", wx.DefaultPosition, wx.DefaultSize, 0 ) + sss_BDXfileSignNameSizer_bSizer13.Add( self.m_EnteringBDXfileSignName_textCtrl12, 0, wx.ALL, 5 ) + + + ss_HideAndSeekSizer_bSizer15.Add( sss_BDXfileSignNameSizer_bSizer13, 0, wx.SHAPED|wx.EXPAND, 5 ) + + + s_promptSizer.Add( ss_HideAndSeekSizer_bSizer15, 0, wx.EXPAND, 5 ) + + + main_page_sizer.Add( s_promptSizer, 0, wx.SHAPED|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + s_StartSizer_sbSizer18 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"开始转换" ), wx.HORIZONTAL ) + + s_StartSizer_sbSizer18.SetMinSize( wx.Size( -1,100 ) ) + + s_StartSizer_sbSizer18.Add( ( 0, 0), 1, wx.EXPAND, 5 ) + + self.m_start_button2 = wx.Button( s_StartSizer_sbSizer18.GetStaticBox(), wx.ID_ANY, u"开始转换", wx.DefaultPosition, wx.DefaultSize, 0 ) + s_StartSizer_sbSizer18.Add( self.m_start_button2, 0, wx.ALIGN_CENTER|wx.ALL, 5 ) + + + main_page_sizer.Add( s_StartSizer_sbSizer18, 1, wx.ALL|wx.EXPAND|wx.RESERVE_SPACE_EVEN_IF_HIDDEN, 5 ) + + + self.SetSizer( main_page_sizer ) + self.Layout() + + # Connect Events + self.m_ChooseMidiTips_staticText3.Bind( wx.EVT_LEFT_DCLICK, self.MidiEasterEgg ) + self.m_midiFilesList_listBox2.Bind( wx.EVT_LISTBOX, self.onFileListUpdated ) + self.m_midiFilesList_listBox2.Bind( wx.EVT_LISTBOX_DCLICK, self.onFileDoubleClicked ) + self.m_midiBroseButton_button21.Bind( wx.EVT_BUTTON, self.openFile ) + self.m_outformatChoice_choice1.Bind( wx.EVT_CHOICE, self.onOutputFormatChosen ) + self.m_playerChoice_choice2.Bind( wx.EVT_CHOICE, self.onPlayerChosen ) + self.m_volumn_slider.Bind( wx.EVT_SCROLL, self.onVolumeScrolling ) + self.m_volumn_spinCtrlDouble1.Bind( wx.EVT_SPINCTRLDOUBLE, self.onVolumeSpinChanged ) + self.m_speed_slider.Bind( wx.EVT_SCROLL, self.onSpeedScrolling ) + self.m_speed_spinCtrlDouble.Bind( wx.EVT_SPINCTRLDOUBLE, self.onSpeedSpinChanged ) + self.m_progressBarEnablingCheckBox1.Bind( wx.EVT_CHECKBOX, self.onProgressbarChecked ) + self.m_ScoreboardNameEntering_textCtrl9.Bind( wx.EVT_TEXT, self.onScoreboredNameUpdating ) + self.m_IsAutoResetScoreboard_checkBox2.Bind( wx.EVT_CHECKBOX, self.onAutoResetScoreboardChecked ) + self.m_PlayerSelectorEntering_comboBox1.Bind( wx.EVT_TEXT, self.onPlayerSelectorUpdating ) + self.m_StructureHeight_slider7.Bind( wx.EVT_SCROLL, self.onStructureMaxHeightScrolling ) + self.m_enteringStructureMaxHeight_spinCtrl1.Bind( wx.EVT_SPINCTRL, self.onStructureMaxHeightSpinChanged ) + self.m_EnteringBDXfileSignName_textCtrl12.Bind( wx.EVT_TEXT, self.onBDXfileSignNameUpdating ) + self.m_start_button2.Bind( wx.EVT_BUTTON, self.onStartButtonPressed ) + + def __del__( self ): + pass + + + # Virtual event handlers, override them in your derived class + def MidiEasterEgg( self, event ): + event.Skip() + + def onFileListUpdated( self, event ): + event.Skip() + + def onFileDoubleClicked( self, event ): + event.Skip() + + def openFile( self, event ): + event.Skip() + + def onOutputFormatChosen( self, event ): + event.Skip() + + def onPlayerChosen( self, event ): + event.Skip() + + def onVolumeScrolling( self, event ): + event.Skip() + + def onVolumeSpinChanged( self, event ): + event.Skip() + + def onSpeedScrolling( self, event ): + event.Skip() + + def onSpeedSpinChanged( self, event ): + event.Skip() + + def onProgressbarChecked( self, event ): + event.Skip() + + def onScoreboredNameUpdating( self, event ): + event.Skip() + + def onAutoResetScoreboardChecked( self, event ): + event.Skip() + + def onPlayerSelectorUpdating( self, event ): + event.Skip() + + def onStructureMaxHeightScrolling( self, event ): + event.Skip() + + def onStructureMaxHeightSpinChanged( self, event ): + event.Skip() + + def onBDXfileSignNameUpdating( self, event ): + event.Skip() + + def onStartButtonPressed( self, event ): + event.Skip() + + +########################################################################### +## Class setting_page_pannel +########################################################################### + +class setting_page_pannel ( wx.Panel ): + + def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 565,540 ), style = wx.TAB_TRAVERSAL, name = wx.EmptyString ): + wx.Panel.__init__ ( self, parent, id = id, pos = pos, size = size, style = style, name = name ) + + setting_page_sizer = wx.BoxSizer( wx.VERTICAL ) + + self.setting_notebook = wx.Notebook( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.NB_FIXEDWIDTH|wx.NB_MULTILINE|wx.NB_RIGHT ) + self.setting_notebook.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "@OPPOSans R" ) ) + self.setting_notebook.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) ) + + self.setting_page1 = wx.Panel( self.setting_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + self.setting_page1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + setting_page1_box_sizer = wx.BoxSizer( wx.VERTICAL ) + + sss_customProgressBarSizer_wSizer6 = wx.WrapSizer( wx.HORIZONTAL, wx.WRAPSIZER_DEFAULT_FLAGS ) + + setting_page1_progressbar_style = wx.StaticBoxSizer( wx.StaticBox( self.setting_page1, wx.ID_ANY, u"进度条" ), wx.HORIZONTAL ) + + ssss_basicProgressStylePattle_sbSizer9 = wx.StaticBoxSizer( wx.StaticBox( setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, u"基本样式组" ), wx.VERTICAL ) + + self.m_BasicProgressBarStyleEntering_textCtrl4 = wx.TextCtrl( ssss_basicProgressStylePattle_sbSizer9.GetStaticBox(), wx.ID_ANY, u"▶ %%N [ %%s/%^s %%% __________ %%t|%^t ]", wx.DefaultPosition, wx.DefaultSize, wx.TE_LEFT|wx.TE_NO_VSCROLL ) + ssss_basicProgressStylePattle_sbSizer9.Add( self.m_BasicProgressBarStyleEntering_textCtrl4, 0, wx.ALL|wx.EXPAND, 5 ) + + + setting_page1_progressbar_style.Add( ssss_basicProgressStylePattle_sbSizer9, 1, wx.ALL|wx.EXPAND, 5 ) + + ssss_UnplayedPartProgressbarPattle_sbSizer10 = wx.StaticBoxSizer( wx.StaticBox( setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, u"未播放之样式" ), wx.VERTICAL ) + + self.m_unplayedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( ssss_UnplayedPartProgressbarPattle_sbSizer10.GetStaticBox(), wx.ID_ANY, u"§7=§r", wx.DefaultPosition, wx.DefaultSize, wx.TE_LEFT|wx.TE_NO_VSCROLL ) + ssss_UnplayedPartProgressbarPattle_sbSizer10.Add( self.m_unplayedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 ) + + + setting_page1_progressbar_style.Add( ssss_UnplayedPartProgressbarPattle_sbSizer10, 1, wx.ALL|wx.EXPAND, 5 ) + + ssss_PlayedPartProgressbarPattle_sbSizer11 = wx.StaticBoxSizer( wx.StaticBox( setting_page1_progressbar_style.GetStaticBox(), wx.ID_ANY, u"已播放之样式" ), wx.VERTICAL ) + + self.m_playedProgressbarStyleEntering_textCtrl5 = wx.TextCtrl( ssss_PlayedPartProgressbarPattle_sbSizer11.GetStaticBox(), wx.ID_ANY, u"§e=§r", wx.DefaultPosition, wx.DefaultSize, wx.TE_LEFT|wx.TE_NO_VSCROLL ) + ssss_PlayedPartProgressbarPattle_sbSizer11.Add( self.m_playedProgressbarStyleEntering_textCtrl5, 0, wx.ALL, 5 ) + + + setting_page1_progressbar_style.Add( ssss_PlayedPartProgressbarPattle_sbSizer11, 1, wx.ALL|wx.EXPAND, 5 ) + + + sss_customProgressBarSizer_wSizer6.Add( setting_page1_progressbar_style, 1, wx.ALL|wx.EXPAND, 5 ) + + setting_page1_experiment_style = wx.StaticBoxSizer( wx.StaticBox( self.setting_page1, wx.ID_ANY, u"实验性功能" ), wx.HORIZONTAL ) + + self.m_enable_experiment_checkBox = wx.CheckBox( setting_page1_experiment_style.GetStaticBox(), wx.ID_ANY, u"启用实验性功能", wx.DefaultPosition, wx.DefaultSize, 0 ) + setting_page1_experiment_style.Add( self.m_enable_experiment_checkBox, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.EXPAND, 5 ) + + experiment_type_choiceChoices = [ u"常规转换", u"长音插值", u"同刻偏移" ] + self.experiment_type_choice = wx.Choice( setting_page1_experiment_style.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, experiment_type_choiceChoices, 0 ) + self.experiment_type_choice.SetSelection( 0 ) + setting_page1_experiment_style.Add( self.experiment_type_choice, 2, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5 ) + + self.m_ignore_midi_error_checkBox = wx.CheckBox( setting_page1_experiment_style.GetStaticBox(), wx.ID_ANY, u"忽略MIDI错误", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_ignore_midi_error_checkBox.SetValue(True) + setting_page1_experiment_style.Add( self.m_ignore_midi_error_checkBox, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + + + sss_customProgressBarSizer_wSizer6.Add( setting_page1_experiment_style, 1, wx.ALL|wx.EXPAND, 5 ) + + + setting_page1_box_sizer.Add( sss_customProgressBarSizer_wSizer6, 1, wx.ALL|wx.EXPAND, 5 ) + + + self.setting_page1.SetSizer( setting_page1_box_sizer ) + self.setting_page1.Layout() + setting_page1_box_sizer.Fit( self.setting_page1 ) + self.setting_notebook.AddPage( self.setting_page1, u"基本信息", True ) + self.setting_page2 = wx.Panel( self.setting_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + self.setting_page2.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) ) + + setting_page2_box_sizer = wx.BoxSizer( wx.VERTICAL ) + + m_pitched_instrument_table_choiceChoices = [ u"“偷吃”的对照表", u"“经典”对照表" ] + self.m_pitched_instrument_table_choice = wx.Choice( self.setting_page2, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_pitched_instrument_table_choiceChoices, 0 ) + self.m_pitched_instrument_table_choice.SetSelection( 0 ) + self.m_pitched_instrument_table_choice.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + setting_page2_box_sizer.Add( self.m_pitched_instrument_table_choice, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL|wx.EXPAND, 5 ) + + self.m_pitched_notes_table_propertyGrid1 = pg.PropertyGrid(self.setting_page2, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.propgrid.PG_BOLD_MODIFIED|wx.propgrid.PG_DEFAULT_STYLE) + self.m_pitched_notes_table_propertyGrid1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.m_propertyGridItem1 = self.m_pitched_notes_table_propertyGrid1.Append( pg.StringProperty( u"乐音乐器1", u"乐音乐器1" ) ) + self.m_propertyGridItem2 = self.m_pitched_notes_table_propertyGrid1.Append( pg.StringProperty( u"乐音乐器2", u"乐音乐器2" ) ) + setting_page2_box_sizer.Add( self.m_pitched_notes_table_propertyGrid1, 1, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + + self.setting_page2.SetSizer( setting_page2_box_sizer ) + self.setting_page2.Layout() + setting_page2_box_sizer.Fit( self.setting_page2 ) + self.setting_notebook.AddPage( self.setting_page2, u"乐音乐器对照表", False ) + self.setting_page3 = wx.Panel( self.setting_notebook, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) + setting_page3_box_sizer = wx.BoxSizer( wx.VERTICAL ) + + m_percussion_instrument_table_choice1Choices = [ u"“偷吃”的对照表", u"“经典”对照表" ] + self.m_percussion_instrument_table_choice1 = wx.Choice( self.setting_page3, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_percussion_instrument_table_choice1Choices, 0 ) + self.m_percussion_instrument_table_choice1.SetSelection( 0 ) + self.m_percussion_instrument_table_choice1.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + setting_page3_box_sizer.Add( self.m_percussion_instrument_table_choice1, 0, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + self.m_percussion_notes_table_propertyGrid11 = pg.PropertyGrid(self.setting_page3, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.propgrid.PG_BOLD_MODIFIED|wx.propgrid.PG_DEFAULT_STYLE) + self.m_percussion_notes_table_propertyGrid11.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "OPPOSans R" ) ) + + self.m_propertyGridItem11 = self.m_percussion_notes_table_propertyGrid11.Append( pg.StringProperty( u"打击乐器1", u"打击乐器1" ) ) + self.m_propertyGridItem21 = self.m_percussion_notes_table_propertyGrid11.Append( pg.StringProperty( u"打击乐器2", u"打击乐器2" ) ) + setting_page3_box_sizer.Add( self.m_percussion_notes_table_propertyGrid11, 1, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 5 ) + + + self.setting_page3.SetSizer( setting_page3_box_sizer ) + self.setting_page3.Layout() + setting_page3_box_sizer.Fit( self.setting_page3 ) + self.setting_notebook.AddPage( self.setting_page3, u"打击乐器对照表", False ) + + setting_page_sizer.Add( self.setting_notebook, 1, wx.EXPAND |wx.ALL, 5 ) + + + self.SetSizer( setting_page_sizer ) + self.Layout() + + # Connect Events + self.m_BasicProgressBarStyleEntering_textCtrl4.Bind( wx.EVT_TEXT, self.onProgressbarBasicStyleUpdating ) + self.m_unplayedProgressbarStyleEntering_textCtrl5.Bind( wx.EVT_TEXT, self.onProgressbarUnplayedStyleUpdating ) + self.m_playedProgressbarStyleEntering_textCtrl5.Bind( wx.EVT_TEXT, self.onProgressbarPlayedStyleUpdating ) + + def __del__( self ): + pass + + + # Virtual event handlers, override them in your derived class + def onProgressbarBasicStyleUpdating( self, event ): + event.Skip() + + def onProgressbarUnplayedStyleUpdating( self, event ): + event.Skip() + + def onProgressbarPlayedStyleUpdating( self, event ): + event.Skip() + +