mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 22:59:21 +00:00
* UI refactoring, added display::Frame and started cleaning up the
code. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@747 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+22
-1
@@ -43,15 +43,26 @@
|
||||
class Control;
|
||||
|
||||
namespace display {
|
||||
class Frame;
|
||||
class WindowTitle;
|
||||
class WindowHttpQueue;
|
||||
class WindowInput;
|
||||
class WindowStatusbar;
|
||||
}
|
||||
|
||||
namespace input {
|
||||
class TextInput;
|
||||
}
|
||||
|
||||
namespace ui {
|
||||
|
||||
class DownloadList;
|
||||
|
||||
class Root {
|
||||
public:
|
||||
typedef display::WindowTitle WTitle;
|
||||
typedef display::WindowHttpQueue WHttpQueue;
|
||||
typedef display::WindowInput WInput;
|
||||
typedef display::WindowStatusbar WStatusbar;
|
||||
|
||||
Root();
|
||||
@@ -59,7 +70,9 @@ public:
|
||||
void init(Control* c);
|
||||
void cleanup();
|
||||
|
||||
WStatusbar* window_statusbar() { return m_windowStatusbar; }
|
||||
WTitle* window_title() { return m_windowTitle; }
|
||||
WStatusbar* window_statusbar() { return m_windowStatusbar; }
|
||||
WInput* window_input() { return m_windowInput; }
|
||||
|
||||
void set_down_throttle(unsigned int throttle);
|
||||
void set_up_throttle(unsigned int throttle);
|
||||
@@ -71,12 +84,20 @@ public:
|
||||
void adjust_down_throttle(int throttle);
|
||||
void adjust_up_throttle(int throttle);
|
||||
|
||||
void enable_input(input::TextInput* input);
|
||||
void disable_input();
|
||||
|
||||
input::TextInput* current_input();
|
||||
|
||||
private:
|
||||
void setup_keys();
|
||||
|
||||
Control* m_control;
|
||||
DownloadList* m_downloadList;
|
||||
|
||||
WTitle* m_windowTitle;
|
||||
WHttpQueue* m_windowHttpQueue;
|
||||
WInput* m_windowInput;
|
||||
WStatusbar* m_windowStatusbar;
|
||||
|
||||
input::Bindings m_bindings;
|
||||
|
||||
Reference in New Issue
Block a user