- LogView: take the complete XmlPatterns (d327c66c4) file set - the
auto-merged mix (XmlPatterns .cpp + validation .hpp) left duplicated
m_logger members and constructor signature mismatches, because the
two lineages reworked the module differently.
- LogView CMakeLists: the cleanup version (separate LogViewLogger
static library, required by tabPluginTetraJson and present in the
Release 2 target list).
- LtsUtilsGuiDds: link ddscore (BUILD_RTI) for the Core::FunctionReply
symbols, as in story/release-2-cleanup.
Full-scope ninja all is green; ctest 20/22 (the two failures,
GrantleeParserSmoke and utils_test, are out of the driver's 46-target
scope and 'Not Run' in the official baseline).
37 lines
719 B
C++
37 lines
719 B
C++
|
|
|
|
|
|
#include "LogViewBooleanEdit.hpp"
|
|
#include "LogViewField.hpp"
|
|
#include "LogViewTelegram.hpp"
|
|
|
|
namespace N_LogView
|
|
{
|
|
|
|
|
|
LogViewBooleanEdit::LogViewBooleanEdit(LogViewField* a_field, QWidget* a_parent, const bool a_readonly)
|
|
: QCheckBox (a_parent)
|
|
, LogViewWidget(a_field, this, a_parent, a_readonly)
|
|
{
|
|
const QString valueText = a_field->value(0);
|
|
|
|
setChecked(valueText.toInt() == 1);
|
|
setEnabled(!a_readonly);
|
|
}
|
|
|
|
|
|
bool LogViewBooleanEdit::saveContent(LogViewTelegram* a_telegram)
|
|
{
|
|
if (m_Valid)
|
|
{
|
|
if (a_telegram->isJsonTelegram())
|
|
a_telegram->setJsonValue(m_Field->jsonPath(), isChecked());
|
|
else
|
|
a_telegram->setUIntX(getSize(), isChecked());
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|