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

History window class. More...

#include <KviHistoryWindow.h>

+ Inheritance diagram for KviHistoryWindow:

Public Slots

void itemSelected (QListWidgetItem *pItem)
 Called when an item is selected. More...
 
void ownerDead ()
 Called when the owner is dead. More...
 

Public Member Functions

void doHide ()
 Hides the parent and set the focus to the owner. More...
 
 KviHistoryWindow (QWidget *pParent)
 Constructs the history window object. More...
 
void popup (KviInput *pOwner)
 Shows the popup. More...
 
 ~KviHistoryWindow ()
 Destroys the history window object. More...
 

Private Member Functions

void fill ()
 Fills in the window with strings from input history. More...
 
virtual void hideEvent (QHideEvent *e)
 
virtual void keyPressEvent (QKeyEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void show ()
 Shows the widget. More...
 
virtual void timerEvent (QTimerEvent *e)
 

Private Attributes

int m_iTimerId
 
KviInputm_pOwner
 
QWidget * m_pParent
 

Detailed Description

History window class.

Constructor & Destructor Documentation

KviHistoryWindow::KviHistoryWindow ( QWidget *  pParent)

Constructs the history window object.

Parameters
pParentThe parent widget
Returns
KviHistoryWindow

References connect(), itemSelected(), m_iTimerId, m_pOwner, and m_pParent.

KviHistoryWindow::~KviHistoryWindow ( )

Destroys the history window object.

References m_iTimerId.

Member Function Documentation

void KviHistoryWindow::doHide ( )

Hides the parent and set the focus to the owner.

Returns
void

References m_iTimerId, m_pOwner, m_pParent, and KviInput::setFocus().

Referenced by itemSelected(), keyPressEvent(), mousePressEvent(), ownerDead(), and timerEvent().

void KviHistoryWindow::fill ( )
private

Fills in the window with strings from input history.

Returns
void

References clear(), KviInputHistory::instance(), KviInputHistory::list(), and KviPointerList< T >::prev().

Referenced by popup().

void KviHistoryWindow::hideEvent ( QHideEvent *  e)
privatevirtual

References m_iTimerId.

void KviHistoryWindow::itemSelected ( QListWidgetItem *  pItem)
slot

Called when an item is selected.

Parameters
pItemThe selected item
Returns
void

References doHide(), m_pOwner, and KviInput::setText().

Referenced by KviHistoryWindow().

void KviHistoryWindow::keyPressEvent ( QKeyEvent *  e)
privatevirtual

References doHide(), g_pApp, and m_pOwner.

void KviHistoryWindow::mousePressEvent ( QMouseEvent *  e)
privatevirtual

References doHide().

void KviHistoryWindow::ownerDead ( )
slot

Called when the owner is dead.

Returns
void

References doHide(), and m_pOwner.

Referenced by popup().

void KviHistoryWindow::popup ( KviInput pOwner)

Shows the popup.

Parameters
pOwnerThe owner of the popup
Returns
void

References connect(), fill(), m_pOwner, ownerDead(), and show().

Referenced by KviHistoryWindowWidget::popup().

void KviHistoryWindow::show ( )
privatevirtual

Shows the widget.

Returns
void

References m_iTimerId.

Referenced by popup().

void KviHistoryWindow::timerEvent ( QTimerEvent *  e)
privatevirtual

References doHide(), m_iTimerId, and m_pOwner.

Member Data Documentation

int KviHistoryWindow::m_iTimerId
private
KviInput* KviHistoryWindow::m_pOwner
private
QWidget* KviHistoryWindow::m_pParent
private

Referenced by doHide(), and KviHistoryWindow().


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