Package mrv :: Package maya :: Package ui :: Package browse :: Module control :: Class FileRootSelectorControl
[hide private]
[frames] | no frames]

Class FileRootSelectorControl

source code

TextScrollList --+
                 |
                FileRootSelectorControl

Keeps a list of possible roots which can be chosen. Each root is represented by a Provider instance.
Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
_provider_by_root(self, root)
Returns: provider instance having the given root, or None
source code
 
setItems(self, providers)
Set the given providers to be used by this instance :param providers: list of FileProvider instances
source code
 
addItem(self, provider)
Add the given provider to our list of provides
source code
 
removeItem(self, provider)
Remove the given provider from the list...
source code
 
setSelectedItem(self, item)
Fires a root_changed event if the item actually caused a selection change
source code
    Interface
 
providers(self)
Returns: list of currently used providers
source code
    Callbacks
 
_selection_changed(self, *args) source code
Class Variables [hide private]
    Signals
  root_changed = ui.Signal()
Method Details [hide private]

_provider_by_root(self, root)

source code 
Returns:
provider instance having the given root, or None

removeItem(self, provider)

source code 
Remove the given provider from the list
:param provider: FileProvider instance or root from which the provider
        can be determined

providers(self)

source code 
Returns:
list of currently used providers