Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CListGraphics Class Referencefinal

#include <CListGraphics.hpp>

Inheritance diagram for CListGraphics:
[legend]
Collaboration diagram for CListGraphics:
[legend]

Classes

struct  SPrvCellFocus
 
struct  SPrvColumnGraphics
 

Public Member Functions

 CListGraphics (CList *listRef, IFilterModel *filter, bool requestMinSizeForTexts)
 
 ~CListGraphics () override
 
bool sizeChanged () override
 
void updateList ()
 
std::shared_ptr< CDataListgetDataCell (uint64_t indRow, uint64_t indCol) const
 
uint64_t getRowSelected () const
 
void setRowSelected (uint64_t indRow)
 
void setFilter (IFilterModel **filterOpt)
 
void processBeginFocus ()
 
void processEndFocus ()
 
void processKeyInFocus (CEventGraphics *evtGraphics)
 
void addTimer (uint64_t timeoutMillis, bool destroyListener, IListenerTimer *rcpTimers)
 
void addClose (IListenerClose *rcpClose)
 
void calculatePosGlobalComponent (double xFather, double yFather)
 
void calculateSizeComponent (IGraphics *graphics, const CTheme *theme, CLibraryImages *libraryImage)
 
void distributeComponent (IGraphics *graphics, double xOrg, double yOrg, double sizeX, double sizeY)
 
void draw (IGraphics *graphics, const CTheme *theme)
 
void processClose ()
 
void processEvent (CEventGraphics *event, double xOrg, double yOrg)
 
void processEventOut (CEventGraphics *event)
 
void processNextFrame ()
 
void resetComponent (IGraphics *graphics)
 
void updateColorAttr (CAttrColorComp *attrColor)
 
void getPosGlobal (double *xPosGlobal, double *yPosGlobal) const
 
void getSizeArea (double *sizeXOpt, double *sizeYOpt) const
 
void getSizeComp (double *sizeXOpt, double *sizeYOpt) const
 
bool getVisible () const
 
void setActivated (bool isActivated)
 
void setAlignmentHorizontal (CEnumComponentsGUI::EAlignmentHorizontal alignment)
 
void setAlignmentVertical (CEnumComponentsGUI::EAlignmentVertical alignment)
 
void setAnimation (IAnimation **animation)
 
void setClip (IGraphics *graphics) const
 
void setCompact ()
 
void setSizeMinimum (iv::types::width sizeXMinimum, iv::types::height sizeYMinimum)
 
void setWidthMaximum (iv::types::width sizeXMaximum)
 
void setHeightMaximum (iv::types::height sizeYMaximum)
 
void setVisible (bool isVisible)
 
bool isCursorInComponent () const
 
bool visibilityChanged ()
 
bool visibilityOrSizeChanged ()
 

Protected Member Functions

CAttrColorCompgetAttrColor ()
 
const CAttrColorCompgetAttrColorConst () const
 
bool isActivated () const
 
bool isAnimating () const
 

Private Member Functions

void beginFocus () override
 
void calculateSizeMin (IGraphics *graphics, const CTheme *theme, CLibraryImages *libraryImage, double *sizeXComp, double *sizeYComp) override
 
void clean () override
 
void distribute (IGraphics *graphics, double sizeXComp, double sizeYComp) override
 
void drawComponent (IGraphics *graphics, const CTheme *theme) override
 
void endFocus () override
 
void handleEvent (CEventGraphics *event, double xOrg, double yOrg) override
 
void nextFrameChildren () override
 
void processKey (CEventGraphics *evtGraphics) override
 
void removeObjectDraw (IGraphics *graphics) override
 
void update (IGraphics *graphics, CLibraryImages *libraryImage) override
 
bool hasLongClick () const override
 
void prvAdjustDataColumn (uint64_t numRows, IGraphics *graphics) const
 
void prvBeginFocus () const
 
void prvCalculateNextCell ()
 
double prvCalculateSizeXTotal () const
 
void prvCheckIntegrity () const
 
void prvColumnsAdaptedData (double heightTxt, IGraphics *graphics) const
 
std::unique_ptr< std::vector< std::shared_ptr< CListGraphics::SPrvColumnGraphics > > > prvCreateColumnsGraphics (double heightTxt, IGraphics *graphics) const
 
void prvDistributeColumns (double sizeXToDistribute, uint64_t numColumnDistributed) const
 
