示例#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)