def __init__(self): self.application = None self.splash = None self.mainWindow = None self.skin = None self.screenWidth = 0 self.screenHeight = 0 self.version = "unknown" self.project = CodimensionProject() self.pluginManager = CDMPluginManager() self.briefModinfoCache = BriefModuleInfoCache() self.runParamsCache = RunParametersCache() if os.path.isfile(settingsDir + "runparamscache"): self.runParamsCache.deserialize(settingsDir + "runparamscache") self.pylintAvailable = self.__checkPylint() self.graphvizAvailable = self.__checkGraphviz() self.pylintVersion = None if self.pylintAvailable: self.pylintVersion = self.__getPylintVersion() if self.pylintVersion is None: self.pylintAvailable = False return
def __init__(self): QObject.__init__(self) self.__dirWatcher = None self.__formatOK = True # Avoid pylint complains self.fileName = "" self.userProjectDir = "" # Directory in ~/.codimension/uuidNN/ self.filesList = set() self.scriptName = "" # Script to run the project self.creationDate = "" self.author = "" self.license = "" self.copyright = "" self.version = "" self.email = "" self.description = "" self.uuid = "" self.__ropeProject = None self.__ropeSourceDirs = [] # Coming from separate files from ~/.codimension/uuidN/ self.todos = [] self.bookmarks = [] self.runParamsCache = RunParametersCache() self.topLevelDirs = [] self.findHistory = [] self.findNameHistory = [] self.findFileHistory = [] self.replaceHistory = [] self.tabsStatus = [] self.findFilesWhat = [] self.findFilesDirs = [] self.findFilesMasks = [] self.findClassHistory = [] self.findFuncHistory = [] self.findGlobalHistory = [] self.recentFiles = [] self.importDirs = [] self.fileBrowserPaths = [] self.ignoredExcpt = [] self.breakpoints = [] self.watchpoints = [] # Precompile the exclude filters self.__excludeFilter = [] for flt in Settings().projectFilesFilters: self.__excludeFilter.append(re.compile(flt)) return
def __resetValues(self): """ Initializes or resets all the project members """ # Empty file name means that the project has not been loaded or # created. This must be an absolute path. self.fileName = "" self.userProjectDir = "" # Generated having the project dir Full paths are stored. # The set holds all files and directories. The dirs end with os.path.sep self.filesList = set() self.scriptName = "" self.creationDate = "" self.author = "" self.license = "" self.copyright = "" self.version = "" self.email = "" self.description = "" self.uuid = "" # Coming from separate files from ~/.codimension/uuidN/ self.todos = [] self.bookmarks = [] self.runParamsCache = RunParametersCache() self.topLevelDirs = [] self.findHistory = [] self.findNameHistory = [] self.findFileHistory = [] self.replaceHistory = [] self.tabsStatus = [] self.findFilesWhat = [] self.findFilesDirs = [] self.findFilesMasks = [] self.findClassHistory = [] self.findFuncHistory = [] self.findGlobalHistory = [] self.recentFiles = [] self.importDirs = [] self.fileBrowserPaths = [] self.ignoredExcpt = [] self.breakpoints = [] self.watchpoints = [] # Reset the dir watchers if so if self.__dirWatcher is not None: del self.__dirWatcher self.__dirWatcher = None return