* Moved all remaining classes to use the new display::Frame.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@749 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-07-29 00:22:26 +00:00
parent 4c9fc671be
commit fa5ff92e24
16 changed files with 257 additions and 202 deletions
+8 -1
View File
@@ -39,6 +39,7 @@
#include <torrent/exceptions.h>
#include <torrent/file_list.h>
#include "display/frame.h"
#include "display/window_file_list.h"
#include "input/manager.h"
@@ -67,8 +68,11 @@ ElementFileList::activate(display::Frame* frame) {
control->input()->push_front(&m_bindings);
// *mItr = m_window = new WFileList(m_download, &m_focus);
m_window = new WFileList(m_download, &m_focus);
m_window->set_active(true);
m_frame = frame;
m_frame->initialize_window(m_window);
}
void
@@ -78,6 +82,9 @@ ElementFileList::disable() {
control->input()->erase(&m_bindings);
m_frame->clear();
m_frame = NULL;
delete m_window;
m_window = NULL;
}