Beispiel #1
0
 def onAddAssociation(self, evt):
     dlg = GoalRefinementDialog(self,
                                self.dbProxy,
                                self.theCurrentEnvironment,
                                isGoal=self.goalList)
     if (dlg.ShowModal() == GOALREFINEMENT_BUTTONCOMMIT_ID):
         self.theSelectedIdx = self.GetItemCount()
         self.InsertStringItem(self.theSelectedIdx, dlg.goal())
         self.SetStringItem(self.theSelectedIdx, 1, dlg.goalDimension())
         self.SetStringItem(self.theSelectedIdx, 2, dlg.refinement())
         self.SetStringItem(self.theSelectedIdx, 3, dlg.alternate())
         self.SetStringItem(self.theSelectedIdx, 4, dlg.rationale())
 def onAddAssociation(self, evt):
     dlg = GoalRefinementDialog(self, self.dbProxy, self.theCurrentEnvironment, isGoal=self.goalList)
     if dlg.ShowModal() == GOALREFINEMENT_BUTTONCOMMIT_ID:
         self.theSelectedIdx = self.GetItemCount()
         self.InsertStringItem(self.theSelectedIdx, dlg.goal())
         self.SetStringItem(self.theSelectedIdx, 1, dlg.goalDimension())
         self.SetStringItem(self.theSelectedIdx, 2, dlg.refinement())
         self.SetStringItem(self.theSelectedIdx, 3, dlg.alternate())
         self.SetStringItem(self.theSelectedIdx, 4, dlg.rationale())
Beispiel #3
0
    def onGoalActivated(self, evt):
        self.theSelectedIdx = evt.GetIndex()
        goal = self.GetItemText(self.theSelectedIdx)
        goalDim = self.GetItem(self.theSelectedIdx, 1)
        refinement = self.GetItem(self.theSelectedIdx, 2)
        alternate = self.GetItem(self.theSelectedIdx, 3)
        rationale = self.GetItem(self.theSelectedIdx, 4)

        dlg = GoalRefinementDialog(self, self.dbProxy,
                                   self.theCurrentEnvironment, goal,
                                   goalDim.GetText(), refinement.GetText(),
                                   alternate.GetText())
        if (dlg.ShowModal() == GOALREFINEMENT_BUTTONCOMMIT_ID):
            self.SetStringItem(self.theSelectedIdx, 0, dlg.goal())
            self.SetStringItem(self.theSelectedIdx, 1, dlg.goalDimension())
            self.SetStringItem(self.theSelectedIdx, 2, dlg.refinement())
            self.SetStringItem(self.theSelectedIdx, 3, dlg.alternate())
            self.SetStringItem(self.theSelectedIdx, 4, dlg.rationale())
 def onGoalActivated(self,evt):
   self.theSelectedIdx = evt.GetIndex()
   goal = self.GetItemText(self.theSelectedIdx)
   goalDim = self.GetItem(self.theSelectedIdx,1)
   refinement = self.GetItem(self.theSelectedIdx,2)
   alternate = self.GetItem(self.theSelectedIdx,3)
   rationale = self.GetItem(self.theSelectedIdx,4)
    
   dlg = GoalRefinementDialog(self,self.dbProxy,self.theCurrentEnvironment,goal,goalDim.GetText(),refinement.GetText(),alternate.GetText())
   if (dlg.ShowModal() == GOALREFINEMENT_BUTTONCOMMIT_ID):
     self.SetStringItem(self.theSelectedIdx,0,dlg.goal())
     self.SetStringItem(self.theSelectedIdx,1,dlg.goalDimension())
     self.SetStringItem(self.theSelectedIdx,2,dlg.refinement())
     self.SetStringItem(self.theSelectedIdx,3,dlg.alternate())
     self.SetStringItem(self.theSelectedIdx,4,dlg.rationale())