← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 235: CDD 2.0 preview

 

------------------------------------------------------------
revno: 235
committer: Eduardo C. P. Ribeiro <eduardo.cesar@xxxxxxx>
branch nick: cdd
timestamp: Wed 2012-08-29 00:03:04 -0300
message:
  CDD 2.0 preview
modified:
  src/2.0/cdd.py
  src/2.0/cdd.wxg


--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk

Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'src/2.0/cdd.py'
--- src/2.0/cdd.py	2012-08-27 15:55:02 +0000
+++ src/2.0/cdd.py	2012-08-29 03:03:04 +0000
@@ -15,14 +15,11 @@
 import wx.lib.mixins.listctrl as listmix
 from wx.gizmos import EditableListBox
 
-
-
-
 # begin wxGlade: extracode
 # end wxGlade
 
 
-
+# end of class Notebook
 
 class FeederAudit(wx.Panel):
     def __init__(self, *args, **kwds):
@@ -155,7 +152,12 @@
         # begin wxGlade: DvIdentifier.__init__
         kwds["style"] = wx.TAB_TRAVERSAL
         wx.Panel.__init__(self, *args, **kwds)
-        self.text_ctrl_language = wx.TextCtrl(self, -1, "")
+        self.list_ctrl_identifier = EditableListControl(self, -1, style=wx.LC_REPORT | wx.SUNKEN_BORDER)
+        self.sizer_64_copy_staticbox = wx.StaticBox(self, -1, "")
+        self.button_add = wx.Button(self, -1, _("Add"))
+        self.button_remove = wx.Button(self, -1, _("Remove"))
+        self.radio_box_language = wx.RadioBox(self, -1, _("Selected?"), choices=[_("No"), _("Yes")], majorDimension=0, style=wx.RA_SPECIFY_ROWS)
+        self.choice_language = wx.Choice(self, -1, choices=[])
         self.sizer_48_staticbox = wx.StaticBox(self, -1, _("language"))
         self.text_ctrl_issuer = wx.TextCtrl(self, -1, "")
         self.sizer_49_staticbox = wx.StaticBox(self, -1, _("issuer"))
@@ -167,23 +169,28 @@
         self.sizer_52_staticbox = wx.StaticBox(self, -1, _("valid_time_begin"))
         self.text_ctrl_valid_time_end = wx.TextCtrl(self, -1, "")
         self.sizer_53_staticbox = wx.StaticBox(self, -1, _("valid_time_end"))
-        self.editable_list_box_enumeration = EditableListBox(self, -1, _("Values"))
-        self.sizer_28_copy_staticbox = wx.StaticBox(self, -1, _("enumeration"))
         self.text_ctrl_pattern = wx.TextCtrl(self, -1, "")
         self.sizer_25_copy_staticbox = wx.StaticBox(self, -1, _("pattern"))
         self.text_ctrl_max_length = wx.TextCtrl(self, -1, "")
         self.sizer_26_copy_staticbox = wx.StaticBox(self, -1, _("max_length"))
         self.text_ctrl_min_length = wx.TextCtrl(self, -1, "")
         self.sizer_27_copy_staticbox = wx.StaticBox(self, -1, _("min_length"))
-        self.sizer_23_copy_staticbox = wx.StaticBox(self, -1, _("dv"))
+        self.sizer_23_copy_staticbox = wx.StaticBox(self, -1, _("coded_string"))
 
         self.__set_properties()
         self.__do_layout()
+
+        self.Bind(wx.EVT_BUTTON, self.evt_button_add, self.button_add)
+        self.Bind(wx.EVT_BUTTON, self.evt_button_remove, self.button_remove)
+        self.Bind(wx.EVT_RADIOBOX, self.evt_radiobox_language, self.radio_box_language)
         # end wxGlade
+        
+        self.init_things()
 
     def __set_properties(self):
         # begin wxGlade: DvIdentifier.__set_properties
-        pass
+        self.radio_box_language.SetSelection(0)
+        self.choice_language.Enable(False)
         # end wxGlade
 
     def __do_layout(self):
@@ -197,8 +204,6 @@
         sizer_26_copy = wx.StaticBoxSizer(self.sizer_26_copy_staticbox, wx.HORIZONTAL)
         self.sizer_25_copy_staticbox.Lower()
         sizer_25_copy = wx.StaticBoxSizer(self.sizer_25_copy_staticbox, wx.HORIZONTAL)
