void CRemoteTreeView::OnOptionsChanged(changed_options_t const& options) { if (options.test(OPTION_FILELIST_NAMESORT)) { UpdateSortMode(); ApplyFilters(true); } }
void CToolBar::OnOptionsChanged(changed_options_t const& options) { if (options.test(OPTION_SHOW_MESSAGELOG)) { ToggleTool(XRCID("ID_TOOLBAR_LOGVIEW"), COptions::Get()->GetOptionVal(OPTION_SHOW_MESSAGELOG) != 0); } if (options.test(OPTION_SHOW_QUEUE)) { ToggleTool(XRCID("ID_TOOLBAR_QUEUEVIEW"), COptions::Get()->GetOptionVal(OPTION_SHOW_QUEUE) != 0); } if (options.test(OPTION_SHOW_TREE_LOCAL)) { ToggleTool(XRCID("ID_TOOLBAR_LOCALTREEVIEW"), COptions::Get()->GetOptionVal(OPTION_SHOW_TREE_LOCAL) != 0); } if (options.test(OPTION_SHOW_TREE_REMOTE)) { ToggleTool(XRCID("ID_TOOLBAR_REMOTETREEVIEW"), COptions::Get()->GetOptionVal(OPTION_SHOW_TREE_REMOTE) != 0); } if (options.test(OPTION_MESSAGELOG_POSITION)) { if (COptions::Get()->GetOptionVal(OPTION_MESSAGELOG_POSITION) == 2) HideTool(XRCID("ID_TOOLBAR_LOGVIEW")); else { ShowTool(XRCID("ID_TOOLBAR_LOGVIEW")); ToggleTool(XRCID("ID_TOOLBAR_LOGVIEW"), COptions::Get()->GetOptionVal(OPTION_SHOW_MESSAGELOG) != 0); } } }