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

#include <CDialogGraphics.hpp>

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

Classes

class  CPrvClickButton
 

Public Types

enum class  EDialogResponse {
  NoResponse , Accept , Close , Ok ,
  Cancel , Yes , No , X
}
 

Public Member Functions

 ~CDialogGraphics () override
 
void addButton (const std::string &text, CDialogGraphics::EDialogResponse response)
 
void distribute (IGraphics *graphics, double xSizeScreen, double ySizeScreen, const CTheme *theme, CLibraryImages *libraryImage) override
 
CEnumComponentsGUI::EDialogResponse getResponse () const
 
void setPosition (double xPos, double yPos, unsigned char justify)
 
void setClosedWhenOutPulsed ()
 
void setCanBeClosed (bool canBeClosed) override
 
void setClosed () override
 
void setClosedRecursively () override
 
bool isClosed () const override
 
bool isOk () const
 
virtual bool isYes () const
 

Static Public Member Functions

static CDialogGraphicscreateDialogModal (const std::string &title, CEnumComponentsGUI::EDialogButtons buttons, IWindowGraphics *dlgFatherRef, AbstractComponentGraphics *compAreaContentFrameRef, AbstractComponentGUI *compAreaComponentRef, const std::shared_ptr< CImageGraphics > &imageX, bool hasDestroyComponent)
 
static CDialogGraphicscreateDialogModalSystem (const std::string &title, IWindowGraphics *dlgFatherRef, AbstractComponentGraphics *compAreaContentFrameRef)
 
static CDialogGraphicscreateDialogNoModal (const std::string &title, IWindowGraphics *dlgFatherRef, AbstractComponentGraphics *compAreaContentFrameRef, AbstractComponentGUI *compAreaContent)
 

Private Types

enum class  EPrvDialogType { Normal , NoModal , System }
 

Private Member Functions

 CDialogGraphics ()
 
void drawScene (IGraphics *graphics, double xSizeScreen, double ySizeScreen, const CTheme *theme) override
 
void nextFrameAnimation () override
 
void processEvent (CEventGraphics *evt, double xSizeScreen, double ySizeScreen) override
 
void removeObjectDraw (IGraphics *graphics) override
 
bool sizeChanged () override
 
void update (IGraphics *graphics, CLibraryImages *libraryImage) override
 
bool isFullSize () const override
 
void distributeFullSizeWindow (IGraphics *graphics, double sizeXScreen, double sizeYScreen, CTheme *theme, CLibraryImages *libraryImages) override
 
void getSize (double *sizeXOpt, double *sizeYOpt) const override
 
bool getVisible () const override
 
void setActive (bool isActive) override
 
void setVisible (bool isVisible) override
 
bool hasProcessFocus () const override
 
bool isModal () const override
 
void processDialogFatherEvent (CEventGraphics *evt, double xSizeScreen, double ySizeScreen) override
 
void prvAddButton (const std::string &textButton, const std::shared_ptr< CImageGraphics > &imageOpt, const CDialogGraphics::EDialogResponse &responseDialog, AbstractComponentGUI *compAreaComponentRef, bool withBackground=true, bool withShadow=false)
 
void prvSetClosed ()
 

Private Attributes

CDialogGraphics::EPrvDialogType m_dialogType
 
std::string m_title
 
bool m_isVisible
 
bool m_isActivated
 
bool m_isPositionDefault
 
double m_xPos
 
double m_yPos
 
uint64_t m_justify
 
bool m_isClosed
 
bool m_canBeClosed {true}
 
double m_xSize
 
double m_ySize
 
bool m_isClosedWithOutPulsed
 
CDialogGraphics::EDialogResponse m_dialogResponse
 
AbstractComponentGUIm_compAreaComponentOptRef
 
IWindowGraphicsm_dlgFatherRef
 
CLayoutBoxGraphicsm_compAreaButtonsOpt
 
CLayoutBoxGraphicsm_compAreaDialogWithButtons
 
CEnumComponentsGUI::EDialogButtons m_buttons
 
std::vector< CButtonGraphics * > * m_buttonsRegistered
 
CRectangleGraphicsm_rectangleDialog
 