-        self.sizer_28_copy_staticbox.Lower()
-        sizer_28_copy = wx.StaticBoxSizer(self.sizer_28_copy_staticbox, wx.VERTICAL)
         sizer_47 = wx.BoxSizer(wx.VERTICAL)
         self.sizer_53_staticbox.Lower()
         sizer_53 = wx.StaticBoxSizer(self.sizer_53_staticbox, wx.HORIZONTAL)
@@ -212,26 +217,37 @@
         sizer_49 = wx.StaticBoxSizer(self.sizer_49_staticbox, wx.HORIZONTAL)
         self.sizer_48_staticbox.Lower()
         sizer_48 = wx.StaticBoxSizer(self.sizer_48_staticbox, wx.HORIZONTAL)
-        sizer_48.Add(self.text_ctrl_language, 1, 0, 0)
-        sizer_47.Add(sizer_48, 1, wx.EXPAND, 0)
+        sizer_62_copy = wx.BoxSizer(wx.VERTICAL)
+        sizer_63_copy = wx.BoxSizer(wx.HORIZONTAL)
+        self.sizer_64_copy_staticbox.Lower()
+        sizer_64_copy = wx.StaticBoxSizer(self.sizer_64_copy_staticbox, wx.HORIZONTAL)
+        sizer_64_copy.Add(self.list_ctrl_identifier, 1, wx.EXPAND, 0)
+        sizer_62_copy.Add(sizer_64_copy, 1, wx.EXPAND, 0)
+        sizer_63_copy.Add(self.button_add, 0, 0, 0)
+        sizer_63_copy.Add((20, 20), 1, 0, 0)
+        sizer_63_copy.Add(self.button_remove, 0, 0, 0)
+        sizer_62_copy.Add(sizer_63_copy, 0, wx.EXPAND, 0)
+        sizer_47.Add(sizer_62_copy, 1, wx.EXPAND, 0)
+        sizer_48.Add(self.radio_box_language, 0, 0, 0)
+        sizer_48.Add((20, 20), 1, wx.EXPAND, 0)
+        sizer_48.Add(self.choice_language, 0, 0, 0)
+        sizer_47.Add(sizer_48, 0, wx.EXPAND, 0)
         sizer_47.Add((20, 20), 0, 0, 0)
         sizer_49.Add(self.text_ctrl_issuer, 1, 0, 0)
-        sizer_47.Add(sizer_49, 1, wx.EXPAND, 0)
+        sizer_47.Add(sizer_49, 0, wx.EXPAND, 0)
         sizer_47.Add((20, 20), 0, 0, 0)
         sizer_50.Add(self.text_ctrl_assigner, 1, 0, 0)
-        sizer_47.Add(sizer_50, 1, wx.EXPAND, 0)
+        sizer_47.Add(sizer_50, 0, wx.EXPAND, 0)
         sizer_47.Add((20, 20), 0, 0, 0)
         sizer_51.Add(self.text_ctrl_id_name, 1, 0, 0)
-        sizer_47.Add(sizer_51, 1, wx.EXPAND, 0)
+        sizer_47.Add(sizer_51, 0, wx.EXPAND, 0)
         sizer_47.Add((20, 20), 0, 0, 0)
         sizer_52.Add(self.text_ctrl_valid_time_begin, 1, 0, 0)
-        sizer_47.Add(sizer_52, 1, wx.EXPAND, 0)
+        sizer_47.Add(sizer_52, 0, wx.EXPAND, 0)
         sizer_47.Add((20, 20), 0, 0, 0)
         sizer_53.Add(self.text_ctrl_valid_time_end, 1, 0, 0)
-        sizer_47.Add(sizer_53, 1, wx.EXPAND, 0)
+        sizer_47.Add(sizer_53, 0, wx.EXPAND, 0)
         sizer_46.Add(sizer_47, 1, wx.EXPAND, 0)
-        sizer_28_copy.Add(self.editable_list_box_enumeration, 1, wx.EXPAND, 0)
-        sizer_23_copy.Add(sizer_28_copy, 1, wx.EXPAND, 0)
         sizer_25_copy.Add(self.text_ctrl_pattern, 1, wx.EXPAND, 0)
         sizer_23_copy.Add(sizer_25_copy, 0, wx.EXPAND, 0)
         sizer_26_copy.Add(self.text_ctrl_max_length, 1, wx.EXPAND, 0)
