diff --git a/src/cpp/core/YogaWidget/yogawidget.cpp b/src/cpp/core/YogaWidget/yogawidget.cpp index 412328139..e208a35c8 100644 --- a/src/cpp/core/YogaWidget/yogawidget.cpp +++ b/src/cpp/core/YogaWidget/yogawidget.cpp @@ -8,7 +8,7 @@ void YogaWidget::setYDisplay(QString rawValue){ int value = NodeStyle::NodeDisplay.at(rawDisplay); YGNodeStyleSetDisplay(this->getFlexNode(),static_cast(value)); this->_yDisplay = rawValue; - spdlog::info("Value set display {}", rawDisplay); + spdlog::info("set display: {}", rawDisplay); }catch(...){ spdlog::warn("Invalid value: display: {}",rawValue.toStdString()); } @@ -19,7 +19,7 @@ void YogaWidget::setYAlignItems(QString rawValue){ int value = NodeStyle::NodeAlign.at(rawAlignItems); YGNodeStyleSetAlignItems(this->getFlexNode(),static_cast(value)); this->_yAlignItems = rawValue; - spdlog::info("Value set alignItems {}", rawAlignItems); + spdlog::info("set alignItems: {}", rawAlignItems); }catch(...){ spdlog::warn("Invalid value: alignItems: {}",rawValue.toStdString()); } @@ -30,7 +30,7 @@ void YogaWidget::setYAlignContent(QString rawValue){ int value = NodeStyle::NodeAlign.at(rawAlignContent); YGNodeStyleSetAlignContent(this->getFlexNode(),static_cast(value)); this->_yAlignContent = rawValue; - qDebug()<<"Value set alignContent "<getFlexNode(),static_cast(value)); this->_yAlignSelf = rawValue; - qDebug()<<"Value set alignSelf "<getFlexNode(),static_cast(value)); this->_yJustifyContent = rawValue; - qDebug()<<"Value set justifyContent "<getFlexNode(),static_cast(value)); this->_yDirection = rawValue; - qDebug()<<"Value set direction "<getFlexNode(),static_cast(value)); this->_yFlexDirection = rawValue; - qDebug()<<"Value set flexDirection "<getFlexNode(),static_cast(value)); this->_yOverflow = rawValue; - qDebug()<<"Value set overflow "<getFlexNode(),static_cast(value)); this->_yPosition = rawValue; - qDebug()<<"Value set positionType "<getFlexNode(),static_cast(value)); this->_yFlexWrap = rawValue; - qDebug()<<"Value set flexWrap "<getFlexNode(),rawValue); this->_yFlex = rawValue; - qDebug()<<"Value set flex "<getFlexNode(),rawValue); this->_yFlexGrow = rawValue; - qDebug()<<"Value set flexGrow "<getFlexNode(),rawValue); this->_yFlexShrink = rawValue; - qDebug()<<"Value set flexShrink "<getFlexNode(),rawValue); this->_yAspectRatio = rawValue; - qDebug()<<"Value set aspectRatio "<getFlexNode(), YGEdgeTop,measurement.value) : YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeTop,measurement.value); this->_yTop = rawValue; + spdlog::info("set top: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: top: {}",rawValue.toStdString()); } @@ -166,6 +167,7 @@ void YogaWidget::setYNodeRight(QString rawValue){ ? YGNodeStyleSetPositionPercent(this->getFlexNode(), YGEdgeRight,measurement.value) : YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeRight,measurement.value); this->_yRight = rawValue; + spdlog::info("set right: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: right: {}",rawValue.toStdString()); } @@ -178,6 +180,7 @@ void YogaWidget::setYNodeBottom(QString rawValue){ ? YGNodeStyleSetPositionPercent(this->getFlexNode(), YGEdgeBottom,measurement.value) : YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeBottom,measurement.value); this->_yBottom = rawValue; + spdlog::info("set bottom: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: bottom: {}",rawValue.toStdString()); } @@ -190,6 +193,7 @@ void YogaWidget::setYNodeLeft(QString rawValue){ ? YGNodeStyleSetPositionPercent(this->getFlexNode(), YGEdgeLeft,measurement.value) : YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeLeft,measurement.value); this->_yLeft = rawValue; + spdlog::info("set left: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: left: {}",rawValue.toStdString()); } @@ -206,6 +210,7 @@ void YogaWidget::setYFlexBasis(QString rawValue){ : YGNodeStyleSetFlexBasis(this->getFlexNode(),measurement.value); } this->_yFlexBasis = rawValue; + spdlog::info("set flexBasis: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: flexBasis: {}",rawValue.toStdString()); } @@ -218,6 +223,7 @@ void YogaWidget::setYMinWidth(QString rawValue){ ? YGNodeStyleSetMinWidthPercent(this->getFlexNode(), measurement.value) : YGNodeStyleSetMinWidth(this->getFlexNode(), measurement.value); this->_yMinWidth = rawValue; + spdlog::info("set minWidth: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: minWidth: {}",rawValue.toStdString()); } @@ -229,6 +235,7 @@ void YogaWidget::setYMinHeight(QString rawValue){ ? YGNodeStyleSetMinHeightPercent(this->getFlexNode(), measurement.value) : YGNodeStyleSetMinHeight(this->getFlexNode(), measurement.value); this->_yMinHeight = rawValue; + spdlog::info("set minHeight: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: minHeight: {}",rawValue.toStdString()); } @@ -240,6 +247,7 @@ void YogaWidget::setYMaxWidth(QString rawValue){ ? YGNodeStyleSetMaxWidthPercent(this->getFlexNode(), measurement.value) : YGNodeStyleSetMaxWidth(this->getFlexNode(), measurement.value); this->_yMaxWidth = rawValue; + spdlog::info("set maxWidth: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: maxWidth: {}",rawValue.toStdString()); } @@ -251,6 +259,7 @@ void YogaWidget::setYMaxHeight(QString rawValue){ ? YGNodeStyleSetMaxHeightPercent(this->getFlexNode(), measurement.value) : YGNodeStyleSetMaxHeight(this->getFlexNode(), measurement.value); this->_yMaxHeight = rawValue; + spdlog::info("set maxHeight: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: maxHeight: {}",rawValue.toStdString()); } @@ -262,6 +271,7 @@ void YogaWidget::setYPaddingTop(QString rawValue){ ? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeTop, measurement.value) : YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeTop, measurement.value); this->_yPaddingTop = rawValue; + spdlog::info("set paddingTop: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: paddingTop: {}",rawValue.toStdString()); } @@ -273,6 +283,7 @@ void YogaWidget::setYPaddingRight(QString rawValue){ ? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeRight, measurement.value) : YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeRight, measurement.value); this->_yPaddingRight = rawValue; + spdlog::info("set paddingRight: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: paddingRight: {}",rawValue.toStdString()); } @@ -284,6 +295,7 @@ void YogaWidget::setYPaddingBottom(QString rawValue){ ? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeBottom, measurement.value) : YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeBottom, measurement.value); this->_yPaddingBottom = rawValue; + spdlog::info("set paddingBottom: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: paddingBottom: {}",rawValue.toStdString()); } @@ -295,6 +307,7 @@ void YogaWidget::setYPaddingLeft(QString rawValue){ ? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeLeft, measurement.value) : YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeLeft, measurement.value); this->_yPaddingLeft = rawValue; + spdlog::info("set paddingLeft: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: paddingLeft: {}",rawValue.toStdString()); } @@ -306,6 +319,7 @@ void YogaWidget::setYPaddingHorizontal(QString rawValue){ ? YGNodeStyleSetPaddingPercent(this->getFlexNode(), YGEdgeHorizontal, measurement.value) : YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeHorizontal, measurement.value); this->_yPaddingHorizontal = rawValue; + spdlog::info("set paddingHorizontal: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: paddingHorizontal: {}",rawValue.toStdString()); } @@ -317,6 +331,7 @@ void YogaWidget::setYPaddingVertical(QString rawValue){ ? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeVertical, measurement.value) : YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeVertical, measurement.value); this->_yPaddingVertical = rawValue; + spdlog::info("set paddingVertical: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: paddingVertical: {}",rawValue.toStdString()); } @@ -328,6 +343,7 @@ void YogaWidget::setYPadding(QString rawValue){ ? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeAll, measurement.value) : YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeAll, measurement.value); this->_yPadding = rawValue; + spdlog::info("set padding: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: padding: {}",rawValue.toStdString()); } @@ -339,6 +355,7 @@ void YogaWidget::setYMarginTop(QString rawValue){ ? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeTop, measurement.value) : YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeTop, measurement.value); this->_yMarginTop = rawValue; + spdlog::info("set marginTop: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: marginTop: {}",rawValue.toStdString()); } @@ -350,6 +367,7 @@ void YogaWidget::setYMarginRight(QString rawValue){ ? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeRight, measurement.value) : YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeRight, measurement.value); this->_yMarginRight = rawValue; + spdlog::info("set marginRight: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: marginRight: {}",rawValue.toStdString()); } @@ -361,6 +379,7 @@ void YogaWidget::setYMarginBottom(QString rawValue){ ? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeBottom, measurement.value) : YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeBottom, measurement.value); this->_yMarginBottom = rawValue; + spdlog::info("set marginBottom: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: marginBottom: {}",rawValue.toStdString()); } @@ -372,6 +391,7 @@ void YogaWidget::setYMarginLeft(QString rawValue){ ? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeLeft, measurement.value) : YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeLeft, measurement.value); this->_yMarginLeft = rawValue; + spdlog::info("set marginLeft: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: marginLeft: {}",rawValue.toStdString()); } @@ -383,6 +403,7 @@ void YogaWidget::setYMarginHorizontal(QString rawValue){ ? YGNodeStyleSetMarginPercent(this->getFlexNode(), YGEdgeHorizontal, measurement.value) : YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeHorizontal, measurement.value); this->_yMarginHorizontal = rawValue; + spdlog::info("set marginHorizontal: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: marginHorizontal: {}",rawValue.toStdString()); } @@ -394,6 +415,7 @@ void YogaWidget::setYMarginVertical(QString rawValue){ ? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeVertical, measurement.value) : YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeVertical, measurement.value); this->_yMarginVertical = rawValue; + spdlog::info("set marginVertical: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: marginVertical: {}",rawValue.toStdString()); } @@ -405,6 +427,7 @@ void YogaWidget::setYMarginAll(QString rawValue){ ? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeAll, measurement.value) : YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeAll, measurement.value); this->_yMargin = rawValue; + spdlog::info("set margin: {}", rawValue.toStdString()); }catch(...){ spdlog::warn("Invalid value: margin: {}",rawValue.toStdString()); } @@ -414,6 +437,7 @@ void YogaWidget::setYBorderTop(float rawValue){ try { YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeTop, rawValue); this->_yBorderTop = rawValue; + spdlog::info("set borderTop: {}", rawValue); }catch(...){ spdlog::warn("Invalid value: borderTop: {}",rawValue); } @@ -422,6 +446,7 @@ void YogaWidget::setYBorderRight(float rawValue){ try { YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeRight, rawValue); this->_yBorderRight = rawValue; + spdlog::info("set borderRight: {}", rawValue); }catch(...){ spdlog::warn("Invalid value: borderRight: {}",rawValue); } @@ -430,6 +455,7 @@ void YogaWidget::setYBorderBottom(float rawValue){ try { YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeBottom, rawValue); this->_yBorderBottom = rawValue; + spdlog::info("set borderBottom: {}", rawValue); }catch(...){ spdlog::warn("Invalid value: borderBottom: {}",rawValue); } @@ -438,6 +464,7 @@ void YogaWidget::setYBorderLeft(float rawValue){ try { YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeLeft, rawValue); this->_yBorderLeft = rawValue; + spdlog::info("set borderLeft: {}", rawValue); }catch(...){ spdlog::warn("Invalid value: borderLeft: {}",rawValue); } @@ -446,6 +473,7 @@ void YogaWidget::setYBorderHorizontal(float rawValue){ try { YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeHorizontal, rawValue); this->_yBorderHorizontal = rawValue; + spdlog::info("set borderHorizontal: {}", rawValue); }catch(...){ spdlog::warn("Invalid value: borderHorizontal: {}",rawValue); } @@ -454,6 +482,7 @@ void YogaWidget::setYBorderVertical(float rawValue){ try { YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeVertical, rawValue); this->_yBorderVertical = rawValue; + spdlog::info("set borderVertical: {}", rawValue); }catch(...){ spdlog::warn("Invalid value: borderVertical: {}",rawValue); } @@ -463,6 +492,7 @@ void YogaWidget::setYBorder(float rawValue){ try { YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeAll, rawValue); this->_yBorder = rawValue; + spdlog::info("set border: {}", rawValue); }catch(...){ spdlog::warn("Invalid value: border: {}",rawValue); }