void prvDrawRow (const IModelList *model, uint64_t indRowData, double yOrg, double heightTxt, const CTheme *theme, IGraphics *graphics, bool isAnEvenRow) const
 
void prvEndFocus () const
 
uint64_t prvNumColumnsToDistribute () const
 
void prvTestCellEvent (CEventGraphics *event, double xOrg, uint64_t indRow, bool isLongPulsation)
 
void prvTestRowsEvent (CEventGraphics *event, double xOrg, double yOrg, uint64_t indFirstRowIntoArea, bool isLongPulsation)
 
void prvSetDataInList () const
 
bool prvIsFocus (uint64_t indRow, uint64_t indCol) const
 
bool isEditNum () const override
 
void calculatePosGlobal (double xFather, double yFather) override
 
void prvDraw (IGraphics *graphics, const CTheme *theme)
 
virtual void closing ()
 
virtual void handleEventOut (CEventGraphics *event)
 

Static Private Member Functions

static void prvColumnAdaptedDataRow (const std::shared_ptr< SPrvColumnGraphics > &column, uint64_t indColumn, const IModelList *model, double heightTxt, IGraphics *graphics)
 

Private Attributes

CListm_listRef
 
IFilterModelm_filterOpt
 
bool m_isChanged
 
uint64_t m_indRowSelected
 
uint64_t m_numRowsIntoArea
 
bool m_requestMinSizeForTexts
 
double m_sizeYHeader
 
double m_sizeYCell
 
double m_sizeYAreaData
 
std::unique_ptr< std::vector< std::shared_ptr< SPrvColumnGraphics > > > m_columns
 
CLibraryImagesm_imagesList
 
CRectangleGraphicsm_areaData
 
std::optional< SPrvCellFocusm_cellFocusCadendateOpt
 
std::optional< SPrvCellFocusm_cellFocusOpt
 
CBufferEditm_bufferEdit
 
CScrollGraphicsm_scroll
 
bool m_isBegin
 
IAnimationm_animation
 
CTimerGraphics m_timer
 
bool m_fillHorizontal
 
bool m_fillVertical
 
CEnumComponentsGUI::EAlignmentHorizontal m_alignmentHorizontal
 
CEnumComponentsGUI::EAlignmentVertical m_alignmentVertical
 
CAttrColorCompm_attrColor
 
std::vector< IListenerClose * > m_rcpClose
 
bool m_isDistributed
 
double m_dx
 
double m_dy
 
double m_sizeXComp
 
double m_sizeYComp
 
double m_sizeXArea
 
double m_sizeYArea
 
double m_xGlobal
 
double m_yGlobal
 
iv::types::width m_sizeXMinimum
 
iv::types::height m_sizeYMinimum
 
iv::types::height m_sizeYMaximum
 
iv::types::width m_sizeXMaximum
 
bool m_isActivated
 
bool m_isCursorInside
 
bool m_isVisible
 
std::atomic_bool m_isVisibilityChanged {false}
 

Constructor & Destructor Documentation

◆ CListGraphics()

CListGraphics::CListGraphics ( CList * listRef,
IFilterModel * filter,
bool requestMinSizeForTexts )

◆ ~CListGraphics()

CListGraphics::~CListGraphics ( )
override

Member Function Documentation

◆ addClose()

void AbstractComponentGraphics::addClose ( IListenerClose * rcpClose)
inherited

◆ addTimer()

void AbstractComponentGraphics::addTimer ( uint64_t timeoutMillis,
bool destroyListener,
IListenerTimer * rcpTimers )
inherited

◆ beginFocus()

void CListGraphics::beginFocus ( )
overrideprivatevirtual

◆ calculatePosGlobal()

void AbstractCompWithFocusGraphics::calculatePosGlobal ( double xFather,
double yFather )
overrideprivatevirtualinherited

◆ calculatePosGlobalComponent()

void AbstractComponentGraphics::calculatePosGlobalComponent ( double xFather,
double yFather )
inherited

◆ calculateSizeComponent()

void AbstractComponentGraphics::calculateSizeComponent ( IGraphics * graphics,
const CTheme * theme,
CLibraryImages * libraryImage )
inherited

◆ calculateSizeMin()

void CListGraphics::calculateSizeMin ( IGraphics * graphics,
const CTheme * theme,
CLibraryImages * libraryImage,
double * sizeXComp,
double * sizeYComp )
overrideprivatevirtual

◆ clean()

void CListGraphics::clean ( )
overrideprivatevirtual

◆ closing()