@@ -243,6 +259,38 @@
         sizer_46.Fit(self)
         # end wxGlade
 
+    def init_things(self):
+        self.init_list_crtl()
+
+    def init_list_crtl(self):
+        lista = self.list_ctrl_identifier
+        lista.InsertColumn(0, 'issuer')
+        lista.InsertColumn(1, 'assigner')
+        lista.InsertColumn(2, 'id_name')
+        lista.InsertColumn(3, 'coded_string')
+        lista.SetColumnWidth(3, 100)
+
+    def evt_radiobox_language(self, event):  # wxGlade: DvIdentifier.<event_handler>
+        state = self.radio_box_language.GetSelection()
+
+        if state:
+            self.choice_language.Enable()
+        else:
+            self.choice_language.Disable()
+            
+    def evt_button_add(self, event):  # wxGlade: DvIdentifier.<event_handler>
+        lista = self.list_ctrl_identifier
+        index = lista.InsertStringItem(sys.maxint, 'issuer')
+        lista.SetStringItem(index, 1, 'assigner')
+        lista.SetStringItem(index, 2, 'id_name')
+        lista.SetStringItem(index, 3, 'coded_string')
+
+
+    def evt_button_remove(self, event):  # wxGlade: DvIdentifier.<event_handler>
+        lista = self.list_ctrl_identifier
+        count = lista.GetItemCount() - 1
+        lista.DeleteItem(count)
+
 # end of class DvIdentifier
 
 class DvCodedString(wx.Panel):
@@ -268,7 +316,7 @@
         self.sizer_26_copy_1_staticbox = wx.StaticBox(self, -1, _("max_length"))
         self.text_ctrl_min_length = wx.TextCtrl(self, -1, "")
         self.sizer_27_copy_1_staticbox = wx.StaticBox(self, -1, _("min_length"))
-        self.sizer_23_copy_1_staticbox = wx.StaticBox(self, -1, _("dv"))
+        self.sizer_23_copy_1_staticbox = wx.StaticBox(self, -1, _("coded_string"))
 
         self.__set_properties()
         self.__do_layout()
@@ -347,12 +395,17 @@
         self.list_ctrl_terminology.SetStringItem(index, 1, 'name')
         self.list_ctrl_terminology.SetStringItem(index, 2, 'abbrev')
         self.list_ctrl_terminology.SetStringItem(index, 3, 'version')
+        self.list_ctrl_terminology.SetStringItem(index, 4, 'coded_string')
 
     def terminology_remove(self, event):  # wxGlade: DvCodedString.<event_handler>
         count = self.list_ctrl_terminology.GetItemCount() - 1
         self.list_ctrl_terminology.DeleteItem(count)
 
     def init_things(self):
+        # Hides the enumeration box. TODO: Remove this on the final version.
+        self.editable_list_box_enumeration.Hide()
+        self.Layout()
+        ##################################################################
         self.init_list_crtl()
 
 
@@ -361,6 +414,8 @@
         self.list_ctrl_terminology.InsertColumn(1, 'name')
         self.list_ctrl_terminology.InsertColumn(2, 'abbrev')
         self.list_ctrl_terminology.InsertColumn(3, 'version')
+        self.list_ctrl_terminology.InsertColumn(4, 'coded_string')
+        self.list_ctrl_terminology.SetColumnWidth(4, 100)
 
 
 # end of class DvCodedString
@@ -584,10 +639,21 @@
         grandparent = self.GetGrandParent()
 
         sel_string = self.choice_element.GetStringSelection()
-        tree_selected = grandparent.tree_ctrl_ccd.GetSelection()
-
-        grandparent.tree_ctrl_ccd.AppendItem(tree_selected, sel_string)
-        grandparent.tree_ctrl_ccd.Expand(tree_selected)
+        tree = grandparent.tree_ctrl_ccd
+        tree_selected = tree.GetSelection()
+
+        # Tests if there is some other element already
+        if tree.GetChildrenCount(tree_selected):
+            dlg = wx.MessageDialog(self, 'Would you like to substitute this element?', 'Element', wx.YES_NO | wx.ICON_QUESTION)
+
+            result = dlg.ShowModal()
+            if result == wx.ID_YES:
+                tree.DeleteChildren(tree_selected)
+            else:
+                return
+
+        tree.AppendItem(tree_selected, sel_string)
+        tree.Expand(tree_selected)
 
 
 # end of class Element
