Move data field sorting to NamedField
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#ifndef NAMEDFIELD_HPP
|
||||
#define NAMEDFIELD_HPP
|
||||
|
||||
#include "params.h"
|
||||
#include "touchgfx/TypedText.hpp"
|
||||
#include "touchgfx/Unicode.hpp"
|
||||
#include <stddef.h>
|
||||
@ -29,6 +30,13 @@ struct NamedFieldDescription {
|
||||
extern NamedFieldDescription dataFieldDescs[];
|
||||
extern NamedFieldDescription paramFieldDescs[];
|
||||
|
||||
extern DataFieldType dataFieldByAlphaIndex[];
|
||||
extern size_t dataFieldAlphaIndexByField[];
|
||||
extern ParamType paramByAlphaIndex[];
|
||||
extern size_t paramAlphaIndexByParam[];
|
||||
|
||||
void namedFieldSort();
|
||||
|
||||
template <class T> class NamedField {
|
||||
public:
|
||||
NamedField(const NamedFieldDescription *fieldDescs);
|
||||
|
||||
@ -52,8 +52,6 @@ private:
|
||||
size_t selectedField;
|
||||
size_t selectedFieldIndex;
|
||||
DataFieldType fieldTypes[NUM_FIELDS];
|
||||
size_t indexByFieldType[DataFieldType_COUNT];
|
||||
DataFieldType fieldTypeByIndex[DataFieldType_COUNT];
|
||||
|
||||
touchgfx::Unicode::UnicodeChar r2dProgBuffer[16];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user