void AbstractComponentGraphics::closing ( )
privatevirtualinherited

◆ distribute()

void CListGraphics::distribute ( IGraphics * graphics,
double sizeXComp,
double sizeYComp )
overrideprivatevirtual

◆ distributeComponent()

void AbstractComponentGraphics::distributeComponent ( IGraphics * graphics,
double xOrg,
double yOrg,
double sizeX,
double sizeY )
inherited

◆ draw()

void AbstractComponentGraphics::draw ( IGraphics * graphics,
const CTheme * theme )
inherited

◆ drawComponent()

void CListGraphics::drawComponent ( IGraphics * graphics,
const CTheme * theme )
overrideprivatevirtual

◆ endFocus()

void CListGraphics::endFocus ( )
overrideprivatevirtual

◆ getAttrColor()

CAttrColorComp * AbstractComponentGraphics::getAttrColor ( )
protectedinherited

◆ getAttrColorConst()

const CAttrColorComp * AbstractComponentGraphics::getAttrColorConst ( ) const
nodiscardprotectedinherited

◆ getDataCell()

std::shared_ptr< CDataList > CListGraphics::getDataCell ( uint64_t indRow,
uint64_t indCol ) const
nodiscard

◆ getPosGlobal()

void AbstractComponentGraphics::getPosGlobal ( double * xPosGlobal,
double * yPosGlobal ) const
inherited

◆ getRowSelected()

uint64_t CListGraphics::getRowSelected ( ) const
nodiscard

◆ getSizeArea()

void AbstractComponentGraphics::getSizeArea ( double * sizeXOpt,
double * sizeYOpt ) const
inherited

◆ getSizeComp()

void AbstractComponentGraphics::getSizeComp ( double * sizeXOpt,
double * sizeYOpt ) const
inherited

◆ getVisible()

bool AbstractComponentGraphics::getVisible ( ) const
nodiscardinherited

◆ handleEvent()

void CListGraphics::handleEvent ( CEventGraphics * event,
double xOrg,
double yOrg )
overrideprivatevirtual

◆ handleEventOut()

◆ hasLongClick()

bool CListGraphics::hasLongClick ( ) const
nodiscardoverrideprivatevirtual

Reimplemented from AbstractComponentGraphics.

◆ isActivated()

bool AbstractComponentGraphics::isActivated ( ) const
nodiscardprotectedinherited

◆ isAnimating()

bool AbstractComponentGraphics::isAnimating ( ) const
nodiscardprotectedinherited

◆ isCursorInComponent()

bool AbstractComponentGraphics::isCursorInComponent ( ) const
nodiscardinherited

◆ isEditNum()

bool CListGraphics::isEditNum ( ) const
nodiscardoverrideprivatevirtual

◆ nextFrameChildren()

void CListGraphics::nextFrameChildren ( )
overrideprivatevirtual

◆ processBeginFocus()

void AbstractCompWithFocusGraphics::processBeginFocus ( )
inherited

◆ processClose()

void AbstractComponentGraphics::processClose ( )
inherited

◆ processEndFocus()

void AbstractCompWithFocusGraphics::processEndFocus ( )
inherited

◆ processEvent()

void AbstractComponentGraphics::processEvent ( CEventGraphics * event,
double xOrg,
double yOrg )
inherited

◆ processEventOut()

void AbstractComponentGraphics::processEventOut ( CEventGraphics * event)
inherited

◆ processKey()

void CListGraphics::processKey ( CEventGraphics * evtGraphics)
overrideprivatevirtual

◆ processKeyInFocus()

void AbstractCompWithFocusGraphics::processKeyInFocus ( CEventGraphics * evtGraphics)
inherited

◆ processNextFrame()

void AbstractComponentGraphics::processNextFrame ( )
inherited

◆ prvAdjustDataColumn()

void CListGraphics::prvAdjustDataColumn ( uint64_t numRows,
IGraphics * graphics ) const
private

◆ prvBeginFocus()

void CListGraphics::prvBeginFocus ( ) const
private

◆ prvCalculateNextCell()

void CListGraphics::prvCalculateNextCell ( )
private

◆ prvCalculateSizeXTotal()

double CListGraphics::prvCalculateSizeXTotal ( ) const
nodiscardprivate

◆ prvCheckIntegrity()

void CListGraphics::prvCheckIntegrity ( ) const
private

◆ prvColumnAdaptedDataRow()

void CListGraphics::prvColumnAdaptedDataRow ( const std::shared_ptr< SPrvColumnGraphics > & column,
uint64_t indColumn,
const IModelList * model,
double heightTxt,
IGraphics * graphics )
staticprivate

◆ prvColumnsAdaptedData()

void CListGraphics::prvColumnsAdaptedData ( double heightTxt,
IGraphics * graphics ) const
private

◆ prvCreateColumnsGraphics()

std::unique_ptr< std::vector< std::shared_ptr< CListGraphics::SPrvColumnGraphics > > > CListGraphics::prvCreateColumnsGraphics ( double heightTxt,
IGraphics * graphics ) const
private

◆ prvDistributeColumns()

void CListGraphics::prvDistributeColumns ( double sizeXToDistribute,
uint64_t numColumnDistributed ) const
private

◆ prvDraw()

void AbstractComponentGraphics::prvDraw ( IGraphics * graphics,
const CTheme * theme )
privateinherited

◆ prvDrawRow()

void CListGraphics::prvDrawRow ( const IModelList * model,
uint64_t indRowData,
double yOrg,
double heightTxt,
const CTheme * theme,
IGraphics * graphics,
bool isAnEvenRow ) const
private

◆ prvEndFocus()

void CListGraphics::prvEndFocus ( ) const
private

◆ prvIsFocus()

bool CListGraphics::prvIsFocus ( uint64_t indRow,
uint64_t indCol ) const
nodiscardprivate

◆ prvNumColumnsToDistribute()

uint64_t CListGraphics::prvNumColumnsToDistribute ( ) const
nodiscardprivate

◆ prvSetDataInList()

void CListGraphics::prvSetDataInList ( ) const
private

◆ prvTestCellEvent()

void CListGraphics::prvTestCellEvent ( CEventGraphics * event,
double xOrg,
uint64_t indRow,
bool isLongPulsation )
private

◆ prvTestRowsEvent()

void CListGraphics::prvTestRowsEvent ( CEventGraphics * event,
double xOrg,
double yOrg,
uint64_t indFirstRowIntoArea,
bool isLongPulsation )
private

◆ removeObjectDraw()

void CListGraphics::removeObjectDraw ( IGraphics * graphics)
overrideprivatevirtual

◆ resetComponent()

void AbstractComponentGraphics::resetComponent ( IGraphics * graphics)
inherited

◆ setActivated()

void AbstractComponentGraphics::setActivated ( bool isActivated)
inherited

◆ setAlignmentHorizontal()

void AbstractComponentGraphics::setAlignmentHorizontal ( CEnumComponentsGUI::EAlignmentHorizontal alignment)
inherited

◆ setAlignmentVertical()

void AbstractComponentGraphics::setAlignmentVertical ( CEnumComponentsGUI::EAlignmentVertical alignment)
inherited

◆ setAnimation()

void AbstractComponentGraphics::setAnimation ( IAnimation ** animation)
inherited

◆ setClip()

void AbstractComponentGraphics::setClip ( IGraphics * graphics) const
inherited

◆ setCompact()

void AbstractComponentGraphics::setCompact ( )
inherited

◆ setFilter()

void CListGraphics::setFilter ( IFilterModel ** filterOpt)

◆ setHeightMaximum()

void AbstractComponentGraphics::setHeightMaximum ( iv::types::height sizeYMaximum)
inherited

◆ setRowSelected()

void CListGraphics::setRowSelected ( uint64_t indRow)

◆ setSizeMinimum()

void AbstractComponentGraphics::setSizeMinimum ( iv::types::width sizeXMinimum,
iv::types::height sizeYMinimum )
inherited

◆ setVisible()

void AbstractComponentGraphics::setVisible ( bool isVisible)
inherited

◆ setWidthMaximum()

void AbstractComponentGraphics::setWidthMaximum ( iv::types::width sizeXMaximum)
inherited

◆ sizeChanged()

bool CListGraphics::sizeChanged ( )
overridevirtual

◆ update()

void CListGraphics::update ( IGraphics * graphics,
CLibraryImages * libraryImage )
overrideprivatevirtual

◆ updateColorAttr()

void AbstractComponentGraphics::updateColorAttr ( CAttrColorComp * attrColor)
inherited

◆ updateList()

void CListGraphics::updateList ( )

◆ visibilityChanged()

bool AbstractComponentGraphics::visibilityChanged ( )
inherited

◆ visibilityOrSizeChanged()

bool AbstractComponentGraphics::visibilityOrSizeChanged ( )
inherited

