mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-09 15:49:20 +00:00
* Added slot map's for insert/erase, open/close, start/stop and
finished downloads in DownloadList, moved stuff from core::Manager to the slot maps. * Added check hash key ^r, though triggering check hash on finished signals currently borks. * Made tracker dump into an option. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@470 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -231,6 +231,14 @@ DownloadList::receive_exit_download() {
|
||||
m_control->get_display().adjust_layout();
|
||||
}
|
||||
|
||||
void
|
||||
DownloadList::receive_check_hash() {
|
||||
if (m_downloadList.get_focus() == m_downloadList.end())
|
||||
return;
|
||||
|
||||
m_control->get_core().check_hash(*m_downloadList.get_focus());
|
||||
}
|
||||
|
||||
void
|
||||
DownloadList::receive_view_input() {
|
||||
m_windowStatus->set_active(false);
|
||||
@@ -297,6 +305,7 @@ DownloadList::setup_keys() {
|
||||
|
||||
(*m_bindings)['\x13'] = sigc::mem_fun(*this, &DownloadList::receive_start_download);
|
||||
(*m_bindings)['\x04'] = sigc::mem_fun(*this, &DownloadList::receive_stop_download);
|
||||
(*m_bindings)['\x12'] = sigc::mem_fun(*this, &DownloadList::receive_check_hash);
|
||||
|
||||
(*m_bindings)['\x7f'] = sigc::mem_fun(*this, &DownloadList::receive_view_input);
|
||||
(*m_bindings)[KEY_BACKSPACE] = sigc::mem_fun(*this, &DownloadList::receive_view_input);
|
||||
|
||||
@@ -101,6 +101,8 @@ private:
|
||||
void receive_view_download();
|
||||
void receive_exit_download();
|
||||
|
||||
void receive_check_hash();
|
||||
|
||||
void receive_view_input();
|
||||
void receive_exit_input();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user