@@ -635,8 +701,8 @@
             else:
                 return
 
-        grandparent.tree_ctrl_ccd.AppendItem(tree_selected, sel_string)
-        grandparent.tree_ctrl_ccd.Expand(tree_selected)
+        tree.AppendItem(tree_selected, sel_string)
+        tree.Expand(tree_selected)
 
 # end of class Definition
 class CareEntry(wx.Panel):
@@ -662,22 +728,24 @@
         self.__set_properties()
         self.__do_layout()
 
+        self.Bind(wx.EVT_RADIOBOX, self.evt_radiobox_data, self.radio_box_data)
         self.Bind(wx.EVT_BUTTON, self.evt_button_links, self.button_links)
         self.Bind(wx.EVT_BUTTON, self.evt_button_attestation, self.button_attestation)
         self.Bind(wx.EVT_BUTTON, self.evt_button_feeder_audit, self.button_feeder_audit)
+        self.Bind(wx.EVT_RADIOBOX, self.evt_radio_box_provider, self.radio_box_provider)
         self.Bind(wx.EVT_BUTTON, self.evt_button_other_participants, self.button_other_participants)
         self.Bind(wx.EVT_BUTTON, self.evt_button_enconding, self.button_encoding)
+        self.Bind(wx.EVT_RADIOBOX, self.evt_radiobox_subject, self.radio_box_subject)
         self.Bind(wx.EVT_BUTTON, self.evt_button_protocol_id, self.button_protocol_id)
         self.Bind(wx.EVT_BUTTON, self.evt_button_workflow_id, self.button_workflow_id)
         # end wxGlade
 
     def __set_properties(self):
         # begin wxGlade: CareEntry.__set_properties
-        self.radio_box_data.SetForegroundColour(wx.Colour(255, 127, 0))
         self.radio_box_data.SetSelection(0)
-        self.radio_box_provider.SetForegroundColour(wx.Colour(255, 127, 0))
         self.radio_box_provider.SetSelection(0)
         self.radio_box_subject.SetSelection(0)
+        self.notebook_care_entry.SetBackgroundColour(wx.Colour(176, 0, 255))
         # end wxGlade
 
     def __do_layout(self):
@@ -728,49 +796,80 @@
         sizer_17.Fit(self)
         # end wxGlade
 
+
     def evt_button_ok(self):
         print 'ok'
 
     def evt_button_links(self, event):  # wxGlade: CareEntry.<event_handler>
         "Opens another tab with a DvURI panel on it"
 
-        dv_uri = DvURI(self.notebook_care_entry)
-        self.notebook_care_entry.AddPage(dv_uri, 'Links')
+        tab = DvURI(self.notebook_care_entry)
+        self.notebook_care_entry.AddPage(tab, 'Links')
 
 
     def evt_button_attestation(self, event):  # wxGlade: CareEntry.<event_handler>
         "Opens another tab with a Attestation panel on it"
-        att = Attestation(self.notebook_care_entry)
-        self.notebook_care_entry.AddPage(att, 'Attestation')
+
+        tab = Attestation(self.notebook_care_entry)
+        self.notebook_care_entry.AddPage(tab, 'Attestation')
 
     def evt_button_feeder_audit(self, event):  # wxGlade: CareEntry.<event_handler>
         "Opens another tab with a FeederAudit panel on it"
-        feed = FeederAudit(self.notebook_care_entry)
-        self.notebook_care_entry.AddPage(feed, 'FeederAudit')
+
+        tab = FeederAudit(self.notebook_care_entry)
+        self.notebook_care_entry.AddPage(tab, 'FeederAudit')
 
     def evt_button_other_participants(self, event):  # wxGlade: CareEntry.<event_handler>
         "Opens another tab with a Participation panel on it"
-        other = Participation(self.notebook_care_entry)
-        self.notebook_care_entry.AddPage(other, 'OtherParticipants')
+
+        tab = Participation(self.notebook_care_entry)
+        self.notebook_care_entry.AddPage(tab, 'OtherParticipants')
 
 
     def evt_button_enconding(self, event):  # wxGlade: CareEntry.<event_handler>
         "Opens another tab with a DvCodedString panel on it"