Member Data Documentation

◆ m_alignmentHorizontal

CEnumComponentsGUI::EAlignmentHorizontal AbstractComponentGraphics::m_alignmentHorizontal
privateinherited

◆ m_alignmentVertical

CEnumComponentsGUI::EAlignmentVertical AbstractComponentGraphics::m_alignmentVertical
privateinherited

◆ m_animation

IAnimation* AbstractComponentGraphics::m_animation
privateinherited

◆ m_areaData

CRectangleGraphics* CListGraphics::m_areaData
private

◆ m_attrColor

CAttrColorComp* AbstractComponentGraphics::m_attrColor
privateinherited

◆ m_bufferEdit

CBufferEdit* CListGraphics::m_bufferEdit
private

◆ m_cellFocusCadendateOpt

std::optional<SPrvCellFocus> CListGraphics::m_cellFocusCadendateOpt
private

◆ m_cellFocusOpt

std::optional<SPrvCellFocus> CListGraphics::m_cellFocusOpt
private

◆ m_columns

std::unique_ptr<std::vector<std::shared_ptr<SPrvColumnGraphics> > > CListGraphics::m_columns
private

◆ m_dx

double AbstractComponentGraphics::m_dx
privateinherited

◆ m_dy

double AbstractComponentGraphics::m_dy
privateinherited

◆ m_fillHorizontal

bool AbstractComponentGraphics::m_fillHorizontal
privateinherited

◆ m_fillVertical

bool AbstractComponentGraphics::m_fillVertical
privateinherited

◆ m_filterOpt

IFilterModel* CListGraphics::m_filterOpt
private

◆ m_imagesList

CLibraryImages* CListGraphics::m_imagesList
private

◆ m_indRowSelected

uint64_t CListGraphics::m_indRowSelected
private

◆ m_isActivated

bool AbstractComponentGraphics::m_isActivated
privateinherited

◆ m_isBegin

bool AbstractCompWithFocusGraphics::m_isBegin
privateinherited

◆ m_isChanged

bool CListGraphics::m_isChanged
private

◆ m_isCursorInside

bool AbstractComponentGraphics::m_isCursorInside
privateinherited

◆ m_isDistributed

bool AbstractComponentGraphics::m_isDistributed
privateinherited

◆ m_isVisibilityChanged

std::atomic_bool AbstractComponentGraphics::m_isVisibilityChanged {false}
privateinherited

◆ m_isVisible

bool AbstractComponentGraphics::m_isVisible
privateinherited

◆ m_listRef

CList* CListGraphics::m_listRef
private

◆ m_numRowsIntoArea

uint64_t CListGraphics::m_numRowsIntoArea
private

◆ m_rcpClose

std::vector<IListenerClose *> AbstractComponentGraphics::m_rcpClose
privateinherited

◆ m_requestMinSizeForTexts

bool CListGraphics::m_requestMinSizeForTexts
private

◆ m_scroll

CScrollGraphics* CListGraphics::m_scroll
private

◆ m_sizeXArea

double AbstractComponentGraphics::m_sizeXArea
privateinherited

◆ m_sizeXComp

double AbstractComponentGraphics::m_sizeXComp
privateinherited

◆ m_sizeXMaximum

iv::types::width AbstractComponentGraphics::m_sizeXMaximum
privateinherited

◆ m_sizeXMinimum

iv::types::width AbstractComponentGraphics::m_sizeXMinimum
privateinherited

◆ m_sizeYArea

double AbstractComponentGraphics::m_sizeYArea
privateinherited

◆ m_sizeYAreaData

double CListGraphics::m_sizeYAreaData
private

◆ m_sizeYCell

double CListGraphics::m_sizeYCell
private

◆ m_sizeYComp

double AbstractComponentGraphics::m_sizeYComp
privateinherited

◆ m_sizeYHeader

double CListGraphics::m_sizeYHeader
private

◆ m_sizeYMaximum

iv::types::height AbstractComponentGraphics::m_sizeYMaximum
privateinherited

◆ m_sizeYMinimum

iv::types::height AbstractComponentGraphics::m_sizeYMinimum
privateinherited

◆ m_timer

CTimerGraphics AbstractComponentGraphics::m_timer
privateinherited

◆ m_xGlobal

double AbstractComponentGraphics::m_xGlobal
privateinherited

◆ m_yGlobal

double AbstractComponentGraphics::m_yGlobal
privateinherited

The documentation for this class was generated from the following files: