-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathloguetools_gui_autogenerated.py
182 lines (124 loc) · 7.5 KB
/
loguetools_gui_autogenerated.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# -*- 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
###########################################################################
## Class MainFrame
###########################################################################
class MainFrame ( wx.Frame ):
def __init__( self, parent ):
wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"loguetools", pos = wx.DefaultPosition, size = wx.Size( 1029,509 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
MainFrameSizer = wx.BoxSizer( wx.VERTICAL )
toolbarSizer = wx.GridSizer( 0, 2, 0, 0 )
self.toolbarPanel = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
toolbarPanelSizer = wx.BoxSizer( wx.VERTICAL )
self.toolbar = wx.ToolBar( self.toolbarPanel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TB_HORIZONTAL )
self.toolbar.Realize()
toolbarPanelSizer.Add( self.toolbar, 0, wx.ALL|wx.EXPAND, 0 )
self.toolbarPanel.SetSizer( toolbarPanelSizer )
self.toolbarPanel.Layout()
toolbarPanelSizer.Fit( self.toolbarPanel )
toolbarSizer.Add( self.toolbarPanel, 1, wx.EXPAND, 0 )
self.checkboxPanel = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
checkboxPanelSizer = wx.BoxSizer( wx.VERTICAL )
self.m_toolBar_options = wx.ToolBar( self.checkboxPanel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TB_HORIZONTAL )
self.m_checkBox_id = wx.CheckBox( self.m_toolBar_options, wx.ID_ANY, u"id", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_checkBox_id.SetToolTip( u"Prepend id to filename" )
self.m_toolBar_options.AddControl( self.m_checkBox_id )
self.m_checkBox_md5 = wx.CheckBox( self.m_toolBar_options, wx.ID_ANY, u"md5:4", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_checkBox_md5.SetToolTip( u"Append md5 checksum to filename" )
self.m_toolBar_options.AddControl( self.m_checkBox_md5 )
self.m_checkBox_version = wx.CheckBox( self.m_toolBar_options, wx.ID_ANY, u"ver", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_checkBox_version.SetToolTip( u"Append loguetools version to filename" )
self.m_toolBar_options.AddControl( self.m_checkBox_version )
self.m_checkBox_inits = wx.CheckBox( self.m_toolBar_options, wx.ID_ANY, u"inits", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_checkBox_inits.SetToolTip( u"Include patches named Init Program" )
self.m_toolBar_options.AddControl( self.m_checkBox_inits )
self.m_checkBox_factory = wx.CheckBox( self.m_toolBar_options, wx.ID_ANY, u"factory", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_checkBox_factory.SetValue(True)
self.m_checkBox_factory.SetToolTip( u"Include factory presets when exploding" )
self.m_toolBar_options.AddControl( self.m_checkBox_factory )
self.m_toolBar_options.Realize()
checkboxPanelSizer.Add( self.m_toolBar_options, 0, wx.ALL|wx.EXPAND, 0 )
self.checkboxPanel.SetSizer( checkboxPanelSizer )
self.checkboxPanel.Layout()
checkboxPanelSizer.Fit( self.checkboxPanel )
toolbarSizer.Add( self.checkboxPanel, 1, wx.EXPAND, 0 )
MainFrameSizer.Add( toolbarSizer, 0, wx.EXPAND, 0 )
displaySizer = wx.FlexGridSizer( 1, 2, 0, 0 )
displaySizer.AddGrowableCol( 0 )
displaySizer.AddGrowableCol( 1 )
displaySizer.AddGrowableRow( 0 )
displaySizer.SetFlexibleDirection( wx.BOTH )
displaySizer.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
self.displaySplitter = wx.SplitterWindow( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.SP_3D|wx.SP_LIVE_UPDATE )
self.displaySplitter.Bind( wx.EVT_IDLE, self.displaySplitterOnIdle )
self.displaySplitter.SetMinimumPaneSize( 40 )
self.patchListPanel = wx.Panel( self.displaySplitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
patchListPanelSizer = wx.BoxSizer( wx.VERTICAL )
self.listCtrl = wx.ListCtrl( self.patchListPanel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LC_REPORT )
patchListPanelSizer.Add( self.listCtrl, 1, wx.EXPAND, 5 )
self.patchListPanel.SetSizer( patchListPanelSizer )
self.patchListPanel.Layout()
patchListPanelSizer.Fit( self.patchListPanel )
self.stdoutPanel = wx.Panel( self.displaySplitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
stdoutPanelSizer = wx.BoxSizer( wx.VERTICAL )
self.m_textCtrlOut = wx.TextCtrl( self.stdoutPanel, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.HSCROLL|wx.TE_MULTILINE|wx.TE_READONLY )
stdoutPanelSizer.Add( self.m_textCtrlOut, 2, wx.EXPAND, 5 )
self.stdoutPanel.SetSizer( stdoutPanelSizer )
self.stdoutPanel.Layout()
stdoutPanelSizer.Fit( self.stdoutPanel )
self.displaySplitter.SplitVertically( self.patchListPanel, self.stdoutPanel, 510 )
displaySizer.Add( self.displaySplitter, 1, wx.EXPAND, 5 )
MainFrameSizer.Add( displaySizer, 1, wx.EXPAND, 0 )
self.SetSizer( MainFrameSizer )
self.Layout()
self.statusBar = self.CreateStatusBar( 1, wx.STB_SIZEGRIP, wx.ID_ANY )
self.m_menubar1 = wx.MenuBar( 0 )
self.m_menu21 = wx.Menu()
self.m_menuItem21 = wx.MenuItem( self.m_menu21, wx.ID_ANY, u"Exit", wx.EmptyString, wx.ITEM_NORMAL )
self.m_menu21.Append( self.m_menuItem21 )
self.m_menubar1.Append( self.m_menu21, u"File" )
self.m_menu2 = wx.Menu()
self.m_menuItem2 = wx.MenuItem( self.m_menu2, wx.ID_ANY, u"About..."+ u"\t" + u"F1", wx.EmptyString, wx.ITEM_NORMAL )
self.m_menu2.Append( self.m_menuItem2 )
self.m_menubar1.Append( self.m_menu2, u"Help" )
self.SetMenuBar( self.m_menubar1 )
self.Centre( wx.BOTH )
# Connect Events
self.m_checkBox_id.Bind( wx.EVT_MOTION, self.OnMouseoverId )
self.m_checkBox_md5.Bind( wx.EVT_MOTION, self.OnMouseoverMd5 )
self.m_checkBox_version.Bind( wx.EVT_MOTION, self.OnMouseoverVer )
self.m_checkBox_inits.Bind( wx.EVT_MOTION, self.OnMouseoverInits )
self.listCtrl.Bind( wx.EVT_LIST_ITEM_DESELECTED, self.OnPatchDeselected )
self.listCtrl.Bind( wx.EVT_LIST_ITEM_SELECTED, self.OnPatchSelected )
self.Bind( wx.EVT_MENU, self.OnExit, id = self.m_menuItem21.GetId() )
self.Bind( wx.EVT_MENU, self.OnAbout, id = self.m_menuItem2.GetId() )
def __del__( self ):
pass
# Virtual event handlers, override them in your derived class
def OnMouseoverId( self, event ):
event.Skip()
def OnMouseoverMd5( self, event ):
event.Skip()
def OnMouseoverVer( self, event ):
event.Skip()
def OnMouseoverInits( self, event ):
event.Skip()
def OnPatchDeselected( self, event ):
event.Skip()
def OnPatchSelected( self, event ):
event.Skip()
def OnExit( self, event ):
event.Skip()
def OnAbout( self, event ):
event.Skip()
def displaySplitterOnIdle( self, event ):
self.displaySplitter.SetSashPosition( 510 )
self.displaySplitter.Unbind( wx.EVT_IDLE )