Version: 8.3.0
gui.PanelManager.PanelManager Class Reference
Inheritance diagram for gui.PanelManager.PanelManager:
Collaboration diagram for gui.PanelManager.PanelManager:

Public Member Functions

def __init__
 
def setRootItem
 
def setview
 

Public Attributes

 visible
 
 panels
 
 rootItem
 

Detailed Description

A PanelManager manages a collection of widget
    Each widget is associated to an item
    A widget is displayed when the associated item is double selected
    To get the associated widget : item.panel(self)

Definition at line 23 of file PanelManager.py.

Constructor & Destructor Documentation

def gui.PanelManager.PanelManager.__init__ (   self,
  parent 
)

Definition at line 29 of file PanelManager.py.

29 
30  def __init__(self,parent):
31  QWidgetStack.__init__(self,parent)
32  self.visible=None
33  self.panels={}

Member Function Documentation

def gui.PanelManager.PanelManager.setRootItem (   self,
  rootItem 
)

Definition at line 34 of file PanelManager.py.

34 
35  def setRootItem(self,rootItem):
36  self.rootItem=rootItem
37  CONNECTOR.Connect(self.rootItem,"dblselected",self.setview,())
def gui.PanelManager.PanelManager.setview (   self,
  item 
)

Definition at line 38 of file PanelManager.py.

References gui.BoxManager.BoxManager.panels, gui.PanelManager.PanelManager.panels, gui.Items.ItemPort.panels, gui.Items.ItemNode.panels, and gui.PanelManager.PanelManager.visible.

38 
39  def setview(self,item):
40  if not self.panels.has_key(item):
41  panel=item.panel(self)
42  self.panels[item]=panel
43  idd=self.addWidget(panel)
44  self.visible=item
45  self.raiseWidget(self.panels[item])

Member Data Documentation

gui.PanelManager.PanelManager.panels

Definition at line 32 of file PanelManager.py.

Referenced by gui.cataitems.Obj.panel(), gui.Items.ItemComposedNode.panel(), and gui.PanelManager.PanelManager.setview().

gui.PanelManager.PanelManager.rootItem

Definition at line 35 of file PanelManager.py.

gui.PanelManager.PanelManager.visible

Definition at line 31 of file PanelManager.py.

Referenced by gui.PanelManager.PanelManager.setview().


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