Logo Search packages:      
Sourcecode: harpia version File versions  Download package

def harpia::harpiagcfrontend::S2iHarpiaFrontend::on_BlocksTreeView_row_activated (   self,
  treeview,
  path,
  column 
)

Callback function called when BlocksTreeView_row is activated. Loads the block in the diagram.

Definition at line 927 of file harpiagcfrontend.py.

00927                                                                        :
            """
            Callback function called when BlocksTreeView_row is activated. Loads the block in the diagram.
            """
            t_oTreeViewModel = treeview.get_model()
            t_sBlockName = t_oTreeViewModel.get_value( t_oTreeViewModel.get_iter(path), 0 )

            if t_sBlockName not in self.Blocks.keys():
                  t_nPage = self.widgets['WorkArea'].get_current_page()

                  if self.m_oGcDiagrams.has_key( t_nPage ):
                        t_oCurrentGcDiagram = self.m_oGcDiagrams[ t_nPage ]
                        t_nBlockType = -1

                        for t_oBlockTypeIter in s2idirectory.block.keys():
                              if s2idirectory.block[int(t_oBlockTypeIter)]["Label"]==t_sBlockName:
                                    t_nBlockType = t_oBlockTypeIter
                                    break
                        t_oCurrentGcDiagram.InsertBlock( t_nBlockType )
      


Generated by  Doxygen 1.6.0   Back to index