9 """ Abstract class for views which show a list of objects using a data accessor. 11 A view handles the selection of objects and allows to restore selection after refreshing. 12 On selection of an object the signal "selected" shall be emitted. 15 LABEL =
"&Abstract View" 18 ObjectHolder.__init__(self)
21 """ Update content of view. 23 Return True if successful. 28 """ Select an object in the view. 33 """ Return the last selected object in the view. 38 """ Select the last selected object in the view. 43 """ Stop all operations in view. 48 """ Return is operations are ongoing in view. 57 QWidget.__init__(self)
58 AbstractView.__init__(self)
61 QWidget.mousePressEvent(self,event)
62 if event.button()==Qt.RightButton:
63 self.emit(SIGNAL(
"mouseRightPressed"), event.globalPos())
def mousePressEvent(self, event)
def restoreSelection(self)
def __init__(self, parent=None)