|
@@ -224,18 +224,21 @@ class VectorDialog(SimpleDialog):
|
|
|
"""
|
|
|
SimpleDialog.__init__(self, parent, title)
|
|
|
|
|
|
- self.element = Select(
|
|
|
- parent=self.panel,
|
|
|
- id=wx.ID_ANY,
|
|
|
- size=globalvar.DIALOG_GSELECT_SIZE,
|
|
|
- type='vector',
|
|
|
- layerTree=layerTree,
|
|
|
- validator=MapValidator())
|
|
|
+ self.element = self._selection_widget(layerTree)
|
|
|
self.element.SetFocus()
|
|
|
|
|
|
self.warning = _("Name of vector map is missing.")
|
|
|
wx.CallAfter(self._layout)
|
|
|
|
|
|
+ def _selection_widget(self, layerTree):
|
|
|
+ return Select(parent=self.panel,
|
|
|
+ id=wx.ID_ANY,
|
|
|
+ size=globalvar.DIALOG_GSELECT_SIZE,
|
|
|
+ type='vector',
|
|
|
+ layerTree=layerTree,
|
|
|
+ fullyQualified=True
|
|
|
+ )
|
|
|
+
|
|
|
def _layout(self):
|
|
|
"""Do layout"""
|
|
|
self.dataSizer.Add(StaticText(parent=self.panel, id=wx.ID_ANY,
|
|
@@ -322,6 +325,16 @@ class NewVectorDialog(VectorDialog):
|
|
|
|
|
|
self.warning = _("Name of new vector map is missing.")
|
|
|
|
|
|
+ def _selection_widget(self, layerTree):
|
|
|
+ return Select(parent=self.panel,
|
|
|
+ id=wx.ID_ANY,
|
|
|
+ size=globalvar.DIALOG_GSELECT_SIZE,
|
|
|
+ type='vector',
|
|
|
+ layerTree=layerTree,
|
|
|
+ fullyQualified=False,
|
|
|
+ validator=MapValidator()
|
|
|
+ )
|
|
|
+
|
|
|
def OnTable(self, event):
|
|
|
if self.keycol:
|
|
|
self.keycol.Enable(event.IsChecked())
|