예제 #1
0
 def __init__(self, application=None, name=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
     self.registerFiletypesFromTabController(ConfigEditorTabController)
     self.addNewFileAction("New configuration file", self.newFile)
     self.application().commandLineParser().add_option(
         "-s", "--saveimage", dest="saveimage", help="save center view to image FILE", metavar="FILE"
     )
예제 #2
0
 def __init__(self, application=None, name=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
     self.registerFiletypesFromTabController(ConfigEditorTabController)
     self.addNewFileAction("New configuration file", self.newFile)
     self.application().commandLineParser().add_option(
         "-s",
         "--saveimage",
         dest="saveimage",
         help="save center view to image FILE",
         metavar="FILE")
예제 #3
0
 def testBrowser(self):
     logging.debug(self.__class__.__name__ +': testRun()')
     self.app=Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test Browser")
     self.plugin=BrowserPlugin(self.app)
     self.plugin.startUp()
     self.tab = BrowserTab(self.app.mainWindow())
     self.controller = BrowserTabController(self.plugin)
     self.controller.setDataAccessor(TestDataAccessor())
     self.tab.setController(self.controller)
     self.app.mainWindow().addTab(self.tab)
     self.controller.updateContent()
     self.controller.updateViewMenu()
     if not hasattr(unittest,"NO_GUI_TEST"):
         self.app.run()
예제 #4
0
class BrowserTestCase(unittest.TestCase):
    def testBrowser(self):
        logging.debug(self.__class__.__name__ +': testRun()')
        self.app=Application(sys.argv)
        self.app.mainWindow().setWindowTitle("test Browser")
        self.plugin=BrowserPlugin(self.app)
        self.plugin.startUp()
        self.tab = BrowserTab(self.app.mainWindow())
        self.controller = BrowserTabController(self.plugin)
        self.controller.setDataAccessor(TestDataAccessor())
        self.tab.setController(self.controller)
        self.app.mainWindow().addTab(self.tab)
        self.controller.updateContent()
        self.controller.updateViewMenu()
        if not hasattr(unittest,"NO_GUI_TEST"):
            self.app.run()
예제 #5
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self._fillEventNavigatorMenu()
예제 #6
0
 def __init__(self, application=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
예제 #7
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self._fillEventNavigatorMenu()
예제 #8
0
 def __init__(self, application=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
예제 #9
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self.addCenterView(NoneView)
     self.addCenterView(ConnectionStructureView,True)
     self.addCenterView(SequenceStructureView)
예제 #10
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self.addCenterView(NoneView)
     self.addCenterView(ConnectionStructureView, True)
     self.addCenterView(SequenceStructureView)