mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 13:42:30 +00:00
Modify throttle status bar mod to be able to display multiple values (See #6)
This commit is contained in:
@@ -59,6 +59,8 @@ namespace ui {
|
||||
|
||||
class DownloadList;
|
||||
|
||||
typedef std::vector<std::string> ThrottleNameList;
|
||||
|
||||
class Root {
|
||||
public:
|
||||
typedef display::WindowTitle WTitle;
|
||||
@@ -93,6 +95,12 @@ public:
|
||||
|
||||
const char* get_throttle_keys();
|
||||
|
||||
ThrottleNameList& get_status_throttle_up_names() { return m_throttle_up_names; }
|
||||
ThrottleNameList& get_status_throttle_down_names() { return m_throttle_down_names; }
|
||||
|
||||
void set_status_throttle_up_names(const ThrottleNameList& throttle_list) { m_throttle_up_names = throttle_list; }
|
||||
void set_status_throttle_down_names(const ThrottleNameList& throttle_list) { m_throttle_down_names = throttle_list; }
|
||||
|
||||
void enable_input(const std::string& title, input::TextInput* input, ui::DownloadList::Input type);
|
||||
void disable_input();
|
||||
|
||||
@@ -129,6 +137,9 @@ private:
|
||||
void next_in_input_history(ui::DownloadList::Input type);
|
||||
|
||||
void reset_input_history_attributes(ui::DownloadList::Input type);
|
||||
|
||||
ThrottleNameList m_throttle_up_names;
|
||||
ThrottleNameList m_throttle_down_names;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user