mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-06 22:29:23 +00:00
* Moved various download related calls from core::Manager to
core::DownloadList, added a slot map for hash done. * Enabled the complete/incomplete views. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@677 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
#include <rak/algorithm.h>
|
||||
|
||||
#include "core/download.h"
|
||||
#include "core/view_downloads.h"
|
||||
#include "core/view.h"
|
||||
|
||||
#include "canvas.h"
|
||||
#include "globals.h"
|
||||
@@ -53,7 +53,7 @@ WindowDownloadList::~WindowDownloadList() {
|
||||
}
|
||||
|
||||
void
|
||||
WindowDownloadList::set_view(core::ViewDownloads* l) {
|
||||
WindowDownloadList::set_view(core::View* l) {
|
||||
m_view = l;
|
||||
|
||||
m_connChanged.disconnect();
|
||||
@@ -76,7 +76,7 @@ WindowDownloadList::redraw() {
|
||||
if (m_view->empty() || m_canvas->get_width() < 5 || m_canvas->get_height() < 2)
|
||||
return;
|
||||
|
||||
typedef std::pair<core::ViewDownloads::iterator, core::ViewDownloads::iterator> Range;
|
||||
typedef std::pair<core::View::iterator, core::View::iterator> Range;
|
||||
|
||||
Range range = rak::advance_bidirectional(m_view->begin(),
|
||||
m_view->focus() != m_view->end() ? m_view->focus() : m_view->begin(),
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include "core/download_list.h"
|
||||
|
||||
namespace core {
|
||||
class ViewDownloads;
|
||||
class View;
|
||||
}
|
||||
|
||||
namespace display {
|
||||
@@ -56,12 +56,12 @@ public:
|
||||
|
||||
virtual void redraw();
|
||||
|
||||
void set_view(core::ViewDownloads* l);
|
||||
void set_view(core::View* l);
|
||||
|
||||
private:
|
||||
core::ViewDownloads* m_view;
|
||||
core::View* m_view;
|
||||
|
||||
sigc::connection m_connChanged;
|
||||
sigc::connection m_connChanged;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user