* Added an info screen to the file list and added more information to

the list.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@833 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-12-25 18:26:40 +00:00
parent 25702ea4b7
commit eabbf33a76
6 changed files with 152 additions and 36 deletions
+14 -1
View File
@@ -52,6 +52,8 @@ namespace display {
namespace ui {
class ElementText;
class ElementFileList : public ElementBase {
public:
typedef torrent::priority_t Priority;
@@ -59,12 +61,18 @@ public:
typedef torrent::FileListIterator iterator;
typedef enum {
DISPLAY_LIST,
DISPLAY_INFO,
DISPLAY_MAX_SIZE
} Display;
ElementFileList(core::Download* d);
void activate(display::Frame* frame, bool focus = true);
void disable();
display::Window* window();
void activate_display(Display display);
private:
void receive_next();
@@ -77,8 +85,13 @@ private:
Priority next_priority(Priority p);
void update_itr();
core::Download* m_download;
Display m_state;
WFileList* m_window;
ElementText* m_elementInfo;
// Change to unsigned, please.
iterator m_selected;