Package mrv :: Package maya :: Package ui :: Package browse :: Module layout :: Class FileReferenceFinder
[hide private]
[frames] | no frames]

Class FileReferenceFinder

source code

FormLayout --+    
             |    
  FinderLayout --+
                 |
                FileReferenceFinder

Finder Layout for creating references
Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Initialize all ui elements :param kwargs: The following keywords are defined * **defaultRoots**: default False, if True, show all roots available on the system.
source code

Inherited from FinderLayout: __new__

    Subclass Interface
 
_create_finder_menu(self, menu)
Create a static menu for the finder.
source code
 
_create_references(self, refpaths)
Create reference to the given reference paths, being strings to the file in question
source code
    Callbacks
 
_on_add_to_stack(self, menu_item, *args) source code
 
_confirm_button_pressed(self, *args)
Called when the ok button was pressed to finalize the operation
source code
Class Variables [hide private]
    Configuration
  k_add_single = "Add to Stack"
  k_add_and_confirm = "Add to Stack and Confirm"
  k_confirm_name = "Create Reference(s)"
  k_stack_item_remove_name = "Remove File from Stack"
  t_stack = FileStack
hash(x)
  t_options = None
hash(x)

Inherited from FinderLayout: k_cancel_name, t_bookmarks, t_filepath, t_filter, t_finder, t_finder_provider, t_root_selector

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Initialize all ui elements
:param kwargs: The following keywords are defined
 * **defaultRoots**: default False, if True, show all roots available
  on the system.

Overrides: FinderLayout.__init__
(inherited documentation)

_create_finder_menu(self, menu)

source code 
Create a static menu for the finder. The active parent is a popupMenu at the time of this call. The default buttons allow to quickly confirm and cancel. If a stack is present, items can be added to it
Overrides: FinderLayout._create_finder_menu
(inherited documentation)

_on_add_to_stack(self, menu_item, *args)

source code 
Decorators:
  • @notifyException

_confirm_button_pressed(self, *args)

source code 
Called when the ok button was pressed to finalize the operation
Decorators:
  • @notifyException
Overrides: FinderLayout._confirm_button_pressed
(inherited documentation)