KVIrc  4.9.2
DeveloperAPIs
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
KviTextIconWindow Class Reference

Text icon window class. More...

#include <KviTextIconWindow.h>

+ Inheritance diagram for KviTextIconWindow:

Public Slots

void cellSelected (int row, int column)
 Called when a cell is selected. More...
 
void fill ()
 Fills in the text icon window. More...
 
void ownerDead ()
 Called when the owner is destroyed. Then it calls doHide() More...
 

Public Member Functions

 KviTextIconWindow ()
 Constructs the text icon window objet. More...
 
void popup (QWidget *pOwner, bool bAltMode)
 Shows the popup. More...
 
 ~KviTextIconWindow ()
 Destroys the text icon window objet. More...
 

Private Member Functions

void autoSelectBestMatchBasedOnOwnerText ()
 
void doHide ()
 Hides the widget and set the focus to the owner. More...
 
virtual bool eventFilter (QObject *o, QEvent *e)
 

Private Attributes

bool m_bAltMode
 
QWidget * m_pOwner
 
QTableWidget * m_pTable
 

Detailed Description

Text icon window class.

Constructor & Destructor Documentation

KviTextIconWindow::KviTextIconWindow ( )
KviTextIconWindow::~KviTextIconWindow ( )

Destroys the text icon window objet.

References m_pTable.

Member Function Documentation

void KviTextIconWindow::autoSelectBestMatchBasedOnOwnerText ( )
private

References c, KviControlCodes::Icon, m_pOwner, m_pTable, and r.

Referenced by eventFilter(), and popup().

void KviTextIconWindow::cellSelected ( int  row,
int  column 
)
slot

Called when a cell is selected.

Parameters
rowThe row containing selected item
columnThe column containing selected item
Returns
void

References doHide(), KviControlCodes::Icon, m_bAltMode, m_pOwner, and m_pTable.

Referenced by eventFilter(), and KviTextIconWindow().

void KviTextIconWindow::doHide ( )
private

Hides the widget and set the focus to the owner.

Returns
void

References m_pOwner.

Referenced by cellSelected(), eventFilter(), and ownerDead().

bool KviTextIconWindow::eventFilter ( QObject *  o,
QEvent *  e 
)
privatevirtual
void KviTextIconWindow::fill ( )
slot
void KviTextIconWindow::ownerDead ( )
slot

Called when the owner is destroyed. Then it calls doHide()

Returns
void

References doHide(), and m_pOwner.

Referenced by popup().

void KviTextIconWindow::popup ( QWidget *  pOwner,
bool  bAltMode 
)

Shows the popup.

Parameters
pOwnerThe owner of the widget
bAltModeWhether to prepend the Ctrl+I escape code in the inserted string
Returns
void

References autoSelectBestMatchBasedOnOwnerText(), connect(), m_bAltMode, m_pOwner, and ownerDead().

Referenced by KviInput::iconButtonClicked(), and KviInputEditor::popupTextIconWindow().

Member Data Documentation

bool KviTextIconWindow::m_bAltMode
private
QWidget* KviTextIconWindow::m_pOwner
private
QTableWidget* KviTextIconWindow::m_pTable
private

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