Added merzlya's torrent status display changes.

This commit is contained in:
rakshasa
2016-08-03 23:01:28 +09:00
parent a0f97e4b06
commit d111594d20
8 changed files with 166 additions and 14 deletions
+6
View File
@@ -99,6 +99,8 @@ ElementDownloadList::ElementDownloadList() :
m_bindings[KEY_UP] = m_bindings['P' - '@'] = std::bind(&ElementDownloadList::receive_prev, this);
m_bindings[KEY_DOWN] = m_bindings['N' - '@'] = std::bind(&ElementDownloadList::receive_next, this);
m_bindings['L'] = std::bind(&ElementDownloadList::toggle_layout, this);
}
void
@@ -221,4 +223,8 @@ ElementDownloadList::receive_change_view(const std::string& name) {
set_view(*itr);
}
void
ElementDownloadList::toggle_layout() {
rpc::call_command("download.list.layout.set", (rpc::call_command_value("download.list.layout") + 1)%2);
}
}
+2
View File
@@ -77,6 +77,8 @@ public:
void receive_change_view(const std::string& name);
void toggle_layout();
private:
WDownloadList* m_window;
core::View* m_view;