-        encoding = DvCodedString(self.notebook_care_entry)
-        self.notebook_care_entry.AddPage(encoding, 'Encoding')
+
+        tab = DvCodedString(self.notebook_care_entry)
+        self.notebook_care_entry.AddPage(tab, 'Encoding')
 
 
     def evt_button_protocol_id(self, event):  # wxGlade: CareEntry.<event_handler>
         "Opens another tab with a DvIdentifier panel on it"
-        proto_id = DvIdentifier(self.notebook_care_entry)
-        self.notebook_care_entry.AddPage(proto_id, 'ProtocolId')
+
+        tab = DvIdentifier(self.notebook_care_entry)
+        self.notebook_care_entry.AddPage(tab, 'ProtocolId')
 
 
     def evt_button_workflow_id(self, event):  # wxGlade: CareEntry.<event_handler>
         "Opens another tab with a DvURI panel on it"
-        work_id = DvURI(self.notebook_care_entry)
-        self.notebook_care_entry.AddPage(work_id, 'WorkflowId')
-
+
+        tab = DvURI(self.notebook_care_entry)
+        self.notebook_care_entry.AddPage(tab, 'WorkflowId')
+
+    def evt_radiobox_data(self, event):  # wxGlade: CareEntry.<event_handler>
+
+        top_level = self.GetTopLevelParent()
+        tree = top_level.tree_ctrl_ccd
+        tree_selected = tree.GetSelection()
+
+        sel_string = self.radio_box_data.GetStringSelection()
+
+        tree.AppendItem(tree_selected, sel_string)
+        tree.Expand(tree_selected)
+
+    def evt_radio_box_provider(self, event):  # wxGlade: CareEntry.<event_handler>
+        top_level = self.GetTopLevelParent()
+        tree = top_level.tree_ctrl_ccd
+        tree_selected = tree.GetSelection()
+
+        sel_string = self.radio_box_provider.GetStringSelection()
+
+        tree.AppendItem(tree_selected, sel_string)
+        tree.Expand(tree_selected)
+
+    def evt_radiobox_subject(self, event):  # wxGlade: CareEntry.<event_handler>
+        print "Event handler `evt_radiobox_subject' not implemented"
+        event.Skip()
 
 # end of class CareEntry
 
@@ -785,6 +884,7 @@
         listmix.ListCtrlAutoWidthMixin.__init__(self)
         listmix.TextEditMixin.__init__(self)
 
+
 class UnderConstruction(wx.Panel):
     def __init__(self, *args, **kwds):
         # begin wxGlade: UnderConstruction.__init__

=== modified file 'src/2.0/cdd.wxg'
--- src/2.0/cdd.wxg	2012-08-27 15:55:02 +0000
+++ src/2.0/cdd.wxg	2012-08-29 03:03:04 +0000
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<!-- generated by wxGlade 0.6.4 on Wed Aug 22 15:00:13 2012 -->
+<!-- generated by wxGlade 0.6.4 on Tue Aug 28 23:07:17 2012 -->
 
 <application path="cdd.py" name="" class="" option="0" language="python" top_window="frame_main" encoding="UTF-8" use_gettext="1" overwrite="0" use_new_namespace="1" for_version="2.8" is_template="0" indent_amount="4" indent_symbol="space" source_extension=".cpp" header_extension=".h">
     <object class="MainFrame" name="frame_main" base="EditFrame">
@@ -200,6 +200,7 @@
                     <tabs>
                         <tab window="panel_care_entry">CareEntry</tab>
                     </tabs>
+                    <background>#b000ff</background>
                     <object class="wxPanel" name="panel_care_entry" base="EditPanel">
                         <style>wxTAB_TRAVERSAL</style>
                         <object class="wxBoxSizer" name="sizer_4" base="EditBoxSizer">
@@ -223,7 +224,6 @@
                                         <border>0</border>
                                         <option>0</option>
                                         <object class="wxRadioBox" name="radio_box_data" base="EditRadioBox">
-                                            <foreground>#ff7f00</foreground>
                                             <style>wxRA_SPECIFY_ROWS</style>
                                             <selection>0</selection>
                                             <dimension>0</dimension>
@@ -232,6 +232,9 @@
                                                 <choice>Element</choice>
                                                 <choice>Cluster</choice>
                                             </choices>
+                                            <events>
+                                                <handler event="EVT_RADIOBOX">evt_radiobox_data</handler>
+                                            </events>
                                         </object>
                                     </object>
                                     <object class="sizeritem">
@@ -367,7 +370,6 @@
                                         <border>0</border>
                                         <option>0</option>
                                         <object class="wxRadioBox" name="radio_box_provider" base="EditRadioBox">
-                                            <foreground>#ff7f00</foreground>
                                             <style>wxRA_SPECIFY_ROWS</style>
                                             <selection>0</selection>
                                             <dimension>0</dimension>
@@ -376,6 +378,9 @@
                                                 <choice>Element</choice>
                                                 <choice>Cluster</choice>
                                             </choices>
+                                            <events>
+                                                <handler event="EVT_RADIOBOX">evt_radio_box_provider</handler>
+                                            </events>
                                         </object>
                                     </object>
                                     <object class="sizeritem">
@@ -456,6 +461,9 @@
                                                 <choice>PartySelf</choice>
                                                 <choice>PartyIdentified</choice>
                                             </choices>
+                                            <events>
+                                                <handler event="EVT_RADIOBOX">evt_radiobox_subject</handler>
+                                            </events>
                                         </object>
                                     </object>
                                     <object class="sizeritem">
@@ -1333,13 +1341,104 @@
                         <flag>wxEXPAND</flag>
                         <border>0</border>
                         <option>1</option>
+                        <object class="wxBoxSizer" name="sizer_62_copy" base="EditBoxSizer">
+                            <orient>wxVERTICAL</orient>
+                            <object class="sizeritem">
+                                <flag>wxEXPAND</flag>
+                                <border>0</border>
+                                <option>1</option>
+                                <object class="wxStaticBoxSizer" name="sizer_64_copy" base="EditStaticBoxSizer">
+                                    <orient>wxHORIZONTAL</orient>
+                                    <label></label>
+                                    <object class="sizeritem">
+                                        <flag>wxEXPAND</flag>
+                                        <border>0</border>
+                                        <option>1</option>
+                                        <object class="EditableListControl" name="list_ctrl_identifier" base="EditListCtrl">
+                                            <style>wxLC_REPORT|wxSUNKEN_BORDER</style>
+                                        </object>
+                                    </object>
+                                </object>
+                            </object>
+                            <object class="sizeritem">
+                                <flag>wxEXPAND</flag>
+                                <border>0</border>
+                                <option>0</option>
+                                <object class="wxBoxSizer" name="sizer_63_copy" base="EditBoxSizer">
+                                    <orient>wxHORIZONTAL</orient>
+                                    <object class="sizeritem">
+                                        <border>0</border>
+                                        <option>0</option>
+                                        <object class="wxButton" name="button_add" base="EditButton">
+                                            <label>Add</label>
+                                            <events>
+                                                <handler event="EVT_BUTTON">evt_button_add</handler>
+                                            </events>
+                                        </object>
+                                    </object>
+                                    <object class="sizeritem">
+                                        <border>0</border>
+                                        <option>1</option>
+                                        <object class="spacer" name="spacer" base="EditSpacer">
+                                            <height>20</height>
+                                            <width>20</width>
+                                        </object>
+                                    </object>
+                                    <object class="sizeritem">
+                                        <border>0</border>
+                                        <option>0</option>
+                                        <object class="wxButton" name="button_remove" base="EditButton">
+                                            <label>Remove</label>
+                                            <events>
+                                                <handler event="EVT_BUTTON">evt_button_remove</handler>
+                                            </events>
+                                        </object>
+                                    </object>
+                                </object>
+                            </object>
+                        </object>
+                    </object>
+                    <object class="sizeritem">
+                        <flag>wxEXPAND</flag>
+                        <border>0</border>
+                        <option>0</option>
                         <object class="wxStaticBoxSizer" name="sizer_48" base="EditStaticBoxSizer">
                             <orient>wxHORIZONTAL</orient>
                             <label>language</label>
                             <object class="sizeritem">
                                 <border>0</border>
+                                <option>0</option>
+                                <object class="wxRadioBox" name="radio_box_language" base="EditRadioBox">
+                                    <style>wxRA_SPECIFY_ROWS</style>
+                                    <selection>0</selection>
+                                    <dimension>0</dimension>
+                                    <label>Selected?</label>
+                                    <choices>
+                                        <choice>No</choice>
+                                        <choice>Yes</choice>
+                                    </choices>
+                                    <events>
+                                        <handler event="EVT_RADIOBOX">evt_radiobox_language</handler>
+                                    </events>
+                                </object>
+                            </object>
+                            <object class="sizeritem">
+                                <flag>wxEXPAND</flag>
+                                <border>0</border>
                                 <option>1</option>
