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

Defines an object for every single tab about the tabs area. More...

#include <NotifierWindowTab.h>

+ Inheritance diagram for NotifierWindowTab:

Public Member Functions

void appendMessage (NotifierMessage *pMessage)
 Appends the given message to the window. More...
 
QString label () const
 Returns the name of the current window. More...
 
 NotifierWindowTab (KviWindow *pWnd, QTabWidget *pParent)
 Creates the tab object. More...
 
void updateGui ()
 Updates the GUI. More...
 
KviWindowwnd () const
 Returns the pointer of the current window. More...
 
 ~NotifierWindowTab ()
 Destroys the tab object. More...
 

Protected Member Functions

virtual void mouseDoubleClickEvent (QMouseEvent *e)
 
virtual void paintEvent (QPaintEvent *e)
 
virtual void resizeEvent (QResizeEvent *e)
 

Private Slots

void closeMe ()
 Emitted when the window is being destroyed. More...
 
void labelChanged ()
 Emitted when the window changes its name. More...
 
void scrollRangeChanged (int, int)
 Emitted when the scrollbar range is changed. More...
 

Private Attributes

QTabWidget * m_pParent
 
QVBoxLayout * m_pVBox
 
QWidget * m_pVWidget
 
KviWindowm_pWnd
 
QString m_szLabel
 

Detailed Description

Defines an object for every single tab about the tabs area.

Constructor & Destructor Documentation

NotifierWindowTab::NotifierWindowTab ( KviWindow pWnd,
QTabWidget *  pParent 
)

Creates the tab object.

Parameters
pWndThe name of the window represented by the tab
pParentThe parent area container
Returns
NotifierWindowTab

References closeMe(), connect(), labelChanged(), m_pParent, m_pVBox, m_pVWidget, m_pWnd, m_szLabel, scrollRangeChanged(), SPACING, and KviWindow::windowName().

NotifierWindowTab::~NotifierWindowTab ( )

Destroys the tab object.

References m_pVBox, and m_pVWidget.

Member Function Documentation

void NotifierWindowTab::appendMessage ( NotifierMessage pMessage)

Appends the given message to the window.

Parameters
pMessageThe message received to append
Returns
void

References m_pVBox, and MAX_MESSAGES_IN_WINDOW.

Referenced by NotifierWindow::addMessage().

void NotifierWindowTab::closeMe ( )
privateslot

Emitted when the window is being destroyed.

Returns
void

References m_pParent, and NotifierWindow::slotTabCloseRequested().

Referenced by NotifierWindowTab().

QString NotifierWindowTab::label ( ) const
inline

Returns the name of the current window.

Returns
QString

References m_szLabel.

void NotifierWindowTab::labelChanged ( )
privateslot

Emitted when the window changes its name.

Returns
void

References m_pParent, m_pWnd, m_szLabel, and KviWindow::windowName().

Referenced by NotifierWindowTab().

void NotifierWindowTab::mouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual
void NotifierWindowTab::paintEvent ( QPaintEvent *  e)
protectedvirtual
void NotifierWindowTab::resizeEvent ( QResizeEvent *  e)
protectedvirtual

References i, and m_pVBox.

void NotifierWindowTab::scrollRangeChanged ( int  ,
int   
)
privateslot

Emitted when the scrollbar range is changed.

Returns
void

Referenced by NotifierWindowTab().

void NotifierWindowTab::updateGui ( )

Updates the GUI.

Returns
void

References i, m_pVBox, and NotifierMessage::updateGui().

KviWindow* NotifierWindowTab::wnd ( ) const
inline

Returns the pointer of the current window.

Returns
KviWindow *

References m_pWnd.

Referenced by NotifierWindow::paintEvent(), NotifierWindow::returnPressed(), and NotifierWindow::shouldHideIfMainWindowGotAttention().

Member Data Documentation

QTabWidget* NotifierWindowTab::m_pParent
private
QVBoxLayout* NotifierWindowTab::m_pVBox
private
QWidget* NotifierWindowTab::m_pVWidget
private
KviWindow* NotifierWindowTab::m_pWnd
private
QString NotifierWindowTab::m_szLabel
private

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