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
+12 -1
View File
@@ -4,6 +4,7 @@
namespace display {
class WindowTitle;
class WindowDownloadList;
class WindowStatusbar;
}
namespace ui {
@@ -15,9 +16,11 @@ class DownloadList {
public:
typedef display::WindowDownloadList WList;
typedef display::WindowTitle WTitle;
typedef display::WindowStatusbar WStatus;
typedef core::DownloadList DList;
// We own 'window'.
DownloadList(core::DownloadList* l, Control* c);
DownloadList(DList* l, Control* c);
~DownloadList();
WList& get_window() { return *m_window; }
@@ -33,11 +36,19 @@ private:
void receive_view_download();
void receive_exit_download();
void receive_throttle(int t);
void mark_dirty();
WList* m_window;
WTitle* m_title;
WStatus* m_status;
Download* m_download;
DList* m_list;
DList::iterator m_focus;
Control* m_control;
input::Bindings* m_bindings;
};