Example #1
0
 def updateViewMenu(self):
     EventBrowserTabController.updateViewMenu(self)
     self.plugin().expandToDepthAction().setVisible(True)
     self.plugin().boxContentAction().setVisible(False)
     self.disconnect(self.tab().centerView(), SIGNAL("toggleCollapsed"),
                     self.toggleCollapsed)
     self.connect(self.tab().centerView(), SIGNAL("toggleCollapsed"),
                  self.toggleCollapsed)
 def loadIni(self):
     """ read options from ini """
     EventBrowserTabController.loadIni(self)
     ini = self.plugin().application().ini()
     if ini.has_option("edm", "filter branches"):
         self.dataAccessor().setFilterBranches(ini.get("edm", "filter branches")=="True")
     if ini.has_option("edm", "underscore properties"):
         self.dataAccessor().setUnderscoreProperties(ini.get("edm", "underscore properties")=="True")
     self.plugin().hideUnderscorePropertiesAction().setChecked(not self.dataAccessor().underscoreProperties())
 def saveIni(self):
     """ write options to ini """
     EventBrowserTabController.saveIni(self)
     ini = self.plugin().application().ini()
     if not ini.has_section("edm"):
         ini.add_section("edm")
     ini.set("edm", "filter branches", self.dataAccessor().filterBranches())
     ini.set("edm", "underscore properties", self.dataAccessor().underscoreProperties())
     self.plugin().application().writeIni()
Example #4
0
 def saveIni(self):
     """ write options to ini """
     EventBrowserTabController.saveIni(self)
     ini = self.plugin().application().ini()
     if not ini.has_section("edm"):
         ini.add_section("edm")
     ini.set("edm", "filter branches", self.dataAccessor().filterBranches())
     ini.set("edm", "underscore properties",
             self.dataAccessor().underscoreProperties())
     self.plugin().application().writeIni()
Example #5
0
 def loadIni(self):
     """ read options from ini """
     EventBrowserTabController.loadIni(self)
     ini = self.plugin().application().ini()
     if ini.has_option("edm", "filter branches"):
         self.dataAccessor().setFilterBranches(
             ini.get("edm", "filter branches") == "True")
     if ini.has_option("edm", "underscore properties"):
         self.dataAccessor().setUnderscoreProperties(
             ini.get("edm", "underscore properties") == "True")
     self.plugin().hideUnderscorePropertiesAction().setChecked(
         not self.dataAccessor().underscoreProperties())
Example #6
0
 def testEventBrowser(self):
     logging.debug(self.__class__.__name__ + ': testRun()')
     self.app = Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test EventBrowser")
     self.plugin = EventBrowserPlugin(self.app)
     self.plugin.startUp()
     self.tab = BrowserTab(self.app.mainWindow())
     self.controller = EventBrowserTabController(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()
Example #7
0
 def testEventBrowser(self):
     logging.debug(self.__class__.__name__ +': testRun()')
     self.app=Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test EventBrowser")
     self.plugin=EventBrowserPlugin(self.app)
     self.plugin.startUp()
     self.tab = BrowserTab(self.app.mainWindow())
     self.controller = EventBrowserTabController(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()
Example #8
0
 def updateCenterView(self, propertyView=True):
     if self.tab().treeView().selection():
         self.dataAccessor().read(self.tab().treeView().selection(),
                                  self._treeDepth)
     EventBrowserTabController.updateCenterView(self, propertyView)
Example #9
0
 def onSelected(self, select):
     EventBrowserTabController.onSelected(self,
                                          self.dataAccessor().read(select))
Example #10
0
 def onTreeViewSelected(self, select):
     EventBrowserTabController.onTreeViewSelected(
         self,
         self.dataAccessor().read(select, self._treeDepth))
Example #11
0
 def __init__(self, plugin):
     EventBrowserTabController.__init__(self, plugin)
     self._treeDepth = 1
 def updateCenterView(self,propertyView=True):
     if self.tab().treeView().selection():
         self.dataAccessor().read(self.tab().treeView().selection(),self._treeDepth)
     EventBrowserTabController.updateCenterView(self,propertyView)
 def onSelected(self,select):
     EventBrowserTabController.onSelected(self,self.dataAccessor().read(select))
 def onTreeViewSelected(self,select):
     EventBrowserTabController.onTreeViewSelected(self,self.dataAccessor().read(select,self._treeDepth))
 def updateViewMenu(self):
     EventBrowserTabController.updateViewMenu(self)
     self.plugin().expandToDepthAction().setVisible(True)
     self.plugin().boxContentAction().setVisible(False)
     self.disconnect(self.tab().centerView(), SIGNAL("toggleCollapsed"), self.toggleCollapsed)
     self.connect(self.tab().centerView(), SIGNAL("toggleCollapsed"), self.toggleCollapsed)
 def __init__(self, plugin):
     EventBrowserTabController.__init__(self, plugin)
     self._treeDepth=1