Add accessor functions for scene and treeview to labeltool

This commit is contained in:
Mika Fischer
2011-06-16 20:14:14 +02:00
parent 0629384b07
commit b006b2d4f8
+16
View File
@@ -333,6 +333,12 @@ class LabelTool(QObject):
###
### Scene functions
###___________________________________________________________________________________________
def scene(self):
if self._mainwindow is None:
return None
else:
return self._mainwindow.scene
def selectNextAnnotation(self):
if self._mainwindow is not None:
return self._mainwindow.scene.selectNextItem()
@@ -344,3 +350,13 @@ class LabelTool(QObject):
def exitInsertMode(self):
if self._mainwindow is not None:
return self._mainwindow.buttonarea.exitInsertMode()
###
### TreeView functions
###___________________________________________________________________________________________
def treeview(self):
if self._mainwindow is None:
return None
else:
return self._mainwindow.treeview