KVIrc 5.2.0
Developer APIs
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
NotifierWindow Class Reference

#include <NotifierWindow.h>

+ Inheritance diagram for NotifierWindow:

Public Slots

void hideNow ()
 
void slotTabCloseRequested (int index)
 
void toggleLineEdit ()
 

Public Member Functions

void addMessage (KviWindow *pWnd, const QString &szImageId, const QString &szText, unsigned int uMessageTime)
 
int countTabs () const
 
void doHide (bool bDoAnimate)
 
void doShow (bool bDoAnimate)
 
 NotifierWindow ()
 
void setDisableHideOnMainWindowGotAttention (bool b)
 
void showLineEdit (bool bShow)
 
State state () const
 
int textWidth ()
 
 ~NotifierWindow ()
 

Protected Slots

void blink ()
 
void disableFor15Minutes ()
 
void disableFor1Minute ()
 
void disableFor30Minutes ()
 
void disableFor5Minutes ()
 
void disableFor60Minutes ()
 
void disablePermanently ()
 
void disableUntilKVIrcRestarted ()
 
void fillContextPopup ()
 
void heartbeat ()
 
void progressUpdate ()
 
void returnPressed ()
 
void updateGui ()
 

Protected Member Functions

void enterEvent (QEnterEvent *e) override
 
bool eventFilter (QObject *pEdit, QEvent *e) override
 