CRectangleGraphicsm_rectangleShadowDialog
 

Member Enumeration Documentation

◆ EDialogResponse

Enumerator
NoResponse 
Accept 
Close 
Ok 
Cancel 
Yes 
No 

◆ EPrvDialogType

enum class CDialogGraphics::EPrvDialogType
strongprivate
Enumerator
Normal 
NoModal 
System 

Constructor & Destructor Documentation

◆ ~CDialogGraphics()

CDialogGraphics::~CDialogGraphics ( )
override

◆ CDialogGraphics()

CDialogGraphics::CDialogGraphics ( )
private

Member Function Documentation

◆ addButton()

void CDialogGraphics::addButton ( const std::string & text,
CDialogGraphics::EDialogResponse response )

◆ createDialogModal()

CDialogGraphics * CDialogGraphics::createDialogModal ( const std::string & title,
CEnumComponentsGUI::EDialogButtons buttons,
IWindowGraphics * dlgFatherRef,
AbstractComponentGraphics * compAreaContentFrameRef,
AbstractComponentGUI * compAreaComponentRef,
const std::shared_ptr< CImageGraphics > & imageX,
bool hasDestroyComponent )
static

◆ createDialogModalSystem()

CDialogGraphics * CDialogGraphics::createDialogModalSystem ( const std::string & title,
IWindowGraphics * dlgFatherRef,
AbstractComponentGraphics * compAreaContentFrameRef )
static

◆ createDialogNoModal()

CDialogGraphics * CDialogGraphics::createDialogNoModal ( const std::string & title,
IWindowGraphics * dlgFatherRef,
AbstractComponentGraphics * compAreaContentFrameRef,
AbstractComponentGUI * compAreaContent )
static

◆ distribute()

void CDialogGraphics::distribute ( IGraphics * graphics,
double xSizeScreen,
double ySizeScreen,
const CTheme * theme,
CLibraryImages * libraryImage )
overridevirtual

Implements IWindowGraphics.

◆ distributeFullSizeWindow()

void CDialogGraphics::distributeFullSizeWindow ( IGraphics * graphics,
double sizeXScreen,
double sizeYScreen,
CTheme * theme,
CLibraryImages * libraryImages )
overrideprivatevirtual

Implements IWindowGraphics.

◆ drawScene()

void CDialogGraphics::drawScene ( IGraphics * graphics,
double xSizeScreen,
double ySizeScreen,
const CTheme * theme )
overrideprivatevirtual

Implements IWindowGraphics.

◆ getResponse()

CEnumComponentsGUI::EDialogResponse CDialogGraphics::getResponse ( ) const
nodiscard

◆ getSize()

void CDialogGraphics::getSize ( double * sizeXOpt,
double * sizeYOpt ) const
overrideprivatevirtual

Implements IWindowGraphics.

◆ getVisible()

bool CDialogGraphics::getVisible ( ) const
nodiscardoverrideprivatevirtual

Implements IWindowGraphics.

◆ hasProcessFocus()

bool CDialogGraphics::hasProcessFocus ( ) const
nodiscardoverrideprivatevirtual

Implements IWindowGraphics.

◆ isClosed()

bool CDialogGraphics::isClosed ( ) const
nodiscardoverridevirtual

Implements IWindowGraphics.

◆ isFullSize()

bool CDialogGraphics::isFullSize ( ) const
overrideprivatevirtual

Implements IWindowGraphics.

◆ isModal()

bool CDialogGraphics::isModal ( ) const
nodiscardoverrideprivatevirtual

Implements IWindowGraphics.

◆ isOk()

bool CDialogGraphics::isOk ( ) const
nodiscard

◆ isYes()

bool CDialogGraphics::isYes ( ) const
nodiscardvirtual

◆ nextFrameAnimation()

void CDialogGraphics::nextFrameAnimation ( )
overrideprivatevirtual

Implements IWindowGraphics.

◆ processDialogFatherEvent()

void CDialogGraphics::processDialogFatherEvent ( CEventGraphics * evt,
double xSizeScreen,
double ySizeScreen )
overrideprivatevirtual

Implements IWindowGraphics.

