|
|
|
@ -237,17 +237,7 @@ void PageConfiguration::retranslateUi()
|
|
|
|
|
else
|
|
|
|
|
qDebug() << "Unsupported language " << lang;
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("English"), QVariant("en_US") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("German"), QVariant("de_DE") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("Spanish"), QVariant("es_ES") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("French"), QVariant("fr_FR") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("Italian"), QVariant("it_IT") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("Polish"), QVariant("pl_PL") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("Brazilian Portugal"), QVariant("pt_BR") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("Russian"), QVariant("ru_RU") );
|
|
|
|
|
m_cmbboxLanguage->addItem( tr("Ukraine"), QVariant("uk_UA") );
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
m_labelTimezone->setText( tr("Timezone:") );
|
|
|
|
|
setupTimezones();
|
|
|
|
|
|
|
|
|
@ -277,8 +267,8 @@ void PageConfiguration::retranslateUi()
|
|
|
|
|
|
|
|
|
|
m_labelClockType->setText( tr("Clock type:") );
|
|
|
|
|
m_cmbboxClockType->clear();
|
|
|
|
|
m_cmbboxClockType->addItem( tr("Local") );
|
|
|
|
|
m_cmbboxClockType->addItem( tr("UTC") );
|
|
|
|
|
m_cmbboxClockType->addItem( tr("Local"), QVariant("local") );
|
|
|
|
|
m_cmbboxClockType->addItem( tr("UTC"), QVariant("UTC") );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -300,9 +290,9 @@ void PageConfiguration::show()
|
|
|
|
|
{
|
|
|
|
|
CalculateConfig* clConf = CalculateConfig::instance();
|
|
|
|
|
|
|
|
|
|
m_editHostName->setText( clConf->getValue("os_install_net_hostname").toString() );
|
|
|
|
|
m_editHostName->setText( clConf->getValue("gui_os_install_net_hostname").toString() );
|
|
|
|
|
|
|
|
|
|
m_editDomainName->setText( clConf->getValue("os_install_net_domain").toString() );
|
|
|
|
|
m_editDomainName->setText( clConf->getValue("gui_os_install_net_domain").toString() );
|
|
|
|
|
|
|
|
|
|
//qDebug() << "cfg language: " << clConf->getValue("gui_install_language");
|
|
|
|
|
int langIndex = m_cmbboxLanguage->findData( clConf->getValue("gui_install_language") );
|
|
|
|
@ -311,7 +301,7 @@ void PageConfiguration::show()
|
|
|
|
|
|
|
|
|
|
//qDebug() << "cfg timezone: " << clConf->getValue("os_install_clock_timezone");
|
|
|
|
|
int timezoneIndex = m_cmbboxTimezone->findText(
|
|
|
|
|
clConf->getValue("os_install_clock_timezone").toString()
|
|
|
|
|
clConf->getValue("gui_os_install_clock_timezone").toString()
|
|
|
|
|
);
|
|
|
|
|
if (timezoneIndex >= 0)
|
|
|
|
|
m_cmbboxTimezone->setCurrentIndex( timezoneIndex );
|
|
|
|
@ -323,23 +313,23 @@ void PageConfiguration::show()
|
|
|
|
|
m_cmbboxMbrDevice->setCurrentIndex( bootdevIndex );
|
|
|
|
|
|
|
|
|
|
int videodrvIndex = m_cmbboxVideoDrv->findText(
|
|
|
|
|
clConf->getValue("os_install_x11_video_drv").toString()
|
|
|
|
|
clConf->getValue("gui_os_install_x11_video_drv").toString()
|
|
|
|
|
);
|
|
|
|
|
if (videodrvIndex >= 0)
|
|
|
|
|
m_cmbboxVideoDrv->setCurrentIndex( videodrvIndex );
|
|
|
|
|
|
|
|
|
|
m_chkboxComposite->setChecked(
|
|
|
|
|
clConf->getValue("os_install_x11_composite").toString() == "on"
|
|
|
|
|
clConf->getValue("gui_os_install_x11_composite").toString() == "on"
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
m_editMakeOpts->setText( clConf->getValue("os_install_makeopts").toString() );
|
|
|
|
|
m_editMakeOpts->setText( clConf->getValue("gui_os_install_makeopts").toString() );
|
|
|
|
|
|
|
|
|
|
m_editProxy->setText( clConf->getValue("os_install_proxy").toString() );
|
|
|
|
|
m_editProxy->setText( clConf->getValue("gui_os_install_proxy").toString() );
|
|
|
|
|
|
|
|
|
|
m_editNtp->setText( clConf->getValue("os_install_ntp").toString() );
|
|
|
|
|
m_editNtp->setText( clConf->getValue("gui_os_install_ntp").toString() );
|
|
|
|
|
|
|
|
|
|
int clocktypeIndex = m_cmbboxClockType->findText(
|
|
|
|
|
clConf->getValue("os_install_clock_type").toString()
|
|
|
|
|
int clocktypeIndex = m_cmbboxClockType->findData(
|
|
|
|
|
clConf->getValue("gui_os_install_clock_type").toString()
|
|
|
|
|
);
|
|
|
|
|
if (clocktypeIndex >= 0)
|
|
|
|
|
m_cmbboxClockType->setCurrentIndex( clocktypeIndex );
|
|
|
|
@ -351,20 +341,20 @@ void PageConfiguration::updateData()
|
|
|
|
|
{
|
|
|
|
|
CalculateConfig* clConf = CalculateConfig::instance();
|
|
|
|
|
|
|
|
|
|
clConf->setValue("os_install_net_hostname", m_editHostName->text() );
|
|
|
|
|
clConf->setValue("os_install_net_domain", m_editDomainName->text() );
|
|
|
|
|
clConf->setValue("gui_os_install_net_hostname", m_editHostName->text() );
|
|
|
|
|
clConf->setValue("gui_os_install_net_domain", m_editDomainName->text() );
|
|
|
|
|
//qDebug() << "store cfg gui_install_language" << m_cmbboxLanguage->itemData( m_cmbboxLanguage->currentIndex() ) ;
|
|
|
|
|
clConf->setValue("gui_install_language", m_cmbboxLanguage->itemData( m_cmbboxLanguage->currentIndex() ) );
|
|
|
|
|
clConf->setValue("os_install_clock_timezone", m_cmbboxTimezone->currentText() );
|
|
|
|
|
clConf->setValue("gui_os_install_clock_timezone", m_cmbboxTimezone->currentText() );
|
|
|
|
|
clConf->setValue("gui_os_device_dev", m_cmbboxMbrDevice->currentText() );
|
|
|
|
|
clConf->setValue("os_install_x11_video_drv", m_cmbboxVideoDrv->currentText() );
|
|
|
|
|
clConf->setValue("os_install_x11_composite", m_chkboxComposite->isChecked() ? "on" : "off" );
|
|
|
|
|
clConf->setValue("gui_os_install_x11_video_drv", m_cmbboxVideoDrv->currentText() );
|
|
|
|
|
clConf->setValue("gui_os_install_x11_composite", m_chkboxComposite->isChecked() ? "on" : "off" );
|
|
|
|
|
|
|
|
|
|
clConf->setValue("gui_expert_mode", m_chkboxExtParameters->isChecked() ? "on" : "off" );
|
|
|
|
|
clConf->setValue("os_install_makeopts", m_editMakeOpts->text() );
|
|
|
|
|
clConf->setValue("os_install_proxy", m_editProxy->text() );
|
|
|
|
|
clConf->setValue("os_install_ntp", m_editNtp->text() );
|
|
|
|
|
clConf->setValue("os_install_clock_type", m_cmbboxClockType->currentText() );
|
|
|
|
|
clConf->setValue("gui_os_install_makeopts", m_editMakeOpts->text() );
|
|
|
|
|
clConf->setValue("gui_os_install_proxy", m_editProxy->text() );
|
|
|
|
|
clConf->setValue("gui_os_install_ntp", m_editNtp->text() );
|
|
|
|
|
clConf->setValue("gui_os_install_clock_type", m_cmbboxClockType->itemData( m_cmbboxClockType->currentIndex() ) );
|
|
|
|
|
|
|
|
|
|
clConf->showInstallParameters();
|
|
|
|
|
}
|
|
|
|
|