KVIrc 5.2.6
Developer APIs
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.
 
QString label () const
 Returns the name of the current window.
 
 NotifierWindowTab (KviWindow *pWnd, QTabWidget *pParent)
 Creates the tab object.
 
void updateGui ()
 Updates the GUI.
 
KviWindowwnd () const
 Returns the pointer of the current window.
 
 ~NotifierWindowTab ()
 Destroys the tab object.
 

Protected Member Functions

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

Private Slots

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

Private Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ NotifierWindowTab()

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(), and SPACING.

◆ ~NotifierWindowTab()

NotifierWindowTab::~NotifierWindowTab ( )

Destroys the tab object.

References m_pVBox, and m_pVWidget.

Member Function Documentation

◆ appendMessage()

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().

◆ closeMe

void NotifierWindowTab::closeMe ( )
privateslot

Emitted when the window is being destroyed.

Returns
void

References g_pNotifierWindow, and m_pParent.

Referenced by NotifierWindowTab().

◆ label()

QString NotifierWindowTab::label ( ) const
inline

Returns the name of the current window.

Returns
QString

References m_szLabel.

◆ labelChanged

void NotifierWindowTab::labelChanged ( )
privateslot

Emitted when the window changes its name.

Returns
void

References m_pParent, m_pWnd, and m_szLabel.

Referenced by NotifierWindowTab().

◆ mouseDoubleClickEvent()

void NotifierWindowTab::mouseDoubleClickEvent ( QMouseEvent * e)
overrideprotected

◆ paintEvent()

◆ resizeEvent()

void NotifierWindowTab::resizeEvent ( QResizeEvent * e)
overrideprotected

References i, and m_pVBox.

◆ scrollRangeChanged

void NotifierWindowTab::scrollRangeChanged ( int ,
int  )
privateslot

Emitted when the scrollbar range is changed.

Returns
void

Referenced by NotifierWindowTab().

◆ updateGui()

void NotifierWindowTab::updateGui ( )

Updates the GUI.

Returns
void

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

◆ wnd()

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

◆ m_pParent

QTabWidget* NotifierWindowTab::m_pParent = nullptr
private

◆ m_pVBox

QVBoxLayout* NotifierWindowTab::m_pVBox = nullptr
private

◆ m_pVWidget

QWidget* NotifierWindowTab::m_pVWidget = nullptr
private

◆ m_pWnd

KviWindow* NotifierWindowTab::m_pWnd = nullptr
private

◆ m_szLabel

QString NotifierWindowTab::m_szLabel
private

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