ranger.gui.defaultui
index
/home/hut/ranger/ranger/gui/defaultui.py

# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

 
Classes
       
ranger.gui.ui.UI(ranger.gui.displayable.DisplayableContainer)
DefaultUI

 
class DefaultUI(ranger.gui.ui.UI)
    
Method resolution order:
DefaultUI
ranger.gui.ui.UI
ranger.gui.displayable.DisplayableContainer
ranger.gui.displayable.Displayable
ranger.shared.EnvironmentAware
ranger.shared.FileManagerAware
ranger.shared.Awareness
ranger.gui.curses_shortcuts.CursesShortcuts
ranger.shared.settings.SettingsAware
__builtin__.object

Methods defined here:
close_console(self)
close_embedded_pager(self)
close_pager(self)
close_taskview(self)
hint(self, text=None)
notify(self, *a, **k)
open_console(self, mode, string='', prompt=None)
open_embedded_pager(self)
open_pager(self)
open_taskview(self)
redraw_main_column(self)
scroll(self, relative)
setup(self)
Build up the UI by initializing widgets.
throbber(self, string='.', remove=False)
update_size(self)
resize all widgets

Methods inherited from ranger.gui.ui.UI:
__init__(self, env=None, fm=None)
destroy(self)
Destroy all widgets and turn off curses
draw(self)
Draw all objects in the container
finalize(self)
Finalize every object in container and refresh the window
handle_input(self)
handle_key(self, key)
Handles key input
handle_keys(self, *keys)
handle_mouse(self)
Handles mouse input
initialize(self)
initialize curses, then call setup (at the first time) and resize.
redraw(self)
Redraw all widgets
redraw_window(self)
Redraw the window. This only calls self.win.redrawwin().
set_load_mode(self, boolean)
suspend(self)
Turn off curses

Data and other attributes inherited from ranger.gui.ui.UI:
is_set_up = False
load_mode = False

Methods inherited from ranger.gui.displayable.DisplayableContainer:
add_child(self, obj)
Add the objects to the container.
click(self, event)
Recursively called on objects in container
poke(self)
Recursively called on objects in container
press(self, key)
Recursively called on objects in container
remove_child(self, obj)
Remove the object from the container.

Methods inherited from ranger.gui.displayable.Displayable:
__bool__ = __nonzero__(self)
Always True
__contains__(self, item)
Is item inside the boundaries?
item can be an iterable like [y, x] or an object with x and y methods.
__nonzero__(self)
Always True
__str__(self)
contains_point(self, y, x)
Test whether the point (with absolute coordinates) lies
within the boundaries of this object.
resize(self, y, x, hei=None, wid=None)
Resize the widget

Data and other attributes inherited from ranger.shared.EnvironmentAware:
env = None

Data and other attributes inherited from ranger.shared.FileManagerAware:
fm = None

Data descriptors inherited from ranger.shared.Awareness:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from ranger.gui.curses_shortcuts.CursesShortcuts:
addnstr(self, *args)
addstr(self, *args)
color(self, *keys)
Change the colors from now on.
color_at(self, y, x, wid, *keys)
Change the colors at the specified position
color_reset(self)
Changef='#n264'>264 265 266 267 268 269 270 271 272 273<