#include <NotifierWindow.h>
◆ NotifierWindow()
NotifierWindow::NotifierWindow |
( |
| ) |
|
References NotifierWindowBorder::bodyRect(), connect(), g_pApp, g_pNotifierWindow, m_pLineEdit, m_pProgressBar, m_pWndBorder, m_pWndTabs, m_wndRect, r, returnPressed(), slotTabCloseRequested(), SPACING, updateGui(), WDG_MIN_HEIGHT, and WDG_MIN_WIDTH.
◆ ~NotifierWindow()
NotifierWindow::~NotifierWindow |
( |
| ) |
|
◆ addMessage()
void NotifierWindow::addMessage |
( |
KviWindow * |
pWnd, |
|
|
const QString & |
szImageId, |
|
|
const QString & |
szText, |
|
|
unsigned int |
uMessageTime |
|
) |
| |
References g_pIconManager, KviIconManager::getImage(), KviWindow::hasAttention(), i, kvi_time_t, kvi_unixTime, m_bDisableHideOnMainWindowGotAttention, m_eState, m_pWndTabs, m_tAutoHideAt, KviWindow::MainWindowIsVisible, startAutoHideTimer(), startBlinking(), stopAutoHideTimer(), and Visible.
Referenced by notifier_kvs_cmd_message(), notifier_module_ctrl(), and returnPressed().
◆ blink
void NotifierWindow::blink |
( |
| ) |
|
|
protectedslot |
◆ checkResizing()
bool NotifierWindow::checkResizing |
( |
QPoint |
e | ) |
|
|
private |
References e, m_bLeftButtonIsPressed, m_bResizing, m_whereResizing, setCursor(), WDG_BORDER_THICKNESS, WDG_DWN, WDG_DWNDX, WDG_DWNSX, WDG_DX, WDG_SX, WDG_UP, WDG_UPDX, and WDG_UPSX.
Referenced by mouseMoveEvent(), and mousePressEvent().
◆ contextPopup()
void NotifierWindow::contextPopup |
( |
const QPoint & |
pos | ) |
|
|
private |
◆ countTabs()
int NotifierWindow::countTabs |
( |
| ) |
const |
|
inline |
◆ 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 | ) |
|
References connect(), heartbeat(), Hidden, hideNow(), Hiding, m_dOpacity, m_eState, m_pShowHideTimer, m_pWndBorder, OPACITY_STEP, Showing, stopAutoHideTimer(), stopBlinkTimer(), stopShowHideTimer(), Visible, x, NotifierWindowBorder::x(), y, and NotifierWindowBorder::y().
Referenced by blink(), notifier_kvs_cmd_hide(), and progressUpdate().
◆ doShow()
void NotifierWindow::doShow |
( |
bool |
bDoAnimate | ) |
|
References connect(), g_tNotifierDisabledUntil, heartbeat(), Hidden, Hiding, KVI_OPTION_BOOL, kvi_time_t, kvi_unixTime, KviOption_boolDontShowNotifierIfActiveWindowIsFullScreen, KviOption_boolEnableNotifier, m_bBlinkOn, m_bCloseDown, m_bCrashShowWorkAround, m_bDragging, m_bNextDown, m_bPrevDown, m_bWriteDown, m_dOpacity, m_eState, m_pShowHideTimer, OPACITY_STEP, Showing, startAutoHideTimer(), startBlinking(), stopBlinkTimer(), stopShowHideTimer(), and Visible.
Referenced by notifier_kvs_cmd_message(), notifier_kvs_cmd_show(), and notifier_module_ctrl().
◆ enterEvent()
void NotifierWindow::enterEvent |
( |
QEnterEvent * |
e | ) |
|
|
overrideprotected |
◆ eventFilter()
bool NotifierWindow::eventFilter |
( |
QObject * |
pEdit, |
|
|
QEvent * |
e |
|
) |
| |
|
overrideprotected |
◆ fillContextPopup
void NotifierWindow::fillContextPopup |
( |
| ) |
|
|
protectedslot |
References __tr2qs_ctx, KviIconManager::Close, disableFor15Minutes(), disableFor1Minute(), disableFor30Minutes(), disableFor5Minutes(), disableFor60Minutes(), disablePermanently(), disableUntilKVIrcRestarted(), KviIconManager::Editor, g_pIconManager, KviIconManager::getSmallIcon(), hideNow(), m_pContextPopup, m_pDisablePopup, KviIconManager::Quit, KviIconManager::Time, and toggleLineEdit().
Referenced by contextPopup().
◆ heartbeat
void NotifierWindow::heartbeat |
( |
| ) |
|
|
protectedslot |
References FocusingOff, FocusingOn, Hidden, hideNow(), Hiding, KVI_OPTION_UINT, KviOption_uintNotifierActiveTransparency, KviOption_uintNotifierInactiveTransparency, m_dOpacity, m_eState, OPACITY_STEP, shouldHideIfMainWindowGotAttention(), Showing, startAutoHideTimer(), startBlinking(), stopShowHideTimer(), and Visible.
Referenced by doHide(), doShow(), and leaveEvent().
◆ hideEvent()
void NotifierWindow::hideEvent |
( |
QHideEvent * |
e | ) |
|
|
overrideprotected |
◆ hideNow
void NotifierWindow::hideNow |
( |
| ) |
|
|
slot |
References Hidden, m_dOpacity, m_eState, m_tAutoHideAt, stopAutoHideTimer(), stopBlinkTimer(), and stopShowHideTimer().
Referenced by disableFor15Minutes(), disableFor1Minute(), disableFor30Minutes(), disableFor5Minutes(), disableFor60Minutes(), disablePermanently(), disableUntilKVIrcRestarted(), doHide(), eventFilter(), fillContextPopup(), heartbeat(), keyPressEvent(), NotifierWindowTab::mouseDoubleClickEvent(), mouseReleaseEvent(), and slotTabCloseRequested().
◆ keyPressEvent()
void NotifierWindow::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
overrideprotected |
◆ leaveEvent()
void NotifierWindow::leaveEvent |
( |
QEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void NotifierWindow::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
References NotifierWindowBorder::captionRect(), checkResizing(), NotifierWindowBorder::closeRect(), e, m_bDragging, m_bLeftButtonIsPressed, m_bResizing, m_pntDrag, m_pntPos, m_pWndBorder, m_wndRect, resize(), NotifierWindowBorder::setCloseIcon(), setCursor(), WDG_ICON_OUT, WDG_ICON_OVER, x, and y.
◆ mousePressEvent()
void NotifierWindow::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
References NotifierWindowBorder::captionRect(), checkResizing(), NotifierWindowBorder::closeRect(), contextPopup(), e, m_bBlinkOn, m_bCloseDown, m_bDragging, m_bLeftButtonIsPressed, m_bResizing, m_pLineEdit, m_pntClick, m_pntDrag, m_pntPos, m_pWndBorder, m_tAutoHideAt, NotifierWindowBorder::rect(), NotifierWindowBorder::setCloseIcon(), stopAutoHideTimer(), stopBlinkTimer(), and WDG_ICON_CLICKED.
◆ mouseReleaseEvent()
void NotifierWindow::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
References NotifierWindowBorder::captionRect(), NotifierWindowBorder::closeRect(), e, hideNow(), m_bCloseDown, m_bDragging, m_bLeftButtonIsPressed, m_bNextDown, m_bPrevDown, m_bResizing, m_bWriteDown, m_pWndBorder, and setCursor().
◆ paintEvent()
void NotifierWindow::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
overrideprotected |
References NotifierWindowBorder::draw(), e, NotifierWindowBorder::height(), KVI_OPTION_COLOR, KVI_OPTION_FONT, KviOption_colorNotifierTitleForeground, KviOption_fontNotifierTitle, m_bBlinkOn, m_pWndBorder, m_pWndTabs, KviWindow::plainTextCaption(), NotifierWindowBorder::resize(), NotifierWindowBorder::titleRect(), NotifierWindowBorder::width(), and NotifierWindowTab::wnd().
◆ progressUpdate
void NotifierWindow::progressUpdate |
( |
| ) |
|
|
protectedslot |
◆ redrawText()
void NotifierWindow::redrawText |
( |
| ) |
|
|
private |
◆ resize()
void NotifierWindow::resize |
( |
QPoint |
p, |
|
|
bool |
= true |
|
) |
| |
|
private |
References m_pLineEdit, m_whereResizing, m_wndRect, showLineEdit(), WDG_DWN, WDG_DWNDX, WDG_DWNSX, WDG_DX, WDG_MIN_HEIGHT, WDG_MIN_WIDTH, WDG_SX, WDG_UP, WDG_UPDX, WDG_UPSX, x, and y.
Referenced by mouseMoveEvent().
◆ 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 |
◆ showLineEdit()
void NotifierWindow::showLineEdit |
( |
bool |
bShow | ) |
|
◆ slotTabCloseRequested
void NotifierWindow::slotTabCloseRequested |
( |
int |
index | ) |
|
|
slot |
◆ startAutoHideTimer()
void NotifierWindow::startAutoHideTimer |
( |
| ) |
|
|
private |
◆ startBlinking()
void NotifierWindow::startBlinking |
( |
| ) |
|
|
private |
◆ state()
State NotifierWindow::state |
( |
| ) |
const |
|
inline |
◆ stopAutoHideTimer()
void NotifierWindow::stopAutoHideTimer |
( |
| ) |
|
|
private |
◆ stopBlinkTimer()
void NotifierWindow::stopBlinkTimer |
( |
| ) |
|
|
private |
◆ stopShowHideTimer()
void NotifierWindow::stopShowHideTimer |
( |
| ) |
|
|
private |
◆ textWidth()
int NotifierWindow::textWidth |
( |
| ) |
|
◆ toggleLineEdit
void NotifierWindow::toggleLineEdit |
( |
| ) |
|
|
slot |
◆ updateGui
void NotifierWindow::updateGui |
( |
| ) |
|
|
protectedslot |
◆ m_bBlinkOn
bool NotifierWindow::m_bBlinkOn = false |
|
protected |
◆ m_bCloseDown
bool NotifierWindow::m_bCloseDown = false |
|
protected |
◆ m_bCrashShowWorkAround
bool NotifierWindow::m_bCrashShowWorkAround |
|
protected |
◆ 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 |
◆ m_bPrevDown
bool NotifierWindow::m_bPrevDown = false |
|
protected |
◆ m_bResizing
bool NotifierWindow::m_bResizing = false |
|
protected |
◆ m_bWriteDown
bool NotifierWindow::m_bWriteDown = false |
|
protected |
◆ m_cursor
QCursor NotifierWindow::m_cursor |
|
protected |
◆ m_dOpacity
double NotifierWindow::m_dOpacity = 0.0 |
|
protected |
◆ m_eState
◆ m_iBlinkCount
int NotifierWindow::m_iBlinkCount |
|
protected |
◆ m_pAutoHideTimer
QTimer* NotifierWindow::m_pAutoHideTimer = nullptr |
|
protected |
◆ m_pBlinkTimer
QTimer* NotifierWindow::m_pBlinkTimer = nullptr |
|
protected |
◆ m_pContextPopup
QMenu* NotifierWindow::m_pContextPopup = nullptr |
|
protected |
◆ m_pCurrentMessage
◆ m_pDisablePopup
QMenu* NotifierWindow::m_pDisablePopup = nullptr |
|
protected |
◆ m_pLineEdit
◆ m_pntClick
QPoint NotifierWindow::m_pntClick |
|
protected |
◆ m_pntDrag
QPoint NotifierWindow::m_pntDrag |
|
protected |
◆ m_pntPos
QPoint NotifierWindow::m_pntPos |
|
protected |
◆ m_pProgressBar
QProgressBar* NotifierWindow::m_pProgressBar = nullptr |
|
protected |
◆ m_pShowHideTimer
QTimer* NotifierWindow::m_pShowHideTimer = nullptr |
|
protected |
◆ m_pWindowToRaise
◆ m_pWndBorder
◆ m_pWndTabs
QTabWidget* NotifierWindow::m_pWndTabs = nullptr |
|
protected |
◆ m_qtStartedAt
QTime NotifierWindow::m_qtStartedAt |
|
protected |
◆ m_tAutoHideAt
◆ m_tStartedAt
◆ m_whereResizing
int NotifierWindow::m_whereResizing |
|
protected |
◆ m_wndRect
QRect NotifierWindow::m_wndRect |
|
protected |
The documentation for this class was generated from the following files: