Version: 8.3.0
gui.browser_catalog.Browser Class Reference
Inheritance diagram for gui.browser_catalog.Browser:
Collaboration diagram for gui.browser_catalog.Browser:

Public Member Functions

def init
 
def handleBut1
 
def setCata
 
- Public Member Functions inherited from gui.browser.Browser
def __init__
 
def init
 
def onDblSelect
 
def onSelect
 

Public Attributes

 rootItem
 
- Public Attributes inherited from gui.browser.Browser
 appli
 
 hSplitter
 
 objectBrowser
 
 boxManager
 
 selected
 

Detailed Description

Definition at line 24 of file browser_catalog.py.

Member Function Documentation

def gui.browser_catalog.Browser.handleBut1 (   self)

Definition at line 32 of file browser_catalog.py.

References gui.browser.Browser.appli, gui.browser.Browser.selected, and gui.Appli.Browser.selected.

Referenced by gui.browser_catalog.Browser.init().

32 
33  def handleBut1(self):
34  print "handleBut1",self.selected
35  if hasattr(self.selected,"addNode"):
36  self.selected.addNode(self.appli)
37  return
def gui.browser_catalog.Browser.init (   self)

Definition at line 25 of file browser_catalog.py.

References gui.Items.ItemPort.connect(), gui.CItems.ControlItem.connect(), gui.GraphViewer.PortItem.connect(), gui.CItems.PortItem.connect(), gui.browser_catalog.Browser.handleBut1(), gui.browser.Browser.hSplitter, and gui.Appli.Browser.hSplitter.

25 
26  def init(self):
27  self.setStretchFactor(self.hSplitter,10)
28  row2=QHBox(self)
29  but1=QPushButton( "Add node", row2 )
30  but1.setFixedSize( but1.sizeHint())
31  self.connect( but1, SIGNAL("clicked()"), self.handleBut1 )
def gui.browser_catalog.Browser.setCata (   self,
  cata 
)

Definition at line 38 of file browser_catalog.py.

38 
39  def setCata(self,cata):
40  self.rootItem=cataitems.Cata(cata)
41  self.objectBrowser.additem(self.rootItem)
42  self.boxManager.setRootItem(self.rootItem)
43 

Member Data Documentation

gui.browser_catalog.Browser.rootItem

Definition at line 39 of file browser_catalog.py.


The documentation for this class was generated from the following file: