def __setupTreeContextMenu( self ):
self.debugLog( '__setupTreeContextMenu' )
# --- setup scm_type specific menu
for scm_type in self.all_ui_components:
self.debugLog( 'calling setupTreeContextMenu for %r' % (scm_type,) )
m = QtWidgets.QMenu( self )
m.addSection( T_('Folder Actions') )
self._addMenu( m, T_('&Command Shell'), self.treeActionShell, self.enablerFolderExists, 'toolbar_images/terminal.png' )
self._addMenu( m, T_('&File Browser'), self.treeActionFileBrowse, self.enablerFolderExists, 'toolbar_images/file_browser.png' )
self.all_ui_components[ scm_type ].setupTreeContextMenu( m, self._addMenu )
评论列表
文章目录