KVIrc  4.9.2
DeveloperAPIs
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. More...
 
void addStretch (int iStretch)
 Adds the stretch factor. More...
 
 KviTalHBox (QWidget *pParent, char *pcName=0)
 Constructs an horizontal box object. More...
 
void setAlignment (Qt::Alignment alignment)
 Sets the alignment of the box. More...
 
void setAlignment (QWidget *pChild, Qt::Alignment alignment)
 Sets the alignment of the box. More...
 
void setMargin (int iMargin)
 Sets the margin of the box. More...
 
void setSpacing (int iSpace)
 Sets the spacing of the box. More...
 
void setStretchFactor (QWidget *pChild, int iStretch)
 Sets the stretch factor for an object. More...
 
 ~KviTalHBox ()
 Destroys an horizontal box object. More...
 
- 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
virtual void childEvent (QChildEvent *e)
 

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 ( QWidget *  par,
const QString &  txt,
unsigned int *  uFore,
unsigned int *  uBack,
bool  bEnabled 
)
KviMircTextColorSelector::~KviMircTextColorSelector ( )
default

Member Function Documentation

void KviMircTextColorSelector::backSelected ( QAction *  pAction)
protectedslot

References m_uBack, and setButtonPalette().

Referenced by KviMircTextColorSelector().

void KviMircTextColorSelector::buttonClicked ( )
protectedslot

References m_pButton, m_pContextPopup, and p.

Referenced by KviMircTextColorSelector().

void KviMircTextColorSelector::commit ( void  )
virtual

Reimplemented from KviSelectorInterface.

References m_pUBack, m_pUFore, m_uBack, and m_uFore.

void KviMircTextColorSelector::foreSelected ( QAction *  pAction)
protectedslot

References m_uFore, and setButtonPalette().

Referenced by KviMircTextColorSelector().

void KviMircTextColorSelector::setButtonPalette ( )
protected
void KviMircTextColorSelector::setEnabled ( bool  bEnabled)
virtual

Member Data Documentation

QMenu* KviMircTextColorSelector::m_pBackPopup
private
QPushButton* KviMircTextColorSelector::m_pButton
private
QMenu* KviMircTextColorSelector::m_pContextPopup
private
QMenu* KviMircTextColorSelector::m_pForePopup
private
QLabel* KviMircTextColorSelector::m_pLabel
private
unsigned int* KviMircTextColorSelector::m_pUBack
private

Referenced by commit(), and KviMircTextColorSelector().

unsigned int* KviMircTextColorSelector::m_pUFore
private

Referenced by commit(), and KviMircTextColorSelector().

unsigned int KviMircTextColorSelector::m_uBack
private
unsigned int KviMircTextColorSelector::m_uFore
private

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