Cleaned up ui::Root, fixed updating and hiding status bar.

Using displayScheduler for updating windows, much more efficient.

Added saving of some parts of the state of torrents.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@482 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-30 16:42:22 +00:00
parent 52884c3c39
commit 98ad8e8791
29 changed files with 221 additions and 95 deletions
+6 -8
View File
@@ -32,18 +32,18 @@ namespace display {
namespace ui {
class DownloadList;
class Control;
class Root {
public:
typedef display::WindowStatusbar WStatus;
typedef display::WindowStatusbar WStatusbar;
Root(Control* c);
Root();
void init();
void init(Control* c);
void cleanup();
bool get_shutdown_received() { return m_shutdownReceived; }
void set_shutdown_received(bool v) { m_shutdownReceived = v; }
WStatusbar* window_statusbar() { return m_windowStatusbar; }
private:
void setup_keys();
@@ -51,12 +51,10 @@ private:
void receive_read_throttle(int t);
void receive_write_throttle(int t);
bool m_shutdownReceived;
Control* m_control;
DownloadList* m_downloadList;
WStatus* m_windowStatus;
WStatusbar* m_windowStatusbar;
input::Bindings m_bindings;
};