message: Set product description using ProductCatalogue in FactoryReport
diff: @@ -121,7 +121,6 @@ FactoryReport::FactoryReport() :
  txtProductDescription.font(constants::FONT_PRIMARY, constants::FontPrimaryNormal);
  txtProductDescription.height(128);
  txtProductDescription.textColor(NAS2D::Color{0, 185, 0});
  - txtProductDescription.text("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
  fillLists();
  }
  @@ -142,6 +141,7 @@ void FactoryReport::clearSelected()
  {
  lstFactoryList.clearSelected();
  selectedFactory = nullptr;
  + txtProductDescription.text("");
  }
  @@ -289,6 +289,11 @@ void FactoryReport::onVisibilityChange(bool visible)
  StructureState state = selectedFactory->state();
  btnApply.visible(visible && (state == StructureState::Operational || state == StructureState::Idle));
  checkFactoryActionControls();
  +
  + if (selectedProductType != ProductType::PRODUCT_NONE)
  + {
  + txtProductDescription.text(ProductCatalogue::get(selectedProductType).Description);
  + }
  }
  @@ -420,6 +425,7 @@ void FactoryReport::onListSelectionChange()
  void FactoryReport::onProductSelectionChange()
  {
  selectedProductType = static_cast<ProductType>(lstProducts.isItemSelected() ? lstProducts.selected().tag : 0);
  + txtProductDescription.text(ProductCatalogue::get(selectedProductType).Description);
  }
  