From ab3a0fead23dc80e7d9e00610b439f9e8ea7168d Mon Sep 17 00:00:00 2001 From: rakshasa Date: Tue, 29 Aug 2006 21:41:49 +0000 Subject: [PATCH] * Bumped version number to 0.10.2/0.5.2. * Support for qwertz keyboard layout. * Added support for preloading chunks which will be uploaded. Currently just loads the whole chunk, so it needs to be improved or disabled before release. * Added PeerInfo::transfer_counter which keeps track of the number of BlockTransfers referring to this object. * Added PeerList::cull_peers that is called every hour to remove unnessesary PeerInfo from the list.. * In PollKQueue and PollEPoll check that the event we received is still wanted. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@768 e378c898-3ddf-0310-93e7-cc216c733640 --- configure.ac | 2 +- doc/rtorrent.1 | 2 +- doc/rtorrent.1.xml | 2 +- src/ui/root.cc | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index c130b212..c6175ec9 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(rtorrent, 0.6.1, jaris@ifi.uio.no) +AC_INIT(rtorrent, 0.6.2, jaris@ifi.uio.no) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) diff --git a/doc/rtorrent.1 b/doc/rtorrent.1 index 6ecacfc6..d57fe22e 100644 --- a/doc/rtorrent.1 +++ b/doc/rtorrent.1 @@ -322,7 +322,7 @@ match for the download to be included. \fBstopped\fR, \fBstarted\fR, \fBcomplete\fR, \fBincomplete\fR, .TP -\fBkey_layout = \fIquerty|azerty\fB\fR +\fBkey_layout = \fIqwerty|azerty|qwertz\fB\fR Change the key-bindings. .SH "ADVANCED SETTINGS" .PP diff --git a/doc/rtorrent.1.xml b/doc/rtorrent.1.xml index b0550862..e1e4032c 100644 --- a/doc/rtorrent.1.xml +++ b/doc/rtorrent.1.xml @@ -668,7 +668,7 @@ match for the download to be included. - key_layout = querty|azerty + key_layout = qwerty|azerty|qwertz Change the key-bindings. diff --git a/src/ui/root.cc b/src/ui/root.cc index 489d36f1..1633f34f 100644 --- a/src/ui/root.cc +++ b/src/ui/root.cc @@ -129,6 +129,12 @@ Root::setup_keys() { m_bindings['Q'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_down_throttle), 1); m_bindings['W'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_down_throttle), -1); + } else if (strcasecmp(control->variable()->get_string("key_layout").c_str(), "qwertz") == 0) { + m_bindings['a'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_up_throttle), 1); + m_bindings['y'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_up_throttle), -1); + m_bindings['A'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_down_throttle), 1); + m_bindings['Y'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_down_throttle), -1); + } else { m_bindings['a'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_up_throttle), 1); m_bindings['z'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_up_throttle), -1);