◆ processEvent()

void CDialogGraphics::processEvent ( CEventGraphics * evt,
double xSizeScreen,
double ySizeScreen )
overrideprivatevirtual

Implements IWindowGraphics.

◆ prvAddButton()

void CDialogGraphics::prvAddButton ( const std::string & textButton,
const std::shared_ptr< CImageGraphics > & imageOpt,
const CDialogGraphics::EDialogResponse & responseDialog,
AbstractComponentGUI * compAreaComponentRef,
bool withBackground = true,
bool withShadow = false )
private

◆ prvSetClosed()

void CDialogGraphics::prvSetClosed ( )
private

◆ removeObjectDraw()

void CDialogGraphics::removeObjectDraw ( IGraphics * graphics)
overrideprivatevirtual

Implements IWindowGraphics.

◆ setActive()

void CDialogGraphics::setActive ( bool isActive)
overrideprivatevirtual

Implements IWindowGraphics.

◆ setCanBeClosed()

void CDialogGraphics::setCanBeClosed ( bool canBeClosed)
overridevirtual

Implements IWindowGraphics.

◆ setClosed()

void CDialogGraphics::setClosed ( )
overridevirtual

Implements IWindowGraphics.

◆ setClosedRecursively()

void CDialogGraphics::setClosedRecursively ( )
overridevirtual

Implements IWindowGraphics.

◆ setClosedWhenOutPulsed()

void CDialogGraphics::setClosedWhenOutPulsed ( )

◆ setPosition()

void CDialogGraphics::setPosition ( double xPos,
double yPos,
unsigned char justify )

◆ setVisible()

void CDialogGraphics::setVisible ( bool isVisible)
overrideprivatevirtual

Implements IWindowGraphics.

◆ sizeChanged()

bool CDialogGraphics::sizeChanged ( )
overrideprivatevirtual

Implements IWindowGraphics.

◆ update()

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

Implements IWindowGraphics.

Member Data Documentation

◆ m_buttons

CEnumComponentsGUI::EDialogButtons CDialogGraphics::m_buttons
private

◆ m_buttonsRegistered

std::vector<CButtonGraphics *>* CDialogGraphics::m_buttonsRegistered
private

◆ m_canBeClosed

bool CDialogGraphics::m_canBeClosed {true}
private

◆ m_compAreaButtonsOpt

CLayoutBoxGraphics* CDialogGraphics::m_compAreaButtonsOpt
private

◆ m_compAreaComponentOptRef

AbstractComponentGUI* CDialogGraphics::m_compAreaComponentOptRef
private

◆ m_compAreaDialogWithButtons

CLayoutBoxGraphics* CDialogGraphics::m_compAreaDialogWithButtons
private

◆ m_dialogResponse

CDialogGraphics::EDialogResponse CDialogGraphics::m_dialogResponse
private

◆ m_dialogType

CDialogGraphics::EPrvDialogType CDialogGraphics::m_dialogType
private

◆ m_dlgFatherRef

IWindowGraphics* CDialogGraphics::m_dlgFatherRef
private

◆ m_isActivated

bool CDialogGraphics::m_isActivated
private

◆ m_isClosed

bool CDialogGraphics::m_isClosed
private

◆ m_isClosedWithOutPulsed

bool CDialogGraphics::m_isClosedWithOutPulsed
private

◆ m_isPositionDefault

bool CDialogGraphics::m_isPositionDefault
private

◆ m_isVisible

bool CDialogGraphics::m_isVisible
private

◆ m_justify

uint64_t CDialogGraphics::m_justify
private

◆ m_rectangleDialog

CRectangleGraphics* CDialogGraphics::m_rectangleDialog
private

◆ m_rectangleShadowDialog

CRectangleGraphics* CDialogGraphics::m_rectangleShadowDialog
private

◆ m_title

std::string CDialogGraphics::m_title
private

◆ m_xPos

double CDialogGraphics::m_xPos
private

◆ m_xSize

double CDialogGraphics::m_xSize
private

◆ m_yPos

double CDialogGraphics::m_yPos
private

◆ m_ySize

double CDialogGraphics::m_ySize
private

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