void hideEvent (QHideEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void leaveEvent (QEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void paintEvent (QPaintEvent *e) override
 
void showEvent (QShowEvent *e) override
 

Protected Attributes

bool m_bBlinkOn = false
 
bool m_bCloseDown = false
 
bool m_bCrashShowWorkAround
 
bool m_bDiagonalResizing = false
 
bool m_bDisableHideOnMainWindowGotAttention = false
 
bool m_bDragging = false
 
bool m_bLeftButtonIsPressed = false
 
bool m_bNextDown = false
 
bool m_bPrevDown = false
 
bool m_bResizing = false
 
bool m_bWriteDown = false
 
QCursor m_cursor
 
double m_dOpacity = 0.0
 
State m_eState = Hidden
 
int m_iBlinkCount
 
QTimer * m_pAutoHideTimer = nullptr
 
QTimer * m_pBlinkTimer = nullptr
 
QMenu * m_pContextPopup = nullptr
 
NotifierMessagem_pCurrentMessage = nullptr
 
QMenu * m_pDisablePopup = nullptr
 
KviThemedLineEditm_pLineEdit = nullptr
 
QPoint m_pntClick
 
QPoint m_pntDrag
 
QPoint m_pntPos
 
QProgressBar * m_pProgressBar = nullptr
 
QTimer * m_pShowHideTimer = nullptr
 
KviWindowm_pWindowToRaise = nullptr
 
NotifierWindowBorderm_pWndBorder = nullptr
 
QTabWidget * m_pWndTabs = nullptr
 
QTime m_qtStartedAt
 
kvi_time_t m_tAutoHideAt = 0
 
kvi_time_t m_tStartedAt = 0
 
int m_whereResizing
 
QRect m_wndRect
 

Private Member Functions

bool checkResizing (QPoint)
 
void contextPopup (const QPoint &pos)
 
void redrawText ()
 
void resize (QPoint p, bool=true)
 
void setCursor (int)
 
bool shouldHideIfMainWindowGotAttention ()
 
void startAutoHideTimer ()
 
void startBlinking ()
 
void stopAutoHideTimer ()
 
void stopBlinkTimer ()
 
void stopShowHideTimer ()
 

Constructor & Destructor Documentation

◆ NotifierWindow()

NotifierWindow::NotifierWindow ( )

◆ ~NotifierWindow()

NotifierWindow::~NotifierWindow ( )

Member Function Documentation

◆ addMessage()

void NotifierWindow::addMessage ( KviWindow pWnd,
const QString &  szImageId,
const QString &  szText,
unsigned int  uMessageTime 
)

◆ blink

void NotifierWindow::blink ( )
protectedslot

◆ checkResizing()

bool NotifierWindow::checkResizing ( QPoint  e)
private

◆ contextPopup()

void NotifierWindow::contextPopup ( const QPoint &  pos)
private

◆ countTabs()

int NotifierWindow::countTabs ( ) const
inline

References m_pWndTabs.

Referenced by notifier_kvs_cmd_show().

◆ disableFor15Minutes

void NotifierWindow::disableFor15Minutes ( )
protectedslot

◆ disableFor1Minute

void NotifierWindow::disableFor1Minute ( )
protectedslot

◆ disableFor30Minutes

void NotifierWindow::disableFor30Minutes ( )
protectedslot

◆ disableFor5Minutes

void NotifierWindow::disableFor5Minutes ( )
protectedslot

◆ disableFor60Minutes

void NotifierWindow::disableFor60Minutes ( )
protectedslot

◆ disablePermanently

void NotifierWindow::disablePermanently ( )
protectedslot

◆ disableUntilKVIrcRestarted

void NotifierWindow::disableUntilKVIrcRestarted ( )
protectedslot

◆ doHide()

void NotifierWindow::doHide ( bool  bDoAnimate)

◆ doShow()

void NotifierWindow::doShow ( bool  bDoAnimate)

◆ enterEvent()

void NotifierWindow::enterEvent ( QEnterEvent *  e)
overrideprotected

References connect(), and FocusingOn.

◆ eventFilter()

bool NotifierWindow::eventFilter ( QObject *  pEdit,
QEvent *  e 
)
overrideprotected

◆ fillContextPopup

void NotifierWindow::fillContextPopup ( )
protectedslot

◆ heartbeat

void NotifierWindow::heartbeat ( )
protectedslot

◆ hideEvent()

void NotifierWindow::hideEvent ( QHideEvent *  e)
overrideprotected

◆ hideNow

void NotifierWindow::hideNow ( )
slot

◆ keyPressEvent()

void NotifierWindow::keyPressEvent ( QKeyEvent *  e)
overrideprotected

References e, and hideNow().

◆ leaveEvent()

void NotifierWindow::leaveEvent ( QEvent *  e)
overrideprotected

◆ mouseMoveEvent()

void NotifierWindow::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void NotifierWindow::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void NotifierWindow::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ paintEvent()

void NotifierWindow::paintEvent ( QPaintEvent *  e)
overrideprotected

◆ progressUpdate

void NotifierWindow::progressUpdate ( )
protectedslot

◆ redrawText()

void NotifierWindow::redrawText ( )
private

◆ resize()

void NotifierWindow::resize ( QPoint  p,
bool  = true 
)
private

◆ returnPressed

void NotifierWindow::returnPressed ( )
protectedslot

◆ setCursor()

void NotifierWindow::setCursor ( int  iCur)
private

◆ setDisableHideOnMainWindowGotAttention()

void NotifierWindow::setDisableHideOnMainWindowGotAttention ( bool  b)
inline

◆ shouldHideIfMainWindowGotAttention()

bool NotifierWindow::shouldHideIfMainWindowGotAttention ( )
private

◆ showEvent()

void NotifierWindow::showEvent ( QShowEvent *  e)
overrideprotected

References m_wndRect.

◆ showLineEdit()

void NotifierWindow::showLineEdit ( bool  bShow)

References __tr2qs_ctx, m_pLineEdit, and m_pWndTabs.

Referenced by resize(), and toggleLineEdit().

◆ slotTabCloseRequested

void NotifierWindow::slotTabCloseRequested ( int  index)
slot

References hideNow(), and m_pWndTabs.

Referenced by NotifierWindowTab::closeMe(), and NotifierWindow().

◆ startAutoHideTimer()

void NotifierWindow::startAutoHideTimer ( )
private

◆ startBlinking()

void NotifierWindow::startBlinking ( )
private

◆ state()

State NotifierWindow::state ( ) const
inline

References m_eState.

◆ stopAutoHideTimer()

void NotifierWindow::stopAutoHideTimer ( )
private

◆ stopBlinkTimer()

void NotifierWindow::stopBlinkTimer ( )
private

◆ stopShowHideTimer()

void NotifierWindow::stopShowHideTimer ( )
private

◆ textWidth()

int NotifierWindow::textWidth ( )

◆ toggleLineEdit

void NotifierWindow::toggleLineEdit ( )
slot

References m_pLineEdit, and showLineEdit().

Referenced by fillContextPopup().

◆ updateGui

void NotifierWindow::updateGui ( )
protectedslot

Member Data Documentation

◆ m_bBlinkOn

bool NotifierWindow::m_bBlinkOn = false
protected

◆ m_bCloseDown

bool NotifierWindow::m_bCloseDown = false
protected

◆ m_bCrashShowWorkAround

bool NotifierWindow::m_bCrashShowWorkAround
protected

Referenced by doShow(), and hideEvent().

◆ m_bDiagonalResizing

bool NotifierWindow::m_bDiagonalResizing = false
protected

◆ m_bDisableHideOnMainWindowGotAttention

bool NotifierWindow::m_bDisableHideOnMainWindowGotAttention = false
protected

◆ m_bDragging

bool NotifierWindow::m_bDragging = false
protected

◆ m_bLeftButtonIsPressed

bool NotifierWindow::m_bLeftButtonIsPressed = false
protected

◆ m_bNextDown

bool NotifierWindow::m_bNextDown = false
protected

Referenced by doShow(), and mouseReleaseEvent().

◆ m_bPrevDown

bool NotifierWindow::m_bPrevDown = false
protected

Referenced by doShow(), and mouseReleaseEvent().

◆ m_bResizing

bool NotifierWindow::m_bResizing = false
protected

◆ m_bWriteDown

bool NotifierWindow::m_bWriteDown = false
protected

Referenced by doShow(), and mouseReleaseEvent().

◆ m_cursor

QCursor NotifierWindow::m_cursor
protected

Referenced by setCursor().

◆ m_dOpacity

double NotifierWindow::m_dOpacity = 0.0
protected

Referenced by doHide(), doShow(), heartbeat(), and hideNow().

◆ m_eState

State NotifierWindow::m_eState = Hidden
protected

◆ m_iBlinkCount

int NotifierWindow::m_iBlinkCount
protected

Referenced by blink(), and startBlinking().

◆ m_pAutoHideTimer

QTimer* NotifierWindow::m_pAutoHideTimer = nullptr
protected

◆ m_pBlinkTimer

QTimer* NotifierWindow::m_pBlinkTimer = nullptr
protected

Referenced by startBlinking(), and stopBlinkTimer().

◆ m_pContextPopup

QMenu* NotifierWindow::m_pContextPopup = nullptr
protected

Referenced by contextPopup(), and fillContextPopup().

◆ m_pCurrentMessage

NotifierMessage* NotifierWindow::m_pCurrentMessage = nullptr
protected

◆ m_pDisablePopup

QMenu* NotifierWindow::m_pDisablePopup = nullptr
protected

Referenced by contextPopup(), and fillContextPopup().

◆ m_pLineEdit

KviThemedLineEdit* NotifierWindow::m_pLineEdit = nullptr
protected

◆ m_pntClick

QPoint NotifierWindow::m_pntClick
protected

Referenced by mousePressEvent().

◆ m_pntDrag

QPoint NotifierWindow::m_pntDrag
protected

Referenced by mouseMoveEvent(), and mousePressEvent().

◆ m_pntPos

QPoint NotifierWindow::m_pntPos
protected

Referenced by mouseMoveEvent(), and mousePressEvent().

◆ m_pProgressBar

QProgressBar* NotifierWindow::m_pProgressBar = nullptr
protected

◆ m_pShowHideTimer

QTimer* NotifierWindow::m_pShowHideTimer = nullptr
protected

◆ m_pWindowToRaise

KviWindow* NotifierWindow::m_pWindowToRaise = nullptr
protected

◆ m_pWndBorder

NotifierWindowBorder* NotifierWindow::m_pWndBorder = nullptr
protected

◆ m_pWndTabs

QTabWidget* NotifierWindow::m_pWndTabs = nullptr
protected

◆ m_qtStartedAt

QTime NotifierWindow::m_qtStartedAt
protected

◆ m_tAutoHideAt

kvi_time_t NotifierWindow::m_tAutoHideAt = 0
protected

◆ m_tStartedAt

kvi_time_t NotifierWindow::m_tStartedAt = 0
protected

◆ m_whereResizing

int NotifierWindow::m_whereResizing
protected

Referenced by checkResizing(), and resize().

◆ m_wndRect

QRect NotifierWindow::m_wndRect
protected

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