-                                <object class="wxTextCtrl" name="text_ctrl_language" base="EditTextCtrl">
+                                <object class="spacer" name="spacer" base="EditSpacer">
+                                    <height>20</height>
+                                    <width>20</width>
+                                </object>
+                            </object>
+                            <object class="sizeritem">
+                                <border>0</border>
+                                <option>0</option>
+                                <object class="wxChoice" name="choice_language" base="EditChoice">
+                                    <selection>0</selection>
+                                    <disabled>1</disabled>
+                                    <choices>
+                                    </choices>
                                 </object>
                             </object>
                         </object>
@@ -1355,7 +1454,7 @@
                     <object class="sizeritem">
                         <flag>wxEXPAND</flag>
                         <border>0</border>
-                        <option>1</option>
+                        <option>0</option>
                         <object class="wxStaticBoxSizer" name="sizer_49" base="EditStaticBoxSizer">
                             <orient>wxHORIZONTAL</orient>
                             <label>issuer</label>
@@ -1378,7 +1477,7 @@
                     <object class="sizeritem">
                         <flag>wxEXPAND</flag>
                         <border>0</border>
-                        <option>1</option>
+                        <option>0</option>
                         <object class="wxStaticBoxSizer" name="sizer_50" base="EditStaticBoxSizer">
                             <orient>wxHORIZONTAL</orient>
                             <label>assigner</label>
@@ -1401,7 +1500,7 @@
                     <object class="sizeritem">
                         <flag>wxEXPAND</flag>
                         <border>0</border>
-                        <option>1</option>
+                        <option>0</option>
                         <object class="wxStaticBoxSizer" name="sizer_51" base="EditStaticBoxSizer">
                             <orient>wxHORIZONTAL</orient>
                             <label>id_name</label>
@@ -1424,7 +1523,7 @@
                     <object class="sizeritem">
                         <flag>wxEXPAND</flag>
                         <border>0</border>
-                        <option>1</option>
+                        <option>0</option>
                         <object class="wxStaticBoxSizer" name="sizer_52" base="EditStaticBoxSizer">
                             <orient>wxHORIZONTAL</orient>
                             <label>valid_time_begin</label>
@@ -1447,7 +1546,7 @@
                     <object class="sizeritem">
                         <flag>wxEXPAND</flag>
                         <border>0</border>
-                        <option>1</option>
+                        <option>0</option>
                         <object class="wxStaticBoxSizer" name="sizer_53" base="EditStaticBoxSizer">
                             <orient>wxHORIZONTAL</orient>
                             <label>valid_time_end</label>
@@ -1467,24 +1566,7 @@
                 <option>1</option>
                 <object class="wxStaticBoxSizer" name="sizer_23_copy" base="EditStaticBoxSizer">
                     <orient>wxVERTICAL</orient>
-                    <label>dv</label>
-                    <object class="sizeritem">
-                        <flag>wxEXPAND</flag>
-                        <border>0</border>
-                        <option>1</option>
-                        <object class="wxStaticBoxSizer" name="sizer_28_copy" base="EditStaticBoxSizer">
-                            <orient>wxVERTICAL</orient>
-                            <label>enumeration</label>
-                            <object class="sizeritem">
-                                <flag>wxEXPAND</flag>
-                                <border>0</border>
-                                <option>1</option>
-                                <object class="EditableListBox" name="editable_list_box_enumeration" base="EditTextCtrl">
-                                    <value>Values</value>
-                                </object>
-                            </object>
-                        </object>
-                    </object>
+                    <label>coded_string</label>
                     <object class="sizeritem">
                         <flag>wxEXPAND</flag>
                         <border>0</border>
@@ -1694,7 +1776,7 @@
                 <option>1</option>
                 <object class="wxStaticBoxSizer" name="sizer_23_copy_1" base="EditStaticBoxSizer">
                     <orient>wxVERTICAL</orient>
-                    <label>dv</label>
+                    <label>coded_string</label>
                     <object class="sizeritem">
                         <flag>wxEXPAND</flag>
                         <border>0</border>