mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 07:09:21 +00:00
Cleaned up download ui code.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@356 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+6
-13
@@ -30,7 +30,6 @@
|
||||
namespace display {
|
||||
class WindowTitle;
|
||||
class WindowStatusbar;
|
||||
class WindowPeerList;
|
||||
class WindowDownloadStatusbar;
|
||||
}
|
||||
|
||||
@@ -41,14 +40,10 @@ namespace core {
|
||||
namespace ui {
|
||||
|
||||
class Control;
|
||||
class FileList;
|
||||
class PeerInfo;
|
||||
class TrackerList;
|
||||
class BaseElement;
|
||||
|
||||
class Download {
|
||||
public:
|
||||
typedef display::Window Window;
|
||||
typedef display::WindowPeerList WPeerList;
|
||||
typedef display::WindowTitle WTitle;
|
||||
typedef display::WindowStatusbar WMainStatus;
|
||||
typedef display::WindowDownloadStatusbar WDownloadStatus;
|
||||
@@ -58,11 +53,11 @@ public:
|
||||
typedef display::Manager::iterator MItr;
|
||||
|
||||
typedef enum {
|
||||
DISPLAY_NONE,
|
||||
DISPLAY_MAIN,
|
||||
DISPLAY_PEER,
|
||||
DISPLAY_PEER_LIST,
|
||||
DISPLAY_PEER_INFO,
|
||||
DISPLAY_FILE_LIST,
|
||||
DISPLAY_TRACKER_LIST
|
||||
DISPLAY_TRACKER_LIST,
|
||||
DISPLAY_MAX_SIZE
|
||||
} Display;
|
||||
|
||||
// We own 'window'.
|
||||
@@ -103,9 +98,7 @@ private:
|
||||
|
||||
Display m_state;
|
||||
|
||||
FileList* m_uiFileList;
|
||||
PeerInfo* m_uiPeerInfo;
|
||||
TrackerList* m_uiTrackerList;
|
||||
BaseElement* m_uiArray[DISPLAY_MAX_SIZE];
|
||||
|
||||
WTitle* m_windowTitle;
|
||||
WDownloadStatus* m_windowDownloadStatus;
|
||||
|
||||
Reference in New Issue
Block a user