Player12
An open source football management simulator
Loading...
Searching...
No Matches
EditorField Struct Reference

#include <editor_fields.h>

Public Types

enum class  Control { Text , Number , Choice , Attributes }
 

Public Attributes

std::string column
 
std::string label
 
std::string section
 
Control control = Control::Text
 
std::optional< double > minimum
 
std::optional< double > maximum
 
std::vector< std::pair< std::string, std::string > > choices
 

Detailed Description

Presentation belongs to the feature, never inferred from SQL storage types. Labels/sections/choice labels are localisation keys; stored choice values remain independent of the current language. Missing schema columns are omitted.

Member Enumeration Documentation

◆ Control

enum class EditorField::Control
strong
Enumerator
Text 
Number 
Choice 
Attributes 

Member Data Documentation

◆ choices

std::vector<std::pair<std::string, std::string> > EditorField::choices

◆ column

std::string EditorField::column

◆ control

Control EditorField::control = Control::Text

◆ label

std::string EditorField::label

◆ maximum

std::optional<double> EditorField::maximum

◆ minimum

std::optional<double> EditorField::minimum

◆ section

std::string EditorField::section

The documentation for this struct was generated from the following file: