KVIrc 5.2.4
Developer APIs
Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
KviMircTextColorSelector Class Reference

#include <KviSelectors.h>

+ Inheritance diagram for KviMircTextColorSelector:

Public Member Functions

virtual void commit ()
 
 KviMircTextColorSelector (QWidget *par, const QString &txt, unsigned int *uFore, unsigned int *uBack, bool bEnabled)
 
virtual void setEnabled (bool bEnabled)
 
 ~KviMircTextColorSelector ()
 
- Public Member Functions inherited from KviTalHBox
void addSpacing (int iSpace)
 Adds a non-stretchable spacing item.
 
void addStretch (int iStretch)
 Adds the stretch factor.
 
 KviTalHBox (QWidget *pParent, char *pcName=nullptr)
 Constructs an horizontal box object.
 
void setAlignment (Qt::Alignment alignment)
 Sets the alignment of the box.
 
void setAlignment (QWidget *pChild, Qt::Alignment alignment)
 Sets the alignment of the box.
 
void setMargin (int iMargin)
 Sets the margin of the box.
 
void setSpacing (int iSpace)
 Sets the spacing of the box.
 
void setStretchFactor (QWidget *pChild, int iStretch)
 Sets the stretch factor for an object.
 
 ~KviTalHBox ()
 Destroys an horizontal box object.
 
- Public Member Functions inherited from KviSelectorInterface
 KviSelectorInterface ()
 
virtual QString textForSearch ()
 
virtual QWidget * widgetToHighlight ()
 
virtual ~KviSelectorInterface ()
 

Protected Slots

void backSelected (QAction *pAction)
 
void buttonClicked ()
 
void foreSelected (QAction *pAction)
 

Protected Member Functions

void setButtonPalette ()
 
- Protected Member Functions inherited from KviTalHBox
void childEvent (QChildEvent *e) override
 

Private Attributes

QMenu * m_pBackPopup
 
QPushButton * m_pButton
 
QMenu * m_pContextPopup
 
QMenu * m_pForePopup
 
QLabel * m_pLabel
 
unsigned int * m_pUBack
 
unsigned int * m_pUFore
 
unsigned int m_uBack
 
unsigned int m_uFore
 

Constructor & Destructor Documentation

◆ KviMircTextColorSelector()

KviMircTextColorSelector::KviMircTextColorSelector ( QWidget *  par,
const QString &  txt,
unsigned int *  uFore,
unsigned int *  uBack,
bool  bEnabled 
)

◆ ~KviMircTextColorSelector()

KviMircTextColorSelector::~KviMircTextColorSelector ( )
default

Member Function Documentation

◆ backSelected

void KviMircTextColorSelector::backSelected ( QAction *  pAction)
protectedslot

References m_uBack, and setButtonPalette().

Referenced by KviMircTextColorSelector().

◆ buttonClicked

void KviMircTextColorSelector::buttonClicked ( )
protectedslot

References m_pButton, m_pContextPopup, and p.

Referenced by KviMircTextColorSelector().

◆ commit()

void KviMircTextColorSelector::commit ( )
virtual

Reimplemented from KviSelectorInterface.

References m_pUBack, m_pUFore, m_uBack, and m_uFore.

◆ foreSelected

void KviMircTextColorSelector::foreSelected ( QAction *  pAction)
protectedslot

References m_uFore, and setButtonPalette().

Referenced by KviMircTextColorSelector().

◆ setButtonPalette()

void KviMircTextColorSelector::setButtonPalette ( )
protected

◆ setEnabled()

void KviMircTextColorSelector::setEnabled ( bool  bEnabled)
virtual

Member Data Documentation

◆ m_pBackPopup

QMenu* KviMircTextColorSelector::m_pBackPopup
private

◆ m_pButton

QPushButton* KviMircTextColorSelector::m_pButton
private

◆ m_pContextPopup

QMenu* KviMircTextColorSelector::m_pContextPopup
private

◆ m_pForePopup

QMenu* KviMircTextColorSelector::m_pForePopup
private

◆ m_pLabel

QLabel* KviMircTextColorSelector::m_pLabel
private

◆ m_pUBack

unsigned int* KviMircTextColorSelector::m_pUBack
private

Referenced by commit(), and KviMircTextColorSelector().

◆ m_pUFore

unsigned int* KviMircTextColorSelector::m_pUFore
private

Referenced by commit(), and KviMircTextColorSelector().

◆ m_uBack

unsigned int KviMircTextColorSelector::m_uBack
private

◆ m_uFore

unsigned int KviMircTextColorSelector::m_uFore
private

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