MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / UpdateUI

Method UpdateUI

vkconfig_gui/tab_preferences.cpp:118–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116TabPreferences::~TabPreferences() {}
117
118void TabPreferences::UpdateUI(UpdateUIMode mode) {
119 (void)mode;
120
121 Configurator &configurator = Configurator::Get();
122
123 this->ui->preferences_keep_running->blockSignals(true);
124 this->ui->preferences_keep_running->setChecked(configurator.GetUseSystemTray());
125 this->ui->preferences_keep_running->blockSignals(false);
126
127 this->ui->preferences_vk_home_text->blockSignals(true);
128 this->ui->preferences_vk_home_text->setText(::Path(Path::HOME).RelativePath().c_str());
129 this->ui->preferences_vk_home_text->setToolTip(::Path(Path::HOME).AbsolutePath().c_str());
130 this->ui->preferences_vk_home_text->blockSignals(false);
131
132 this->ui->preferences_all_enabled_executables->blockSignals(true);
133 this->ui->preferences_all_enabled_executables->setEnabled(configurator.configuration_show_scope);
134 this->ui->preferences_all_enabled_executables->setCurrentIndex(
135 static_cast<int>(configurator.GetAllEnabledExecutableBehavior()));
136 this->ui->preferences_all_enabled_executables->blockSignals(false);
137
138 this->ui->preferences_show_debug_settings->blockSignals(true);
139 this->ui->preferences_show_debug_settings->setChecked(configurator.GetUseLayerDebugMode());
140 this->ui->preferences_show_debug_settings->blockSignals(false);
141
142 this->ui->preferences_vk_download_text->blockSignals(true);
143 this->ui->preferences_vk_download_text->setText(::Path(Path::DOWNLOAD).RelativePath().c_str());
144 this->ui->preferences_vk_download_text->setToolTip(::Path(Path::DOWNLOAD).AbsolutePath().c_str());
145 this->ui->preferences_vk_download_text->blockSignals(false);
146}
147
148void TabPreferences::CleanUI() {}
149

Callers 1

Calls 7

GetFunction · 0.85
PathClass · 0.85
GetUseSystemTrayMethod · 0.80
RelativePathMethod · 0.80
AbsolutePathMethod · 0.80
GetUseLayerDebugModeMethod · 0.80

Tested by

no test coverage detected