Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <CEditNum.hpp>
Classes | |
struct | SEditNum |
Public Types | |
enum class | ePrvTimeEdit { Seconds = iv::constants::time::MillisecondsInSeconds , Minutes = iv::constants::time::MillisecondsInMinutes , Hours = iv::constants::time::MillisecondsInHours , Days = iv::constants::time::MillisecondsInDays } |
enum class | EPrvTypeEdit { Double , Int64_t , Int32_t , Int16_t , UInt64_t , UInt32_t , UInt16_t , UInt8_t } |
Public Member Functions | |
~CEditNum () override | |
double | getValueDouble () const |
bool | getValueInt64_t (int64_t *value) const |
bool | getValueInt32_t (int32_t *value) const |
bool | getValueInt16_t (int16_t *value) const |
bool | getValueUInt64_t (uint64_t *value) const |
bool | getValueUInt32_t (uint32_t *value) const |
bool | getValueUInt16_t (uint16_t *value) const |
bool | getValueUChar (uint8_t *value) const |
template<typename T > requires iv::concepts::IntegerType<T> || iv::concepts::FloatingPointType<T> | |
void | setValue (T value) |
template<typename T > requires std::is_arithmetic_v<T> | |
void | setInterval (T minValue, T maxValue) |
const std::string & | getNameField () const |
void | destroyWidget () override |
void | addListenerActivate (IListenerActivate **listener) |
void | runListenersActivate () |
void | emplaceListenerSheetFocus (const std::function< void()> &sheetFocusLambda) |
void | runListenersSheetFocus () |
CEnumComponentsGUI::EDataType | getTypeEdit () const |
std::string | getEntryText () const |
std::string | getTextEntryInitial () const |
unsigned short | getNumMaxChar () const |
void | setDefineSize (unsigned short numCharSize) |
void | setDefineNumMaxChar (unsigned short numMaxChar) |
void | setPassword () |
void | setTypeEdit (CEnumComponentsGUI::EDataType typeEdit) |
void | setShouldDisplayPopOverIfError (bool displayPopOverIfError) |
void | setText (const std::string &text) |
void | setWordsAutocompletion (std::vector< std::string > wordsAutocompletion) |
void | setAcceptOnlyWordAutocompletion (std::string msgErrorWordAutocompletion) |
bool | shouldDisplayPopOverIfError () const |
virtual bool | filterSpecialChar (char car) |
CDialog * | getDialogFatherRef () |
void | setDialogFatherOption (CDialog *dialogFatherRef) |
std::string | getTooltip () const |
bool | getActive () const |
bool | getInactiveVisualFeedback () const |
void | getSize (double *sizeX, double *sizeY) const |
IWidget * | makeWidget (CDialog *dialogFatherRef, AbstractComponentGUI *componentFatherRef) |
void | addDataPanel (IDataPanel **dataPanel) |
void | addListenerAccept (IListenerAccept **listenerAccept) |
void | addListenerValidate (IListenerValidate **listenerValidate) |
void | addListenerChange (IListenerChange **listenerChange) |
void | addListenerClose (IListenerClose **listenerClose) |
void | addListenerIsAccept (IListenerIsAccept **listenerIsAccept) |
void | addListenerUpdate (IListenerUpdate **listenerUpdate) |
void | addListenerTimer (uint64_t timeout, IListenerTimer **timer) |
Agrega un listener de tipo Timer. | |
void | emplaceListenerAccept (std::function< void()> acceptFunctionCall) |
Agrega un IListenerAccept formado mediante una función lambda. | |
void | emplaceListenerClose (std::function< void()> closeFunctionCall) |
Agrega un IListenerClose formado mediante una función lambda. | |
void | emplaceListenerChange (std::function< void(CDialog *, AbstractComponentGUI *)> changeFunctionCall) |
Agrega un IListenerChange formado mediante una función lambda. | |
void | emplaceListenerIsAccept (std::function< bool(AbstractComponentGUI *, std::string *)> isAcceptFunctionCall) |
Agrega un IListenerIsAccept formado mediante una función lambda. | |
void | emplaceListenerTimer (uint64_t timeout, std::function< bool()> timerExecutionFunctionCall) |
Agrega un IListenerTimer formado mediante una función lambda. | |
bool | runValidate () |
void | runChange () |
void | runClose () |
bool | runListenersIsAccept (std::string *messageError) |
void | runListenersAccept () |
void | runListenersUpdate () |
void | displayPopOver (std::string_view message, iv::types::milliseconds timeout=2000) |
void | grabFocus () |
void | setName (const std::string &name) |
void | setTooltip (std::string_view tooltip) |
void | setActive (bool isActive) |
void | setHAlignment (CEnumComponentsGUI::EAlignmentHorizontal alignment) |
void | setVAlignment (CEnumComponentsGUI::EAlignmentVertical alignment) |
void | setBlinking (bool isBlinking) |
void | setColorBlink (iv::types::color colorARGB) |
void | setColorBackground (iv::types::color colorARGB) |
void | setColorForeground (iv::types::color colorARGB) |
void | setDefaultColorBlink () |
void | setDefaultColorBackground () |
void | setDefaultColorForeground () |
void | setDefaultMinimum (iv::types::width sizeX, iv::types::height sizeY) |
void | setDefaultWidthMaximum (iv::types::width sizeX) |
void | setDefaultHeightMaximum (iv::types::height sizeY) |
void | setVisible (bool isVisible) |
void | setInactiveVisualFeedback (bool hasInactiveVisualFeedback) |
IWidget * | getWidget () const |
bool | getBlinking () |
void | updateColor () |
Static Public Member Functions | |
template<iv::concepts::IntegerType T> | |
static CEditNum * | createInteger (const std::string &nameField, T &valueRef, const uint16_t numMaxChar) |
template<iv::concepts::IntegerType T, iv::concepts::IntegerType R1, iv::concepts::IntegerType R2> requires std::is_convertible_v<R1, T> && std::is_convertible_v<R2, T> | |
static CEditNum * | createIntegerWithInterval (const std::string &nameField, T &valueRef, R1 minValue, R2 maxValue, uint16_t numMaxChar) |
template<iv::concepts::FloatingPointType T> | |
static CEditNum * | createFloatingPoint (const std::string &nameField, T &valueRef, uint8_t numMaxDecimals, uint8_t numMaxChar) |
template<iv::concepts::FloatingPointType T> | |
static CEditNum * | createFloatingPointWithInterval (const std::string &nameField, T &valueRef, T minValue, T maxValue, uint8_t numMaxDecimals, uint8_t numMaxChar) |
static CEditNum * | createTime (const std::string &nameField, ePrvTimeEdit timeFormat, iv::types::milliseconds &time, uint16_t numMaxChar) |
static CEditNum * | createTimeWithInterval (const std::string &nameField, ePrvTimeEdit timeFormat, iv::types::milliseconds &time, iv::types::milliseconds minTime, iv::types::milliseconds maxTime, uint16_t numMaxChar) |
Static Public Attributes | |
static const int32_t | kDefaultSizeString = 5 |
static const int32_t | kDefaultNumMaxCharString = 200 |
Protected Attributes | |
std::vector< IListenerIsAccept * > * | m_listenersIsAccept |
std::vector< IListenerAccept * > * | m_listenersAccept |
std::vector< IListenerValidate * > * | m_listenersValidate |
std::vector< IListenerChange * > * | m_listenersChange |
std::vector< IListenerClose * > * | m_listenersClose |
std::vector< IListenerUpdate * > * | m_listenersUpdate |
const std::weak_ptr< IComponentsGUI > & | m_frameRef {m_mutableFrameRef} |
std::weak_ptr< IComponentsGUI > | m_mutableFrameRef |
AbstractComponentGUI * | m_componentFatherRef |
IWidget * | m_widget |
CDialog * | m_dialogFatherRef |
Private Member Functions | |
bool | filterChar (char car, std::string *filterReasonOpt) override |
bool | filterCharAtEnd (char car, std::string *filterReasonOpt) override |
CEditNum (SEditNum **dataPrivate, std::string *strValue, unsigned short numMaxChar) | |
IWidget * | createWidget (CDialog *dialogFatherRef) override |
void | prvProcessChangeRecursive (uint64_t recursiveLevel) |
virtual void | prvProcessCloseChildren () |
Static Private Member Functions | |
static CEditNum * | createDouble (const std::string &nameField, double *number, uint8_t numMaxDecimals, uint8_t numMaxChar) |
static CEditNum * | createDoubleWithInterval (const std::string &nameField, double *number, double minDouble, double maxDouble, uint8_t numMaxDecimals, uint8_t numMaxChar) |
static CEditNum * | createEditInt64_t (const std::string &nameField, int64_t *number, uint16_t numMaxChar) |
static CEditNum * | createEditInt32_t (const std::string &nameField, int32_t *number, int32_t numMaxChar) |
static CEditNum * | createEditInt16_t (const std::string &nameField, int16_t *number, uint16_t numMaxChar) |
static CEditNum * | createEditInt64WithInterval (const std::string &nameField, int64_t *number, int64_t minInt64, int64_t maxInt64, int16_t numMaxChar) |
static CEditNum * | createEditInt32WithInterval (const std::string &nameField, int32_t *number, int32_t minInt32, int32_t maxInt32, int16_t numMaxChar) |
static CEditNum * | createEditInt16WithInterval (const std::string &nameField, int16_t *number, int16_t minInt16, int16_t maxInt16, int16_t numMaxChar) |
static CEditNum * | createEditUInt64_t (const std::string &nameField, uint64_t *number, uint16_t numMaxChar) |
static CEditNum * | createEditUInt32_t (const std::string &nameField, uint32_t *number, uint16_t numMaxChar) |
static CEditNum * | createEditUInt16_t (const std::string &nameField, uint16_t *number, uint16_t numMaxChar) |
static CEditNum * | createEditUChar (const std::string &nameField, uint8_t *number, unsigned short numMaxChar) |
static CEditNum * | createEditUInt64WithInterval (const std::string &nameField, uint64_t *number, uint64_t minUInt64, uint64_t maxUInt64, uint16_t numMaxChar) |
static CEditNum * | createEditUInt32WithInterval (const std::string &nameField, uint32_t *number, uint32_t minUInt32, uint32_t maxUInt32, uint16_t numMaxChar) |
static CEditNum * | createEditUInt16WithInterval (const std::string &nameField, uint16_t *number, uint16_t minUInt16, uint16_t maxUInt16, uint16_t numMaxChar) |
static CEditNum * | createEditUCharWithInterval (const std::string &nameField, uint8_t *number, uint8_t minUInt8, uint8_t maxUInt8, unsigned short numMaxChar) |
static bool | filterSpecialChars (char car) |
Private Attributes | |
SEditNum * | m_sEditNum |
SEdit * | m_dataPrivateEdit |
std::vector< IListenerActivate * > | m_listeners |
std::vector< std::shared_ptr< iv::ui::gui::IListenerSheetFocus > > | m_listenerSheetFocus |
std::string | m_name |
std::string | m_tooltip |
bool | m_isVisible |
bool | m_isActive |
bool | m_hasInactiveVisualFeedback {true} |
CEnumComponentsGUI::EAlignmentHorizontal | m_alignmentHorizontalComponent |
CEnumComponentsGUI::EAlignmentVertical | m_alignmentVerticalComponent |
CAttrColorComp * | m_attrColor |
bool | m_hasSizeMinimum |
iv::types::width | m_sizeXMinimum |
iv::types::height | m_sizeYMinimum |
std::optional< iv::types::width > | m_sizeXMaximum |
std::optional< iv::types::height > | m_sizeYMaximum |
std::vector< std::shared_ptr< SPrvTimerData > > | m_rcpTimers |
std::vector< IDataPanel * > * | m_dataPanels |
|
strong |
|
strong |
|
override |
|
private |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Agrega un listener de tipo Timer.
timeout | tiempo de espera en milisegundos. |
timer | referencia al listener Timer. |
|
inherited |
|
inherited |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
Implements AbstractComponentGUI.
|
overridevirtualinherited |
destroyWidget.
Destroys the widget held by the AbstractComponentGUI object and resets its related references.
This is needed for example by the object CSheet to create and destroy widgets on demand, keeping the component (AbstractComponentGUI), in order to manage multiple cells and preventing a high increase in memory use.
Inherited classes that hold a reference to the related members must reset them too (override this virtual method).
Reimplemented from AbstractComponentGUI.
|
inherited |
|
inherited |
Agrega un IListenerAccept formado mediante una función lambda.
acceptFunctionCall | función lambda a ejecutar por el listener. |
|
inherited |
Agrega un IListenerChange formado mediante una función lambda.
changeFunctionCall | función lambda a ejecutar por el listener. |
|
inherited |
Agrega un IListenerClose formado mediante una función lambda.
closeFunctionCall | función lambda a ejecutar por el listener. |
|
inherited |
Agrega un IListenerIsAccept formado mediante una función lambda.
isAcceptFunctionCall | función lambda a ejecutar por el listener. |
|
inherited |
|
inherited |
Agrega un IListenerTimer formado mediante una función lambda.
timeout | tiempo de espera en milisegundos. |
timerExecutionFunctionCall | función lambda a ejecutar por el listener. |
|
overrideprivatevirtual |
Reimplemented from CEdit.
|
overrideprivatevirtual |
Reimplemented from CEdit.
|
inlinevirtualinherited |
|
staticprivateinherited |
|
nodiscardinherited |
|
inherited |
|
inherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscard |
|
nodiscardinherited |
|
inherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscard |
bool CEditNum::getValueInt16_t | ( | int16_t * | value | ) | const |
bool CEditNum::getValueInt32_t | ( | int32_t * | value | ) | const |
bool CEditNum::getValueInt64_t | ( | int64_t * | value | ) | const |
bool CEditNum::getValueUChar | ( | uint8_t * | value | ) | const |
bool CEditNum::getValueUInt16_t | ( | uint16_t * | value | ) | const |
bool CEditNum::getValueUInt32_t | ( | uint32_t * | value | ) | const |
bool CEditNum::getValueUInt64_t | ( | uint64_t * | value | ) | const |
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
privatevirtualinherited |
Reimplemented in AbstractLayout, CLayoutContainer, CLayoutGrid, and CLayoutTabs.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
private |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |