//=================================== // === Main timer loop === // void radeon_profile::timerEvent() { if (!refreshWhenHidden->isChecked() && this->isHidden()) { // even if in tray, keep the fan control active (if enabled) if (device.features.pwmAvailable && ui->btn_pwmProfile->isChecked()) { device.getTemperature(); adjustFanSpeed(); } return; } if (ui->cb_gpuData->isChecked()) { refreshGpuData(); ui->combo_pProfile->setCurrentIndex(ui->combo_pProfile->findText(device.currentPowerProfile)); if (device.features.pm == globalStuff::DPM) ui->combo_pLevel->setCurrentIndex(ui->combo_pLevel->findText(device.currentPowerLevel)); if (device.features.pwmAvailable && ui->btn_pwmProfile->isChecked()) adjustFanSpeed(); // lets say coreClk is essential to get stats (it is disabled in ui anyway when features.clocksAvailable is false) if (ui->cb_stats->isChecked() && device.gpuClocksData.coreClk != -1) { doTheStats(); // do the math only when user looking at stats table if (ui->tabs_systemInfo->currentIndex() == 3 && ui->mainTabs->currentIndex() == 0) updateStatsTable(); } refreshUI(); } if (ui->cb_graphs->isChecked()) refreshGraphs(); if (ui->cb_glxInfo->isChecked()) { ui->list_glxinfo->clear(); ui->list_glxinfo->addItems(device.getGLXInfo(ui->combo_gpus->currentText())); } if (ui->cb_connectors->isChecked()) { ui->list_connectors->clear(); ui->list_connectors->addTopLevelItems(device.getCardConnectors()); ui->list_connectors->expandToDepth(2); } if (ui->cb_modParams->isChecked()) { ui->list_modInfo->clear(); ui->list_modInfo->addTopLevelItems(device.getModuleInfo()); } refreshTooltip(); }
void Module::refreshStrings(void) { std::vector<sf::Text>::iterator itf = this->_stringsFrames.begin(); std::vector<std::string>::const_iterator its = this->_refModule->getStrings().begin(); for (;itf != this->_stringsFrames.end() && its != this->_refModule->getStrings().end(); itf++, its++) itf->setString(*its); refreshGraphs(); return ; }