ソースを参照

fix r.category dialog - cats input field broken introducing special cats gisprompt in https://trac.osgeo.org/grass/changeset/64276

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64561 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年 前
コミット
b37175361f
1 ファイル変更12 行追加0 行削除
  1. 12 0
      gui/wxpython/gui_core/forms.py

+ 12 - 0
gui/wxpython/gui_core/forms.py

@@ -1151,6 +1151,8 @@ class CmdPanel(wx.Panel):
                 title_txt.SetLabel(title + ':')
                 # GIS element entry
                 if p.get('prompt','') not in ('color',
+                                              'cat',
+                                              'cats',
                                               'subgroup',
                                               'sigfile',
                                               'separator',
@@ -1644,6 +1646,16 @@ class CmdPanel(wx.Panel):
                     if p.get('guidependency', ''):
                         cb.Bind(wx.EVT_COMBOBOX, self.OnUpdateSelection)
 
+                elif prompt in ('cat', 'cats'):
+                    win = wx.TextCtrl(parent=which_panel)
+                    value = self._getValue(p)
+                    win.SetValue(value)
+                    p['wxId'] = [win.GetId()]
+                    win.Bind(wx.EVT_TEXT, self.OnSetValue)
+                    which_sizer.Add(item=win, proportion=0,
+                                    flag=wx.EXPAND | wx.BOTTOM | wx.LEFT | wx.RIGHT,
+                                    border=5)
+
             if self.parent.GetName() == 'MainFrame' and (self._giface and hasattr(self._giface, "_model")):
                 parChk = wx.CheckBox(parent = which_panel, id = wx.ID_ANY,
                                      label = _("Parameterized in model"))