Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
Redstart
Commits
0bb4d113
Commit
0bb4d113
authored
Nov 15, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Starting core UI methods
parent
c6b53b25
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/RedstartWindow.cpp
View file @
0bb4d113
...
...
@@ -99,6 +99,14 @@ void RedstartWindow::LoadConfiguration()
if
(
m_qSettings
.
contains
(
"Redstart/autostart"
)
)
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
()
...
...
@@ -279,7 +287,8 @@ void RedstartWindow::PostCoreStart()
oArgs
[
"getloglevel"
]
=
true
;
const
CVAStruct
oReturn
=
m_pVAInterface
->
CallModule
(
"VACore"
,
oArgs
);
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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment