#include <EditableLargeNumberMenuItem.h>
Public Member Functions | |
EditableLargeNumberMenuItem (RuntimeRenderingFn renderFn, const LargeFixedNumber &initial, uint16_t id, bool allowNeg, MenuItem *next=nullptr) | |
EditableLargeNumberMenuItem (RuntimeRenderingFn renderFn, uint16_t id, int maxDigits, int dps, bool allowNeg, MenuItem *next=nullptr) | |
EditableLargeNumberMenuItem (RuntimeRenderingFn renderFn, uint16_t id, int maxDigits, int dps, MenuItem *next=nullptr) | |
EditableLargeNumberMenuItem (const AnyMenuInfo *info, const LargeFixedNumber &initial, bool allowNeg, MenuItem *next=nullptr, bool isPgm=INFO_LOCATION_PGM) | |
LargeFixedNumber * | getLargeNumber () |
void | setLargeNumberFromString (const char *largeNum) |
bool | isNegativeAllowed () const |
![]() | |
EditableMultiPartMenuItem (MenuType type, menuid_t id, int numberOfParts, RuntimeRenderingFn renderFn, MenuItem *next=nullptr) | |
EditableMultiPartMenuItem (const AnyMenuInfo *rtInfo, bool isPgm, MenuType type, int numberOfParts, RuntimeRenderingFn renderFn, MenuItem *next=nullptr) | |
uint8_t | beginMultiEdit () |
int | changeEditBy (int amt) |
int | previousPart () |
int | nextPart () |
int | getCurrentRange () const |
void | stopMultiEdit () |
int | getPartValueAsInt () const |
bool | valueChanged (int newVal) |
![]() | |
RuntimeMenuItem (MenuType menuType, menuid_t id, RuntimeRenderingFn renderFn, uint8_t itemPosition, uint8_t numberOfRows, MenuItem *next=nullptr) | |
RuntimeMenuItem (const AnyMenuInfo *rtInfo, bool isPgm, MenuType menuType, RuntimeRenderingFn renderFn, uint8_t itemPosition, uint8_t numberOfRows, MenuItem *next=nullptr) | |
void | copyValue (char *buffer, int bufferSize) const |
void | runCallback () const |
int | getRuntimeId () const |
int | getRuntimeEeprom () const |
uint8_t | getNumberOfParts () const |
void | copyRuntimeName (char *buffer, int bufferSize) const |
uint8_t | getNumberOfRows () const |
uint8_t | getItemPosition () const |
void | setNumberOfRows (uint8_t rows) |
![]() | |
uint8_t | copyNameToBuffer (char *sz, int size) const |
uint8_t | copyNameToBuffer (char *sz, int offset, int size) const |
menuid_t | getId () const |
uint16_t | getMaximumValue () const |
uint16_t | getEepromPosition () const |
MenuType | getMenuType () const |
void | triggerCallback () const |
bool | isInfoProgMem () const |
void | setChanged (bool changed) |
void | setChanged (int num, bool changed) |
bool | isChanged (int num=0) const |
bool | isSendRemoteNeeded (uint8_t remoteNo) const |
void | setSendRemoteNeededAll () |
void | clearSendRemoteNeededAll () |
void | setSendRemoteNeeded (uint8_t remoteNo, bool needed) |
void | setReadOnly (bool active) |
bool | isReadOnly () const |
void | setLocalOnly (bool localOnly) |
bool | isLocalOnly () const |
void | setSecured (bool secured) |
bool | isSecured () const |
void | setVisible (bool visible) |
bool | isVisible () const |
MenuItem * | getNext () const |
void | setNext (MenuItem *pNext) |
void | changeOccurred (bool silent) |
Additional Inherited Members | |
![]() | |
MenuItem (MenuType menuType, const AnyMenuInfo *menuInfo, MenuItem *next, bool infoProgMem) | |
![]() | |
menuid_t | id |
uint8_t | itemPosition |
uint8_t | noOfParts |
![]() | |
uint16_t | flags |
MenuItem * | next |
const AnyMenuInfo * | info = nullptr |
RuntimeRenderingFn | renderFn = nullptr |
MenuType | menuType |
A multipart editor for very large numbers, either integer or fixed point decimal that exceed the usable range of a rotary encoder or joystick to set their value. This class works by editing each digit in turn. This is based on LargeFixedNumber, see that for more details on the capabilities RenderFn - largeNumItemRenderFn
|
inline |
gets the large integer value that this class is using
void EditableLargeNumberMenuItem::setLargeNumberFromString | ( | const char * | largeNum | ) |
sets a number from a string in the form whole.fraction