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" )
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")
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()
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()
def startUp(self): BrowserPlugin.startUp(self) self._fillEventNavigatorMenu()
def __init__(self, application=None): logging.debug(__name__ + ": __init__") BrowserPlugin.__init__(self, application)
def startUp(self): BrowserPlugin.startUp(self) self.addCenterView(NoneView) self.addCenterView(ConnectionStructureView,True) self.addCenterView(SequenceStructureView)
def startUp(self): BrowserPlugin.startUp(self) self.addCenterView(NoneView) self.addCenterView(ConnectionStructureView, True) self.addCenterView(SequenceStructureView)