Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <AbstractLayout.hpp>
Classes | |
struct | SAbstractLayoutData |
struct | SComponentsBox |
Public Member Functions | |
AbstractLayout () | |
~AbstractLayout () override=default | |
void | addStart (AbstractComponentGUI *components) const |
void | addStart (AbstractComponentGUI *components, bool expand, bool fill, iv::types::padding padding=AbstractLayout::kPaddingDefault) const |
void | addEnd (AbstractComponentGUI *components) const |
void | addEnd (AbstractComponentGUI *components, bool expand, bool fill, iv::types::padding padding=AbstractLayout::kPaddingDefault) const |
virtual void | addStartLabeled (AbstractComponentGUI *components, std::string_view label)=0 |
void | setHAlignmentComponents (CEnumComponentsGUI::EAlignmentHorizontal alignment) |
void | setVAlignmentComponents (CEnumComponentsGUI::EAlignmentVertical alignment) |
void | setCompact (bool isCompact) const |
void | setPadding (iv::types::padding padding) const |
void | addListenerShortClick (IListenerClick **listener) |
void | emplaceListenerShortClick (std::function< void(CEventClick *evtClick)> clickFunctionCall) |
Agrega un IListenerClick formado mediante una función lambda. | |
void | runListenersShortClick () |
bool | hasListenersShortClick () const |
void | addListenerLongClick (IListenerClick **listener) |
void | emplaceListenerLongClick (std::function< void(CEventClick *evtClick)> clickFunctionCall) |
void | runListenersLongClick () |
bool | hasListenersLongClick () const |
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) |
virtual void | destroyWidget () |
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 Attributes | |
static constexpr iv::types::padding | kPaddingDefault = 5 |
Protected Member Functions | |
virtual IWidget * | createLayout ()=0 |
IWidget * | createWidget (CDialog *dialogFatherRef) override |
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 | |
void | prvProcessCloseChildren () override |
void | prvProcessChangeRecursive (uint64_t recursiveLevel) |
Private Attributes | |
std::vector< IListenerClick * > | m_listenersShortClick |
std::vector< IListenerClick * > | m_listenersLongClick |
std::shared_ptr< SAbstractLayoutData > | m_abstractLayoutData |
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 |
AbstractLayout::AbstractLayout | ( | ) |
|
overridedefault |
|
inherited |
void AbstractLayout::addEnd | ( | AbstractComponentGUI * | components | ) | const |
void AbstractLayout::addEnd | ( | AbstractComponentGUI * | components, |
bool | expand, | ||
bool | fill, | ||
iv::types::padding | padding = AbstractLayout::kPaddingDefault ) const |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void AbstractLayout::addListenerLongClick | ( | IListenerClick ** | listener | ) |
void AbstractLayout::addListenerShortClick | ( | IListenerClick ** | listener | ) |
|
inherited |
Agrega un listener de tipo Timer.
timeout | tiempo de espera en milisegundos. |
timer | referencia al listener Timer. |
|
inherited |
|
inherited |
void AbstractLayout::addStart | ( | AbstractComponentGUI * | components | ) | const |
void AbstractLayout::addStart | ( | AbstractComponentGUI * | components, |
bool | expand, | ||
bool | fill, | ||
iv::types::padding | padding = AbstractLayout::kPaddingDefault ) const |
Añade un elemento al layout.
components | Componente a añadir. |
expand | Si se debe expandir el espacio que ocupa (al redimensionar ocupa el mismo espacio relativo) |
fill | Si el dibujado debe ocupar todo el espacio que ocupa |
padding | Espaciado con los demás |
|
pure virtual |
Implemented in CLayoutHorizontal, and CLayoutVertical.
|
protectedpure virtual |
Implemented in CLayoutHorizontal, and CLayoutVertical.
Implements AbstractComponentGUI.
|
virtualinherited |
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 in CCalendar, CCanvas, CCheckButton, CComboBox, CComboBoxString, CEdit, CFrameBin, CGooCanvas, CInfoBar, CLayoutContainer, CLayoutLayers, CLayoutTabs, CList, CPaned, CPickerFileChooser, CProgress, CRadioButton, CSheet, and CTree.
|
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. |
void AbstractLayout::emplaceListenerLongClick | ( | std::function< void(CEventClick *evtClick)> | clickFunctionCall | ) |
void AbstractLayout::emplaceListenerShortClick | ( | std::function< void(CEventClick *evtClick)> | clickFunctionCall | ) |
Agrega un IListenerClick formado mediante una función lambda.
clickFunctionCall | función lambda a ejecutar por el listener. |
|
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. |
|
nodiscardinherited |
|
inherited |
|
inherited |
|
nodiscardinherited |
|
inherited |
|
nodiscardinherited |
|
inherited |
|
inherited |
bool AbstractLayout::hasListenersLongClick | ( | ) | const |
bool AbstractLayout::hasListenersShortClick | ( | ) | const |
|
inherited |
|
privateinherited |
|
overrideprivatevirtual |
Reimplemented from AbstractComponentGUI.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void AbstractLayout::runListenersLongClick | ( | ) |
void AbstractLayout::runListenersShortClick | ( | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void AbstractLayout::setCompact | ( | bool | isCompact | ) | const |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void AbstractLayout::setHAlignmentComponents | ( | CEnumComponentsGUI::EAlignmentHorizontal | alignment | ) |
|
inherited |
|
inherited |
void AbstractLayout::setPadding | ( | iv::types::padding | padding | ) | const |
|
inherited |
|
inherited |
void AbstractLayout::setVAlignmentComponents | ( | CEnumComponentsGUI::EAlignmentVertical | alignment | ) |
|
inherited |
|
inherited |
|
staticconstexpr |
|
private |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |