diff options
author | mathieui <mathieui@mathieui.net> | 2015-02-09 22:13:11 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-02-09 22:35:41 +0100 |
commit | 9141e0c4d316b877cb4e71b5fa7255c40248e867 (patch) | |
tree | 601b03182ac08b481a3c3f775ba7750c5a8b1288 /src/windows/info_wins.py | |
parent | 2da4474d6a4ee2fd7e4761701043f6cb545f1884 (diff) | |
download | poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.tar.gz poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.tar.bz2 poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.tar.xz poezio-9141e0c4d316b877cb4e71b5fa7255c40248e867.zip |
Add a bookmarkstab (fixes #2004)
now we can edit stuff, save or cancel those modifications, and change
the chose storage easily
Diffstat (limited to 'src/windows/info_wins.py')
-rw-r--r-- | src/windows/info_wins.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/windows/info_wins.py b/src/windows/info_wins.py index 766afb75..80af4602 100644 --- a/src/windows/info_wins.py +++ b/src/windows/info_wins.py @@ -293,3 +293,17 @@ class ConversationStatusMessageWin(InfoWin): def write_status_message(self, resource): self.addstr(resource.status, to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) +class BookmarksInfoWin(InfoWin): + def __init__(self): + InfoWin.__init__(self) + + def refresh(self, preferred): + log.debug('Refresh: %s', self.__class__.__name__) + self._win.erase() + self.write_remote_status(preferred) + self.finish_line(get_theme().COLOR_INFORMATION_BAR) + self._refresh() + + def write_remote_status(self, preferred): + self.addstr('Remote storage: %s' % preferred, to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) + |