/*! * * Copyright (c) 2023-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file VLocalization.cpp * \author (last) Dara Navaei * \date (last) 10-May-2024 * \author (original) Behrouz NematiPour * \date (original) 03-Apr-2023 * */ #include "VLocalization.h" // Project #include "GuiController.h" using namespace View; View::VLocalization::VLocalization(QObject *) { initConnections(); } /*! * \brief Connection Initializer * \details All the class signal/slot connections are defined here. */ void View::VLocalization::initConnections() { ACTION_VIEW_CONNECTION(SettingsData) } void View::VLocalization::doAdjustment(quint8 ) { // _data.mStatus = vStatus ? 1 : 0; // emit didAdjustment(_data); } /*! * \brief VLocalization::onSettingsDone * \details fills the items below, read from the settings file, when the reading is notified done by ApplicationController. * acidConcentrateOptions */ void View::VLocalization::onActionReceive(const SettingsData &) { QString mCategory = Storage::Settings_Category_SettingsSystem; QString mLanguage = ""; bool ok = false; mLanguage = _Settings.value(mCategory, "Localization", "Language").toString(); if ( !ok ) LOG_DEBUG("incorrect configuration value for Language"); languageIndex(_languageMap.key(mLanguage)); }