def __init__(self, vcsObject, browserObject, projectObject, isTranslationsBrowser,
     parent = None, name = None):
     """
     Constructor
     
     @param vcsObject reference to the vcs object
     @param browserObject reference to the project browser object
     @param projectObject reference to the project object
     @param isTranslationsBrowser flag indicating, the helper is requested for the
         translations browser (this needs some special treatment)
     @param parent parent widget (QWidget)
     @param name name of this object (string or QString)
     """
     VcsProjectBrowserHelper.__init__(self, vcsObject, browserObject, projectObject,
         isTranslationsBrowser, parent, name)
 def __init__(self, vcsObject, browserObject, projectObject,
              isTranslationsBrowser, parent=None, name=None):
     """
     Constructor
     
     @param vcsObject reference to the vcs object
     @param browserObject reference to the project browser object
     @param projectObject reference to the project object
     @param isTranslationsBrowser flag indicating, the helper is requested
         for the translations browser (this needs some special treatment)
     @param parent parent widget (QWidget)
     @param name name of this object (string)
     """
     VcsProjectBrowserHelper.__init__(self, vcsObject, browserObject,
                                      projectObject, isTranslationsBrowser,
                                      parent, name)
    def __init__(self,
                 vcsObject,
                 browserObject,
                 projectObject,
                 isTranslationsBrowser,
                 parent=None,
                 name=None):
        """
        Constructor
        
        @param vcsObject reference to the vcs object
        @param browserObject reference to the project browser object
        @param projectObject reference to the project object
        @param isTranslationsBrowser flag indicating, the helper is requested
            for the translations browser (this needs some special treatment)
        @param parent parent widget (QWidget)
        @param name name of this object (string)
        """
        VcsProjectBrowserHelper.__init__(self, vcsObject, browserObject,
                                         projectObject, isTranslationsBrowser,
                                         parent, name)

        # instantiate the extensions
        from .ShelveExtension.ProjectBrowserHelper import \
            ShelveProjectBrowserHelper
        from .LargefilesExtension.ProjectBrowserHelper import \
            LargefilesProjectBrowserHelper
        self.__extensions = {
            "shelve":
            ShelveProjectBrowserHelper(vcsObject, browserObject,
                                       projectObject),
            "largefiles":
            LargefilesProjectBrowserHelper(vcsObject, browserObject,
                                           projectObject),
        }

        self.__extensionMenuTitles = {}
        for extension in self.__extensions:
            self.__extensionMenuTitles[
                self.__extensions[extension].menuTitle()] = extension
        self.__extensionMenus = {}
        for extension in self.__extensions:
            self.__extensionMenus[extension] = \
                self.__extensions[extension].initMenus()
示例#4
0
 def __init__(self, vcsObject, browserObject, projectObject,
              isTranslationsBrowser, parent=None, name=None):
     """
     Constructor
     
     @param vcsObject reference to the vcs object
     @param browserObject reference to the project browser object
     @param projectObject reference to the project object
     @param isTranslationsBrowser flag indicating, the helper is requested
         for the translations browser (this needs some special treatment)
     @param parent parent widget (QWidget)
     @param name name of this object (string)
     """
     VcsProjectBrowserHelper.__init__(self, vcsObject, browserObject,
                                      projectObject, isTranslationsBrowser,
                                      parent, name)
     
     # instantiate the extensions
     from .ShelveExtension.ProjectBrowserHelper import \
         ShelveProjectBrowserHelper
     from .LargefilesExtension.ProjectBrowserHelper import \
         LargefilesProjectBrowserHelper
     self.__extensions = {
         "shelve": ShelveProjectBrowserHelper(
             vcsObject, browserObject, projectObject),
         "largefiles": LargefilesProjectBrowserHelper(
             vcsObject, browserObject, projectObject),
     }
     
     self.__extensionMenuTitles = {}
     for extension in self.__extensions:
         self.__extensionMenuTitles[
             self.__extensions[extension].menuTitle()] = extension
     self.__extensionMenus = {}
     for extension in self.__extensions:
         self.__extensionMenus[extension] = \
             self.__extensions[extension].initMenus()