Commit 0bb4d113 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Starting core UI methods

parent c6b53b25
...@@ -99,6 +99,14 @@ void RedstartWindow::LoadConfiguration() ...@@ -99,6 +99,14 @@ void RedstartWindow::LoadConfiguration()
if( m_qSettings.contains( "Redstart/autostart" ) ) if( m_qSettings.contains( "Redstart/autostart" ) )
ui->checkBox_redstart_auto_start->setChecked( m_qSettings.value( "Redstart/autostart" ).toBool() ); ui->checkBox_redstart_auto_start->setChecked( m_qSettings.value( "Redstart/autostart" ).toBool() );
// Core control
ui->comboBox_core_settings_log_level->addItem( QString::fromStdString( m_pVAInterface->GetLogLevelStr( IVAInterface::VA_LOG_LEVEL_QUIET ) ) );
ui->comboBox_core_settings_log_level->addItem( QString::fromStdString( m_pVAInterface->GetLogLevelStr( IVAInterface::VA_LOG_LEVEL_ERROR ) ) );
ui->comboBox_core_settings_log_level->addItem( QString::fromStdString( m_pVAInterface->GetLogLevelStr( IVAInterface::VA_LOG_LEVEL_WARNING ) ) );
ui->comboBox_core_settings_log_level->addItem( QString::fromStdString( m_pVAInterface->GetLogLevelStr( IVAInterface::VA_LOG_LEVEL_INFO ) ) );
ui->comboBox_core_settings_log_level->addItem( QString::fromStdString( m_pVAInterface->GetLogLevelStr( IVAInterface::VA_LOG_LEVEL_VERBOSE ) ) );
ui->comboBox_core_settings_log_level->addItem( QString::fromStdString( m_pVAInterface->GetLogLevelStr( IVAInterface::VA_LOG_LEVEL_TRACE ) ) );
} }
void RedstartWindow::StoreConfiguration() void RedstartWindow::StoreConfiguration()
...@@ -279,7 +287,8 @@ void RedstartWindow::PostCoreStart() ...@@ -279,7 +287,8 @@ void RedstartWindow::PostCoreStart()
oArgs[ "getloglevel" ] = true; oArgs[ "getloglevel" ] = true;
const CVAStruct oReturn = m_pVAInterface->CallModule( "VACore", oArgs ); const CVAStruct oReturn = m_pVAInterface->CallModule( "VACore", oArgs );
const int iCurrentLogLevel = oReturn[ "loglevel" ]; const int iCurrentLogLevel = oReturn[ "loglevel" ];
ui->comboBox_core_settings_log_level->addItem( QString::fromStdString( m_pVAInterface->GetLogLevelStr( iCurrentLogLevel ) ) );
ui->comboBox_core_settings_log_level->setCurrentIndex( iCurrentLogLevel );
} }
void RedstartWindow::PostCoreStop() void RedstartWindow::PostCoreStop()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment