Modify throttle status bar mod to be able to display multiple values (See #6)

This commit is contained in:
chros
2019-07-27 11:19:46 +01:00
parent b697a4608b
commit f22475d1bf
6 changed files with 160 additions and 10 deletions
+11
View File
@@ -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;
};
}