|
@@ -826,11 +826,20 @@ class MultiImportDialog(wx.Dialog):
|
|
|
|
|
|
self.panel = wx.Panel(parent=self, id=wx.ID_ANY)
|
|
self.panel = wx.Panel(parent=self, id=wx.ID_ANY)
|
|
|
|
|
|
|
|
+ if self.inputType == 'dxf':
|
|
|
|
+ self.inputTitle = _("Input DXF file")
|
|
|
|
+ else:
|
|
|
|
+ self.inputTitle = _("Input directory")
|
|
|
|
+
|
|
|
|
+ self.inputBox = wx.StaticBox(parent=self.panel, id=wx.ID_ANY,
|
|
|
|
+ label=" %s " % self.inputTitle)
|
|
|
|
+ self.layerBox = wx.StaticBox(parent=self.panel, id=wx.ID_ANY,
|
|
|
|
+ label=_(" List of %s layers ") % self.inputType.upper())
|
|
|
|
+
|
|
#
|
|
#
|
|
# input
|
|
# input
|
|
#
|
|
#
|
|
if self.inputType == 'dxf':
|
|
if self.inputType == 'dxf':
|
|
- self.inputTitle = _("Input DXF file")
|
|
|
|
self.inputText = wx.StaticText(self.panel, id=wx.ID_ANY, label=_("Choose DXF file:"))
|
|
self.inputText = wx.StaticText(self.panel, id=wx.ID_ANY, label=_("Choose DXF file:"))
|
|
self.input = filebrowse.FileBrowseButton(parent=self.panel, id=wx.ID_ANY,
|
|
self.input = filebrowse.FileBrowseButton(parent=self.panel, id=wx.ID_ANY,
|
|
size=globalvar.DIALOG_GSELECT_SIZE, labelText='',
|
|
size=globalvar.DIALOG_GSELECT_SIZE, labelText='',
|
|
@@ -840,7 +849,6 @@ class MultiImportDialog(wx.Dialog):
|
|
changeCallback=self.OnSetInput,
|
|
changeCallback=self.OnSetInput,
|
|
fileMask="*.dxf")
|
|
fileMask="*.dxf")
|
|
else:
|
|
else:
|
|
- self.inputTitle = _("Input directory")
|
|
|
|
self.inputText = wx.StaticText(self.panel, id=wx.ID_ANY, label=_("Choose directory:"))
|
|
self.inputText = wx.StaticText(self.panel, id=wx.ID_ANY, label=_("Choose directory:"))
|
|
self.input = filebrowse.DirBrowseButton(parent=self.panel, id=wx.ID_ANY,
|
|
self.input = filebrowse.DirBrowseButton(parent=self.panel, id=wx.ID_ANY,
|
|
size=globalvar.DIALOG_GSELECT_SIZE, labelText='',
|
|
size=globalvar.DIALOG_GSELECT_SIZE, labelText='',
|
|
@@ -890,9 +898,7 @@ class MultiImportDialog(wx.Dialog):
|
|
#
|
|
#
|
|
# input
|
|
# input
|
|
#
|
|
#
|
|
- inputBox = wx.StaticBox(parent=self.panel, id=wx.ID_ANY,
|
|
|
|
- label=" %s " % self.inputTitle)
|
|
|
|
- inputSizer = wx.StaticBoxSizer(inputBox, wx.HORIZONTAL)
|
|
|
|
|
|
+ inputSizer = wx.StaticBoxSizer(self.inputBox, wx.HORIZONTAL)
|
|
|
|
|
|
gridSizer = wx.FlexGridSizer(cols=2, vgap=5, hgap=5)
|
|
gridSizer = wx.FlexGridSizer(cols=2, vgap=5, hgap=5)
|
|
|
|
|
|
@@ -916,9 +922,7 @@ class MultiImportDialog(wx.Dialog):
|
|
#
|
|
#
|
|
# list of DXF layers
|
|
# list of DXF layers
|
|
#
|
|
#
|
|
- layerBox = wx.StaticBox(parent=self.panel, id=wx.ID_ANY,
|
|
|
|
- label=_(" List of %s layers ") % self.inputType.upper())
|
|
|
|
- layerSizer = wx.StaticBoxSizer(layerBox, wx.HORIZONTAL)
|
|
|
|
|
|
+ layerSizer = wx.StaticBoxSizer(self.layerBox, wx.HORIZONTAL)
|
|
|
|
|
|
layerSizer.Add(item=self.list, proportion=1,
|
|
layerSizer.Add(item=self.list, proportion=1,
|
|
flag=wx.ALL | wx.EXPAND, border=5)
|
|
flag=wx.ALL | wx.EXPAND, border=5)
|