mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 05:02:31 +00:00
Improved the http progress display, includes truncated names, download
progress and 10 second delay on hiding. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@286 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+10
-2
@@ -6,10 +6,12 @@
|
||||
|
||||
#include "input/bindings.h"
|
||||
#include "input/text_input.h"
|
||||
#include "display/window_title.h"
|
||||
|
||||
#include "display/window_download_list.h"
|
||||
#include "display/window_statusbar.h"
|
||||
#include "display/window_http_queue.h"
|
||||
#include "display/window_input.h"
|
||||
#include "display/window_statusbar.h"
|
||||
#include "display/window_title.h"
|
||||
|
||||
#include "control.h"
|
||||
#include "download.h"
|
||||
@@ -21,6 +23,8 @@ DownloadList::DownloadList(Control* c) :
|
||||
m_title(new WTitle("rtorrent " VERSION " - " + torrent::get(torrent::LIBRARY_NAME))),
|
||||
m_status(new WStatus),
|
||||
m_textInput(new WInput(new input::TextInput)),
|
||||
m_windowHttpQueue(new WHttp(&c->get_core().get_http_queue())),
|
||||
|
||||
m_download(NULL),
|
||||
m_focus(c->get_core().get_download_list().end()),
|
||||
m_control(c),
|
||||
@@ -31,6 +35,7 @@ DownloadList::DownloadList(Control* c) :
|
||||
bind_keys(m_bindings);
|
||||
|
||||
m_textInput->get_input()->slot_dirty(sigc::mem_fun(*m_textInput, &WInput::mark_dirty));
|
||||
m_windowHttpQueue->slot_adjust(sigc::mem_fun(c->get_display(), &display::Manager::adjust_layout));
|
||||
}
|
||||
|
||||
DownloadList::~DownloadList() {
|
||||
@@ -41,6 +46,7 @@ DownloadList::~DownloadList() {
|
||||
|
||||
delete m_textInput->get_input();
|
||||
delete m_textInput;
|
||||
delete m_windowHttpQueue;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -49,6 +55,7 @@ DownloadList::activate() {
|
||||
|
||||
m_control->get_input().push_front(m_bindings);
|
||||
|
||||
m_control->get_display().push_back(m_windowHttpQueue);
|
||||
m_control->get_display().push_back(m_textInput);
|
||||
m_control->get_display().push_back(m_status);
|
||||
m_control->get_display().push_front(m_window);
|
||||
@@ -68,6 +75,7 @@ DownloadList::disable() {
|
||||
m_control->get_display().erase(m_window);
|
||||
m_control->get_display().erase(m_status);
|
||||
m_control->get_display().erase(m_textInput);
|
||||
m_control->get_display().erase(m_windowHttpQueue);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -4,10 +4,11 @@
|
||||
#include <sigc++/slot.h>
|
||||
|
||||
namespace display {
|
||||
class WindowTitle;
|
||||
class WindowDownloadList;
|
||||
class WindowStatusbar;
|
||||
class WindowHttpQueue;
|
||||
class WindowInput;
|
||||
class WindowStatusbar;
|
||||
class WindowTitle;
|
||||
}
|
||||
|
||||
namespace ui {
|
||||
@@ -18,9 +19,11 @@ class Download;
|
||||
class DownloadList {
|
||||
public:
|
||||
typedef display::WindowDownloadList WList;
|
||||
typedef display::WindowTitle WTitle;
|
||||
typedef display::WindowStatusbar WStatus;
|
||||
typedef display::WindowHttpQueue WHttp;
|
||||
typedef display::WindowInput WInput;
|
||||
typedef display::WindowStatusbar WStatus;
|
||||
typedef display::WindowTitle WTitle;
|
||||
|
||||
typedef core::DownloadList DList;
|
||||
|
||||
typedef sigc::slot1<void, const std::string&> SlotOpenUri;
|
||||
@@ -63,6 +66,7 @@ private:
|
||||
WTitle* m_title;
|
||||
WStatus* m_status;
|
||||
WInput* m_textInput;
|
||||
WHttp* m_windowHttpQueue;
|
||||
|
||||
Download* m_download;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user