Changeset 3009

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

Adding a terminal plugin and implementing some apis

Location:
branch/UmitPlugins
Files:
6 added
3 modified

Legend:

Unmodified
Added
Removed
  • branch/UmitPlugins/umitGUI/App.py

    r3002 r3009  
    6464        self.main_window.show_all() 
    6565 
    66         # Load the selected plugins 
     66        # Set the mainwindow and load the selected plugins 
     67        PluginEngine().core.mainwindow = self.main_window 
    6768        PluginEngine().load_selected_plugins() 
    6869     
  • branch/UmitPlugins/umitGUI/MainWindow.py

    r3002 r3009  
    385385        filename = None 
    386386 
    387         if page == None: 
     387        if page == None or not isinstance(page, ScanNotebookPage): 
    388388            return True 
    389389 
  • 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):