Show
Ignore:
Timestamp:
06/15/08 17:41:20 (5 years ago)
Author:
nopper
Message:

Adding a terminal plugin and implementing some apis

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/UmitPlugins/umitPlugin/Core.py

    r3007 r3009  
    2929class Core(object): 
    3030    def __init__(self): 
    31         print "IMPLEMENT ME MAN! I'M CoreObject.__init__" 
     31        self.mainwindow = None 
    3232        gtk.about_dialog_set_url_hook(self.__about_dialog_url, None) 
     33 
     34    # 
     35    # MainWindow related functions 
     36     
     37    def get_main_toolbar(self): 
     38        "@return the toolbar of the MainWindow" 
     39        return self.mainwindow.toolbar 
     40 
     41    def get_main_menu(self): 
     42        "@return the menubar of the MainWindow" 
     43        return self.mainwindow.menubar 
     44     
     45    def get_main_scan_notebook(self): 
     46        "@return the scan_notebook of the MainWindow" 
     47        return self.mainwindow.scan_notebook 
    3348 
    3449    def get_need(self, reader, needstr, classname=None):