* Fixed download menu.

* Use bold when ElementMenu loses focus.

* Added an exit slot to ElementBase and bind to that from withing the
subclasses.

* Moved peer info to ElementPeerList, accessed by the right
arrow. Download info will be moved to a seperate Element.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@752 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-08-07 16:31:55 +00:00
parent 0b45062eb3
commit ba28df3ff2
24 changed files with 310 additions and 342 deletions
-16
View File
@@ -66,7 +66,6 @@ public:
typedef enum {
DISPLAY_MENU,
DISPLAY_PEER_LIST,
DISPLAY_PEER_INFO,
DISPLAY_FILE_LIST,
DISPLAY_TRACKER_LIST,
DISPLAY_CHUNKS_SEEN,
@@ -94,25 +93,13 @@ private:
Download(const Download&);
void operator = (const Download&);
void receive_next();
void receive_prev();
void receive_disconnect_peer();
void receive_peer_connected(torrent::Peer p);
void receive_peer_disconnected(torrent::Peer p);
void receive_max_uploads(int t);
void receive_min_peers(int t);
void receive_max_peers(int t);
void receive_snub_peer();
void bind_keys();
DPtr m_download;
PList m_peers;
PList::iterator m_focus;
Display m_state;
ElementBase* m_uiArray[DISPLAY_MAX_SIZE];
@@ -120,9 +107,6 @@ private:
bool m_focusDisplay;
WDownloadStatus* m_windowDownloadStatus;
sigc::connection m_connPeerConnected;
sigc::connection m_connPeerDisconnected;
};
}