def content_treeview_contextmenu_actions():
    
    
    actions =[]
    
    actions.append({'name':"Show in %s" % utilities.filebrowser_name().capitalize(),'func':show_content_in_file_browser})
    actions.append(None)
    actions.append({'name':"Copy",'func':copy_content_path})
    actions.append(None)
    actions.append({'name':"Flipbook",'func':flipbook})
    
    
    
    return actions
Example #2
0
def content_treeview_contextmenu_actions():

    actions = []

    actions.append({
        'name':
        "Show in %s" % utilities.filebrowser_name().capitalize(),
        'func':
        show_content_in_file_browser
    })
    actions.append(None)
    actions.append({'name': "Copy", 'func': copy_content_path})
    actions.append(None)
    actions.append({'name': "Flipbook", 'func': flipbook})

    return actions
Example #3
0
    def contextMenuEvent(self, event):

        #QMenu.actions

        menu = self.createStandardContextMenu()

        actions = menu.actions()

        reveal_action = QAction(
            "Show in %s" % utilities.filebrowser_name().capitalize(), self)

        self.connect(reveal_action, SIGNAL('triggered()'), self.reveal_path)
        action = menu.insertAction(actions[0], reveal_action)
        menu.insertSeparator(actions[0])
        #menu.addAction("Go to Location")
        menu.exec_(event.globalPos())
    def contextMenuEvent(self,event):
        
        
        #QMenu.actions
        
        menu = self.createStandardContextMenu()
        
        actions = menu.actions()
        
        reveal_action = QAction("Show in %s" % utilities.filebrowser_name().capitalize(),self)

        
        self.connect(reveal_action, SIGNAL('triggered()'),self.reveal_path)
        action = menu.insertAction(actions[0],reveal_action)
        menu.insertSeparator(actions[0])
        #menu.addAction("Go to Location")
        menu.exec_(event.globalPos())