deluge.ui.console.modes.torrentlist package¶
Submodules¶
deluge.ui.console.modes.torrentlist.add_torrents_popup module¶
-
deluge.ui.console.modes.torrentlist.add_torrents_popup.report_add_status(torrentlist, succ_cnt, fail_cnt, fail_msgs)¶
-
deluge.ui.console.modes.torrentlist.add_torrents_popup.show_torrent_add_popup(torrentlist)¶
deluge.ui.console.modes.torrentlist.filtersidebar module¶
Bases:
deluge.ui.console.widgets.sidebar.Sidebar,deluge.component.ComponentThe sidebar in the main torrentview
Shows the different states of the torrents and allows to filter the torrents based on state.
Handle a character read from curses screen
- Returns
int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.
deluge.ui.console.modes.torrentlist.queue_mode module¶
deluge.ui.console.modes.torrentlist.search_mode module¶
-
class
deluge.ui.console.modes.torrentlist.search_mode.SearchMode(torrentlist)¶ Bases:
deluge.ui.console.modes.basemode.InputKeyHandler-
do_search(direction='first')¶ Performs a search on visible torrent and sets cursor to the match
- Parameters
direction (str) – The direction to search. Must be one of ‘first’, ‘last’, ‘next’ or ‘previous’
-
handle_read(c)¶ Handle a character read from curses screen
- Returns
int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.
-
set_statusbar_args(statusbar_args)¶
-
update_colors(tidx, colors)¶
-
update_cursor()¶
-
deluge.ui.console.modes.torrentlist.torrentactions module¶
-
deluge.ui.console.modes.torrentlist.torrentactions.action_error(error, mode)¶
-
deluge.ui.console.modes.torrentlist.torrentactions.action_remove(mode=None, torrent_ids=None, **kwargs)¶
-
deluge.ui.console.modes.torrentlist.torrentactions.action_torrent_info(mode=None, torrent_ids=None, **kwargs)¶
-
deluge.ui.console.modes.torrentlist.torrentactions.torrent_action(action, *args, **kwargs)¶
-
deluge.ui.console.modes.torrentlist.torrentactions.torrent_actions_popup(mode, torrent_ids, details=False, action=None, close_cb=None)¶
deluge.ui.console.modes.torrentlist.torrentlist module¶
-
class
deluge.ui.console.modes.torrentlist.torrentlist.TorrentList(stdscr, encoding=None)¶ Bases:
deluge.ui.console.modes.basemode.BaseMode,deluge.ui.console.widgets.popup.PopupsHandler-
on_config_changed()¶
-
on_resize(rows, cols)¶
-
read_input()¶
-
refresh(lines=None)¶ Refreshes the screen. Updates the lines based on the`:attr:lines` based on the :attr:display_lines_offset attribute and the status bars.
-
resume()¶
-
set_minor_mode(mode)¶
-
show_torrent_details(tid)¶
-
start()¶
-
torrentview_columns()¶
-
update()¶
-
deluge.ui.console.modes.torrentlist.torrentview module¶
-
class
deluge.ui.console.modes.torrentlist.torrentview.TorrentView(torrentlist, config)¶ Bases:
deluge.ui.console.modes.basemode.InputKeyHandler-
add_marked(indices, last_marked)¶
-
clear_marked()¶
-
current_torrent_id()¶
-
handle_read(c)¶ Handle a character read from curses screen
- Returns
int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.
-
mark_unmark(idx)¶
-
on_config_changed()¶
-
rows¶
-
set_torrent_filter(state)¶
-
torrent_rows¶
-
torrentlist_offset¶
-
update(refresh=False)¶
-
update_columns()¶
-
update_marked(index, last_mark=True, clear=False)¶
-
update_state(state, refresh=False)¶
-
update_torrents(lines)¶
-
deluge.ui.console.modes.torrentlist.torrentviewcolumns module¶
-
class
deluge.ui.console.modes.torrentlist.torrentviewcolumns.ColumnAndWidth(parent, name, message, child, on_width_func, **kwargs)¶ Bases:
deluge.ui.console.widgets.fields.CheckedPlusInput-
handle_read(c)¶ Handle a character read from curses screen
- Returns
int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.
-
-
class
deluge.ui.console.modes.torrentlist.torrentviewcolumns.TorrentViewColumns(torrentlist)¶ Bases:
deluge.ui.console.widgets.popup.InputPopup-
handle_read(c)¶ Handle a character read from curses screen
- Returns
int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.
-
Module contents¶
-
class
deluge.ui.console.modes.torrentlist.ACTION¶ Bases:
object-
DETAILS= 'torrent_details'¶
-
EDIT_TRACKERS= 3¶
-
MOVE_STORAGE= 'move_download_folder'¶
-
PAUSE= 'pause'¶
-
QUEUE= 'queue'¶
-
QUEUE_BOTTOM= 'queue_bottom'¶
-
QUEUE_DOWN= 'queue_down'¶
-
QUEUE_TOP= 'queue_top'¶
-
QUEUE_UP= 'queue_up'¶
-
REANNOUNCE= 'update_tracker'¶
-
RECHECK= 'force_recheck'¶
-
REMOVE= 'remove_torrent'¶
-
REMOVE_DATA= 6¶
-
REMOVE_NODATA= 7¶
-
RESUME= 'resume'¶
-
TORRENT_OPTIONS= 'torrent_options'¶
-