Focus iterators moved out of Window*.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@254 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-05 20:36:22 +00:00
parent e02974571a
commit ecb2fc7d57
12 changed files with 122 additions and 59 deletions
+6 -11
View File
@@ -14,22 +14,17 @@ public:
typedef std::list<torrent::Peer> PList;
typedef sigc::slot0<uint32_t> SlotChunksTotal;
WindowPeerList(PList* l);
WindowPeerList(PList* l, PList::iterator* f);
PList& get_list() { return *m_list; }
void slot_chunks_total(SlotChunksTotal s) { m_slotChunksTotal = s; }
PList::iterator get_focus() { return m_focus; }
void set_focus(PList::iterator itr) { m_focus = itr; mark_dirty(); }
void slot_chunks_total(SlotChunksTotal s) { m_slotChunksTotal = s; }
virtual void redraw();
virtual void redraw();
private:
PList* m_list;
PList::iterator m_focus;
PList* m_list;
PList::iterator* m_focus;
SlotChunksTotal m_slotChunksTotal;
SlotChunksTotal m_slotChunksTotal;
};
}