Beispiel #1
0
    def contextMenuEvent(self, event):
        menu = QtGui.QMenu(parent=self)
        idxlist = self.selectedIndexes()
        if not idxlist:
            return

        idx = idxlist[0]
        if idx.isValid() and self._viv_navcol != None:
            pnode = idx.internalPointer()
            expr = pnode.rowdata[self._viv_navcol]
            v_q_ctxmenu.buildContextMenu(self.vw, expr=expr, menu=menu)

        menu.exec_(event.globalPos())
Beispiel #2
0
    def contextMenuEvent(self, event):
        if self._canv_curva:
            menu = vq_ctxmenu.buildContextMenu(self.vw, va=self._canv_curva, parent=self)
        else:
            menu = QtGui.QMenu(parent=self)

        viewmenu = menu.addMenu('view   ')
        viewmenu.addAction("Save frame to HTML", ACT(self._menuSaveToHtml))
        #TODO: Refresh menu item :)

        menu.exec_(event.globalPos())
Beispiel #3
0
    def contextMenuEvent(self, event):
        if self._canv_curva:
            menu = vq_ctxmenu.buildContextMenu(self.vw, va=self._canv_curva, parent=self)
        else:
            menu = QtGui.QMenu(parent=self)

        viewmenu = menu.addMenu('view   ')
        viewmenu.addAction("Save frame to HTML", ACT(self._menuSaveToHtml))
        viewmenu.addAction("Refresh", ACT(self.refresh))

        menu.exec_(event.globalPos())
Beispiel #4
0
    def contextMenuEvent(self, event):
        if self._canv_curva is not None:
            menu = vq_ctxmenu.buildContextMenu(self.vw, va=self._canv_curva, parent=self)
        else:
            menu = QMenu(parent=self)

        self.viewmenu = menu.addMenu('view   ')
        self.viewmenu.addAction("Save frame to HTML", ACT(self._menuSaveToHtml))
        self.viewmenu.addAction("Refresh", ACT(self.refresh))
        self.viewmenu.addAction("Paint Up", ACT(self.paintUp.emit))
        self.viewmenu.addAction("Paint Down", ACT(self.paintDown.emit))
        self.viewmenu.addAction("Paint Down until remerge", ACT(self.paintMerge.emit))

        menu.exec_(event.globalPos())
Beispiel #5
0
    def contextMenuEvent(self, event):
        if self._canv_curva != None:
            menu = vq_ctxmenu.buildContextMenu(self.vw, va=self._canv_curva, parent=self)
        else:
            menu = QMenu(parent=self)

        self.viewmenu = menu.addMenu('view   ')
        #self.viewmenu.addAction("Save frame to HTML", ACT(self._menuSaveToHtml))
        self.viewmenu.addAction("Refresh", ACT(self.refresh))
        self.viewmenu.addAction("Paint Up", ACT(self.paintUp.emit))
        self.viewmenu.addAction("Paint Down", ACT(self.paintDown.emit))
        self.viewmenu.addAction("Paint Down until remerge", ACT(self.paintMerge.emit))

        menu.exec_(event.globalPos())
Beispiel #6
0
 def initMemWindowMenu(self, va, menu):
     nav = self.parent(
     )  # our parent is always a VQVivMemoryWindow (nav target)
     viv_q_ctxmenu.buildContextMenu(self.vw, va=va, menu=menu, nav=nav)
Beispiel #7
0
 def nodeContextMenu(self, pos, nid, nprops):
     menu = QMenu(parent=self)
     viv_q_ctxmenu.buildContextMenu(self.vw, va=nid, menu=menu)
     menu.exec_(pos)
Beispiel #8
0
 def nodeContextMenu(self, pos, nid, nprops):
     menu = QtGui.QMenu(parent=self)
     viv_q_ctxmenu.buildContextMenu(self.vw, va=nid, menu=menu)
     menu.exec_(pos)
 def contextMenuEvent(self, event):
     if self._canv_curva:
         menu = vq_ctxmenu.buildContextMenu(self.vw,
                                            va=self._canv_curva,
                                            parent=self)
         menu.exec_(event.globalPos())
Beispiel #10
0
 def contextMenuEvent(self, event):
     if self._canv_curva:
         menu = vq_ctxmenu.buildContextMenu(self.vw, va=self._canv_curva, parent=self)
         menu.exec_(event.globalPos())
Beispiel #11
0
 def initMemWindowMenu(self, va, menu):
     nav = self.parent() # our parent is always a VQVivMemoryWindow (nav target)
     viv_q_ctxmenu.buildContextMenu(self.vw, va=va, menu=menu, nav=nav)