Cleaned up ui::Root, fixed updating and hiding status bar.

Using displayScheduler for updating windows, much more efficient.

Added saving of some parts of the state of torrents.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@482 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-30 16:42:22 +00:00
parent 52884c3c39
commit 98ad8e8791
29 changed files with 221 additions and 95 deletions
+21 -1
View File
@@ -71,10 +71,20 @@ validate_rate(int arg) {
}
bool
validate_read_ahead(int arg) {
validate_hash_read_ahead(int arg) {
return arg >= 1 && arg < 64;
}
bool
validate_hash_interval(int arg) {
return arg >= 1 && arg < 1000;
}
bool
validate_hash_max_tries(int arg) {
return arg >= 1 && arg < 20;
}
bool
validate_fd(int arg) {
return arg >= 10 && arg < (1 << 16);
@@ -123,6 +133,16 @@ apply_hash_read_ahead(ui::Control* m, int arg) {
torrent::set_hash_read_ahead(arg << 20);
}
void
apply_hash_interval(ui::Control* m, int arg) {
torrent::set_hash_interval(arg * 1000);
}
void
apply_hash_max_tries(ui::Control* m, int arg) {
torrent::set_hash_max_tries(arg);
}
void
apply_max_open_files(ui::Control* m, int arg) {
torrent::set_max_open_files(arg);