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

Class FinderLayout

source code

FormLayout --+
             |
            FinderLayout

Implements a layout with a finder as well a surrounding elements. It can be configured using class configuration variables, and allows easy modification through derivation

Instance Variables * finder * options

Instance Methods [hide private]
 
__new__(cls, *args, **kwargs) source code
 
__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
    Subclass Interface
 
_create_finder_menu(self, menu)
Create a static menu for the finder.
source code
 
_create_stack_menu(self, menu) source code
 
_create_button_layout(self)
Create a layout with two main buttons, one to confirm, the other to cancel the operation :return: parent layout containing the buttons
source code
    Callbacks
 
_on_stack_remove_item(self, *args) source code
 
_close_parent_window(self)
helper routine closing the parent window if there is one
source code
 
_confirm_button_pressed(self, *args)
Called when the ok button was pressed to finalize the operation
source code
 
_cancel_button_pressed(self, *args)
Called when the cancel button was pressed, terminating the operation without any changes.
source code
 
_build_bookmark_popup(self, popup, *args) source code
 
_on_add_bookmark(self, item, *args) source code
 
_on_remove_bookmark(self, item, *args) source code
 
_on_bookmark_change(self, root, url)
Propagate changed bookmarks to changed roots.
source code
Class Variables [hide private]
    Configuration
  k_confirm_name = "OK"
  k_cancel_name = "Cancel"
  k_stack_item_remove_name = "Remove Item"
  t_finder = Finder
  t_finder_provider = FileProvider
  t_filepath = FilePathControl
  t_options = None
hash(x)
  t_bookmarks = BookmarkControl
  t_root_selector = FileRootSelectorControl
  t_stack = None
hash(x)
  t_filter = FileFilterControl
Method Details [hide private]

_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

_cancel_button_pressed(self, *args)

source code 
Called when the cancel button was pressed, terminating the operation without any changes. :note: if our parent is a window, we will close it through deletion

_on_add_bookmark(self, item, *args)

source code 
Decorators:
  • @logException

_on_remove_bookmark(self, item, *args)

source code 
Decorators:
  • @logException

_on_bookmark_change(self, root, url)

source code 
Propagate changed bookmarks to changed roots. If necessary, add a new root to the root selector. Otherwise just set the root and url of the finder
Decorators:
  • @logException