Exemplo n.º 1
0
 def __init__(self, panel):
     super(DocumentChooserAction, self).__init__(panel)
     self._model = None
     self._document = None
     self._documents = []
     self._currentIndex = -1
     self._indices = weakref.WeakKeyDictionary()
     panel.mainwindow().currentDocumentChanged.connect(self.slotDocumentChanged)
     documents.documentUpdated.connect(self.slotDocumentUpdated)
Exemplo n.º 2
0
 def __init__(self, panel):
     super(ViewdocChooserAction, self).__init__(panel)
     self._model = None
     self._viewdoc = None
     self._viewdocs = []
     self._currentIndex = -1
     self._indices = weakref.WeakKeyDictionary()
     panel.mainwindow().currentDocumentChanged.connect(self.slotEditdocChanged)
     documents.documentUpdated.connect(self.slotEditdocUpdated)
Exemplo n.º 3
0
 def __init__(self, panel):
     super(QuickInsertActions, self).__init__(panel.mainwindow())
     self.panel = weakref.ref(panel)
Exemplo n.º 4
0
 def __init__(self, panel):
     super(QuickInsertActions, self).__init__(panel.mainwindow())
     self.panel = weakref.ref(panel)