diff options
author | hut <hut@lavabit.com> | 2009-12-31 15:23:09 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-31 15:23:09 +0100 |
commit | 8db3c4b1732b497173e43da782d8c83406fb1a2e (patch) | |
tree | 5c470797faf70373a889fc686a7abba64ca1bba5 /ranger/gui/defaultui.py | |
parent | 59e3fd9051e03c850b3e6da0aad6f8f9ea12f524 (diff) | |
download | ranger-8db3c4b1732b497173e43da782d8c83406fb1a2e.tar.gz |
rename filelist(container) to browsercolumn/browserview
Diffstat (limited to 'ranger/gui/defaultui.py')
-rw-r--r-- | ranger/gui/defaultui.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ranger/gui/defaultui.py b/ranger/gui/defaultui.py index 08ec0b4b..540d088d 100644 --- a/ranger/gui/defaultui.py +++ b/ranger/gui/defaultui.py @@ -5,7 +5,7 @@ from ranger.gui.ui import UI class DefaultUI(UI): def setup(self): """Build up the UI by initializing widgets.""" - from ranger.gui.widgets.filelistcontainer import FileListContainer + from ranger.gui.widgets.browserview import BrowserView from ranger.gui.widgets.titlebar import TitleBar from ranger.gui.widgets.console import Console from ranger.gui.widgets.statusbar import StatusBar @@ -17,10 +17,10 @@ class DefaultUI(UI): self.titlebar = TitleBar(self.win) self.add_child(self.titlebar) - # Create the container for the filelists - self.filelist_container = FileListContainer(self.win, RATIO) - self.add_child(self.filelist_container) - self.main_filelist = self.filelist_container.main_filelist + # Create the browser view + self.browser = BrowserView(self.win, RATIO) + self.add_child(self.browser) + self.main_column = self.browser.main_column # Create the process manager self.pman = ProcessManager(self.win) @@ -32,7 +32,7 @@ class DefaultUI(UI): self.add_child(self.notify) # Create the status bar - self.status = StatusBar(self.win, self.main_filelist) + self.status = StatusBar(self.win, self.browser.main_column) self.add_child(self.status) # Create the console @@ -51,7 +51,7 @@ class DefaultUI(UI): notify_hei = min(max(1, y - 4), self.notify.requested_height) - self.filelist_container.resize(1, 0, y - 1 - notify_hei, x) + self.browser.resize(1, 0, y - 1 - notify_hei, x) self.pman.resize(1, 0, y - 1 - notify_hei, x) self.pager.resize(1, 0, y - 1 - notify_hei, x) self.notify.resize(y - notify_hei, 0, notify_hei, x) @@ -72,22 +72,22 @@ class DefaultUI(UI): self.console.focused = True self.pager.visible = False self.pager.focused = False - self.filelist_container.visible = True + self.browser.visible = True def open_pager(self): if self.console.focused: self.console.focused = False self.pager.visible = True self.pager.focused = True - self.filelist_container.visible = False + self.browser.visible = False return self.pager def open_embedded_pager(self): - self.filelist_container.open_pager() - return self.filelist_container.pager + self.browser.open_pager() + return self.browser.pager def close_embedded_pager(self): - self.filelist_container.close_pager() + self.browser.close_pager() def open_console(self, mode, string=''): if self.console.open(mode, string): @@ -101,18 +101,18 @@ class DefaultUI(UI): self.close_pager() def open_pman(self): - self.filelist_container.visible = False + self.browser.visible = False self.pman.visible = True self.pman.focused = True def close_pman(self): self.pman.visible = False - self.filelist_container.visible = True + self.browser.visible = True self.pman.focused = False def scroll(self, relative): - if self.main_filelist: - self.main_filelist.scroll(relative) + if self.browser and self.browser.main_column: + self.browser.main_column.scroll(relative) def throbber(self, string='.', remove=False): if remove: |