3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/controllers/MainMenuScreenController.h"
7#include "mc/common/JsonValidator.h"
13namespace Json {
class Reader; }
14namespace Json {
class Value; }
21 ::ll::TypedStorage<8, 192, ::JsonValidator::Property> mValidator;
22 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::DynamicContentBindingInformation>> mBindingData;
27 DynamicFormScreenController();
32 virtual ~DynamicFormScreenController() =
default;
38 MCAPI DynamicFormScreenController(
39 ::std::shared_ptr<::MainMenuScreenModel> model,
40 ::JsonValidator::Property
const& validator,
41 ::std::shared_ptr<::DynamicContentBindingInformation> bindingData
44 MCAPI
float _getNewSliderValueFinished(
int index,
float newPercent);
46 MCAPI
float _getNewSliderValueNotFinished(
int index,
float newPercent,
bool setChangeType);
48 MCAPI
void _handleValidationErrors(::Json::Reader
const& reader, ::std::vector<::std::string> validationErrors);
50 MCAPI
void _registerBindings();
52 MCAPI
bool _resolveControlEnabled(::Json::Value
const& formJson)
const;
54 MCAPI ::Json::Value getContentValues()
const;
56 MCAPI
bool validateAndBind(::Json::Value
const& formJSON);
63 ::std::shared_ptr<::MainMenuScreenModel> model,
64 ::JsonValidator::Property
const& validator,
65 ::std::shared_ptr<::DynamicContentBindingInformation> bindingData
Definition DynamicContentBindingInformation.h:5
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5