Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <CSheet.hpp>
Public Member Functions | |
CSheet (const std::shared_ptr< AbstractSheetModel > &model, bool isMultipleSelection=false) | |
~CSheet () override | |
CSheet ()=delete | |
CSheet (const CSheet &other)=delete | |
CSheet (CSheet &&other)=delete | |
CSheet & | operator= (const CSheet &other)=delete |
CSheet & | operator= (CSheet &&other)=delete |
void | destroyWidget () override |
void | updateWidget () |
void | freeze () |
void | thaw () |
bool | processAccept () |
void | clear () |
void | attachCellComponent (const iv::gui::sheets::CellDefinition &cellDefinition, uint32_t rowPosition, uint32_t columnPosition) |
void | addColumnFromCSheetModel (const iv::gui::sheets::ColumnId &columnIdReference, const std::string &columnTitle) |
void | removeColumn (const iv::gui::sheets::ColumnId &columnId) |
void | updateColumnsVisibility (const iv::gui::sheets::ColumnsDefinitions &columnDefinitions) |
void | addRowFromCSheetModel (const iv::gui::sheets::RowId &rowIdReference) |
void | removeRow (const iv::gui::sheets::RowId &rowId) |
void | updateRowsVisibility (const iv::gui::sheets::RowsDefinitions &rowDefinitions) |
void | updateCssClassToRow (uint32_t rowPosition) |
void | applyCSSClassToRow (const std::string &cssClass, uint32_t rowPosition) |
AbstractSheetModel * | getModel () |
bool | getSelectedRows (std::vector< uint32_t > *selectedRows) |
std::string | getCellTooltip (uint32_t row, uint32_t column) const |
void | setActiveCell (uint32_t row, uint32_t column) |
void | updateCellText (uint32_t rowPosition, uint32_t columnPosition) |
void | setCellText (uint32_t rowPosition, uint32_t columnPosition, const std::string &text) |
void | setTooltipToRow (const std::string &tooltip, uint32_t rowPosition) |
void | updateRowTitles () |
void | increaseVersionNumber () |
uint32_t | getVersionNumber () const |
void | updateSheet () |
void | updateColumnText (const iv::gui::sheets::ColumnId &columnId) |
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 () |
Public Attributes | |
int32_t | m_previousRow {-1} |
std::optional< uint32_t > | m_updateProcessId {std::nullopt} |
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 |
Private Member Functions | |
void | setColumnTexts (const iv::gui::sheets::ColumnId &columnId, uint32_t columnPosition) |
void | setRowTexts (const iv::gui::sheets::RowId &rowId) |
void | setRowTexts (const iv::gui::sheets::RowId &rowId, const std::map< iv::gui::sheets::ColumnId, std::string > &columnsTexts) |
std::map< iv::gui::sheets::ColumnId, std::string > | getRowTexts (const iv::gui::sheets::RowId &rowId) |
void | setRowsTextFromModel () |
void | attachRowTitleComponent (iv::gui::sheets::RowCells *rowCells, uint32_t rowPosition) |
void | setCSSClassToRow (const std::string &cssClass, uint32_t rowPosition) |
void | setInitialCSSClassToRows () |
IWidget * | createWidget (CDialog *dialogFatherRef) override |
void | prvProcessChangeRecursive (uint64_t recursiveLevel) |
virtual void | prvProcessCloseChildren () |
Private Attributes | |
std::shared_ptr< AbstractSheetModel > | m_model |
CDialog * | m_dialogFatherRef |
uint32_t | m_versionNumber |
IWidget * | m_widgetRef |
bool | m_isMultipleSelection |
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 |
Spreadsheet-like component.
|
explicit |
|
override |
|
delete |
|
delete |
|
delete |
void CSheet::addColumnFromCSheetModel | ( | const iv::gui::sheets::ColumnId & | columnIdReference, |
const std::string & | columnTitle ) |
|
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 |
void CSheet::addRowFromCSheetModel | ( | const iv::gui::sheets::RowId & | rowIdReference | ) |
void CSheet::applyCSSClassToRow | ( | const std::string & | cssClass, |
uint32_t | rowPosition ) |
void CSheet::attachCellComponent | ( | const iv::gui::sheets::CellDefinition & | cellDefinition, |
uint32_t | rowPosition, | ||
uint32_t | columnPosition ) |
|
private |
void CSheet::clear | ( | ) |
Implements AbstractComponentGUI.
|
overridevirtual |
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 |
Agrega un IListenerTimer formado mediante una función lambda.
timeout | tiempo de espera en milisegundos. |
timerExecutionFunctionCall | función lambda a ejecutar por el listener. |
void CSheet::freeze | ( | ) |
freeze
Freezes the widget, so that updates do not refresh the view yet.
|
nodiscardinherited |
|
inherited |
|
nodiscard |
|
inherited |
|
nodiscardinherited |
AbstractSheetModel * CSheet::getModel | ( | ) |
|
private |
bool CSheet::getSelectedRows | ( | std::vector< uint32_t > * | selectedRows | ) |
|
inherited |
|
nodiscardinherited |
|
nodiscard |
|
inherited |
|
inherited |
void CSheet::increaseVersionNumber | ( | ) |
|
inherited |
bool CSheet::processAccept | ( | ) |
|
privateinherited |
|
privatevirtualinherited |
Reimplemented in AbstractLayout, CLayoutContainer, CLayoutGrid, and CLayoutTabs.
void CSheet::removeColumn | ( | const iv::gui::sheets::ColumnId & | columnId | ) |
void CSheet::removeRow | ( | const iv::gui::sheets::RowId & | rowId | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void CSheet::setActiveCell | ( | uint32_t | row, |
uint32_t | column ) |
|
inherited |
void CSheet::setCellText | ( | uint32_t | rowPosition, |
uint32_t | columnPosition, | ||
const std::string & | text ) |
|
inherited |
|
inherited |
|
inherited |
|
private |
|
private |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
private |
|
inherited |
|
private |
|
private |
|
private |
|
inherited |
void CSheet::setTooltipToRow | ( | const std::string & | tooltip, |
uint32_t | rowPosition ) |
|
inherited |
|
inherited |
void CSheet::thaw | ( | ) |
thaw
Thaws the widget, so that the view can be refreshed.
void CSheet::updateCellText | ( | uint32_t | rowPosition, |
uint32_t | columnPosition ) |
|
inherited |
void CSheet::updateColumnsVisibility | ( | const iv::gui::sheets::ColumnsDefinitions & | columnDefinitions | ) |
void CSheet::updateColumnText | ( | const iv::gui::sheets::ColumnId & | columnId | ) |
void CSheet::updateCssClassToRow | ( | uint32_t | rowPosition | ) |
void CSheet::updateRowsVisibility | ( | const iv::gui::sheets::RowsDefinitions & | rowDefinitions | ) |
void CSheet::updateRowTitles | ( | ) |
void CSheet::updateSheet | ( | ) |
void CSheet::updateWidget | ( | ) |
udpateWidget
Assumes the widget is already created and it will just update the view.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
privateinherited |
|
private |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
private |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
private |
|
protectedinherited |
|
privateinherited |
int32_t CSheet::m_previousRow {-1} |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
std::optional<uint32_t> CSheet::m_updateProcessId {std::nullopt} |
|
private |
|
protectedinherited |
|
private |