def __init__(self): TreeView.__init__(self) #, debug="categories") #XXX self._tree = None self._sortedBy = None # The table used to fill in the tree. It is a list of dicts. Each # dict represents one row in the tree/outliner. This dictionary is # also (because it is convenient) used to store data in addition to # the named rows of the XUL tree. e.g., # [ {"category-name": "My Templates", # row 0 # "node": <Node instance for this category>}, # ... ] # This attribute is re-generated from self.templateTree whenever # the rows change (say, by the user opening a category with # sub-categories). self._data = [] self._prefSvc = components.classes["@activestate.com/koPrefService;1"]\ .getService().prefs # global prefs self.templateTree = None # Working copy of template tree Nodes. self.selectedTemplateByCategory = None self.categoryIsOpen = None self.atomSvc = components.classes["@mozilla.org/atom-service;1"].\ getService(components.interfaces.nsIAtomService) self.folderOpenAtom = self.atomSvc.getAtom("folderOpen") self.folderClosedAtom = self.atomSvc.getAtom("folderClosed")
def __init__(self): TreeView.__init__(self, debug=0) self._data = [] self._tree = None self._sortedBy = None self.currentDir = None self._dirs = []
def __init__(self): TreeView.__init__(self) # for debug logging: , debug="languageStatus") self._rows = [] # Atoms for styling the checkboxes. atomSvc = components.classes["@mozilla.org/atom-service;1"].\ getService(components.interfaces.nsIAtomService) self._sortColAtom = atomSvc.getAtom("sort-column") self._filter = self._filter_lc = ""
def __init__(self): TreeView.__init__(self) #, debug="templates") #XXX self._data = [] self._tree = None self._sortedBy = None self.atomSvc = components.classes["@mozilla.org/atom-service;1"].\ getService(components.interfaces.nsIAtomService) self.defaultLanguageAtom = self.atomSvc.getAtom("DefaultLanguage")
def __init__(self, uiDriver): # uiDriver is a JavaScript instance, so we must *always* proxy any # calls made to this object through the main thread. self.uiDriver = getProxyForObject( 1, # 1 means the main thread. components.interfaces.koIFastOpenUIDriver, uiDriver, PROXY_ALWAYS | PROXY_SYNC) TreeView.__init__(self) #, debug="fastopen") self._tree = None self._selectionProxy = None self.resetHits()
def __init__(self): TreeView.__init__(self) # for debug logging: , debug="catalogs") self._rows = [] koDirSvc = components.classes["@activestate.com/koDirs;1"].\ getService(components.interfaces.koIDirs) self.norm_user_apicatalogs_dir \ = normpath(normcase(join(koDirSvc.userDataDir, "apicatalogs"))) # Atoms for styling the checkboxes. self.atomSvc = components.classes["@mozilla.org/atom-service;1"].\ getService(components.interfaces.nsIAtomService) self._sortColAtom = self.atomSvc.getAtom("sort-column")
def __init__(self): TreeView.__init__(self, debug=0) #TODO: lock guard for this data self._data = [] self._unfiltered_data = [] # When set (not None), it's a tuple of (include_word_list, exclude_word_list) self._filter_words = None self._tree = None self._sortedBy = None self.id = None atomSvc = components.classes["@mozilla.org/atom-service;1"].\ getService(components.interfaces.nsIAtomService) self._warning_atom = atomSvc.getAtom("warning")
def __init__(self, debug=None): TreeView.__init__(self, debug=0) self._rows = [] # Mapping of node "scoped-name" to a boolean indicating if that # node is open (or should be) in the Code Browser. self._nodeIsOpen = {} self._sortedBy = 'name' self._sortDir = 0 self._tree = None self.statusObserver = None #self.log = logging.getLogger("ProjectTreeView") #self.log.setLevel(logging.DEBUG) self._observerSvc = components.classes["@mozilla.org/observer-service;1"].\ getService(components.interfaces.nsIObserverService) self._observerSvc.addObserver(self, "file_status",True) # weakref
def __init__(self): #print "XXX [%s] KoRunTerminal.__init__()" % id(self) # Initialization of tree and parsing attributes. TreeView.__init__(self, debug=0) koTerminalHandler.__init__(self) self._pbbuf = "" self._data = [] self._sortedBy = None self._parseRegex = None self._cwd = None self._currentFile = None # These two vars are used to group update calls to the outliner, # .rowCountChanged(), for performance reasons. self._updateGroupSize = 20 self._updateGroupCounter = 0 # Used to proxy calls to the UI self._treeProxy = None
def __init__(self, debug=None): TreeView.__init__(self, debug=0) self._rows = [] # Mapping of node "scoped-name" to a boolean indicating if that # node is open (or should be) in the Code Browser. self._nodeIsOpen = {} self._sortedBy = 'name' self._sortDir = 0 self._tree = None self.statusObserver = None #self.log = logging.getLogger("ProjectTreeView") #self.log.setLevel(logging.DEBUG) self._observerSvc = components.classes["@mozilla.org/observer-service;1"].\ getService(components.interfaces.nsIObserverService) self._observerSvc.addObserver(self, "file_status", True) # weakref
def __init__(self): TreeView.__init__(self, debug=0) self._exts = [] # A string key indicating by which column the data is # sorted. self._sortedBy = None
def __init__(self): TreeView.__init__(self) #, debug="fastopen") self._rows = []
def __init__(self): TreeView.__init__(self, debug=0) self._tree = None self._sortedBy = None self._dirs = []
def __init__(self): TreeView.__init__(self, debug=0) self._data = [] self._sortedBy = None