Version: 8.3.0
gui.browser_session.MainBrowser Class Reference
Inheritance diagram for gui.browser_session.MainBrowser:
Collaboration diagram for gui.browser_session.MainBrowser:

Public Member Functions

def __init__
 
def createWidgets
 
def handleBut1
 

Public Attributes

 appli
 
 catalogTool
 
 browser
 

Detailed Description

Definition at line 33 of file browser_session.py.

Constructor & Destructor Documentation

def gui.browser_session.MainBrowser.__init__ (   self,
  parent,
  appli 
)

Definition at line 34 of file browser_session.py.

34 
35  def __init__(self,parent,appli):
36  QMainWindow.__init__(self,parent)
37  self.appli=appli
38  self.catalogTool=parent
39  self.createWidgets()

Member Function Documentation

def gui.browser_session.MainBrowser.createWidgets (   self)

Definition at line 40 of file browser_session.py.

40 
41  def createWidgets(self):
42  box=QVBox(self)
43 
44  hb=QHBox(box)
45  self.browser=Browser(hb,self.appli)
46 
47  row2=QHBox(box)
48  but1=QPushButton( "Import catalog", row2 )
49  but1.setFixedSize( but1.sizeHint())
50  #but2=QPushButton( "Cancel", row2 )
51  self.connect( but1, SIGNAL("clicked()"), self.handleBut1 )
52  #box.connect( but2, SIGNAL("clicked()"), self.handleCancel )
53  self.setCentralWidget(box)
54  #self.resize(800,600)
def gui.browser_session.MainBrowser.handleBut1 (   self)

Definition at line 55 of file browser_session.py.

55 
56  def handleBut1(self):
57  addr=self.browser.selected.addr+"#Kernel.dir/ModulCatalog.object"
58  cata=pilot.getRuntime().loadCatalog("session",addr)
59  self.catalogTool.register(cata,self.browser.selected.addr)

Member Data Documentation

gui.browser_session.MainBrowser.appli

Definition at line 36 of file browser_session.py.

Referenced by gui.catalog.CatalogTool.importFromSession(), and gui.catalog.CatalogTool.register().

gui.browser_session.MainBrowser.browser

Definition at line 44 of file browser_session.py.

gui.browser_session.MainBrowser.catalogTool

Definition at line 37 of file browser_session.py.


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