diff -rub rtorrent-0.5.1/src/ui/download.cc rtorrent-0.5.1-patched/src/ui/download.cc
|
old
|
new
|
|
| 275 | 275 | (*m_bindings)[KEY_UP] = sigc::mem_fun(this, &Download::receive_prev); |
| 276 | 276 | (*m_bindings)[KEY_DOWN] = sigc::mem_fun(this, &Download::receive_next); |
| 277 | 277 | |
| | 278 | //Vi-style |
| | 279 | (*m_bindings)['k'] = sigc::mem_fun(this, &Download::receive_prev); |
| | 280 | (*m_bindings)['j'] = sigc::mem_fun(this, &Download::receive_next); |
| | 281 | |
| 278 | 282 | // Key bindings for sub-ui's. |
| 279 | 283 | m_uiArray[DISPLAY_PEER_LIST]->get_bindings()[KEY_RIGHT] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_FILE_LIST); |
| 280 | 284 | m_uiArray[DISPLAY_PEER_INFO]->get_bindings()[KEY_LEFT] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_PEER_LIST); |
| … |
… |
|
| 282 | 286 | m_uiArray[DISPLAY_TRACKER_LIST]->get_bindings()[KEY_LEFT] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_PEER_LIST); |
| 283 | 287 | m_uiArray[DISPLAY_CHUNKS_SEEN]->get_bindings()[KEY_LEFT] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_PEER_LIST); |
| 284 | 288 | |
| | 289 | //Vi-style |
| | 290 | m_uiArray[DISPLAY_PEER_LIST]->get_bindings()['l'] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_FILE_LIST); |
| | 291 | m_uiArray[DISPLAY_PEER_INFO]->get_bindings()['h'] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_PEER_LIST); |
| | 292 | m_uiArray[DISPLAY_FILE_LIST]->get_bindings()['h'] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_PEER_LIST); |
| | 293 | m_uiArray[DISPLAY_TRACKER_LIST]->get_bindings()['h'] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_PEER_LIST); |
| | 294 | m_uiArray[DISPLAY_CHUNKS_SEEN]->get_bindings()['h'] = sigc::bind(sigc::mem_fun(this, &Download::receive_change), DISPLAY_PEER_LIST); |
| | 295 | |
| 285 | 296 | // Doesn't belong here. |
| 286 | 297 | m_uiArray[DISPLAY_PEER_LIST]->get_bindings()['*'] = sigc::mem_fun(this, &Download::receive_snub_peer); |
| 287 | 298 | m_uiArray[DISPLAY_PEER_INFO]->get_bindings()['*'] = sigc::mem_fun(this, &Download::receive_snub_peer); |
diff -rub rtorrent-0.5.1/src/ui/download_list.cc rtorrent-0.5.1-patched/src/ui/download_list.cc
|
old
|
new
|
|
| 240 | 240 | |
| 241 | 241 | m_uiDownload->activate(); |
| 242 | 242 | m_uiDownload->get_bindings()[KEY_LEFT] = sigc::mem_fun(*this, &DownloadList::receive_exit_download); |
| | 243 | |
| | 244 | //Vi-style |
| | 245 | m_uiDownload->get_bindings()['h'] = sigc::mem_fun(*this, &DownloadList::receive_exit_download); |
| 243 | 246 | } |
| 244 | 247 | |
| 245 | 248 | void |
| … |
… |
|
| 422 | 425 | (*m_bindings)[KEY_UP] = sigc::mem_fun(*this, &DownloadList::receive_prev); |
| 423 | 426 | (*m_bindings)[KEY_DOWN] = sigc::mem_fun(*this, &DownloadList::receive_next); |
| 424 | 427 | (*m_bindings)[KEY_RIGHT] = sigc::mem_fun(*this, &DownloadList::receive_view_download); |
| 425 | | (*m_bindings)['l'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_change), DISPLAY_LOG); |
| | 428 | (*m_bindings)['L'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_change), DISPLAY_LOG); |
| | 429 | |
| | 430 | //Vi-style |
| | 431 | (*m_bindings)['k'] = sigc::mem_fun(*this, &DownloadList::receive_prev); |
| | 432 | (*m_bindings)['j'] = sigc::mem_fun(*this, &DownloadList::receive_next); |
| | 433 | (*m_bindings)['l'] = sigc::mem_fun(*this, &DownloadList::receive_view_download); |
| 426 | 434 | |
| 427 | 435 | (*m_bindings)['1'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_change_view), "main"); |
| 428 | 436 | (*m_bindings)['2'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_change_view), "name"); |
diff -rub rtorrent-0.5.1/src/ui/element_file_list.cc rtorrent-0.5.1-patched/src/ui/element_file_list.cc
|
old
|
new
|
|
| 56 | 56 | m_bindings['*'] = sigc::mem_fun(*this, &ElementFileList::receive_change_all); |
| 57 | 57 | m_bindings[KEY_DOWN] = sigc::mem_fun(*this, &ElementFileList::receive_next); |
| 58 | 58 | m_bindings[KEY_UP] = sigc::mem_fun(*this, &ElementFileList::receive_prev); |
| | 59 | |
| | 60 | //Vi-style |
| | 61 | m_bindings['j'] = sigc::mem_fun(*this, &ElementFileList::receive_next); |
| | 62 | m_bindings['k'] = sigc::mem_fun(*this, &ElementFileList::receive_prev); |
| 59 | 63 | } |
| 60 | 64 | |
| 61 | 65 | void |
diff -rub rtorrent-0.5.1/src/ui/element_tracker_list.cc rtorrent-0.5.1-patched/src/ui/element_tracker_list.cc
|
old
|
new
|
|
| 57 | 57 | m_bindings[KEY_UP] = sigc::mem_fun(*this, &ElementTrackerList::receive_prev); |
| 58 | 58 | m_bindings[' '] = sigc::mem_fun(*this, &ElementTrackerList::receive_cycle_group); |
| 59 | 59 | m_bindings['*'] = sigc::mem_fun(*this, &ElementTrackerList::receive_disable); |
| | 60 | |
| | 61 | //Vi-style |
| | 62 | m_bindings['j'] = sigc::mem_fun(*this, &ElementTrackerList::receive_next); |
| | 63 | m_bindings['k'] = sigc::mem_fun(*this, &ElementTrackerList::receive_prev); |
| 60 | 64 | } |
| 61 | 65 | |
| 62 | 66 | void |