def onAddConnector(self,evt):
   dlg = ConnectorDialog(self)
   if (dlg.ShowModal() == armid.CONNECTOR_BUTTONCOMMIT_ID):
     self.theSelectedIdx = self.GetItemCount()
     self.InsertStringItem(self.theSelectedIdx,dlg.name())
     self.SetStringItem(self.theSelectedIdx,1,dlg.fromComponent())
     self.SetStringItem(self.theSelectedIdx,2,dlg.fromRole())
     self.SetStringItem(self.theSelectedIdx,3,dlg.fromInterface())
     self.SetStringItem(self.theSelectedIdx,4,dlg.toComponent())
     self.SetStringItem(self.theSelectedIdx,5,dlg.toInterface())
     self.SetStringItem(self.theSelectedIdx,6,dlg.toRole())
     self.SetStringItem(self.theSelectedIdx,7,dlg.asset())
     self.SetStringItem(self.theSelectedIdx,8,dlg.protocol())
     self.SetStringItem(self.theSelectedIdx,9,dlg.accessRight())
Beispiel #2
0
 def onAddConnector(self, evt):
     dlg = ConnectorDialog(self)
     if (dlg.ShowModal() == armid.CONNECTOR_BUTTONCOMMIT_ID):
         self.theSelectedIdx = self.GetItemCount()
         self.InsertStringItem(self.theSelectedIdx, dlg.name())
         self.SetStringItem(self.theSelectedIdx, 1, dlg.fromComponent())
         self.SetStringItem(self.theSelectedIdx, 2, dlg.fromRole())
         self.SetStringItem(self.theSelectedIdx, 3, dlg.fromInterface())
         self.SetStringItem(self.theSelectedIdx, 4, dlg.toComponent())
         self.SetStringItem(self.theSelectedIdx, 5, dlg.toInterface())
         self.SetStringItem(self.theSelectedIdx, 6, dlg.toRole())
         self.SetStringItem(self.theSelectedIdx, 7, dlg.asset())
         self.SetStringItem(self.theSelectedIdx, 8, dlg.protocol())
         self.SetStringItem(self.theSelectedIdx, 9, dlg.accessRight())
 def onConnectorActivated(self,evt):
   self.theSelectedIdx = evt.GetIndex()
   conName = self.GetItemText(self.theSelectedIdx)
   fromComponent = self.GetItem(self.theSelectedIdx,1)
   fromRole = self.GetItem(self.theSelectedIdx,2)
   fromInterface = self.GetItem(self.theSelectedIdx,3)
   toComponent = self.GetItem(self.theSelectedIdx,4)
   toInterface = self.GetItem(self.theSelectedIdx,5)
   toRole = self.GetItem(self.theSelectedIdx,6)
   assetName = self.GetItem(self.theSelectedIdx,7)
   pName = self.GetItem(self.theSelectedIdx,8)
   arName = self.GetItem(self.theSelectedIdx,9)
    
   dlg = ConnectorDialog(self,conName,fromComponent.GetText(),fromRole.GetText(),fromInterface.GetText(),toComponent.GetText(),toInterface.GetText(),toRole.GetText(),assetName.GetText(),pName.GetText(),arName.GetText())
   if (dlg.ShowModal() == armid.CONNECTOR_BUTTONCOMMIT_ID):
     self.SetStringItem(self.theSelectedIdx,0,dlg.name())
     self.SetStringItem(self.theSelectedIdx,1,dlg.fromComponent())
     self.SetStringItem(self.theSelectedIdx,2,dlg.fromRole())
     self.SetStringItem(self.theSelectedIdx,3,dlg.fromInterface())
     self.SetStringItem(self.theSelectedIdx,4,dlg.toComponent())
     self.SetStringItem(self.theSelectedIdx,5,dlg.toInterface())
     self.SetStringItem(self.theSelectedIdx,6,dlg.toRole())
     self.SetStringItem(self.theSelectedIdx,7,dlg.asset())
     self.SetStringItem(self.theSelectedIdx,8,dlg.protocol())
     self.SetStringItem(self.theSelectedIdx,9,dlg.accessRight())
Beispiel #4
0
    def onConnectorActivated(self, evt):
        self.theSelectedIdx = evt.GetIndex()
        conName = self.GetItemText(self.theSelectedIdx)
        fromComponent = self.GetItem(self.theSelectedIdx, 1)
        fromRole = self.GetItem(self.theSelectedIdx, 2)
        fromInterface = self.GetItem(self.theSelectedIdx, 3)
        toComponent = self.GetItem(self.theSelectedIdx, 4)
        toInterface = self.GetItem(self.theSelectedIdx, 5)
        toRole = self.GetItem(self.theSelectedIdx, 6)
        assetName = self.GetItem(self.theSelectedIdx, 7)
        pName = self.GetItem(self.theSelectedIdx, 8)
        arName = self.GetItem(self.theSelectedIdx, 9)

        dlg = ConnectorDialog(self, conName, fromComponent.GetText(),
                              fromRole.GetText(), fromInterface.GetText(),
                              toComponent.GetText(), toInterface.GetText(),
                              toRole.GetText(), assetName.GetText(),
                              pName.GetText(), arName.GetText())
        if (dlg.ShowModal() == armid.CONNECTOR_BUTTONCOMMIT_ID):
            self.SetStringItem(self.theSelectedIdx, 0, dlg.name())
            self.SetStringItem(self.theSelectedIdx, 1, dlg.fromComponent())
            self.SetStringItem(self.theSelectedIdx, 2, dlg.fromRole())
            self.SetStringItem(self.theSelectedIdx, 3, dlg.fromInterface())
            self.SetStringItem(self.theSelectedIdx, 4, dlg.toComponent())
            self.SetStringItem(self.theSelectedIdx, 5, dlg.toInterface())
            self.SetStringItem(self.theSelectedIdx, 6, dlg.toRole())
            self.SetStringItem(self.theSelectedIdx, 7, dlg.asset())
            self.SetStringItem(self.theSelectedIdx, 8, dlg.protocol())
            self.SetStringItem(self.theSelectedIdx, 9, dlg.accessRight())